@antglobal/rlog-sdk 0.0.1755855517-dev.3 → 0.0.1755855517-dev.4

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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Rlog=t():e.Rlog=t()}(self,(function(){return function(){var e={738:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=u(e),s=i[0],a=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=16383,a=0,u=n-o;a<u;a+=s)i.push(c(e,a,a+s>u?u:a+s));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},579:function(e,t,r){"use strict";var n=r(738),o=r(55),i=r(937);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r);e=a(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|p(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):h(e,t);if("Buffer"===t.type&&i(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|p(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(n)return W(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=r;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){f=!1;break}if(f)return i}return-1}function w(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function b(e,t,r,n){return G(W(t,e.length-r),e,r,n)}function k(e,t,r,n){return G(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function C(e,t,r,n){return k(e,t,r,n)}function I(e,t,r,n){return G(Z(t),e,r,n)}function S(e,t,r,n){return G(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}t.lW=u,t.h2=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):v.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.h2;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(n,o),l=e.slice(t,r),f=0;f<a;++f)if(c[f]!==l[f]){i=c[f],s=l[f];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return k(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return I(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function M(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=j(e[i]);return o}function N(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function _(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function B(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,i){return i||B(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,i){return i||B(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):_(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):_(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);L(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);L(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):_(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):_(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=u.isBuffer(e)?e:W(new u(e,n).toString()),a=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},55:function(e,t){t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[r+p]=255&s,p+=d,s/=256,c-=8);e[r+p-d]|=128*v}},937:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},256:function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,u=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(a=u,u=[];++l<t;)a&&a[l].run();l=-1,t=u.length}a=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},933:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},956:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},961:function(e,t,r){var n=r(933);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},619:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},915:function(e){function t(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var s=e.apply(r,n);function a(e){t(s,o,i,a,u,"next",e)}function u(e){t(s,o,i,a,u,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},165:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},264:function(e,t,r){var n=r(913),o=r(665);function i(t,r,s){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return r&&n(i,r.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},534:function(e,t,r){var n=r(36);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},903:function(e,t,r){var n=r(931);e.exports=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}},e.exports.__esModule=!0,e.exports.default=e.exports},153:function(e,t,r){var n=r(894),o=r(665),i=r(441);e.exports=function(e){var t=o();return function(){var r,o=n(e);if(t){var s=n(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return i(this,r)}},e.exports.__esModule=!0,e.exports.default=e.exports},150:function(e,t,r){var n=r(36);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},670:function(e,t,r){var n=r(872);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,r){var o=n(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},894:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},411:function(e,t,r){var n=r(913);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},969:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},665:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},595:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},749:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},17:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},545:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},378:function(e,t,r){var n=r(150);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},955:function(e,t,r){var n=r(768);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},768:function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},441:function(e,t,r){var n=r(775).default,o=r(619);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},177:function(e,t,r){var n=r(775).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),s=new T(n||[]);return a(i,"_invoke",{value:E(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var v="suspendedStart",g="executing",m="completed",y={};function w(){}function b(){}function k(){}var C={};h(C,c,(function(){return this}));var I=Object.getPrototypeOf,S=I&&I(I(L([])));S&&S!==i&&s.call(S,c)&&(C=S);var x=k.prototype=w.prototype=Object.create(C);function A(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,u){var c=d(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&s.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function E(e,r,n){var o=v;return function(i,s){if(o===g)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw s;return{value:t,done:!0}}for(n.method=i,n.arg=s;;){var a=n.delegate;if(a){var u=R(a,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?m:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function R(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,R(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var s=i.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(s.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=k,a(x,"constructor",{value:k,configurable:!0}),a(k,"constructor",{value:b,configurable:!0}),b.displayName=h(k,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,h(e,f,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},A(O.prototype),h(O.prototype,l,(function(){return this})),r.AsyncIterator=O,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var s=new O(p(e,t,n,o),i);return r.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},A(x),h(x,f,"Generator"),h(x,c,(function(){return this})),h(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=L,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=s.call(i,"catchLoc"),c=s.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},913:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},377:function(e,t,r){var n=r(956),o=r(749),i=r(931),s=r(17);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},872:function(e,t,r){var n=r(894);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},958:function(e,t,r){var n=r(961),o=r(595),i=r(931),s=r(545);e.exports=function(e){return n(e)||o(e)||i(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},24:function(e,t,r){var n=r(775).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},36:function(e,t,r){var n=r(775).default,o=r(24);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},775:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},931:function(e,t,r){var n=r(933);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},458:function(e,t,r){var n=r(894),o=r(913),i=r(969),s=r(264);function a(t){var r="function"==typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{addCustomEvent:function(){return Sf},cleanupErrorHandler:function(){return wf},debug:function(){return Ef},getCurrentRouteInfo:function(){return df},init:function(){return Cf},isConsumeOnlyMode:function(){return Af},manualRouteChange:function(){return vf},setConsumeOnlyMode:function(){return xf},setCustomHeaders:function(){return Ml},setWhiteListUrls:function(){return Rl},stop:function(){return If},stopRouterMonitor:function(){return gf},toggleConsumeOnlyMode:function(){return Of},updateRouterConfig:function(){return pf}});var e,t=r(177),o=r.n(t),i=r(915),s=r.n(i),a=r(378),u=r.n(a),c=r(903),l=r.n(c),f=r(775),h=r.n(f);function p(e){return e.nodeType===e.ELEMENT_NODE}function d(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function v(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function g(e){try{var t=e.rules||e.cssRules;return t?((r=Array.from(t).map(m).join("")).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),r):null}catch(e){return null}var r}function m(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=g(e.styleSheet)||t}catch(e){}return t}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e||(e={}));var y=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(e){var t;if(!e)return-1;var r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=r?r:-1},e.prototype.getNode=function(e){return this.idNodeMap.get(e)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(e){return this.nodeMetaMap.get(e)||null},e.prototype.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))},e.prototype.has=function(e){return this.idNodeMap.has(e)},e.prototype.hasNode=function(e){return this.nodeMetaMap.has(e)},e.prototype.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},e.prototype.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function w(e){var t=e.maskInputOptions,r=e.tagName,n=e.type,o=e.value,i=e.maskInputFn,s=o||"";return(t[r.toLowerCase()]||t[n])&&(s=i?i(s):"*".repeat(s.length)),s}var b="__rrweb_original__";var k,C,I=1,S=new RegExp("[^a-z0-9-_:]");function x(){return I++}var A=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,O=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,E=/^(data:)([^,]*),(.*)/i;function R(e,t){return(e||"").replace(A,(function(e,r,n,o,i,s){var a,u=n||i||s,c=r||o||"";if(!u)return e;if(!O.test(u))return"url(".concat(c).concat(u).concat(c,")");if(E.test(u))return"url(".concat(c).concat(u).concat(c,")");if("/"===u[0])return"url(".concat(c).concat((a=t,(a.indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+u)).concat(c,")");var l=t.split("/"),f=u.split("/");l.pop();for(var h=0,p=f;h<p.length;h++){var d=p[h];"."!==d&&(".."===d?l.pop():l.push(d))}return"url(".concat(c).concat(l.join("/")).concat(c,")")}))}var M=/^[^ \t\n\r\u000c]+/,N=/^[, \t\n\r\u000c]+/;function T(e,t){if(!t||""===t.trim())return t;var r=e.createElement("a");return r.href=t,r.href}function L(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function P(){var e=document.createElement("a");return e.href="",e.href}function _(e,t,r,n){return"src"===r||"href"===r&&n&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&n&&"#"!==n[0]?T(e,n):"background"!==r||!n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r&&n?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}for(var o=[];n(N),!(r>=t.length);){var i=n(M);if(","===i.slice(-1))i=T(e,i.substring(0,i.length-1)),o.push(i);else{var s="";i=T(e,i);for(var a=!1;;){var u=t.charAt(r);if(""===u){o.push((i+s).trim());break}if(a)")"===u&&(a=!1);else{if(","===u){r+=1,o.push((i+s).trim());break}"("===u&&(a=!0)}s+=u,r+=1}}}return o.join(", ")}(e,n):"style"===r&&n?R(n,P()):"object"===t&&"data"===r&&n?T(e,n):n:T(e,n)}function B(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&B(e.parentNode,t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&B(e.parentNode,t,r)}function F(e,t,r){var n=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===n)return!1;if("string"==typeof t){if(n.classList.contains(t))return!0;if(n.closest(".".concat(t)))return!0}else if(B(n,t,!0))return!0;if(r){if(n.matches(r))return!0;if(n.closest(r))return!0}return!1}function D(t,r){var n=r.doc,o=r.mirror,i=r.blockClass,s=r.blockSelector,a=r.maskTextClass,u=r.maskTextSelector,c=r.inlineStylesheet,l=r.maskInputOptions,f=void 0===l?{}:l,h=r.maskTextFn,p=r.maskInputFn,d=r.dataURLOptions,v=void 0===d?{}:d,m=r.inlineImages,y=r.recordCanvas,I=r.keepIframeSrcFn,x=r.newlyAddedElement,A=void 0!==x&&x,O=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(n,o);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:O};case t.ELEMENT_NODE:return function(t,r){for(var n=r.doc,o=r.blockClass,i=r.blockSelector,s=r.inlineStylesheet,a=r.maskInputOptions,u=void 0===a?{}:a,c=r.maskInputFn,l=r.dataURLOptions,f=void 0===l?{}:l,h=r.inlineImages,p=r.recordCanvas,d=r.keepIframeSrcFn,v=r.newlyAddedElement,m=void 0!==v&&v,y=r.rootId,I=function(e,t,r){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&e.matches(r)}(t,o,i),x=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return S.test(t)?"div":t}(t),A={},O=t.attributes.length,E=0;E<O;E++){var M=t.attributes[E];A[M.name]=_(n,x,M.name,M.value)}if("link"===x&&s){var N=Array.from(n.styleSheets).find((function(e){return e.href===t.href})),T=null;N&&(T=g(N)),T&&(delete A.rel,delete A.href,A._cssText=R(T,N.href))}if("style"===x&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){(T=g(t.sheet))&&(A._cssText=R(T,P()))}if("input"===x||"textarea"===x||"select"===x){var B=t.value,F=t.checked;"radio"!==A.type&&"checkbox"!==A.type&&"submit"!==A.type&&"button"!==A.type&&B?A.value=w({type:A.type,tagName:x,value:B,maskInputOptions:u,maskInputFn:c}):F&&(A.checked=F)}"option"===x&&(t.selected&&!u.select?A.selected=!0:delete A.selected);if("canvas"===x&&p)if("2d"===t.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var o=t.getImageData,i=b in o?o[b]:o;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(t)||(A.rr_dataURL=t.toDataURL(f.type,f.quality));else if(!("__context"in t)){var D=t.toDataURL(f.type,f.quality),U=document.createElement("canvas");U.width=t.width,U.height=t.height,D!==U.toDataURL(f.type,f.quality)&&(A.rr_dataURL=D)}if("img"===x&&h){k||(k=n.createElement("canvas"),C=k.getContext("2d"));var j=t,W=j.crossOrigin;j.crossOrigin="anonymous";var Z=function(){try{k.width=j.naturalWidth,k.height=j.naturalHeight,C.drawImage(j,0,0),A.rr_dataURL=k.toDataURL(f.type,f.quality)}catch(e){console.warn("Cannot inline img src=".concat(j.currentSrc,"! Error: ").concat(e))}W?A.crossOrigin=W:j.removeAttribute("crossorigin")};j.complete&&0!==j.naturalWidth?Z():j.onload=Z}"audio"!==x&&"video"!==x||(A.rr_mediaState=t.paused?"paused":"played",A.rr_mediaCurrentTime=t.currentTime);m||(t.scrollLeft&&(A.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(A.rr_scrollTop=t.scrollTop));if(I){var G=t.getBoundingClientRect(),Y=G.width,V=G.height;A={class:A.class,rr_width:"".concat(Y,"px"),rr_height:"".concat(V,"px")}}"iframe"!==x||d(A.src)||(t.contentDocument||(A.rr_src=A.src),delete A.src);return{type:e.Element,tagName:x,attributes:A,childNodes:[],isSVG:L(t)||void 0,needBlock:I,rootId:y}}(t,{doc:n,blockClass:i,blockSelector:s,inlineStylesheet:c,maskInputOptions:f,maskInputFn:p,dataURLOptions:v,inlineImages:m,recordCanvas:y,keepIframeSrcFn:I,newlyAddedElement:A,rootId:O});case t.TEXT_NODE:return function(t,r){var n,o=r.maskTextClass,i=r.maskTextSelector,s=r.maskTextFn,a=r.rootId,u=t.parentNode&&t.parentNode.tagName,c=t.textContent,l="STYLE"===u||void 0,f="SCRIPT"===u||void 0;if(l&&c){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(c=(h=t.parentNode.sheet).cssRules?Array.from(h.cssRules).map((function(e){return e.cssText||""})).join(""):"")}catch(e){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(e),t)}c=R(c,P())}var h;f&&(c="SCRIPT_PLACEHOLDER");!l&&!f&&c&&F(t,o,i)&&(c=s?s(c):c.replace(/[\S]/g,"*"));return{type:e.Text,textContent:c||"",isStyle:l,rootId:a}}(t,{maskTextClass:a,maskTextSelector:u,maskTextFn:h,rootId:O});case t.CDATA_SECTION_NODE:return{type:e.CDATA,textContent:"",rootId:O};case t.COMMENT_NODE:return{type:e.Comment,textContent:t.textContent||"",rootId:O};default:return!1}}function U(e){return void 0===e?"":e.toLowerCase()}function j(t,r){var n,o=r.doc,i=r.mirror,s=r.blockClass,a=r.blockSelector,u=r.maskTextClass,c=r.maskTextSelector,l=r.skipChild,f=void 0!==l&&l,h=r.inlineStylesheet,g=void 0===h||h,m=r.maskInputOptions,y=void 0===m?{}:m,w=r.maskTextFn,b=r.maskInputFn,k=r.slimDOMOptions,C=r.dataURLOptions,I=void 0===C?{}:C,S=r.inlineImages,A=void 0!==S&&S,O=r.recordCanvas,E=void 0!==O&&O,R=r.onSerialize,M=r.onIframeLoad,N=r.iframeLoadTimeout,T=void 0===N?5e3:N,L=r.onStylesheetLoad,P=r.stylesheetLoadTimeout,_=void 0===P?5e3:P,B=r.keepIframeSrcFn,F=void 0===B?function(){return!1}:B,W=r.newlyAddedElement,Z=void 0!==W&&W,G=r.preserveWhiteSpace,Y=void 0===G||G,V=D(t,{doc:o,mirror:i,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:c,inlineStylesheet:g,maskInputOptions:y,maskTextFn:w,maskInputFn:b,dataURLOptions:I,inlineImages:A,recordCanvas:E,keepIframeSrcFn:F,newlyAddedElement:Z});if(!V)return console.warn(t,"not serialized"),null;n=i.hasNode(t)?i.getId(t):!function(t,r){if(r.comment&&t.type===e.Comment)return!0;if(t.type===e.Element){if(r.script&&("script"===t.tagName||"link"===t.tagName&&"preload"===t.attributes.rel&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(r.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(U(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===U(t.attributes.name)||"icon"===U(t.attributes.rel)||"apple-touch-icon"===U(t.attributes.rel)||"shortcut icon"===U(t.attributes.rel))))return!0;if("meta"===t.tagName){if(r.headMetaDescKeywords&&U(t.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(U(t.attributes.property).match(/^(og|twitter|fb):/)||U(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===U(t.attributes.name)))return!0;if(r.headMetaRobots&&("robots"===U(t.attributes.name)||"googlebot"===U(t.attributes.name)||"bingbot"===U(t.attributes.name)))return!0;if(r.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(r.headMetaAuthorship&&("author"===U(t.attributes.name)||"generator"===U(t.attributes.name)||"framework"===U(t.attributes.name)||"publisher"===U(t.attributes.name)||"progid"===U(t.attributes.name)||U(t.attributes.property).match(/^article:/)||U(t.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&("google-site-verification"===U(t.attributes.name)||"yandex-verification"===U(t.attributes.name)||"csrf-token"===U(t.attributes.name)||"p:domain_verify"===U(t.attributes.name)||"verify-v1"===U(t.attributes.name)||"verification"===U(t.attributes.name)||"shopify-checkout-api-token"===U(t.attributes.name)))return!0}}return!1}(V,k)&&(Y||V.type!==e.Text||V.isStyle||V.textContent.replace(/^\s+|\s+$/gm,"").length)?x():-2;var z=Object.assign(V,{id:n});if(i.add(t,z),-2===n)return null;R&&R(t);var K=!f;if(z.type===e.Element){K=K&&!z.needBlock,delete z.needBlock;var J=t.shadowRoot;J&&v(J)&&(z.isShadowHost=!0)}if((z.type===e.Document||z.type===e.Element)&&K){k.headWhitespace&&z.type===e.Element&&"head"===z.tagName&&(Y=!1);for(var X={doc:o,mirror:i,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:c,skipChild:f,inlineStylesheet:g,maskInputOptions:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:k,dataURLOptions:I,inlineImages:A,recordCanvas:E,preserveWhiteSpace:Y,onSerialize:R,onIframeLoad:M,iframeLoadTimeout:T,onStylesheetLoad:L,stylesheetLoadTimeout:_,keepIframeSrcFn:F},H=0,Q=Array.from(t.childNodes);H<Q.length;H++){(ee=j(Q[H],X))&&z.childNodes.push(ee)}if(p(t)&&t.shadowRoot)for(var q=0,$=Array.from(t.shadowRoot.childNodes);q<$.length;q++){var ee;(ee=j($[q],X))&&(v(t.shadowRoot)&&(ee.isShadow=!0),z.childNodes.push(ee))}}return t.parentNode&&d(t.parentNode)&&v(t.parentNode)&&(z.isShadow=!0),z.type===e.Element&&"iframe"===z.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"===o){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout((function(){i||(t(),i=!0)}),r);e.addEventListener("load",(function(){clearTimeout(a),i=!0,t()}))}}}(t,(function(){var e=t.contentDocument;if(e&&M){var r=j(e,{doc:e,mirror:i,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:k,dataURLOptions:I,inlineImages:A,recordCanvas:E,preserveWhiteSpace:Y,onSerialize:R,onIframeLoad:M,iframeLoadTimeout:T,onStylesheetLoad:L,stylesheetLoadTimeout:_,keepIframeSrcFn:F});r&&M(t,r)}}),T),z.type===e.Element&&"link"===z.tagName&&"stylesheet"===z.attributes.rel&&function(e,t,r){var n,o=!1;try{n=e.sheet}catch(e){return}if(!n){var i=setTimeout((function(){o||(t(),o=!0)}),r);e.addEventListener("load",(function(){clearTimeout(i),o=!0,t()}))}}(t,(function(){if(L){var e=j(t,{doc:o,mirror:i,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:k,dataURLOptions:I,inlineImages:A,recordCanvas:E,preserveWhiteSpace:Y,onSerialize:R,onIframeLoad:M,iframeLoadTimeout:T,onStylesheetLoad:L,stylesheetLoadTimeout:_,keepIframeSrcFn:F});e&&L(t,e)}}),_),z}function W(e,t){var r=t||{},n=r.mirror,o=void 0===n?new y:n,i=r.blockClass,s=void 0===i?"rr-block":i,a=r.blockSelector,u=void 0===a?null:a,c=r.maskTextClass,l=void 0===c?"rr-mask":c,f=r.maskTextSelector,h=void 0===f?null:f,p=r.inlineStylesheet,d=void 0===p||p,v=r.inlineImages,g=void 0!==v&&v,m=r.recordCanvas,w=void 0!==m&&m,b=r.maskAllInputs,k=void 0!==b&&b,C=r.maskTextFn,I=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,A=r.dataURLOptions,O=r.preserveWhiteSpace,E=r.onSerialize,R=r.onIframeLoad,M=r.iframeLoadTimeout,N=r.onStylesheetLoad,T=r.stylesheetLoadTimeout,L=r.keepIframeSrcFn;return j(e,{doc:e,mirror:o,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===k?{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}:!1===k?{password:!0}:k,maskTextFn:C,maskInputFn:I,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:A,inlineImages:g,recordCanvas:w,preserveWhiteSpace:O,onSerialize:E,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:N,stylesheetLoadTimeout:T,keepIframeSrcFn:void 0===L?function(){return!1}:L,newlyAddedElement:!1})}var Z=/([^\\]):hover/;new RegExp(Z.source,"g");var G=r(377),Y=r.n(G),V=r(958),z=r.n(V),K=r(165),J=r.n(K),X=r(534),H=r.n(X);function Q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var q="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.",$={map:{},getId:function(){return console.error(q),-1},getNode:function(){return console.error(q),null},removeNodeFromMap:function(){console.error(q)},has:function(){return console.error(q),!1},reset:function(){console.error(q)}};function ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();o||!1!==r.leading||(o=u);var c=t-(u-o),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout((function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)}),c))}}function te(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return te(e,t,i||{},!0)}}function re(e,t,r){try{if(!(t in e))return function(){};var n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,function(){e[t]=n}}catch(e){return function(){}}}function ne(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ie(e,t,r,n){if(!e)return!1;var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!o)return!1;if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(B(o,t,n))return!0;if(r){if(e.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1}function se(e,t){return-2===t.getId(e)}function ae(e,t){if(d(e))return!1;var r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ae(e.parentNode,t))}function ue(e){return Boolean(e.changedTouches)}function ce(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r[0];if(!(0 in r))throw new TypeError("1 argument is required");do{if(e===o)return!0}while(o=o&&o.parentNode);return!1})}function le(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function fe(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function he(e){return Boolean(null==e?void 0:e.shadowRoot)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&($=new Proxy($,{get:function(e,t,r){return"map"===t&&console.error(q),Reflect.get(e,t,r)}}));var pe=function(){function e(){K(this,e),this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}return X(e,[{key:"getId",value:function(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}(),de=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(de||{}),ve=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e}(ve||{}),ge=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(ge||{}),me=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(me||{});function ye(e){return"__ln"in e}var we=function(){function e(){K(this,e),this.length=0,this.head=null}return X(e,[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}},{key:"addNode",value:function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ye(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&ye(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}]),e}(),be=function(e,t){return"".concat(e,"@").concat(t)},ke=function(){function e(){var t=this;K(this,e),this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(e){e.forEach(t.processMutation),t.emit()},this.emit=function(){if(!t.frozen&&!t.locked){for(var e=[],r=new we,n=function(e){for(var r=e,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&t.mirror.getId(r);return n},o=function(o){var i,s,a,u,c=null;(null===(s=null===(i=o.getRootNode)||void 0===i?void 0:i.call(o))||void 0===s?void 0:s.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&o.getRootNode().host&&(c=o.getRootNode().host);for(var l=c;(null===(u=null===(a=null==l?void 0:l.getRootNode)||void 0===a?void 0:a.call(l))||void 0===u?void 0:u.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&l.getRootNode().host;)l=l.getRootNode().host;var f=!(t.doc.contains(o)||l&&t.doc.contains(l));if(o.parentNode&&!f){var h=d(o.parentNode)?t.mirror.getId(c):t.mirror.getId(o.parentNode),p=n(o);if(-1===h||-1===p)return r.addNode(o);var v=j(o,{doc:t.doc,mirror:t.mirror,blockClass:t.blockClass,blockSelector:t.blockSelector,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,dataURLOptions:t.dataURLOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(e){le(e,t.mirror)&&t.iframeManager.addIframe(e),fe(e,t.mirror)&&t.stylesheetManager.trackLinkElement(e),he(o)&&t.shadowDomManager.addShadowRoot(o.shadowRoot,t.doc)},onIframeLoad:function(e,r){t.iframeManager.attachIframe(e,r),t.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,r){t.stylesheetManager.attachLinkElement(e,r)}});v&&e.push({parentId:h,nextId:p,node:v})}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());for(var i=0,s=Array.from(t.movedSet.values());i<s.length;i++){var a=s[i];Ie(t.removes,a,t.mirror)&&!t.movedSet.has(a.parentNode)||o(a)}for(var u=0,c=Array.from(t.addedSet.values());u<c.length;u++){var l=c[u];xe(t.droppedSet,l)||Ie(t.removes,l,t.mirror)?xe(t.movedSet,l)?o(l):t.droppedSet.add(l):o(l)}for(var f=null;r.length;){var h=null;if(f){var p=t.mirror.getId(f.value.parentNode),v=n(f.value);-1!==p&&-1!==v&&(h=f)}if(!h)for(var g=r.length-1;g>=0;g--){var m=r.get(g);if(m){var y=t.mirror.getId(m.value.parentNode);if(-1===n(m.value))continue;if(-1!==y){h=m;break}var w=m.value;if(w.parentNode&&w.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var b=w.parentNode.host;if(-1!==t.mirror.getId(b)){h=m;break}}}}if(!h){for(;r.head;)r.removeNode(r.head.value);break}f=h.previous,r.removeNode(h.value),o(h.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!se(e.target,t.mirror))switch(e.type){case"characterData":var r=e.target.textContent;ie(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue||t.texts.push({value:F(e.target,t.maskTextClass,t.maskTextSelector)&&r?t.maskTextFn?t.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:e.target});break;case"attributes":var n=e.target,o=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(o=w({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:o,maskInputFn:t.maskInputFn})),ie(e.target,t.blockClass,t.blockSelector,!1)||o===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===n.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(o)){if(n.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var s=t.doc.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue),void 0!==i.attributes.style&&null!==i.attributes.style||(i.attributes.style={});for(var a=i.attributes.style,u=0,c=Array.from(n.style);u<c.length;u++){var l=c[u],f=n.style.getPropertyValue(l),h=n.style.getPropertyPriority(l);f===s.style.getPropertyValue(l)&&h===s.style.getPropertyPriority(l)||(a[l]=""===h?f:[f,h])}for(var p=0,g=Array.from(s.style);p<g.length;p++){var m=g[p];""===n.style.getPropertyValue(m)&&(a[m]=!1)}}else i.attributes[e.attributeName]=_(t.doc,n.tagName,e.attributeName,o);break;case"childList":if(ie(e.target,t.blockClass,t.blockSelector,!0))return;e.addedNodes.forEach((function(r){return t.genAdds(r,e.target)})),e.removedNodes.forEach((function(r){var n=t.mirror.getId(r),o=d(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);ie(e.target,t.blockClass,t.blockSelector,!1)||se(r,t.mirror)||!function(e,t){return-1!==t.getId(e)}(r,t.mirror)||(t.addedSet.has(r)?(Ce(t.addedSet,r),t.droppedSet.add(r)):t.addedSet.has(e.target)&&-1===n||ae(e.target,t.mirror)||(t.movedSet.has(r)&&t.movedMap[be(n,o)]?Ce(t.movedSet,r):t.removes.push({parentId:o,id:n,isShadow:!(!d(e.target)||!v(e.target))||void 0})),t.mapRemoves.push(r))}))}},this.genAdds=function(e,r){if(t.mirror.hasNode(e)){if(se(e,t.mirror))return;t.movedSet.add(e);var n=null;r&&t.mirror.hasNode(r)&&(n=t.mirror.getId(r)),n&&-1!==n&&(t.movedMap[be(t.mirror.getId(e),n)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);ie(e,t.blockClass,t.blockSelector,!1)||e.childNodes.forEach((function(e){return t.genAdds(e)}))}}return X(e,[{key:"init",value: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"].forEach((function(r){t[r]=e[r]}))}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]),e}();function Ce(e,t){e.delete(t),t.childNodes.forEach((function(t){return Ce(e,t)}))}function Ie(e,t,r){return 0!==e.length&&Se(e,t,r)}function Se(e,t,r){var n=t.parentNode;if(!n)return!1;var o=r.getId(n);return!!e.some((function(e){return e.id===o}))||Se(e,n,r)}function xe(e,t){return 0!==e.size&&Ae(e,t)}function Ae(e,t){var r=t.parentNode;return!!r&&(!!e.has(r)||Ae(e,r))}var Oe=[],Ee="undefined"!=typeof CSSGroupingRule,Re="undefined"!=typeof CSSMediaRule,Me="undefined"!=typeof CSSSupportsRule,Ne="undefined"!=typeof CSSConditionRule;function Te(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function Le(e,t){var r,n,o=new ke;Oe.push(o),o.init(e);var i=window.MutationObserver||window.__rrMutationObserver,s=null===(n=null===(r=null===window||void 0===window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");s&&window[s]&&(i=window[s]);var a=new i(o.processMutations.bind(o));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Pe(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,o=e.mirror;if(!1===r.mousemove)return function(){};var i,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,u=[],c=ee((function(e){var r=Date.now()-i;t(u.map((function(e){return e.timeOffset-=r,e})),e),u=[],i=null}),a),l=ee((function(e){var t=Te(e),r=ue(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;i||(i=Date.now()),u.push({x:n,y:s,id:o.getId(t),timeOffset:Date.now()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?ve.Drag:e instanceof MouseEvent?ve.MouseMove:ve.TouchMove)}),s,{trailing:!1}),f=[Q("mousemove",l,n),Q("touchmove",l,n),Q("drag",l,n)];return function(){f.forEach((function(e){return e()}))}}function _e(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[];return Object.keys(ge).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(e){var s=e.toLowerCase(),a=function(e){return function(r){var s=Te(r);if(!ie(s,o,i,!0)){var a=ue(r)?r.changedTouches[0]:r;if(a){var u=n.getId(s),c=a.clientX,l=a.clientY;t({type:ge[e],id:u,x:c,y:l})}}}}(e);u.push(Q(s,a,r))})),function(){u.forEach((function(e){return e()}))}}function Be(e){var t=e.scrollCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector;return Q("scroll",ee((function(e){var s=Te(e);if(s&&!ie(s,o,i,!0)){var a=n.getId(s);if(s===r){var u=r.scrollingElement||r.documentElement;t({id:a,x:u.scrollLeft,y:u.scrollTop})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),e.sampling.scroll||100),r)}function Fe(e){var t=e.viewportResizeCb,r=-1,n=-1;return Q("resize",ee((function(){var e=ne(),o=oe();r===e&&n===o||(t({width:Number(o),height:Number(e)}),r=e,n=o)}),200),window)}function De(e,t){var r=Object.assign({},e);return t||delete r.userTriggered,r}var Ue=["INPUT","TEXTAREA","SELECT"],je=new WeakMap;function We(e){var t=e.inputCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.ignoreClass,a=e.maskInputOptions,u=e.maskInputFn,c=e.sampling,l=e.userTriggeredOnInput;function f(e){var t=Te(e),n=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(Ue.indexOf(t.tagName)<0)&&!ie(t,o,i,!0)){var c=t.type;if(!t.classList.contains(s)){var f=t.value,p=!1;"radio"===c||"checkbox"===c?p=t.checked:(a[t.tagName.toLowerCase()]||a[c])&&(f=w({maskInputOptions:a,tagName:t.tagName,type:c,value:f,maskInputFn:u})),h(t,De({text:f,isChecked:p,userTriggered:n},l));var d=t.name;"radio"===c&&d&&p&&r.querySelectorAll('input[type="radio"][name="'.concat(d,'"]')).forEach((function(e){e!==t&&h(e,De({text:e.value,isChecked:!p,userTriggered:!1},l))}))}}}function h(e,r){var o=je.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){je.set(e,r);var i=n.getId(e);t(Object.assign(Object.assign({},r),{id:i}))}}var p=("last"===c.input?["change"]:["input","change"]).map((function(e){return Q(e,f,r)})),d=r.defaultView;if(!d)return function(){p.forEach((function(e){return e()}))};var v=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),g=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&p.push.apply(p,V(g.map((function(e){return te(e[0],e[1],{set:function(){f({target:this})}},!1,d)})))),function(){p.forEach((function(e){return e()}))}}function Ze(e){return function(e,t){if(Ee&&e.parentRule instanceof CSSGroupingRule||Re&&e.parentRule instanceof CSSMediaRule||Me&&e.parentRule instanceof CSSSupportsRule||Ne&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Ge(e,t,r){var n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function Ye(e,t){var r=e.styleSheetRuleCb,n=e.mirror,o=e.stylesheetManager,i=t.win,s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=Ge(this,n,o.styleMirror),a=i.id,u=i.styleId;return(a&&-1!==a||u&&-1!==u)&&r({id:a,styleId:u,adds:[{rule:e,index:t}]}),s.apply(this,[e,t])};var a,u,c=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=Ge(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,removes:[{index:e}]}),c.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(a=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=Ge(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,replace:e}),a.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=Ge(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,replaceSync:e}),u.apply(this,[e])});var l={};Ee?l.CSSGroupingRule=i.CSSGroupingRule:(Re&&(l.CSSMediaRule=i.CSSMediaRule),Ne&&(l.CSSConditionRule=i.CSSConditionRule),Me&&(l.CSSSupportsRule=i.CSSSupportsRule));var f={};return Object.entries(l).forEach((function(e){var t=G(e,2),i=t[0],s=t[1];f[i]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=function(e,t){var s=Ge(this.parentStyleSheet,n,o.styleMirror),a=s.id,u=s.styleId;return(a&&-1!==a||u&&-1!==u)&&r({id:a,styleId:u,adds:[{rule:e,index:[].concat(V(Ze(this)),[t||0])}]}),f[i].insertRule.apply(this,[e,t])},s.prototype.deleteRule=function(e){var t=Ge(this.parentStyleSheet,n,o.styleMirror),s=t.id,a=t.styleId;return(s&&-1!==s||a&&-1!==a)&&r({id:s,styleId:a,removes:[{index:[].concat(V(Ze(this)),[e])}]}),f[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=c,a&&(i.CSSStyleSheet.prototype.replace=a),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach((function(e){var t=G(e,2),r=t[0],n=t[1];n.prototype.insertRule=f[r].insertRule,n.prototype.deleteRule=f[r].deleteRule}))}}function Ve(e,t){var r,n,o,i=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?i.getId(t):i.getId(t.host);var u="#document"===t.nodeName?null===(r=t.defaultView)||void 0===r?void 0:r.Document:null===(o=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===o?void 0:o.ShadowRoot,c=Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets");return null!==a&&-1!==a&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set:function(e){var t,r=null===(t=c.set)||void 0===t?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}):function(){}}function ze(e,t){var r=e.styleDeclarationCb,n=e.mirror,o=e.ignoreCSSAttributes,i=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=function(e,t,s){var u;if(o.has(e))return a.apply(this,[e,t,s]);var c=Ge(null===(u=this.parentRule)||void 0===u?void 0:u.parentStyleSheet,n,i.styleMirror),l=c.id,f=c.styleId;return(l&&-1!==l||f&&-1!==f)&&r({id:l,styleId:f,set:{property:e,value:t,priority:s},index:Ze(this.parentRule)}),a.apply(this,[e,t,s])};var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(o.has(e))return u.apply(this,[e]);var s=Ge(null===(t=this.parentRule)||void 0===t?void 0:t.parentStyleSheet,n,i.styleMirror),a=s.id,c=s.styleId;return(a&&-1!==a||c&&-1!==c)&&r({id:a,styleId:c,remove:{property:e},index:Ze(this.parentRule)}),u.apply(this,[e])},function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u}}function Ke(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,o=e.mirror,i=e.sampling,s=function(e){return ee((function(i){var s=Te(i);if(s&&!ie(s,r,n,!0)){var a=s.currentTime,u=s.volume,c=s.muted,l=s.playbackRate;t({type:e,id:o.getId(s),currentTime:a,volume:u,muted:c,playbackRate:l})}}),i.media||500)},a=[Q("play",s(0)),Q("pause",s(1)),Q("seeked",s(2)),Q("volumechange",s(3)),Q("ratechange",s(4))];return function(){a.forEach((function(e){return e()}))}}function Je(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var o=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=re(r.fonts,"add",(function(e){return function(r){return setTimeout((function(){var e=i.get(r);e&&(t(e),i.delete(r))}),0),e.apply(this,[r])}}));return o.push((function(){n.FontFace=s})),o.push(a),function(){o.forEach((function(e){return e()}))}}function Xe(e){var t=e.doc,r=e.mirror,n=e.blockClass,o=e.blockSelector,i=e.selectionCb,s=!0,a=function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],u=e.rangeCount||0,c=0;c<u;c++){var l=e.getRangeAt(c),f=l.startContainer,h=l.startOffset,p=l.endContainer,d=l.endOffset;ie(f,n,o,!0)||ie(p,n,o,!0)||a.push({start:r.getId(f),startOffset:h,end:r.getId(p),endOffset:d})}i({ranges:a})}};return a(),Q("selectionchange",a)}function He(e,t){var r=e.mutationCb,n=e.mousemoveCb,o=e.mouseInteractionCb,i=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,h=e.fontCb,p=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),r.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),n.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),o.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),s.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),a.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),u.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),c.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),l.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),f.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),h.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),p.apply(void 0,arguments)}}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.doc.defaultView;if(!r)return function(){};He(e,t);var n,o=Le(e,e.doc),i=Pe(e),s=_e(e),a=Be(e),u=Fe(e),l=We(e),f=Ke(e),h=Ye(e,{win:r}),p=Ve(e,e.doc),d=ze(e,{win:r}),v=e.collectFonts?Je(e):function(){},g=Xe(e),m=[],y=c(e.plugins);try{for(y.s();!(n=y.n()).done;){var w=n.value;m.push(w.observer(w.callback,r,w.options))}}catch(e){y.e(e)}finally{y.f()}return function(){Oe.forEach((function(e){return e.reset()})),o.disconnect(),i(),s(),a(),u(),l(),f(),h(),p(),d(),v(),g(),m.forEach((function(e){return e()}))}}var qe=function(){function e(t){K(this,e),this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}return X(e,[{key:"getId",value:function(e,t,r,n){var o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}},{key:"getIds",value:function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getId(e,t,n,o)}))}},{key:"getRemoteId",value:function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var o=n.get(t);return o||-1}},{key:"getRemoteIds",value:function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getRemoteId(e,t,n)}))}},{key:"reset",value:function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),e}(),$e=function(){function e(t){K(this,e),this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new qe(x),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new qe(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}return X(e,[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var r,n=this;switch(t.type){case de.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:de.IncrementalSnapshot,data:{source:ve.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case de.Meta:case de.Load:case de.DomContentLoaded:return!1;case de.Plugin:return t;case de.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case de.IncrementalSnapshot:switch(t.data.source){case ve.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case ve.Drag:case ve.TouchMove:case ve.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case ve.ViewportResize:return!1;case ve.MediaInteraction:case ve.MouseInteraction:case ve.Scroll:case ve.CanvasMutation:case ve.Input:return this.replaceIds(t.data,e,["id"]),t;case ve.StyleSheetRule:case ve.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ve.Font:return t;case ve.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case ve.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach((function(t){n.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,r,n){var o,i=c(n);try{for(i.s();!(o=i.n()).done;){var s=o.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}},{key:"replaceStyleIds",value:function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}},{key:"replaceIdOnNode",value:function(e,t){var r=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){r.replaceIdOnNode(e,t)}))}}]),e}(),et=function(){function e(t){K(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var r=this;this.restorePatches.push(re(Element.prototype,"attachShadow",(function(e){return function(t){var n=e.call(this,t);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}return X(e,[{key:"addShadowRoot",value:function(e,t){var r=this;v(e)&&(this.shadowDoms.has(e)||(this.shadowDoms.add(e),Le(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),Be(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(e.host)),Ve({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e)}),0)))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(re(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(r){return function(n){var o=r.call(this,n);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),o}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}();function tt(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}for(var rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ot=0;ot<rt.length;ot++)nt[rt.charCodeAt(ot)]=ot;var it=new Map;var st=function(e,t,r){if(e&&(ct(e,t)||"object"===f(e))){var n=function(e,t){var r=it.get(e);return r||(r=new Map,it.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),o=n.indexOf(e);return-1===o&&(o=n.length,n.push(e)),o}};function at(e,t,r){if(e instanceof Array)return e.map((function(e){return at(e,t,r)}));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){var n=e.constructor.name,o=function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=rt[r[t]>>2],o+=rt[(3&r[t])<<4|r[t+1]>>4],o+=rt[(15&r[t+1])<<2|r[t+2]>>6],o+=rt[63&r[t+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:n,base64:o}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[at(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[at(e.data,t,r),e.width,e.height]}:ct(e,t)||"object"===f(e)?{rr_type:e.constructor.name,index:st(e,t,r)}:e}var ut=function(e,t,r){return V(e).map((function(e){return at(e,t,r)}))},ct=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return e instanceof t[r]})))};function lt(e,t,r){var n=[];try{var o=re(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(n){ie(this,t,r,!0)||"__context"in this||(this.__context=n);for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return e.apply(this,[n].concat(i))}}));n.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach((function(e){return e()}))}}function ft(e,t,r,n,o,i,s){var a,u=[],l=Object.getOwnPropertyNames(e),f=c(l);try{var h=function(){var i=a.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))return 0;try{if("function"!=typeof e[i])return 0;var c=re(e,i,(function(e){return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l=e.apply(this,u);if(st(l,s,this),!ie(this.canvas,n,o,!0)){var f=ut([].concat(u),s,this),h={type:t,property:i,args:f};r(this.canvas,h)}return l}}));u.push(c)}catch(n){var l=te(e,i,{set:function(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}});u.push(l)}};for(f.s();!(a=f.n()).done;)h()}catch(e){f.e(e)}finally{f.f()}return u}var ht=null;try{var pt="undefined"!=typeof module&&"function"==typeof module.require&&module.require("worker_threads")||"function"==typeof require&&require("worker_threads")||"function"==typeof require&&require("worker_threads");ht=pt.Worker}catch(e){}var dt=r(579).lW;function vt(e,t,r){var n=void 0===t?null:t,o=function(e,t){return dt.from(e,"base64").toString(t?"utf16":"utf8")}(e,void 0!==r&&r),i=o.indexOf("\n",10)+1,s=o.substring(i)+(n?"//# sourceMappingURL="+n:"");return function(e){return new ht(s,Object.assign({},e,{eval:!0}))}}function gt(e,t,r){var n=void 0===t?null:t,o=function(e,t){var r=atob(e);if(t){for(var n=new Uint8Array(r.length),o=0,i=r.length;o<i;++o)n[o]=r.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}(e,void 0!==r&&r),i=o.indexOf("\n",10)+1,s=o.substring(i)+(n?"//# sourceMappingURL="+n:""),a=new Blob([s],{type:"application/javascript"});return URL.createObjectURL(a)}var mt=r(256),yt="[object process]"===Object.prototype.toString.call(void 0!==mt?mt:0);var wt,bt,kt,Ct,It,St,xt=(wt="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1INCiAgICBPVEhFUiBUT1JUSU9VUyBBQ1RJT04sIEFSSVNJTkcgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgVVNFIE9SDQogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4NCiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqLw0KDQogICAgZnVuY3Rpb24gX19hd2FpdGVyKHRoaXNBcmcsIF9hcmd1bWVudHMsIFAsIGdlbmVyYXRvcikgew0KICAgICAgICBmdW5jdGlvbiBhZG9wdCh2YWx1ZSkgeyByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBQID8gdmFsdWUgOiBuZXcgUChmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXNvbHZlKHZhbHVlKTsgfSk7IH0NCiAgICAgICAgcmV0dXJuIG5ldyAoUCB8fCAoUCA9IFByb21pc2UpKShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgICAgICAgICBmdW5jdGlvbiBmdWxmaWxsZWQodmFsdWUpIHsgdHJ5IHsgc3RlcChnZW5lcmF0b3IubmV4dCh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiByZWplY3RlZCh2YWx1ZSkgeyB0cnkgeyBzdGVwKGdlbmVyYXRvclsidGhyb3ciXSh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiBzdGVwKHJlc3VsdCkgeyByZXN1bHQuZG9uZSA/IHJlc29sdmUocmVzdWx0LnZhbHVlKSA6IGFkb3B0KHJlc3VsdC52YWx1ZSkudGhlbihmdWxmaWxsZWQsIHJlamVjdGVkKTsgfQ0KICAgICAgICAgICAgc3RlcCgoZ2VuZXJhdG9yID0gZ2VuZXJhdG9yLmFwcGx5KHRoaXNBcmcsIF9hcmd1bWVudHMgfHwgW10pKS5uZXh0KCkpOw0KICAgICAgICB9KTsNCiAgICB9CgogICAgLyoKICAgICAqIGJhc2U2NC1hcnJheWJ1ZmZlciAxLjAuMSA8aHR0cHM6Ly9naXRodWIuY29tL25pa2xhc3ZoL2Jhc2U2NC1hcnJheWJ1ZmZlcj4KICAgICAqIENvcHlyaWdodCAoYykgMjAyMSBOaWtsYXMgdm9uIEhlcnR6ZW4gPGh0dHBzOi8vaGVydHplbi5jb20+CiAgICAgKiBSZWxlYXNlZCB1bmRlciBNSVQgTGljZW5zZQogICAgICovCiAgICB2YXIgY2hhcnMgPSAnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyc7CiAgICAvLyBVc2UgYSBsb29rdXAgdGFibGUgdG8gZmluZCB0aGUgaW5kZXguCiAgICB2YXIgbG9va3VwID0gdHlwZW9mIFVpbnQ4QXJyYXkgPT09ICd1bmRlZmluZWQnID8gW10gOiBuZXcgVWludDhBcnJheSgyNTYpOwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGFycy5sZW5ndGg7IGkrKykgewogICAgICAgIGxvb2t1cFtjaGFycy5jaGFyQ29kZUF0KGkpXSA9IGk7CiAgICB9CiAgICB2YXIgZW5jb2RlID0gZnVuY3Rpb24gKGFycmF5YnVmZmVyKSB7CiAgICAgICAgdmFyIGJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYXJyYXlidWZmZXIpLCBpLCBsZW4gPSBieXRlcy5sZW5ndGgsIGJhc2U2NCA9ICcnOwogICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkgKz0gMykgewogICAgICAgICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaV0gPj4gMl07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1soKGJ5dGVzW2ldICYgMykgPDwgNCkgfCAoYnl0ZXNbaSArIDFdID4+IDQpXTsKICAgICAgICAgICAgYmFzZTY0ICs9IGNoYXJzWygoYnl0ZXNbaSArIDFdICYgMTUpIDw8IDIpIHwgKGJ5dGVzW2kgKyAyXSA+PiA2KV07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1tieXRlc1tpICsgMl0gJiA2M107CiAgICAgICAgfQogICAgICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgJz0nOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgJz09JzsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGJhc2U2NDsKICAgIH07CgogICAgY29uc3QgbGFzdEJsb2JNYXAgPSBuZXcgTWFwKCk7DQogICAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gbmV3IE1hcCgpOw0KICAgIGZ1bmN0aW9uIGdldFRyYW5zcGFyZW50QmxvYkZvcih3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucykgew0KICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zKTsNCiAgICAgICAgICAgICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCcyZCcpOw0KICAgICAgICAgICAgICAgIGN0eC5kcmF3SW1hZ2UoYml0bWFwLCAwLCAwKTsNCiAgICAgICAgICAgICAgICBiaXRtYXAuY2xvc2UoKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IHR5cGUgPSBibG9iLnR5cGU7DQogICAgICAgICAgICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSB5aWVsZCBibG9iLmFycmF5QnVmZmVyKCk7DQogICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RCbG9iTWFwLmhhcyhpZCkgJiYgKHlpZWxkIHRyYW5zcGFyZW50QmFzZTY0KSA9PT0gYmFzZTY0KSB7DQogICAgICAgICAgICAgICAgICAgIGxhc3RCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",bt=null,kt=!1,yt?vt(wt,bt,kt):function(e,t,r){var n;return function(o){return n=n||gt(e,t,r),new Worker(n,o)}}(wt,bt,kt)),At=function(){function e(t){var r=this;K(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId)&&r.rafStamps.invokeId||(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(e)||r.pendingCanvasMutations.set(e,[]),r.pendingCanvasMutations.get(e).push(t)};var n=t.sampling,o=void 0===n?"all":n,i=t.win,s=t.blockClass,a=t.blockSelector,u=t.recordCanvas,c=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&"all"===o&&this.initCanvasMutationObserver(i,s,a),u&&"number"==typeof o&&this.initCanvasFPSObserver(o,i,s,a,{dataURLOptions:c})}return X(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,r,n,o,i){var s=this,a=lt(r,n,o),u=new Map,c=new xt;c.onmessage=function(e){var t=e.data.id;if(u.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,o=r.type,i=r.width,a=r.height;s.mutationCb({id:t,type:me["2D"],commands:[{property:"clearRect",args:[0,0,i,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:o}]},0,0]}]})}};var l,f=1e3/e,h=0;l=requestAnimationFrame((function e(a){var p;h&&a-h<f?l=requestAnimationFrame(e):(h=a,(p=[],r.document.querySelectorAll("canvas").forEach((function(e){ie(e,n,o,!0)||p.push(e)})),p).forEach((function(e){return tt(s,void 0,void 0,t().mark((function r(){var n,o,s,a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.mirror.getId(e),!u.get(o)){t.next=3;break}return t.abrupt("return");case 3:return u.set(o,!0),["webgl","webgl2"].includes(e.__context)&&(s=e.getContext(e.__context),!1===(null===(n=null==s?void 0:s.getContextAttributes())||void 0===n?void 0:n.preserveDrawingBuffer)&&(null==s||s.clear(s.COLOR_BUFFER_BIT))),t.next=7,createImageBitmap(e);case 7:a=t.sent,c.postMessage({id:o,bitmap:a,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[a]);case 9:case"end":return t.stop()}}),r,this)})))})),l=requestAnimationFrame(e))})),this.resetObservers=function(){a(),cancelAnimationFrame(l)}}},{key:"initCanvasMutationObserver",value:function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=lt(e,t,r),o=function(e,t,r,n){var o,i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=c(s);try{var u=function(){var s=o.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return 1;var a=re(t.CanvasRenderingContext2D.prototype,s,(function(o){return function(){for(var i=this,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return ie(this.canvas,r,n,!0)||setTimeout((function(){var r=ut([].concat(u),t,i);e(i.canvas,{type:me["2D"],property:s,args:r})}),0),o.apply(this,u)}}));i.push(a)}catch(r){var u=te(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:me["2D"],property:s,args:[t],setter:!0})}});i.push(u)}};for(a.s();!(o=a.n()).done;)u()}catch(e){a.e(e)}finally{a.f()}return function(){i.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n,o){var i=[];return i.push.apply(i,V(ft(t.WebGLRenderingContext.prototype,me.WebGL,e,r,n,0,t))),void 0!==t.WebGL2RenderingContext&&i.push.apply(i,V(ft(t.WebGL2RenderingContext.prototype,me.WebGL2,e,r,n,0,t))),function(){i.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=function(){n(),o(),i()}}},{key:"startPendingCanvasMutationFlusher",value:function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))}},{key:"startRAFTimestamping",value:function(){var e=this;requestAnimationFrame((function t(r){e.rafStamps.latestId=r,requestAnimationFrame(t)}))}},{key:"flushPendingCanvasMutations",value:function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))}},{key:"flushPendingCanvasMutationFor",value:function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((function(e){var t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),o=r[0].type;this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}}}]),e}(),Ot=function(){function e(t){K(this,e),this.trackedLinkElements=new WeakSet,this.styleMirror=new pe,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}return X(e,[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){if(0!==e.length){var r,n={id:t,styleIds:[]},o=[],i=c(e);try{for(i.s();!(r=i.n()).done;){var s=r.value,a=void 0;if(this.styleMirror.has(s))a=this.styleMirror.getId(s);else{a=this.styleMirror.add(s);var u=Array.from(s.rules||CSSRule);o.push({styleId:a,rules:u.map((function(e,t){return{rule:m(e),index:t}}))})}n.styleIds.push(a)}}catch(e){i.e(e)}finally{i.f()}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}();function Et(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}var Rt=!1,Mt=new y;function Nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,o=e.blockClass,i=void 0===o?"rr-block":o,s=e.blockSelector,a=void 0===s?null:s,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,f=e.maskTextClass,h=void 0===f?"rr-mask":f,p=e.maskTextSelector,d=void 0===p?null:p,v=e.inlineStylesheet,g=void 0===v||v,m=e.maskAllInputs,y=e.maskInputOptions,w=e.slimDOMOptions,b=e.maskInputFn,k=e.maskTextFn,C=e.hooks,I=e.packFn,S=e.sampling,x=void 0===S?{}:S,A=e.dataURLOptions,O=void 0===A?{}:A,E=e.mousemoveWait,R=e.recordCanvas,M=void 0!==R&&R,N=e.recordCrossOriginIframes,T=void 0!==N&&N,L=e.userTriggeredOnInput,P=void 0!==L&&L,_=e.collectFonts,B=void 0!==_&&_,F=e.inlineImages,D=void 0!==F&&F,U=e.plugins,j=e.keepIframeSrcFn,Z=void 0===j?function(){return!1}:j,G=e.ignoreCSSAttributes,Y=void 0===G?new Set([]):G,V=!T||window.parent===window,z=!1;if(!V)try{window.parent.document,z=!1}catch(e){z=!0}if(V&&!t)throw new Error("emit function is required");void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),Mt.reset();var K,J=!0===m?{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}:void 0!==y?y:{password:!0},X=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};ce();var H=0,q=function(e){var t,r=c(U||[]);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}}catch(e){r.e(e)}finally{r.f()}return I&&(e=I(e)),e};Ct=function(e,o){var i;if(!(null===(i=Oe[0])||void 0===i?void 0:i.isFrozen())||e.type===de.FullSnapshot||e.type===de.IncrementalSnapshot&&e.data.source===ve.Mutation||Oe.forEach((function(e){return e.unfreeze()})),V)null==t||t(q(e),o);else if(z){var s={type:"rrweb",event:q(e),isCheckout:o};window.parent.postMessage(s,"*")}if(e.type===de.FullSnapshot)K=e,H=0;else if(e.type===de.IncrementalSnapshot){if(e.data.source===ve.Mutation&&e.data.isAttachIframe)return;H++;var a=n&&H>=n,u=r&&e.timestamp-K.timestamp>r;(a||u)&&It(!0)}};var $,ee=function(e){Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Mutation},e)}))},te=function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Scroll},e)}))},re=function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.CanvasMutation},e)}))},ie=function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.AdoptedStyleSheet},e)}))},se=new Ot({mutationCb:ee,adoptedStyleSheetCb:ie}),ae=new $e({mirror:Mt,mutationCb:ee,stylesheetManager:se,recordCrossOriginIframes:T,wrappedEmit:Ct}),ue=c(U||[]);try{for(ue.s();!($=ue.n()).done;){var pe=$.value;pe.getMirror&&pe.getMirror({nodeMirror:Mt,crossOriginIframeMirror:ae.crossOriginIframeMirror,crossOriginIframeStyleMirror:ae.crossOriginIframeStyleMirror})}}catch(e){ue.e(e)}finally{ue.f()}St=new At({recordCanvas:M,mutationCb:re,win:window,blockClass:i,blockSelector:a,mirror:Mt,sampling:x.canvas,dataURLOptions:O});var ge=new et({mutationCb:ee,scrollCb:te,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:h,maskTextSelector:d,inlineStylesheet:g,maskInputOptions:J,dataURLOptions:O,maskTextFn:k,maskInputFn:b,recordCanvas:M,inlineImages:D,sampling:x,slimDOMOptions:X,iframeManager:ae,stylesheetManager:se,canvasManager:St,keepIframeSrcFn:Z},mirror:Mt});It=function(){var e,t,r,n,o,s,u=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ct(Et({type:de.Meta,data:{href:window.location.href,width:oe(),height:ne()}}),u),se.reset(),Oe.forEach((function(e){return e.lock()}));var c=W(document,{mirror:Mt,blockClass:i,blockSelector:a,maskTextClass:h,maskTextSelector:d,inlineStylesheet:g,maskAllInputs:J,maskTextFn:k,slimDOM:X,dataURLOptions:O,recordCanvas:M,inlineImages:D,onSerialize:function(e){le(e,Mt)&&ae.addIframe(e),fe(e,Mt)&&se.trackLinkElement(e),he(e)&&ge.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ae.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){se.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!c)return console.warn("Failed to snapshot the document");Ct(Et({type:de.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(t=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.scrollLeft)||(null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(s=null===document||void 0===document?void 0:document.body)||void 0===s?void 0:s.scrollTop)||0}}})),Oe.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&se.adoptStyleSheets(document.adoptedStyleSheets,Mt.getId(document))};try{var me=[];me.push(Q("DOMContentLoaded",(function(){Ct(Et({type:de.DomContentLoaded,data:{}}))})));var ye=function(e){var t;return Qe({mutationCb:ee,mousemoveCb:function(e,t){return Ct(Et({type:de.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.MouseInteraction},e)}))},scrollCb:te,viewportResizeCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.ViewportResize},e)}))},inputCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Input},e)}))},mediaInteractionCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.StyleDeclaration},e)}))},canvasMutationCb:re,fontCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Font},e)}))},selectionCb:function(e){Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Selection},e)}))},blockClass:i,ignoreClass:l,maskTextClass:h,maskTextSelector:d,maskInputOptions:J,inlineStylesheet:g,sampling:x,recordCanvas:M,inlineImages:D,userTriggeredOnInput:P,collectFonts:B,doc:e,maskInputFn:b,maskTextFn:k,keepIframeSrcFn:Z,blockSelector:a,slimDOMOptions:X,dataURLOptions:O,mirror:Mt,iframeManager:ae,stylesheetManager:se,shadowDomManager:ge,canvasManager:St,ignoreCSSAttributes:Y,plugins:(null===(t=null==U?void 0:U.filter((function(e){return e.observer})))||void 0===t?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return Ct(Et({type:de.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ae.addLoadListener((function(e){me.push(ye(e.contentDocument))}));var we=function(){It(),me.push(ye(document)),Rt=!0};return"interactive"===document.readyState||"complete"===document.readyState?we():me.push(Q("load",(function(){Ct(Et({type:de.Load,data:{}})),we()}),window)),function(){me.forEach((function(e){return e()})),Rt=!1}}catch(e){console.warn(e)}}Nt.addCustomEvent=function(e,t){if(!Rt)throw new Error("please add custom event after start recording");Ct(Et({type:de.Custom,data:{tag:e,payload:t}}))},Nt.freezePage=function(){Oe.forEach((function(e){return e.freeze()}))},Nt.takeFullSnapshot=function(e){if(!Rt)throw new Error("please take full snapshot after start recording");It(e)},Nt.mirror=Mt;var Tt,Lt=r(955),Pt=r(670),_t=r(894),Bt=r(619),Ft=r(411),Dt=r(153),Ut=r(458),jt=r(579).lW,Wt=["inputs"],Zt=["inputId"],Gt=["inputs"],Yt=["inputId"],Vt=Object.defineProperty,zt=function(e,t,r){return function(e,t,r){return t in e?Vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==f(t)?t+"":t,r)},Kt=Object.defineProperty,Jt=function(e,t,r){return function(e,t,r){return t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==f(t)?t+"":t,r)},Xt=Object.defineProperty,Ht=function(e,t,r){return function(e,t,r){return t in e?Xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==f(t)?t+"":t,r)},Qt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},qt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},$t={};function er(e){if($t[e])return $t[e];var t=globalThis[e],r=t.prototype,n=e in Qt?Qt[e]:void 0,o=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),i=e in qt?qt[e]:void 0,s=Boolean(i&&i.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(o&&s&&!globalThis.Zone)return $t[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?$t[e]=c:r}catch(e){return r}}var tr={};function rr(e,t,r){var n,o="".concat(e,".").concat(String(r));if(tr[o])return tr[o].call(t);var i=er(e),s=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return s?(tr[o]=s,s.call(t)):t[r]}var nr={};function or(e,t,r){var n="".concat(e,".").concat(String(r));if(nr[n])return nr[n].bind(t);var o=er(e)[r];return"function"!=typeof o?t[r]:(nr[n]=o,o.bind(t))}var ir={childNodes:function(e){return rr("Node",e,"childNodes")},parentNode:function(e){return rr("Node",e,"parentNode")},parentElement:function(e){return rr("Node",e,"parentElement")},textContent:function(e){return rr("Node",e,"textContent")},contains:function(e,t){return or("Node",e,"contains")(t)},getRootNode:function(e){return or("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?rr("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?rr("Element",e,"shadowRoot"):null},querySelector:function(e,t){return rr("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return rr("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return er("MutationObserver").constructor}};var sr=function(){function e(){K(this,e),Ht(this,"idNodeMap",new Map),Ht(this,"nodeMetaMap",new WeakMap)}return X(e,[{key:"getId",value:function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]),e}();function ar(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ar(ir.parentNode(e),t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&ar(ir.parentNode(e),t,r)}function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var lr={exports:{}},fr=String,hr=function(){return{isColorSupported:!1,reset:fr,bold:fr,dim:fr,italic:fr,underline:fr,inverse:fr,hidden:fr,strikethrough:fr,black:fr,red:fr,green:fr,yellow:fr,blue:fr,magenta:fr,cyan:fr,white:fr,gray:fr,bgBlack:fr,bgRed:fr,bgGreen:fr,bgYellow:fr,bgBlue:fr,bgMagenta:fr,bgCyan:fr,bgWhite:fr}};lr.exports=hr(),lr.exports.createColors=hr;var pr=lr.exports,dr=cr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),vr=pr,gr=dr,mr=function(e){Ft(r,e);var t=Dt(r);function r(e,n,o,i,s,a){var u;return K(this,r),(u=t.call(this,e)).name="CssSyntaxError",u.reason=e,s&&(u.file=s),i&&(u.source=i),a&&(u.plugin=a),void 0!==n&&void 0!==o&&("number"==typeof n?(u.line=n,u.column=o):(u.line=n.line,u.column=n.column,u.endLine=o.line,u.endColumn=o.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(Bt(u),r),u}return X(r,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=vr.isColorSupported),gr&&e&&(r=gr(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),u=String(a).length;if(e){var c=vr.createColors(!0),l=c.bold,f=c.gray,h=c.red;n=function(e){return l(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(s,a).map((function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e})).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}]),r}(Ut(Error)),yr=mr;mr.default=mr;var wr={};wr.isClean=Symbol("isClean"),wr.my=Symbol("my");var br={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var kr=function(){function e(t){K(this,e),this.builder=t}return X(e,[{key:"atrule",value:function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}}},{key:"beforeAfter",value:function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)r+=i}return r}},{key:"block",value:function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var o=e.nodes[n],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==n||r)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}},{key:"decl",value:function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return br[r];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](i,e):i.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=br[r]),i.rawCache[r]=n,n}},{key:"rawBeforeClose",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawBeforeComment",value:function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeDecl",value:function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}},{key:"rawBeforeRule",value:function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawColon",value:function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}},{key:"rawIndent",value:function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}})),t);var t}},{key:"rawSemicolon",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}},{key:"rawValue",value:function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),e}(),Cr=kr;kr.default=kr;var Ir=Cr;function Sr(e,t){new Ir(t).stringify(e)}var xr=Sr;Sr.default=Sr;var Ar=wr.isClean,Or=wr.my,Er=yr,Rr=Cr,Mr=xr;function Nr(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],i=f(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((function(e){return Nr(e,r)})):("object"===i&&null!==o&&(o=Nr(o)),r[n]=o)}return r}var Tr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in K(this,e),this.raws={},this[Ar]=!1,this[Or]=!0,t)if("nodes"===r){this.nodes=[];var n,o=c(t[r]);try{for(o.s();!(n=o.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(e){o.e(e)}finally{o.f()}}else this[r]=t[r]}return X(e,[{key:"addToError",value: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 /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))}return e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this[t]=e[t];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Nr(this);for(var r in e)t[r]=e[r];return t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new Er(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}},{key:"markDirty",value:function(){if(this[Ar]){this[Ar]=!1;for(var e=this;e=e.parent;)e[Ar]=!1}}},{key:"next",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}},{key:"positionBy",value:function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}},{key:"positionInside",value:function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===r[i]?(n=1,o+=1):n+=1;return{column:n,line:o}}},{key:"prev",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}},{key:"rangeBy",value:function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),o=n.indexOf(e.word);-1!==o&&(t=this.positionInside(o,n),r=this.positionInside(o+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}},{key:"raw",value:function(e,t){return(new Rr).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i=0,s=n;i<s.length;i++){var a=s[i];a===this?t=!0:t?(this.parent.insertAfter(e,a),e=a):this.parent.insertBefore(e,a)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var r={},n=null==t;t=t||new Map;var o=0;for(var i in this)if(Object.prototype.hasOwnProperty.call(this,i)&&"parent"!==i&&"proxyCache"!==i){var s=this[i];if(Array.isArray(s))r[i]=s.map((function(e){return"object"===f(e)&&e.toJSON?e.toJSON(null,t):e}));else if("object"===f(s)&&s.toJSON)r[i]=s.toJSON(null,t);else if("source"===i){var a=t.get(s.input);null==a&&(a=o,t.set(s.input,o),o++),r[i]={end:s.end,inputId:a,start:s.start}}else r[i]=s}return n&&(r.inputs=V(t.keys()).map((function(e){return e.toJSON()}))),r}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t}},{key:"warn",value:function(e,t,r){var n={node:this};for(var o in r)n[o]=r[o];return e.warn(t,n)}},{key:"proxyOf",get:function(){return this}}]),e}(),Lr=Tr;Tr.default=Tr;var Pr=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=a(a({},e),{},{value:String(e.value)})),(n=t.call(this,e)).type="decl",n}return X(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),r}(Lr),_r=Pr;Pr.default=Pr;var Br="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Fr=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",r=e;r--;)t+=Br[64*Math.random()|0];return t},Dr=dr.SourceMapConsumer,Ur=dr.SourceMapGenerator,jr=dr.existsSync,Wr=dr.readFileSync,Zr=dr.dirname,Gr=dr.join;var Yr=function(){function e(t,r){if(K(this,e),!1!==r.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Zr(this.mapFile)),o&&(this.text=o)}}return X(e,[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new Dr(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),jt?jt.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===f(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}},{key:"loadFile",value:function(e){if(this.root=Zr(e),jr(e))return this.mapFile=e,Wr(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Dr)return Ur.fromSourceMap(t).toString();if(t instanceof Ur)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=Gr(Zr(e),o)),this.loadFile(o)}}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}]),e}(),Vr=Yr;Yr.default=Yr;var zr=dr.SourceMapConsumer,Kr=dr.SourceMapGenerator,Jr=dr.fileURLToPath,Xr=dr.pathToFileURL,Hr=dr.isAbsolute,Qr=dr.resolve,qr=Fr,$r=dr,en=yr,tn=Vr,rn=Symbol("fromOffsetCache"),nn=Boolean(zr&&Kr),on=Boolean(Qr&&Hr),sn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(this,e),null==t||"object"===f(t)&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!on||/^\w+:\/\//.test(r.from)||Hr(r.from)?this.file=r.from:this.file=Qr(r.from)),on&&nn){var n=new tn(this.css,r);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+qr(6)+">"),this.map&&(this.map.file=this.from)}return X(e,[{key:"error",value:function(e,t,r){var n,o,i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===f(t)){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,i=l.col}else o=u.line,i=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,i);return(n=p?new en(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,s.plugin):new en(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,s.plugin)).input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(Xr&&(n.input.url=Xr(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[rn])t=this[rn];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o<i;o++)t[o]=n,n+=r[o].length+1;this[rn]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:Qr(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=Hr(a.source)?Xr(a.source):new URL(a.source,this.map.consumer().sourceRoot||Xr(this.map.mapFile));var u={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Jr)throw new Error("file: protocol is not available in this PostCSS build");u.file=Jr(i)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u}},{key:"toJSON",value:function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=a({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}]),e}(),an=sn;sn.default=sn,$r&&$r.registerInput&&$r.registerInput(sn);var un=dr.SourceMapConsumer,cn=dr.SourceMapGenerator,ln=dr.dirname,fn=dr.relative,hn=dr.resolve,pn=dr.sep,dn=dr.pathToFileURL,vn=an,gn=Boolean(un&&cn),mn=Boolean(ln&&hn&&fn&&pn),yn=function(){function e(t,r,n,o){K(this,e),this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}return X(e,[{key:"addAnnotation",value:function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=c(this.previous());try{for(t.s();!(e=t.n()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),o=r.root||ln(r.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new un(r.text)).sourcesContent&&(i.sourcesContent=null):i=r.consumer(),this.map.applySourceMap(i,n,this.toUrl(this.path(o)))}}catch(e){t.e(e)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){if(this.clearAnnotation(),mn&&gn&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]}},{key:"generateMap",value:function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=cn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new cn({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]}},{key:"generateString",value:function(){var e=this;this.css="",this.map=new cn({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===l.last&&!l.raws.semicolon||(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}}))}},{key:"isAnnotation",value:function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))}},{key:"isInline",value:function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))}},{key:"isMap",value:function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}},{key:"isSourcesContent",value:function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ln(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ln(hn(r,this.mapOpts.annotation)));var n=fn(r,e);return this.memoizedPaths.set(e,n),n}},{key:"previous",value:function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new vn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}},{key:"setSourcesContent",value:function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}},{key:"sourcePath",value: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))}},{key:"toBase64",value:function(e){return jt?jt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(dn){var r=dn(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===pn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}]),e}(),wn=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="comment",n}return X(r)}(Lr),bn=wn;wn.default=wn;var kn,Cn,In,Sn,xn=wr.isClean,An=wr.my,On=_r,En=bn;function Rn(e){return e.map((function(e){return e.nodes&&(e.nodes=Rn(e.nodes)),delete e.source,e}))}function Mn(e){if(e[xn]=!1,e.proxyOf.nodes){var t,r=c(e.proxyOf.nodes);try{for(r.s();!(t=r.n()).done;){Mn(t.value)}}catch(e){r.e(e)}finally{r.f()}}}var Nn=function(e){Ft(r,e);var t=Dt(r);function r(){return K(this,r),t.apply(this,arguments)}return X(r,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=0,o=t;n<o.length;n++){var i,s=o[n],a=this.normalize(s,this.last),u=c(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;this.proxyOf.nodes.push(l)}}catch(e){u.e(e)}finally{u.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Pt(_t(r.prototype),"cleanRaws",this).call(this,e),this.nodes){var t,n=c(this.nodes);try{for(n.s();!(t=n.n()).done;){t.value.cleanRaws(e)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e[t].apply(e,V(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.apply(void 0,[e.toProxy()].concat(n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);var o,i,s=c(n);try{for(s.s();!(o=s.n()).done;){var a=o.value;this.proxyOf.nodes.splice(r+1,0,a)}}catch(e){s.e(e)}finally{s.f()}for(var u in this.indexes)r<(i=this.indexes[u])&&(this.indexes[u]=i+n.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var r=this.index(e),n=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);var i,s,a=c(o);try{for(a.s();!(i=a.n()).done;){var u=i.value;this.proxyOf.nodes.splice(r,0,u)}}catch(e){a.e(e)}finally{a.f()}for(var l in this.indexes)r<=(s=this.indexes[l])&&(this.indexes[l]=s+o.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=Rn(kn(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);var o,i=c(e);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}catch(e){i.e(e)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);var a,u=c(e);try{for(u.s();!(a=u.n()).done;){var l=a.value;l.parent&&l.parent.removeChild(l,"ignore")}}catch(e){u.e(e)}finally{u.f()}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new On(e)]}else if(e.selector)e=[new Cn(e)];else if(e.name)e=[new In(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new En(e)]}var f=e.map((function(e){return e[An]||r.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[xn]&&Mn(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return f}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();var n,o=c(t);try{for(o.s();!(n=o.n()).done;){var i,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=c(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;this.proxyOf.nodes.unshift(l)}}catch(e){u.e(e)}finally{u.f()}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+a.length}}catch(e){o.e(e)}finally{o.f()}return this.markDirty(),this}},{key:"push",value:function(e){return e.parent=this,this.proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=c(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;){e.value.parent=void 0}}catch(e){t.e(e)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}},{key:"walkAtRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))}},{key:"walkComments",value:function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))}},{key:"walkDecls",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))}},{key:"walkRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))}},{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]}}]),r}(Lr);Nn.registerParse=function(e){kn=e},Nn.registerRule=function(e){Cn=e},Nn.registerAtRule=function(e){In=e},Nn.registerRoot=function(e){Sn=e};var Tn=Nn;Nn.default=Nn,Nn.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,In.prototype):"rule"===e.type?Object.setPrototypeOf(e,Cn.prototype):"decl"===e.type?Object.setPrototypeOf(e,On.prototype):"comment"===e.type?Object.setPrototypeOf(e,En.prototype):"root"===e.type&&Object.setPrototypeOf(e,Sn.prototype),e[An]=!0,e.nodes&&e.nodes.forEach((function(e){Nn.rebuild(e)}))};var Ln,Pn,_n=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,a({type:"document"},e))).nodes||(n.nodes=[]),n}return X(r,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ln(new Pn,this,e);return t.stringify()}}]),r}(Tn);_n.registerLazyResult=function(e){Ln=e},_n.registerProcessor=function(e){Pn=e};var Bn=_n;_n.default=_n;var Fn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var o in r)this[o]=r[o]}return X(e,[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),e}(),Dn=Fn;Fn.default=Fn;var Un=Dn,jn=function(){function e(t,r,n){K(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}return X(e,[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Un(e,t);return this.messages.push(r),r}},{key:"warnings",value:function(){return this.messages.filter((function(e){return"warning"===e.type}))}},{key:"content",get:function(){return this.css}}]),e}(),Wn=jn;jn.default=jn;var Zn="'".charCodeAt(0),Gn='"'.charCodeAt(0),Yn="\\".charCodeAt(0),Vn="/".charCodeAt(0),zn="\n".charCodeAt(0),Kn=" ".charCodeAt(0),Jn="\f".charCodeAt(0),Xn="\t".charCodeAt(0),Hn="\r".charCodeAt(0),Qn="[".charCodeAt(0),qn="]".charCodeAt(0),$n="(".charCodeAt(0),eo=")".charCodeAt(0),to="{".charCodeAt(0),ro="}".charCodeAt(0),no=";".charCodeAt(0),oo="*".charCodeAt(0),io=":".charCodeAt(0),so="@".charCodeAt(0),ao=/[\t\n\f\r "#'()/;[\\\]{}]/g,uo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,co=/.[\r\n"'(/\\]/,lo=/[\da-f]/i,fo=Tn,ho=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="atrule",n}return X(r,[{key:"append",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Pt(_t(r.prototype),"append",this)).call.apply(e,[this].concat(n))}},{key:"prepend",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Pt(_t(r.prototype),"prepend",this)).call.apply(e,[this].concat(n))}}]),r}(fo),po=ho;ho.default=ho,fo.registerAtRule(ho);var vo,go,mo=Tn,yo=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="root",n.nodes||(n.nodes=[]),n}return X(r,[{key:"normalize",value:function(e,t,n){var o=Pt(_t(r.prototype),"normalize",this).call(this,e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var i,s=c(o);try{for(s.s();!(i=s.n()).done;){i.value.raws.before=t.raws.before}}catch(e){s.e(e)}finally{s.f()}}return o}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),Pt(_t(r.prototype),"removeChild",this).call(this,e)}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new vo(new go,this,e);return t.stringify()}}]),r}(mo);yo.registerLazyResult=function(e){vo=e},yo.registerProcessor=function(e){go=e};var wo=yo;yo.default=yo,mo.registerRoot(yo);var bo={comma:function(e){return bo.split(e,[","],!0)},space:function(e){return bo.split(e,[" ","\n","\t"])},split:function(e,t,r){var n,o=[],i="",s=!1,a=0,u=!1,l="",f=!1,h=c(e);try{for(h.s();!(n=h.n()).done;){var p=n.value;f?f=!1:"\\"===p?f=!0:u?p===l&&(u=!1):'"'===p||"'"===p?(u=!0,l=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=p}}catch(e){h.e(e)}finally{h.f()}return(r||""!==i)&&o.push(i.trim()),o}},ko=bo;bo.default=bo;var Co=Tn,Io=ko,So=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="rule",n.nodes||(n.nodes=[]),n}return X(r,[{key:"selectors",get:function(){return Io.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),r}(Co),xo=So;So.default=So,Co.registerRule(So);var Ao=_r,Oo=function(e){var t,r,n,o,i,s,a,u,c,l,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,g=[],m=[];function y(){return v}function w(t){throw e.error("Unclosed "+t,v)}function b(){return 0===m.length&&v>=d}function k(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case zn:case Kn:case Xn:case Hn:case Jn:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===Kn||t===zn||t===Xn||t===Hn||t===Jn);l=["space",h.slice(v,r)],v=r-1;break;case Qn:case qn:case to:case ro:case io:case no:case eo:var y=String.fromCharCode(t);l=[y,y,v];break;case $n:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(v+1),"url"===u&&c!==Zn&&c!==Gn&&c!==Kn&&c!==zn&&c!==Xn&&c!==Jn&&c!==Hn){r=v;do{if(s=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}w("bracket")}for(a=r;h.charCodeAt(a-1)===Yn;)a-=1,s=!s}while(s);l=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||co.test(o)?l=["(","(",v]:(l=["brackets",o,v,r],v=r);break;case Zn:case Gn:n=t===Zn?"'":'"',r=v;do{if(s=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}w("string")}for(a=r;h.charCodeAt(a-1)===Yn;)a-=1,s=!s}while(s);l=["string",h.slice(v,r+1),v,r],v=r;break;case so:ao.lastIndex=v+1,ao.test(h),r=0===ao.lastIndex?h.length-1:ao.lastIndex-2,l=["at-word",h.slice(v,r+1),v,r],v=r;break;case Yn:for(r=v,i=!0;h.charCodeAt(r+1)===Yn;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==Vn&&t!==Kn&&t!==zn&&t!==Xn&&t!==Hn&&t!==Jn&&(r+=1,lo.test(h.charAt(r)))){for(;lo.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Kn&&(r+=1)}l=["word",h.slice(v,r+1),v,r],v=r;break;default:t===Vn&&h.charCodeAt(v+1)===oo?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:w("comment")),l=["comment",h.slice(v,r+1),v,r],v=r):(uo.lastIndex=v+1,uo.test(h),r=0===uo.lastIndex?h.length-1:uo.lastIndex-2,l=["word",h.slice(v,r+1),v,r],g.push(l),v=r)}return v++,l}}function C(e){m.push(e)}return{back:C,endOfFile:b,nextToken:k,position:y}},Eo=bn,Ro=po,Mo=wo,No=xo,To={empty:!0,space:!0};var Lo=Tn,Po=function(){function e(t){K(this,e),this.input=t,this.root=new Mo,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}return X(e,[{key:"atrule",value:function(e){var t,r,n,o=new Ro;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},{key:"colon",value:function(e){var t,r,n,o,i=0,s=c(e.entries());try{for(s.s();!(o=s.n()).done;){var a=G(o.value,2),u=a[0];if("("===(r=(t=a[1])[0])&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}}catch(e){s.e(e)}finally{s.f()}return!1}},{key:"comment",value:function(e){var t=new Eo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}},{key:"createTokenizer",value:function(){this.tokenizer=Oo(this.input)}},{key:"decl",value:function(e,t){var r=new Ao;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),f="",h=u;h>0;h--){var p=l[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=l.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new No;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value: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)}},{key:"endFile",value: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())}},{key:"freeSemicolon",value:function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,r,n){for(var o,i,s,a,u=r.length,c="",l=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(a=r[f-1]?r[f-1][0]:"empty",s=r[f+1]?r[f+1][0]:"empty",To[a]||To[s]||","===c.slice(-1)?l=!1:c+=o[1]):c+=o[1]:l=!1;if(!l){var h=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:h,value:c}}e[t]=c}},{key:"rule",value:function(e){e.pop();var t=new No;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}]),e}(),_o=an;function Bo(e,t){var r=new _o(e,t),n=new Po(r);try{n.parse()}catch(e){throw e}return n.root}var Fo=Bo;Bo.default=Bo,Lo.registerParse(Bo);var Do=wr.isClean,Uo=wr.my,jo=yn,Wo=xr,Zo=Tn,Go=Bn,Yo=Wn,Vo=Fo,zo=wo,Ko={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Jo={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},Xo={Once:!0,postcssPlugin:!0,prepare:!0};function Ho(e){return"object"===f(e)&&"function"==typeof e.then}function Qo(e){var t=!1,r=Ko[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function qo(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Qo(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function $o(e){return e[Do]=!1,e.nodes&&e.nodes.forEach((function(e){return $o(e)})),e}var ei={},ti=function(e){function r(e,t,n){var o,i=this;if(K(this,r),this.stringified=!1,this.processed=!1,"object"!==f(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof r||t instanceof Yo)o=$o(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var s=Vo;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[Uo]&&Zo.rebuild(o)}else o=$o(t);this.result=new Yo(e,o,n),this.helpers=a(a({},ei),{},{postcss:ei,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===f(e)&&e.prepare?a(a({},e),e.prepare(i.result)):e}))}var n;return X(r,[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}},{key:"prepareVisitors",value:function(){var e=this;this.listeners={};var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=c(this.plugins);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("object"===f(o))for(var i in o){if(!Jo[i]&&/^[A-Z]/.test(i))throw new Error("Unknown event ".concat(i," in ").concat(o.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!Xo[i])if("object"===f(o[i]))for(var s in o[i])r(o,"*"===s?i:i+"-"+s.toLowerCase(),o[i][s]);else"function"==typeof o[i]&&r(o,i,o[i])}}}catch(e){n.e(e)}finally{n.f()}this.hasListener=Object.keys(this.listeners).length>0}},{key:"runAsync",value:(n=i(t().mark((function e(){var r,n,o,i,s,a,u,l,f,h,p=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.plugin=0,r=0;case 2:if(!(r<this.plugins.length)){e.next=17;break}if(n=this.plugins[r],!Ho(o=this.runOnRoot(n))){e.next=14;break}return e.prev=6,e.next=9,o;case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(6),this.handleError(e.t0);case 14:r++,e.next=2;break;case 17:if(this.prepareVisitors(),!this.hasListener){e.next=56;break}i=this.result.root;case 20:if(i[Do]){e.next=39;break}i[Do]=!0,s=[qo(i)];case 23:if(!(s.length>0)){e.next=37;break}if(!Ho(a=this.visitTick(s))){e.next=35;break}return e.prev=26,e.next=29,a;case 29:e.next=35;break;case 31:throw e.prev=31,e.t1=e.catch(26),u=s[s.length-1].node,this.handleError(e.t1,u);case 35:e.next=23;break;case 37:e.next=20;break;case 39:if(!this.listeners.OnceExit){e.next=56;break}l=c(this.listeners.OnceExit),e.prev=41,h=t().mark((function e(){var r,n,o,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=G(f.value,2),n=r[0],o=r[1],p.result.lastPlugin=n,e.prev=2,"document"!==i.type){e.next=9;break}return s=i.nodes.map((function(e){return o(e,p.helpers)})),e.next=7,Promise.all(s);case 7:e.next=11;break;case 9:return e.next=11,o(i,p.helpers);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(2),p.handleError(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})),l.s();case 44:if((f=l.n()).done){e.next=48;break}return e.delegateYield(h(),"t2",46);case 46:e.next=44;break;case 48:e.next=53;break;case 50:e.prev=50,e.t3=e.catch(41),l.e(e.t3);case 53:return e.prev=53,l.f(),e.finish(53);case 56:return this.processed=!0,e.abrupt("return",this.stringify());case 58:case"end":return e.stop()}}),e,this,[[6,11],[26,31],[41,50,53,56]])}))),function(){return n.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===f(e)&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Ho(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}},{key:"stringify",value:function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Wo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new jo(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=c(this.plugins);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(Ho(this.runOnRoot(r)))throw this.getAsyncError()}}catch(e){t.e(e)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Do];)n[Do]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type){var o,i=c(n.nodes);try{for(i.s();!(o=i.n()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}}catch(e){i.e(e)}finally{i.f()}}else this.visitSync(this.listeners.OnceExit,n)}return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var r,n=c(e);try{for(n.s();!(r=n.n()).done;){var o=G(r.value,2),i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ho(a))throw this.getAsyncError()}}catch(e){n.e(e)}finally{n.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var o=G(n[t.visitorIndex],2),i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[Do])return a[Do]=!0,void e.push(qo(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[Do]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var t=this;e[Do]=!0;var r,n=Qo(e),o=c(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[Do]||t.walkSync(e)}));else{var s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}}catch(e){o.e(e)}finally{o.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{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:e,get:function(){return"LazyResult"}}]),r}(Symbol.toStringTag);ti.registerPostcss=function(e){ei=e};var ri=ti;ti.default=ti,zo.registerLazyResult(ti),Go.registerLazyResult(ti);var ni=yn,oi=xr,ii=Fo,si=Wn,ai=function(e){function t(e,r,n){var o;K(this,t),r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;var i=oi;this.result=new si(this._processor,o,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var a=new ni(i,o,this._opts,r);if(a.isMap()){var u=a.generate(),c=G(u,2),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}return X(t,[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{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=ii;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:e,get:function(){return"NoWorkResult"}}]),t}(Symbol.toStringTag),ui=ai;ai.default=ai;var ci=ui,li=ri,fi=Bn,hi=wo,pi=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];K(this,e),this.version="8.4.38",this.plugins=this.normalize(t)}return X(e,[{key:"normalize",value:function(e){var t,r=[],n=c(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(!0===o.postcss?o=o():o.postcss&&(o=o.postcss),"object"===f(o)&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if("object"===f(o)&&o.postcssPlugin)r.push(o);else if("function"==typeof o)r.push(o);else{if("object"!==f(o)||!o.parse&&!o.stringify)throw new Error(o+" is not a PostCSS plugin")}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"process",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.plugins.length||t.parser||t.stringifier||t.syntax?new li(this,e,t):new ci(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),e}(),di=pi;pi.default=pi,hi.registerProcessor(pi),fi.registerProcessor(pi);var vi=_r,gi=Vr,mi=bn,yi=po,wi=an,bi=wo,ki=xo;function Ci(e,t){if(Array.isArray(e))return e.map((function(e){return Ci(e)}));var r=e.inputs,n=Lt(e,Wt);if(r){t=[];var o,i=c(r);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=a(a({},s),{},{__proto__:wi.prototype});u.map&&(u.map=a(a({},u.map),{},{__proto__:gi.prototype})),t.push(u)}}catch(e){i.e(e)}finally{i.f()}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return Ci(e,t)}))),n.source){var l=n.source,f=l.inputId,h=Lt(l,Zt);n.source=h,null!=f&&(n.source.input=t[f])}if("root"===n.type)return new bi(n);if("decl"===n.type)return new vi(n);if("rule"===n.type)return new ki(n);if("comment"===n.type)return new mi(n);if("atrule"===n.type)return new yi(n);throw new Error("Unknown node type: "+e.type)}var Ii=Ci;Ci.default=Ci;var Si=yr,xi=_r,Ai=ri,Oi=Tn,Ei=di,Ri=xr,Mi=Ii,Ni=Bn,Ti=Dn,Li=bn,Pi=po,_i=Wn,Bi=an,Fi=Fo,Di=ko,Ui=xo,ji=wo,Wi=Lr;function Zi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Ei(t)}Zi.plugin=function(e,t){var r,n=!1;function o(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG&&{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t.apply(void 0,arguments);return r.postcssPlugin=e,r.postcssVersion=(new Ei).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return Zi([o(r)]).process(e,t)},o},Zi.stringify=Ri,Zi.parse=Fi,Zi.fromJSON=Mi,Zi.list=Di,Zi.comment=function(e){return new Li(e)},Zi.atRule=function(e){return new Pi(e)},Zi.decl=function(e){return new xi(e)},Zi.rule=function(e){return new Ui(e)},Zi.root=function(e){return new ji(e)},Zi.document=function(e){return new Ni(e)},Zi.CssSyntaxError=Si,Zi.Declaration=xi,Zi.Container=Oi,Zi.Processor=Ei,Zi.Document=Ni,Zi.Comment=Li,Zi.Warning=Ti,Zi.AtRule=Pi,Zi.Result=_i,Zi.Input=Bi,Zi.Rule=Ui,Zi.Root=ji,Zi.Node=Wi,Ai.registerPostcss(Zi);var Gi=Zi;Zi.default=Zi;var Yi=ur(Gi);Yi.stringify,Yi.fromJSON,Yi.plugin,Yi.parse,Yi.list,Yi.document,Yi.comment,Yi.atRule,Yi.rule,Yi.decl,Yi.root,Yi.CssSyntaxError,Yi.Declaration,Yi.Container,Yi.Processor,Yi.Document,Yi.Comment,Yi.Warning,Yi.AtRule,Yi.Result,Yi.Input,Yi.Rule,Yi.Root,Yi.Node;var Vi=Object.defineProperty,zi=function(e,t,r){return function(e,t,r){return t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==f(t)?t+"":t,r)};function Ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ji(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Xi={exports:{}},Hi=String,Qi=function(){return{isColorSupported:!1,reset:Hi,bold:Hi,dim:Hi,italic:Hi,underline:Hi,inverse:Hi,hidden:Hi,strikethrough:Hi,black:Hi,red:Hi,green:Hi,yellow:Hi,blue:Hi,magenta:Hi,cyan:Hi,white:Hi,gray:Hi,bgBlack:Hi,bgRed:Hi,bgGreen:Hi,bgYellow:Hi,bgBlue:Hi,bgMagenta:Hi,bgCyan:Hi,bgWhite:Hi}};Xi.exports=Qi(),Xi.exports.createColors=Qi;var qi=Xi.exports,$i=Ji(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),es=qi,ts=$i,rs=function(e){Ft(r,e);var t=Dt(r);function r(e,n,o,i,s,a){var u;return K(this,r),(u=t.call(this,e)).name="CssSyntaxError",u.reason=e,s&&(u.file=s),i&&(u.source=i),a&&(u.plugin=a),void 0!==n&&void 0!==o&&("number"==typeof n?(u.line=n,u.column=o):(u.line=n.line,u.column=n.column,u.endLine=o.line,u.endColumn=o.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(Bt(u),r),u}return X(r,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=es.isColorSupported),ts&&e&&(r=ts(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),u=String(a).length;if(e){var c=es.createColors(!0),l=c.bold,f=c.gray,h=c.red;n=function(e){return l(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(s,a).map((function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e})).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}]),r}(Ut(Error)),ns=rs;rs.default=rs;var os={};os.isClean=Symbol("isClean"),os.my=Symbol("my");var is={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var ss=function(){function e(t){K(this,e),this.builder=t}return X(e,[{key:"atrule",value:function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}}},{key:"beforeAfter",value:function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)r+=i}return r}},{key:"block",value:function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var o=e.nodes[n],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==n||r)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}},{key:"decl",value:function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return is[r];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](i,e):i.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=is[r]),i.rawCache[r]=n,n}},{key:"rawBeforeClose",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawBeforeComment",value:function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeDecl",value:function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}},{key:"rawBeforeRule",value:function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawColon",value:function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}},{key:"rawIndent",value:function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}})),t);var t}},{key:"rawSemicolon",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}},{key:"rawValue",value:function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),e}(),as=ss;ss.default=ss;var us=as;function cs(e,t){new us(t).stringify(e)}var ls=cs;cs.default=cs;var fs=os.isClean,hs=os.my,ps=ns,ds=as,vs=ls;function gs(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],i=f(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((function(e){return gs(e,r)})):("object"===i&&null!==o&&(o=gs(o)),r[n]=o)}return r}var ms=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in K(this,e),this.raws={},this[fs]=!1,this[hs]=!0,t)if("nodes"===r){this.nodes=[];var n,o=c(t[r]);try{for(o.s();!(n=o.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(e){o.e(e)}finally{o.f()}}else this[r]=t[r]}return X(e,[{key:"addToError",value: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 /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))}return e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this[t]=e[t];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=gs(this);for(var r in e)t[r]=e[r];return t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new ps(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}},{key:"markDirty",value:function(){if(this[fs]){this[fs]=!1;for(var e=this;e=e.parent;)e[fs]=!1}}},{key:"next",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}},{key:"positionBy",value:function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}},{key:"positionInside",value:function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===r[i]?(n=1,o+=1):n+=1;return{column:n,line:o}}},{key:"prev",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}},{key:"rangeBy",value:function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),o=n.indexOf(e.word);-1!==o&&(t=this.positionInside(o,n),r=this.positionInside(o+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}},{key:"raw",value:function(e,t){return(new ds).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i=0,s=n;i<s.length;i++){var a=s[i];a===this?t=!0:t?(this.parent.insertAfter(e,a),e=a):this.parent.insertBefore(e,a)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var r={},n=null==t;t=t||new Map;var o=0;for(var i in this)if(Object.prototype.hasOwnProperty.call(this,i)&&"parent"!==i&&"proxyCache"!==i){var s=this[i];if(Array.isArray(s))r[i]=s.map((function(e){return"object"===f(e)&&e.toJSON?e.toJSON(null,t):e}));else if("object"===f(s)&&s.toJSON)r[i]=s.toJSON(null,t);else if("source"===i){var a=t.get(s.input);null==a&&(a=o,t.set(s.input,o),o++),r[i]={end:s.end,inputId:a,start:s.start}}else r[i]=s}return n&&(r.inputs=V(t.keys()).map((function(e){return e.toJSON()}))),r}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vs;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t}},{key:"warn",value:function(e,t,r){var n={node:this};for(var o in r)n[o]=r[o];return e.warn(t,n)}},{key:"proxyOf",get:function(){return this}}]),e}(),ys=ms;ms.default=ms;var ws=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=a(a({},e),{},{value:String(e.value)})),(n=t.call(this,e)).type="decl",n}return X(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),r}(ys),bs=ws;ws.default=ws;var ks="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Cs=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",r=e;r--;)t+=ks[64*Math.random()|0];return t},Is=$i.SourceMapConsumer,Ss=$i.SourceMapGenerator,xs=$i.existsSync,As=$i.readFileSync,Os=$i.dirname,Es=$i.join;var Rs=function(){function e(t,r){if(K(this,e),!1!==r.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Os(this.mapFile)),o&&(this.text=o)}}return X(e,[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new Is(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),jt?jt.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===f(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}},{key:"loadFile",value:function(e){if(this.root=Os(e),xs(e))return this.mapFile=e,As(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Is)return Ss.fromSourceMap(t).toString();if(t instanceof Ss)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=Es(Os(e),o)),this.loadFile(o)}}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}]),e}(),Ms=Rs;Rs.default=Rs;var Ns=$i.SourceMapConsumer,Ts=$i.SourceMapGenerator,Ls=$i.fileURLToPath,Ps=$i.pathToFileURL,_s=$i.isAbsolute,Bs=$i.resolve,Fs=Cs,Ds=$i,Us=ns,js=Ms,Ws=Symbol("fromOffsetCache"),Zs=Boolean(Ns&&Ts),Gs=Boolean(Bs&&_s),Ys=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(this,e),null==t||"object"===f(t)&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!Gs||/^\w+:\/\//.test(r.from)||_s(r.from)?this.file=r.from:this.file=Bs(r.from)),Gs&&Zs){var n=new js(this.css,r);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Fs(6)+">"),this.map&&(this.map.file=this.from)}return X(e,[{key:"error",value:function(e,t,r){var n,o,i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===f(t)){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,i=l.col}else o=u.line,i=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,i);return(n=p?new Us(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,s.plugin):new Us(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,s.plugin)).input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(Ps&&(n.input.url=Ps(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[Ws])t=this[Ws];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o<i;o++)t[o]=n,n+=r[o].length+1;this[Ws]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:Bs(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=_s(a.source)?Ps(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ps(this.map.mapFile));var u={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Ls)throw new Error("file: protocol is not available in this PostCSS build");u.file=Ls(i)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u}},{key:"toJSON",value:function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=a({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}]),e}(),Vs=Ys;Ys.default=Ys,Ds&&Ds.registerInput&&Ds.registerInput(Ys);var zs=$i.SourceMapConsumer,Ks=$i.SourceMapGenerator,Js=$i.dirname,Xs=$i.relative,Hs=$i.resolve,Qs=$i.sep,qs=$i.pathToFileURL,$s=Vs,ea=Boolean(zs&&Ks),ta=Boolean(Js&&Hs&&Xs&&Qs),ra=function(){function e(t,r,n,o){K(this,e),this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}return X(e,[{key:"addAnnotation",value:function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=c(this.previous());try{for(t.s();!(e=t.n()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),o=r.root||Js(r.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new zs(r.text)).sourcesContent&&(i.sourcesContent=null):i=r.consumer(),this.map.applySourceMap(i,n,this.toUrl(this.path(o)))}}catch(e){t.e(e)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){if(this.clearAnnotation(),ta&&ea&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]}},{key:"generateMap",value:function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ks.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ks({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]}},{key:"generateString",value:function(){var e=this;this.css="",this.map=new Ks({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===l.last&&!l.raws.semicolon||(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}}))}},{key:"isAnnotation",value:function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))}},{key:"isInline",value:function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))}},{key:"isMap",value:function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}},{key:"isSourcesContent",value:function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Js(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Js(Hs(r,this.mapOpts.annotation)));var n=Xs(r,e);return this.memoizedPaths.set(e,n),n}},{key:"previous",value:function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new $s(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}},{key:"setSourcesContent",value:function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}},{key:"sourcePath",value: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))}},{key:"toBase64",value:function(e){return jt?jt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(qs){var r=qs(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Qs&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}]),e}(),na=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="comment",n}return X(r)}(ys),oa=na;na.default=na;var ia,sa,aa,ua,ca=os.isClean,la=os.my,fa=bs,ha=oa;function pa(e){return e.map((function(e){return e.nodes&&(e.nodes=pa(e.nodes)),delete e.source,e}))}function da(e){if(e[ca]=!1,e.proxyOf.nodes){var t,r=c(e.proxyOf.nodes);try{for(r.s();!(t=r.n()).done;){da(t.value)}}catch(e){r.e(e)}finally{r.f()}}}var va=function(e){Ft(r,e);var t=Dt(r);function r(){return K(this,r),t.apply(this,arguments)}return X(r,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=0,o=t;n<o.length;n++){var i,s=o[n],a=this.normalize(s,this.last),u=c(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;this.proxyOf.nodes.push(l)}}catch(e){u.e(e)}finally{u.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Pt(_t(r.prototype),"cleanRaws",this).call(this,e),this.nodes){var t,n=c(this.nodes);try{for(n.s();!(t=n.n()).done;){t.value.cleanRaws(e)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e[t].apply(e,V(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.apply(void 0,[e.toProxy()].concat(n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);var o,i,s=c(n);try{for(s.s();!(o=s.n()).done;){var a=o.value;this.proxyOf.nodes.splice(r+1,0,a)}}catch(e){s.e(e)}finally{s.f()}for(var u in this.indexes)r<(i=this.indexes[u])&&(this.indexes[u]=i+n.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var r=this.index(e),n=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);var i,s,a=c(o);try{for(a.s();!(i=a.n()).done;){var u=i.value;this.proxyOf.nodes.splice(r,0,u)}}catch(e){a.e(e)}finally{a.f()}for(var l in this.indexes)r<=(s=this.indexes[l])&&(this.indexes[l]=s+o.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=pa(ia(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);var o,i=c(e);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}catch(e){i.e(e)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);var a,u=c(e);try{for(u.s();!(a=u.n()).done;){var l=a.value;l.parent&&l.parent.removeChild(l,"ignore")}}catch(e){u.e(e)}finally{u.f()}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new fa(e)]}else if(e.selector)e=[new sa(e)];else if(e.name)e=[new aa(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new ha(e)]}var f=e.map((function(e){return e[la]||r.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ca]&&da(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return f}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();var n,o=c(t);try{for(o.s();!(n=o.n()).done;){var i,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=c(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;this.proxyOf.nodes.unshift(l)}}catch(e){u.e(e)}finally{u.f()}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+a.length}}catch(e){o.e(e)}finally{o.f()}return this.markDirty(),this}},{key:"push",value:function(e){return e.parent=this,this.proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=c(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;){e.value.parent=void 0}}catch(e){t.e(e)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}},{key:"walkAtRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))}},{key:"walkComments",value:function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))}},{key:"walkDecls",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))}},{key:"walkRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))}},{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]}}]),r}(ys);va.registerParse=function(e){ia=e},va.registerRule=function(e){sa=e},va.registerAtRule=function(e){aa=e},va.registerRoot=function(e){ua=e};var ga=va;va.default=va,va.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,aa.prototype):"rule"===e.type?Object.setPrototypeOf(e,sa.prototype):"decl"===e.type?Object.setPrototypeOf(e,fa.prototype):"comment"===e.type?Object.setPrototypeOf(e,ha.prototype):"root"===e.type&&Object.setPrototypeOf(e,ua.prototype),e[la]=!0,e.nodes&&e.nodes.forEach((function(e){va.rebuild(e)}))};var ma,ya,wa=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,a({type:"document"},e))).nodes||(n.nodes=[]),n}return X(r,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ma(new ya,this,e);return t.stringify()}}]),r}(ga);wa.registerLazyResult=function(e){ma=e},wa.registerProcessor=function(e){ya=e};var ba=wa;wa.default=wa;var ka=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var o in r)this[o]=r[o]}return X(e,[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),e}(),Ca=ka;ka.default=ka;var Ia=Ca,Sa=function(){function e(t,r,n){K(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}return X(e,[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Ia(e,t);return this.messages.push(r),r}},{key:"warnings",value:function(){return this.messages.filter((function(e){return"warning"===e.type}))}},{key:"content",get:function(){return this.css}}]),e}(),xa=Sa;Sa.default=Sa;var Aa="'".charCodeAt(0),Oa='"'.charCodeAt(0),Ea="\\".charCodeAt(0),Ra="/".charCodeAt(0),Ma="\n".charCodeAt(0),Na=" ".charCodeAt(0),Ta="\f".charCodeAt(0),La="\t".charCodeAt(0),Pa="\r".charCodeAt(0),_a="[".charCodeAt(0),Ba="]".charCodeAt(0),Fa="(".charCodeAt(0),Da=")".charCodeAt(0),Ua="{".charCodeAt(0),ja="}".charCodeAt(0),Wa=";".charCodeAt(0),Za="*".charCodeAt(0),Ga=":".charCodeAt(0),Ya="@".charCodeAt(0),Va=/[\t\n\f\r "#'()/;[\\\]{}]/g,za=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ka=/.[\r\n"'(/\\]/,Ja=/[\da-f]/i,Xa=ga,Ha=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="atrule",n}return X(r,[{key:"append",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Pt(_t(r.prototype),"append",this)).call.apply(e,[this].concat(n))}},{key:"prepend",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Pt(_t(r.prototype),"prepend",this)).call.apply(e,[this].concat(n))}}]),r}(Xa),Qa=Ha;Ha.default=Ha,Xa.registerAtRule(Ha);var qa,$a,eu=ga,tu=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="root",n.nodes||(n.nodes=[]),n}return X(r,[{key:"normalize",value:function(e,t,n){var o=Pt(_t(r.prototype),"normalize",this).call(this,e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var i,s=c(o);try{for(s.s();!(i=s.n()).done;){i.value.raws.before=t.raws.before}}catch(e){s.e(e)}finally{s.f()}}return o}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),Pt(_t(r.prototype),"removeChild",this).call(this,e)}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new qa(new $a,this,e);return t.stringify()}}]),r}(eu);tu.registerLazyResult=function(e){qa=e},tu.registerProcessor=function(e){$a=e};var ru=tu;tu.default=tu,eu.registerRoot(tu);var nu={comma:function(e){return nu.split(e,[","],!0)},space:function(e){return nu.split(e,[" ","\n","\t"])},split:function(e,t,r){var n,o=[],i="",s=!1,a=0,u=!1,l="",f=!1,h=c(e);try{for(h.s();!(n=h.n()).done;){var p=n.value;f?f=!1:"\\"===p?f=!0:u?p===l&&(u=!1):'"'===p||"'"===p?(u=!0,l=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=p}}catch(e){h.e(e)}finally{h.f()}return(r||""!==i)&&o.push(i.trim()),o}},ou=nu;nu.default=nu;var iu=ga,su=ou,au=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="rule",n.nodes||(n.nodes=[]),n}return X(r,[{key:"selectors",get:function(){return su.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),r}(iu),uu=au;au.default=au,iu.registerRule(au);var cu=bs,lu=function(e){var t,r,n,o,i,s,a,u,c,l,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,g=[],m=[];function y(){return v}function w(t){throw e.error("Unclosed "+t,v)}function b(){return 0===m.length&&v>=d}function k(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case Ma:case Na:case La:case Pa:case Ta:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===Na||t===Ma||t===La||t===Pa||t===Ta);l=["space",h.slice(v,r)],v=r-1;break;case _a:case Ba:case Ua:case ja:case Ga:case Wa:case Da:var y=String.fromCharCode(t);l=[y,y,v];break;case Fa:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(v+1),"url"===u&&c!==Aa&&c!==Oa&&c!==Na&&c!==Ma&&c!==La&&c!==Ta&&c!==Pa){r=v;do{if(s=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}w("bracket")}for(a=r;h.charCodeAt(a-1)===Ea;)a-=1,s=!s}while(s);l=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||Ka.test(o)?l=["(","(",v]:(l=["brackets",o,v,r],v=r);break;case Aa:case Oa:n=t===Aa?"'":'"',r=v;do{if(s=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}w("string")}for(a=r;h.charCodeAt(a-1)===Ea;)a-=1,s=!s}while(s);l=["string",h.slice(v,r+1),v,r],v=r;break;case Ya:Va.lastIndex=v+1,Va.test(h),r=0===Va.lastIndex?h.length-1:Va.lastIndex-2,l=["at-word",h.slice(v,r+1),v,r],v=r;break;case Ea:for(r=v,i=!0;h.charCodeAt(r+1)===Ea;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==Ra&&t!==Na&&t!==Ma&&t!==La&&t!==Pa&&t!==Ta&&(r+=1,Ja.test(h.charAt(r)))){for(;Ja.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Na&&(r+=1)}l=["word",h.slice(v,r+1),v,r],v=r;break;default:t===Ra&&h.charCodeAt(v+1)===Za?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:w("comment")),l=["comment",h.slice(v,r+1),v,r],v=r):(za.lastIndex=v+1,za.test(h),r=0===za.lastIndex?h.length-1:za.lastIndex-2,l=["word",h.slice(v,r+1),v,r],g.push(l),v=r)}return v++,l}}function C(e){m.push(e)}return{back:C,endOfFile:b,nextToken:k,position:y}},fu=oa,hu=Qa,pu=ru,du=uu,vu={empty:!0,space:!0};var gu=ga,mu=function(){function e(t){K(this,e),this.input=t,this.root=new pu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}return X(e,[{key:"atrule",value:function(e){var t,r,n,o=new hu;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},{key:"colon",value:function(e){var t,r,n,o,i=0,s=c(e.entries());try{for(s.s();!(o=s.n()).done;){var a=G(o.value,2),u=a[0];if("("===(r=(t=a[1])[0])&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}}catch(e){s.e(e)}finally{s.f()}return!1}},{key:"comment",value:function(e){var t=new fu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}},{key:"createTokenizer",value:function(){this.tokenizer=lu(this.input)}},{key:"decl",value:function(e,t){var r=new cu;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),f="",h=u;h>0;h--){var p=l[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=l.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new du;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value: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)}},{key:"endFile",value: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())}},{key:"freeSemicolon",value:function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,r,n){for(var o,i,s,a,u=r.length,c="",l=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(a=r[f-1]?r[f-1][0]:"empty",s=r[f+1]?r[f+1][0]:"empty",vu[a]||vu[s]||","===c.slice(-1)?l=!1:c+=o[1]):c+=o[1]:l=!1;if(!l){var h=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:h,value:c}}e[t]=c}},{key:"rule",value:function(e){e.pop();var t=new du;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}]),e}(),yu=Vs;function wu(e,t){var r=new yu(e,t),n=new mu(r);try{n.parse()}catch(e){throw e}return n.root}var bu=wu;wu.default=wu,gu.registerParse(wu);var ku=os.isClean,Cu=os.my,Iu=ra,Su=ls,xu=ga,Au=ba,Ou=xa,Eu=bu,Ru=ru,Mu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Nu={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},Tu={Once:!0,postcssPlugin:!0,prepare:!0};function Lu(e){return"object"===f(e)&&"function"==typeof e.then}function Pu(e){var t=!1,r=Mu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function _u(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Pu(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Bu(e){return e[ku]=!1,e.nodes&&e.nodes.forEach((function(e){return Bu(e)})),e}var Fu={},Du=function(e){function r(e,t,n){var o,i=this;if(K(this,r),this.stringified=!1,this.processed=!1,"object"!==f(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof r||t instanceof Ou)o=Bu(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var s=Eu;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[Cu]&&xu.rebuild(o)}else o=Bu(t);this.result=new Ou(e,o,n),this.helpers=a(a({},Fu),{},{postcss:Fu,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===f(e)&&e.prepare?a(a({},e),e.prepare(i.result)):e}))}var n;return X(r,[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}},{key:"prepareVisitors",value:function(){var e=this;this.listeners={};var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=c(this.plugins);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("object"===f(o))for(var i in o){if(!Nu[i]&&/^[A-Z]/.test(i))throw new Error("Unknown event ".concat(i," in ").concat(o.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!Tu[i])if("object"===f(o[i]))for(var s in o[i])r(o,"*"===s?i:i+"-"+s.toLowerCase(),o[i][s]);else"function"==typeof o[i]&&r(o,i,o[i])}}}catch(e){n.e(e)}finally{n.f()}this.hasListener=Object.keys(this.listeners).length>0}},{key:"runAsync",value:(n=i(t().mark((function e(){var r,n,o,i,s,a,u,l,f,h,p=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.plugin=0,r=0;case 2:if(!(r<this.plugins.length)){e.next=17;break}if(n=this.plugins[r],!Lu(o=this.runOnRoot(n))){e.next=14;break}return e.prev=6,e.next=9,o;case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(6),this.handleError(e.t0);case 14:r++,e.next=2;break;case 17:if(this.prepareVisitors(),!this.hasListener){e.next=56;break}i=this.result.root;case 20:if(i[ku]){e.next=39;break}i[ku]=!0,s=[_u(i)];case 23:if(!(s.length>0)){e.next=37;break}if(!Lu(a=this.visitTick(s))){e.next=35;break}return e.prev=26,e.next=29,a;case 29:e.next=35;break;case 31:throw e.prev=31,e.t1=e.catch(26),u=s[s.length-1].node,this.handleError(e.t1,u);case 35:e.next=23;break;case 37:e.next=20;break;case 39:if(!this.listeners.OnceExit){e.next=56;break}l=c(this.listeners.OnceExit),e.prev=41,h=t().mark((function e(){var r,n,o,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=G(f.value,2),n=r[0],o=r[1],p.result.lastPlugin=n,e.prev=2,"document"!==i.type){e.next=9;break}return s=i.nodes.map((function(e){return o(e,p.helpers)})),e.next=7,Promise.all(s);case 7:e.next=11;break;case 9:return e.next=11,o(i,p.helpers);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(2),p.handleError(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})),l.s();case 44:if((f=l.n()).done){e.next=48;break}return e.delegateYield(h(),"t2",46);case 46:e.next=44;break;case 48:e.next=53;break;case 50:e.prev=50,e.t3=e.catch(41),l.e(e.t3);case 53:return e.prev=53,l.f(),e.finish(53);case 56:return this.processed=!0,e.abrupt("return",this.stringify());case 58:case"end":return e.stop()}}),e,this,[[6,11],[26,31],[41,50,53,56]])}))),function(){return n.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===f(e)&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Lu(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}},{key:"stringify",value:function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Su;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Iu(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=c(this.plugins);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(Lu(this.runOnRoot(r)))throw this.getAsyncError()}}catch(e){t.e(e)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[ku];)n[ku]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type){var o,i=c(n.nodes);try{for(i.s();!(o=i.n()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}}catch(e){i.e(e)}finally{i.f()}}else this.visitSync(this.listeners.OnceExit,n)}return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var r,n=c(e);try{for(n.s();!(r=n.n()).done;){var o=G(r.value,2),i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Lu(a))throw this.getAsyncError()}}catch(e){n.e(e)}finally{n.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var o=G(n[t.visitorIndex],2),i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[ku])return a[ku]=!0,void e.push(_u(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[ku]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var t=this;e[ku]=!0;var r,n=Pu(e),o=c(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[ku]||t.walkSync(e)}));else{var s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}}catch(e){o.e(e)}finally{o.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{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:e,get:function(){return"LazyResult"}}]),r}(Symbol.toStringTag);Du.registerPostcss=function(e){Fu=e};var Uu=Du;Du.default=Du,Ru.registerLazyResult(Du),Au.registerLazyResult(Du);var ju=ra,Wu=ls,Zu=bu,Gu=xa,Yu=function(e){function t(e,r,n){var o;K(this,t),r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;var i=Wu;this.result=new Gu(this._processor,o,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var a=new ju(i,o,this._opts,r);if(a.isMap()){var u=a.generate(),c=G(u,2),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}return X(t,[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{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=Zu;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:e,get:function(){return"NoWorkResult"}}]),t}(Symbol.toStringTag),Vu=Yu;Yu.default=Yu;var zu=Vu,Ku=Uu,Ju=ba,Xu=ru,Hu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];K(this,e),this.version="8.4.38",this.plugins=this.normalize(t)}return X(e,[{key:"normalize",value:function(e){var t,r=[],n=c(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(!0===o.postcss?o=o():o.postcss&&(o=o.postcss),"object"===f(o)&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if("object"===f(o)&&o.postcssPlugin)r.push(o);else if("function"==typeof o)r.push(o);else{if("object"!==f(o)||!o.parse&&!o.stringify)throw new Error(o+" is not a PostCSS plugin")}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"process",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.plugins.length||t.parser||t.stringifier||t.syntax?new Ku(this,e,t):new zu(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),e}(),Qu=Hu;Hu.default=Hu,Xu.registerProcessor(Hu),Ju.registerProcessor(Hu);var qu=bs,$u=Ms,ec=oa,tc=Qa,rc=Vs,nc=ru,oc=uu;function ic(e,t){if(Array.isArray(e))return e.map((function(e){return ic(e)}));var r=e.inputs,n=Lt(e,Gt);if(r){t=[];var o,i=c(r);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=a(a({},s),{},{__proto__:rc.prototype});u.map&&(u.map=a(a({},u.map),{},{__proto__:$u.prototype})),t.push(u)}}catch(e){i.e(e)}finally{i.f()}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return ic(e,t)}))),n.source){var l=n.source,f=l.inputId,h=Lt(l,Yt);n.source=h,null!=f&&(n.source.input=t[f])}if("root"===n.type)return new nc(n);if("decl"===n.type)return new qu(n);if("rule"===n.type)return new oc(n);if("comment"===n.type)return new ec(n);if("atrule"===n.type)return new tc(n);throw new Error("Unknown node type: "+e.type)}var sc=ic;ic.default=ic;var ac=ns,uc=bs,cc=Uu,lc=ga,fc=Qu,hc=ls,pc=sc,dc=ba,vc=Ca,gc=oa,mc=Qa,yc=xa,wc=Vs,bc=bu,kc=ou,Cc=uu,Ic=ru,Sc=ys;function xc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fc(t)}xc.plugin=function(e,t){var r,n=!1;function o(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG&&{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t.apply(void 0,arguments);return r.postcssPlugin=e,r.postcssVersion=(new fc).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return xc([o(r)]).process(e,t)},o},xc.stringify=hc,xc.parse=bc,xc.fromJSON=pc,xc.list=kc,xc.comment=function(e){return new gc(e)},xc.atRule=function(e){return new mc(e)},xc.decl=function(e){return new uc(e)},xc.rule=function(e){return new Cc(e)},xc.root=function(e){return new Ic(e)},xc.document=function(e){return new dc(e)},xc.CssSyntaxError=ac,xc.Declaration=uc,xc.Container=lc,xc.Processor=fc,xc.Document=dc,xc.Comment=gc,xc.Warning=vc,xc.AtRule=mc,xc.Result=yc,xc.Input=wc,xc.Rule=Cc,xc.Root=Ic,xc.Node=Sc,cc.registerPostcss(xc);var Ac=xc;xc.default=xc;var Oc=Ki(Ac);Oc.stringify,Oc.fromJSON,Oc.plugin,Oc.parse,Oc.list,Oc.document,Oc.comment,Oc.atRule,Oc.rule,Oc.decl,Oc.root,Oc.CssSyntaxError,Oc.Declaration,Oc.Container,Oc.Processor,Oc.Document,Oc.Comment,Oc.Warning,Oc.AtRule,Oc.Result,Oc.Input,Oc.Rule,Oc.Root,Oc.Node;var Ec=function(){function e(){K(this,e),zi(this,"parentElement",null),zi(this,"parentNode",null),zi(this,"ownerDocument"),zi(this,"firstChild",null),zi(this,"lastChild",null),zi(this,"previousSibling",null),zi(this,"nextSibling",null),zi(this,"ELEMENT_NODE",1),zi(this,"TEXT_NODE",3),zi(this,"nodeType"),zi(this,"nodeName"),zi(this,"RRNodeType")}return X(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}},{key:"contains",value:function(t){if(!(t instanceof e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}},{key:"appendChild",value:function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"insertBefore",value:function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}},{key:"removeChild",value:function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"toString",value:function(){return"RRNode"}}]),e}(),Rc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Mc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Nc={};function Tc(e){if(Nc[e])return Nc[e];var t=globalThis[e],r=t.prototype,n=e in Rc?Rc[e]:void 0,o=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),i=e in Mc?Mc[e]:void 0,s=Boolean(i&&i.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(o&&s&&!globalThis.Zone)return Nc[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Nc[e]=c:r}catch(e){return r}}var Lc={};function Pc(e,t,r){var n,o="".concat(e,".").concat(String(r));if(Lc[o])return Lc[o].call(t);var i=Tc(e),s=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return s?(Lc[o]=s,s.call(t)):t[r]}var _c={};function Bc(e,t,r){var n="".concat(e,".").concat(String(r));if(_c[n])return _c[n].bind(t);var o=Tc(e)[r];return"function"!=typeof o?t[r]:(_c[n]=o,o.bind(t))}var Fc={childNodes:function(e){return Pc("Node",e,"childNodes")},parentNode:function(e){return Pc("Node",e,"parentNode")},parentElement:function(e){return Pc("Node",e,"parentElement")},textContent:function(e){return Pc("Node",e,"textContent")},contains:function(e,t){return Bc("Node",e,"contains")(t)},getRootNode:function(e){return Bc("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Pc("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Pc("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Pc("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Pc("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Tc("MutationObserver").constructor}};var Dc="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.",Uc={map:{},getId:function(){return console.error(Dc),-1},getNode:function(){return console.error(Dc),null},removeNodeFromMap:function(){console.error(Dc)},has:function(){return console.error(Dc),!1},reset:function(){console.error(Dc)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Uc=new Proxy(Uc,{get:function(e,t,r){return"map"===t&&console.error(Dc),Reflect.get(e,t,r)}}));var jc=Date.now;function Wc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Fc.parentElement(e):null}/[1-9][0-9]{12}/.test(Date.now().toString())||(jc=function(){return(new Date).getTime()});var Zc=function(){function e(){K(this,e),Jt(this,"id",1),Jt(this,"styleIDMap",new WeakMap),Jt(this,"idStyleMap",new Map)}return X(e,[{key:"getId",value:function(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}();function Gc(e){var t,r=null;return"getRootNode"in e&&(null==(t=Fc.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Fc.host(Fc.getRootNode(e))&&(r=Fc.host(Fc.getRootNode(e))),r}function Yc(e){for(var t,r=e;t=Gc(r);)r=t;return r}function Vc(e){var t=e.ownerDocument;if(!t)return!1;var r=Yc(e);return Fc.contains(t,r)}for(var zc=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:Zc,get _mirror(){return Uc},closestElementOfNode:Wc,getBaseDimension:function e(t,r){var n,o,i=null==(o=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:o.frameElement;if(!i||i===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};var s=i.getBoundingClientRect(),a=e(i,r),u=s.height/i.clientHeight;return{x:s.x*a.relativeScale+a.x,y:s.y*a.relativeScale+a.y,relativeScale:u,absoluteScale:a.absoluteScale*u}},getNestedRule:function e(t,r){var n=t[r[0]];return 1===r.length?n:e(n.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(e){var t=V(e),r=t.pop();return{positions:t,index:r}},getRootShadowHost:Yc,getShadowHost:Gc,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,r,n,o,i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=Fc.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=Fc.parentElement(i.body))?void 0:n.scrollTop)||(null==(o=null==i?void 0:i.body)?void 0:o.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){return!!e&&(e instanceof Ec&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Fc.shadowRoot(e)))},hookSetter:function e(t,r,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,s=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),s&&s.set&&s.set.call(this,e)}}),function(){return e(t,r,s||{},!0)}},inDom:function(e){var t=e.ownerDocument;return!!t&&(Fc.contains(t,e)||Vc(e))},isAncestorRemoved:function e(t,r){if(o=(n=t)&&"host"in n&&"mode"in n&&ir.host(n)||null,Boolean(o&&"shadowRoot"in o&&ir.shadowRoot(o)===n))return!1;var n,o,i=r.getId(t);if(!r.has(i))return!0;var s=Fc.parentNode(t);return(!s||s.nodeType!==t.DOCUMENT_NODE)&&(!s||e(s,r))},isBlocked:function(e,t,r,n){if(!e)return!1;var o=Wc(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(ar(o,t,n))return!0}catch(e){}if(r){if(o.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1},isIgnored:function(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)},isSerialized:function(e,t){return-1!==t.getId(e)},isSerializedIframe:function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,r){r(t.value);for(var n=t.children.length-1;n>=0;n--)e(t.children[n],r)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return jc},on:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,function(){e[t]=n}}catch(e){return function(){}}},polyfill:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)},queueToResolveTrees:function(e){var t,r={},n=function(e,t){var n={value:e,parent:t,children:[]};return r[e.node.id]=n,n},o=[],i=c(e);try{for(i.s();!(t=i.n()).done;){var s=t.value,a=s.nextId,u=s.parentId;if(a&&a in r){var l=r[a];if(l.parent){var f=l.parent.children.indexOf(l);l.parent.children.splice(f,0,n(s,l.parent))}else{var h=o.indexOf(l);o.splice(h,0,n(s,null))}}else if(u in r){var p=r[u];p.children.push(n(s,p))}else o.push(n(s,null))}}catch(e){i.e(e)}finally{i.f()}return o},shadowHostInDom:Vc,throttle:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();o||!1!==r.leading||(o=u);var c=t-(u-o),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout((function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)}),c))}},uniqueTextMutations:function(e){for(var t=new Set,r=[],n=e.length;n--;){var o=e[n];t.has(o.id)||(r.push(o),t.add(o.id))}return r}},Symbol.toStringTag,{value:"Module"})),Kc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Xc=0;Xc<Kc.length;Xc++)Jc[Kc.charCodeAt(Xc)]=Xc;var Hc,Qc;"undefined"!=typeof window&&window.Blob&&new Blob([function(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))}("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=")],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var qc=document.createElement("iframe");document.body.appendChild(qc),Array.from=(null==(Tt=qc.contentWindow)?void 0:Tt.Array.from)||Array.from,document.body.removeChild(qc)}}catch(e){console.debug("Unable to override Array.from",e)}new sr,(Qc=Hc||(Hc={}))[Qc.NotStarted=0]="NotStarted",Qc[Qc.Running=1]="Running",Qc[Qc.Stopped=2]="Stopped";var $c=function(){function e(t){K(this,e),zt(this,"fileName"),zt(this,"functionName"),zt(this,"lineNumber"),zt(this,"columnNumber"),this.fileName=t.fileName||"",this.functionName=t.functionName||"",this.lineNumber=t.lineNumber,this.columnNumber=t.columnNumber}return X(e,[{key:"toString",value:function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?"".concat(this.functionName," (").concat(this.fileName,":").concat(e,":").concat(t,")"):"".concat(this.fileName,":").concat(e,":").concat(t)}}]),e}(),el=/(^|@)\S+:\d+/,tl=/^\s*at .*(\S+:\d+|\(native\))/m,rl=/^(eval@)?(\[native code])?$/,nl={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(tl)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: ".concat(e));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(tl)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(r?r[1]:n.pop()),i=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new $c({functionName:i,fileName:s,lineNumber:o[1],columnNumber:o[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(rl)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new $c({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,o=this.extractLocation(e.replace(t,""));return new $c({functionName:n,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],o=2,i=r.length;o<i;o+=2){var s=t.exec(r[o]);s&&n.push(new $c({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],o=0,i=r.length;o<i;o+=2){var s=t.exec(r[o]);s&&n.push(new $c({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(el)&&!e.match(/^Error created at/)}),this).map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new $c({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function ol(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,o=[];if(n.children&&n.children.length>0)for(var i=0;i<n.children.length;i++){var s=n.children[i];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&o.push(s)}o.length>1&&(r+=":eq(".concat(o.indexOf(e),")")),t=r+(t?">"+t:""),e=n}return t}function il(e){return"[object Object]"===Object.prototype.toString.call(e)}function sl(e,t){if(0===t)return!0;for(var r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(il(e[o])&&sl(e[o],t-1))return!0}return!1}function al(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],o=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?o.splice(i,1/0,e):o.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(il(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(il(e)&&sl(e,r.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t="".concat(t.slice(0,r.stringLengthLimit),"..."));return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){var s={};for(var a in t){var u=t[a];Array.isArray(u)?s[a]=ol(u.length?u[0]:null):s[a]=u}return s}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var ul={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 cl(e,t,r){var n,o=r?Object.assign({},ul,r):ul,i=o.logger;if(!i)return function(){};n="string"==typeof i?t[i]:i;var s=0,a=!1,u=[];if(o.level.includes("error")){var l=function(t){var r=t.message,n=t.error,i=nl.parse(n).map((function(e){return e.toString()})),s=[al(r,o.stringifyOptions)];e({level:"error",trace:i,payload:s})};t.addEventListener("error",l),u.push((function(){t.removeEventListener("error",l)}));var f=function(t){var r,n;t.reason instanceof Error?(r=t.reason,n=[al("Uncaught (in promise) ".concat(r.name,": ").concat(r.message),o.stringifyOptions)]):(r=new Error,n=[al("Uncaught (in promise)",o.stringifyOptions),al(t.reason,o.stringifyOptions)]);var i=nl.parse(r).map((function(e){return e.toString()}));e({level:"error",trace:i,payload:n})};t.addEventListener("unhandledrejection",f),u.push((function(){t.removeEventListener("unhandledrejection",f)}))}var h,p=c(o.level);try{for(p.s();!(h=p.n()).done;){var d=h.value;u.push(v(n,d))}}catch(e){p.e(e)}finally{p.f()}return function(){u.forEach((function(e){return e()}))};function v(t,r){var n=this;return t[r]?zc.patch(t,r,(function(t){return function(){for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];if(t.apply(n,u),!("assert"===r&&u[0]||a)){a=!0;try{var l=nl.parse(new Error).map((function(e){return e.toString()})).splice(1),f="assert"===r?u.slice(1):u,h=f.map((function(e){return al(e,o.stringifyOptions)}));++s<o.lengthThreshold?e({level:r,trace:l,payload:h}):s===o.lengthThreshold&&e({level:"warn",trace:[],payload:[al("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,["rrweb logger error:",e].concat(u))}finally{a=!1}}}})):function(){}}}var ll=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},fl=function(){var e,t,r;if(localStorage.getItem("rlog-deviceId"))return localStorage.getItem("rlog-deviceId");var n=(null===(e=localStorage)||void 0===e?void 0:e.getItem("utoken"))||(null===(t=localStorage)||void 0===t?void 0:t.getItem("IWP-iwp-deivceTag"))||ll();return null===(r=localStorage)||void 0===r||r.setItem("rlog-deviceId",n),n},hl=r(150),pl=r.n(hl),dl="logs",vl=function(){function e(){J()(this,e),pl()(this,"db",null),pl()(this,"isOpening",!1),pl()(this,"openPromise",null),this.openDB().catch(console.error)}var t,r,n,i,a,u,c,l;return H()(e,[{key:"openDB",value:(l=s()(o()().mark((function e(){var t=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return");case 2:if(!this.isOpening||!this.openPromise){e.next=4;break}return e.abrupt("return",this.openPromise);case 4:return this.isOpening=!0,this.openPromise=new Promise((function(e,r){var n=indexedDB.open("LogStorageDB",2);n.onupgradeneeded=function(e){var t=e.target.result;if(t.objectStoreNames.contains(dl)){var r=e.target.transaction;if(r){var n=r.objectStore(dl);n.indexNames.contains("lastModified")||n.createIndex("lastModified","lastModified",{unique:!1})}}else t.createObjectStore(dl,{keyPath:"deviceId"}).createIndex("lastModified","lastModified",{unique:!1})},n.onsuccess=function(r){t.db=r.target.result,t.isOpening=!1,e()},n.onerror=function(e){t.isOpening=!1,r(e.target.error)},n.onblocked=function(){console.warn("IndexedDB is blocked, trying to close existing connections..."),t.isOpening=!1,r(new Error("IndexedDB blocked"))}})),e.abrupt("return",this.openPromise);case 7:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"ensureDB",value:(c=s()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.openDB();case 3:if(this.db){e.next=5;break}throw new Error("Failed to open IndexedDB");case 5:return e.abrupt("return",this.db);case 6:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"withTransaction",value:(u=s()(o()().mark((function e(t,r){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureDB();case 2:return n=e.sent,e.abrupt("return",new Promise((function(e,o){var i,s=n.transaction([dl],t),a=s.objectStore(dl);s.onerror=function(){return o(s.error)},s.oncomplete=function(){setTimeout((function(){return e(i)}),0)},r(a).then((function(e){i=e}),o)})));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"push",value:(a=s()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var i=n.get(t);i.onsuccess=function(){var s=i.result||{deviceId:t,data:[],lastModified:Date.now(),version:1};s.data.push(r),s.lastModified=Date.now(),s.version=(s.version||1)+1,s.data.length>1e4&&s.data.splice(0,s.data.length-1e4);var a=n.put(s);a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}},i.onerror=function(){return o(i.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"unshift",value:(i=s()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var i=n.get(t);i.onsuccess=function(){var s=i.result||{deviceId:t,data:[],lastModified:Date.now(),version:1};s.data.unshift(r),s.lastModified=Date.now(),s.version=(s.version||1)+1,s.data.length>1e4&&s.data.splice(0,s.data.length-1e4);var a=n.put(s);a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}},i.onerror=function(){return o(i.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"unshiftBatch",value:(n=s()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var i=n.get(t);i.onsuccess=function(){var s,a=i.result||{deviceId:t,data:[],lastModified:Date.now(),version:1};(s=a.data).unshift.apply(s,z()(r)),a.lastModified=Date.now(),a.version=(a.version||1)+1,a.data.length>1e4&&a.data.splice(0,a.data.length-1e4);var u=n.put(a);u.onsuccess=function(){return e()},u.onerror=function(){return o(u.error)}},i.onerror=function(){return o(i.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=s()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var i=n.get(t);i.onsuccess=function(){var s=i.result||{deviceId:t,data:[],lastModified:Date.now(),version:1};if(0!==s.data.length){var a=Math.min(r,s.data.length),u=s.data.slice(0,a);if(s.data=s.data.slice(a),s.lastModified=Date.now(),s.version=(s.version||1)+1,s.data.length>0){var c=n.put(s);c.onsuccess=function(){return e(u)},c.onerror=function(){return o(c.error)}}else{var l=n.delete(t);l.onsuccess=function(){return e(u)},l.onerror=function(){return o(l.error)}}}else e([])},i.onerror=function(){return o(i.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=s()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var o=r.delete(t);o.onsuccess=function(){return e()},o.onerror=function(){return n(o.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),gl=function(){function e(){J()(this,e),pl()(this,"storage",new Map),pl()(this,"locks",new Map)}var t,r,n,i,a,u;return H()(e,[{key:"acquireLock",value:(u=s()(o()().mark((function e(t){var r,n,i,s=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t;case 1:if(!this.locks.has(r)){e.next=6;break}return e.next=4,this.locks.get(r);case 4:e.next=1;break;case 6:return i=new Promise((function(e){n=e})),this.locks.set(r,i),e.abrupt("return",(function(){s.locks.delete(r),n()}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"push",value:(a=s()(o()().mark((function e(t,r){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:n=e.sent;try{this.storage.has(t)||this.storage.set(t,[]),(i=this.storage.get(t)).push(r),i.length>1e4&&i.splice(0,i.length-1e4)}finally{n()}case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"unshift",value:(i=s()(o()().mark((function e(t,r){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:n=e.sent;try{this.storage.has(t)||this.storage.set(t,[]),(i=this.storage.get(t)).unshift(r),i.length>1e4&&i.splice(0,i.length-1e4)}finally{n()}case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"unshiftBatch",value:(n=s()(o()().mark((function e(t,r){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:n=e.sent;try{this.storage.has(t)||this.storage.set(t,[]),(i=this.storage.get(t)).unshift.apply(i,z()(r)),i.length>1e4&&i.splice(0,i.length-1e4)}finally{n()}case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=s()(o()().mark((function e(t,r){var n,i,s,a,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:if(n=e.sent,e.prev=3,0!==(i=this.storage.get(t)||[]).length){e.next=7;break}return e.abrupt("return",[]);case 7:return s=Math.min(r,i.length),a=i.slice(0,s),(u=i.slice(s)).length>0?this.storage.set(t,u):this.storage.delete(t),e.abrupt("return",a);case 12:return e.prev=12,n(),e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[3,,12,15]])}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=s()(o()().mark((function e(t){var r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:r=e.sent;try{this.storage.delete(t)}finally{r()}case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getStorageState",value:function(){var e={};return this.storage.forEach((function(t,r){e[r]=t.length})),e}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();pl()(gl,"instance",void 0);var ml=function(){function e(){J()(this,e)}var t,r,n,i,a,u,c;return H()(e,[{key:"acquireLock",value:(c=s()(o()().mark((function t(r){var n,i,s,a,u,c;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n="".concat(e.LOCK_KEY_PREFIX).concat(r),i="".concat(Date.now(),"_").concat(Math.random()),t.prev=2,!(s=localStorage.getItem(n))){t.next=8;break}if(a=s.split("_"),u=Y()(a,1),c=u[0],!(Date.now()-parseInt(c)<e.LOCK_TIMEOUT)){t.next=8;break}return t.abrupt("return",!1);case 8:if(localStorage.setItem(n,i),localStorage.getItem(n)!==i){t.next=12;break}return t.abrupt("return",!0);case 12:return t.abrupt("return",!1);case 15:return t.prev=15,t.t0=t.catch(2),console.warn("Failed to acquire lock:",t.t0),t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,15]])}))),function(e){return c.apply(this,arguments)})},{key:"releaseLock",value:function(t){var r="".concat(e.LOCK_KEY_PREFIX).concat(t);try{localStorage.removeItem(r)}catch(e){console.warn("Failed to release lock:",e)}}},{key:"withLock",value:(u=s()(o()().mark((function t(r,n){var i,s;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=0;case 1:if(!(i<e.MAX_RETRIES)){t.next=18;break}return t.next=4,this.acquireLock(r);case 4:if(!t.sent){t.next=13;break}return t.prev=5,t.next=8,n();case 8:return s=t.sent,t.abrupt("return",s);case 10:return t.prev=10,this.releaseLock(r),t.finish(10);case 13:return i++,t.next=16,new Promise((function(t){return setTimeout(t,e.RETRY_DELAY)}));case 16:t.next=1;break;case 18:throw new Error("Failed to acquire lock after maximum retries");case 19:case"end":return t.stop()}}),t,this,[[5,,10,13]])}))),function(e,t){return u.apply(this,arguments)})},{key:"getStorageKey",value:function(t){return"".concat(e.STORAGE_KEY_PREFIX).concat(t)}},{key:"push",value:(a=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.getStorageKey(t),s=localStorage.getItem(i),(a=s?JSON.parse(s):[]).push(r),a.length>1e4&&a.splice(0,a.length-1e4),localStorage.setItem(i,JSON.stringify(a));case 6:case"end":return e.stop()}}),e)}))));case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.warn("LocalStorage不可用,将使用内存缓存"),e.abrupt("return",gl.getInstance().push(t,r));case 9:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return a.apply(this,arguments)})},{key:"unshift",value:(i=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.getStorageKey(t),s=localStorage.getItem(i),(a=s?JSON.parse(s):[]).unshift(r),a.length>1e4&&a.splice(0,a.length-1e4),localStorage.setItem(i,JSON.stringify(a));case 6:case"end":return e.stop()}}),e)}))));case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.warn("LocalStorage不可用,将使用内存缓存"),e.abrupt("return",gl.getInstance().unshift(t,r));case 9:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return i.apply(this,arguments)})},{key:"unshiftBatch",value:(n=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.getStorageKey(t),s=localStorage.getItem(i),(a=s?JSON.parse(s):[]).unshift.apply(a,z()(r)),a.length>1e4&&a.splice(0,a.length-1e4),localStorage.setItem(i,JSON.stringify(a));case 6:case"end":return e.stop()}}),e)}))));case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.warn("LocalStorage不可用,将使用内存缓存"),e.abrupt("return",gl.getInstance().unshiftBatch(t,r));case 9:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var i,s,a,u,c,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.getStorageKey(t),s=localStorage.getItem(i),0!==(a=s?JSON.parse(s):[]).length){e.next=5;break}return e.abrupt("return",[]);case 5:return u=Math.min(r,a.length),c=a.slice(0,u),(l=a.slice(u)).length>0?localStorage.setItem(i,JSON.stringify(l)):localStorage.removeItem(i),e.abrupt("return",c);case 10:case"end":return e.stop()}}),e)}))));case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",gl.getInstance().pull(t,r));case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=s()(o()().mark((function e(t){var r=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.getStorageKey(t),localStorage.removeItem(n);case 2:case"end":return e.stop()}}),e)}))));case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",gl.getInstance().clear(t));case 8:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e){return t.apply(this,arguments)})}]),e}();pl()(ml,"LOCK_KEY_PREFIX","rlog_lock_"),pl()(ml,"STORAGE_KEY_PREFIX","rlog_data_"),pl()(ml,"LOCK_TIMEOUT",5e3),pl()(ml,"RETRY_DELAY",10),pl()(ml,"MAX_RETRIES",50);var yl=function(){function e(){J()(this,e),pl()(this,"adapter",void 0),pl()(this,"operationQueue",new Map),this.adapter=this.selectAdapter()}var t,r,n,i,a,u,c;return H()(e,[{key:"selectAdapter",value:function(){if("undefined"!=typeof window&&window.indexedDB)try{var e=indexedDB.open("__rlog_test__",1);return e.onerror=function(){throw new Error("IndexedDB blocked")},e.onsuccess=function(){e.result.close(),indexedDB.deleteDatabase("__rlog_test__")},new vl}catch(e){console.warn("IndexedDB不可用,降级使用LocalStorage")}if("undefined"!=typeof window&&window.localStorage)try{var t="__rlog_storage_test__";return window.localStorage.setItem(t,"test"),window.localStorage.removeItem(t),new ml}catch(e){console.warn("LocalStorage不可用,降级使用内存缓存")}return gl.getInstance()}},{key:"serialize",value:(c=s()(o()().mark((function e(t,r){var n,i,s,a=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,i=this.operationQueue.get(n)||Promise.resolve(),s=i.then((function(){return r()})).catch((function(e){throw console.error("Storage operation failed:",e),e})).finally((function(){a.operationQueue.get(n)===s&&a.operationQueue.delete(n)})),this.operationQueue.set(n,s),e.abrupt("return",s);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"push",value:(u=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return n.adapter.push(t,r)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"unshift",value:(a=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return n.adapter.unshift(t,r)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"unshiftBatch",value:(i=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return n.adapter.unshiftBatch(t,r)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"pull",value:(n=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return n.adapter.pull(t,r)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"clear",value:(r=s()(o()().mark((function e(t){var r=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return r.adapter.clear?r.adapter.clear(t):(console.warn("Storage adapter does not support clear operation"),Promise.resolve())})));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getAdapterType",value:function(){return this.adapter instanceof vl?"IndexedDB":this.adapter instanceof ml?"LocalStorage":this.adapter instanceof gl?"Memory":"Unknown"}},{key:"getStorageState",value:(t=s()(o()().mark((function e(t){var r,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.getAdapterType(),e.prev=1,e.next=4,this.pull(t,1e4);case 4:if(!((n=e.sent).length>0)){e.next=8;break}return e.next=8,this.unshiftBatch(t,n);case 8:return e.abrupt("return",{adapterType:r,eventCount:n.length});case 11:return e.prev=11,e.t0=e.catch(1),e.abrupt("return",{adapterType:r,eventCount:-1});case 14:case"end":return e.stop()}}),e,this,[[1,11]])}))),function(e){return t.apply(this,arguments)})}]),e}(),wl=new yl,bl=["https://api.example.com","https://analytics.example.org"],kl={},Cl=["sky_trace_id","antbank-traceid"];function Il(e){try{return e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:""}catch(r){var t=e.match(/^https?:\/\/([^\/]+)/);return t?t[1]:""}}function Sl(e,t){try{if(e.startsWith("http://")||e.startsWith("https://"))return t.some((function(t){return e.startsWith(t)}));var r=Il(window.location.href);return t.some((function(e){var t=Il(e);return r===t}))}catch(e){return!1}}var xl=XMLHttpRequest.prototype.open,Al=XMLHttpRequest.prototype.send,Ol=window.fetch;function El(){xl&&(XMLHttpRequest.prototype.open=xl),Al&&(XMLHttpRequest.prototype.send=Al),Ol&&(window.fetch=Ol),!1,console.log("RLog network monitoring restored")}function Rl(e){if(e&&e.length>0){var t=bl.concat(e),r=Array.from(new Set(t));bl.splice.apply(bl,[0,bl.length].concat(r))}}function Ml(e){Object.assign(kl,e)}function Nl(e){return Tl.apply(this,arguments)}function Tl(){return Tl=s()(o()().mark((function e(t){var r,n=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.abrupt("return",new Promise((function(e,n){var o=r.method,i=void 0===o?"GET":o,s=r.headers,a=void 0===s?{}:s,u=r.body,c=r.timeout,l=void 0===c?1e4:c,f=new XMLHttpRequest;f.timeout=l,f.onreadystatechange=function(){if(4===f.readyState){var t={ok:f.status>=200&&f.status<300,status:f.status,statusText:f.statusText,data:null,json:function(){return Promise.resolve(JSON.parse(f.responseText))},text:function(){return Promise.resolve(f.responseText)}};try{t.data=JSON.parse(f.responseText)}catch(e){t.data=f.responseText}t.ok?e(t):n(new Error("HTTP ".concat(f.status,": ").concat(f.statusText)))}},f.onerror=function(){n(new Error("Network error"))},f.ontimeout=function(){n(new Error("Request timeout"))},f.open(i,t,!0),Object.keys(a).forEach((function(e){f.setRequestHeader(e,a[e])})),u instanceof FormData?f.send(u):"object"===h()(u)?(f.setRequestHeader("Content-Type","application/json"),f.send(JSON.stringify(u))):f.send(u||null)})));case 2:case"end":return e.stop()}}),e)}))),Tl.apply(this,arguments)}function Ll(e){return Pl.apply(this,arguments)}function Pl(){return Pl=s()(o()().mark((function e(t){var r,n=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.abrupt("return",Nl(t,u()(u()({},r),{},{method:"GET"})));case 2:case"end":return e.stop()}}),e)}))),Pl.apply(this,arguments)}function _l(e,t){return Bl.apply(this,arguments)}function Bl(){return Bl=s()(o()().mark((function e(t,r){var n,i=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:{},e.abrupt("return",Nl(t,u()(u()({},n),{},{method:"POST",body:r})));case 2:case"end":return e.stop()}}),e)}))),Bl.apply(this,arguments)}var Fl={enable:!0,samplingRate:15,uploadInterval:2e3,configUpdateInterval:3e5,console:!1,http:!1,consumeOnly:!1,maxRetryCount:3,checkoutEveryNms:2e3,ignoreClass:"rr-ignore",blockClass:"rr-block",maskTextClass:"rr-mask",sampling:{mousemove:50,scroll:100,input:"last"},error:!1},Dl=u()({},Fl);function Ul(e){return jl.apply(this,arguments)}function jl(){return(jl=s()(o()().mark((function e(t){var r,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ll(t);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed to fetch config: ".concat(r.status));case 6:return n=r.data,e.abrupt("return",u()(u()({},Fl),n));case 10:return e.prev=10,e.t0=e.catch(0),console.warn("Failed to fetch config from CDN, using default config:",e.t0),e.abrupt("return",u()({},Fl));case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function Wl(e){Dl=u()(u()({},Dl),e)}function Zl(){return u()({},Dl)}function Gl(){return(Gl=s()(o()().mark((function e(t){var r,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=7;break}return e.next=3,Ul(t);case 3:Wl(r=e.sent),(n=r.configUpdateInterval||Fl.configUpdateInterval)&&setInterval(s()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ul(t);case 3:Wl(e.sent),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.warn("Failed to update config from CDN:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Yl=null,Vl=function(){Yl&&Yl()},zl=function(){var e=Zl();if(e.enable){var t,r,n=fl();Yl=Nt({emit:function(e){var t=console.log.__rrweb_original__?console.log.__rrweb_original__:console.log;e.type!==de.IncrementalSnapshot&&t("event",e),wl.push(n,e)},recordCanvas:!0,sampling:u()({canvas:e.samplingRate},e.sampling||{}),checkoutEveryNms:e.checkoutEveryNms,ignoreClass:e.ignoreClass,blockClass:e.blockClass,maskTextClass:e.maskTextClass,dataURLOptions:{type:"image/webp",quality:.6},collectFonts:!0,recordCrossOriginIframes:!0,plugins:e.console?[(t={stringifyOptions:{numOfKeysLimit:50,depthOfLimit:4},logger:window.console},{name:"rrweb/console@1",observer:cl,options:t})]:[]}),Ml({"rlog-deviceId":n}),Rl(["http://alipay-rmsdeploy-image.cn-hangzhou.alipay.aliyun-inc.com"]),e.http&&(r=Nt,XMLHttpRequest.prototype.open=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return this._rlogRequest={method:e,url:t.toString(),startTime:0,endTime:0},xl.apply(this,[e,t,r,n,o])},XMLHttpRequest.prototype.send=function(e){var t=this,n=this._rlogRequest;return n.startTime=Date.now(),n.method,Object.entries(kl).forEach((function(e){var r=Y()(e,2),n=r[0],o=r[1];t.setRequestHeader(n,o)})),this.addEventListener("load",(function(){var e=this;if(n.endTime=Date.now(),Sl(n.url,bl)){var t={};Cl.forEach((function(r){try{var n=e.getResponseHeader(r);n&&(t[r]=n)}catch(e){console.warn("无法获取响应头 ".concat(r,":"),e)}})),r.addCustomEvent("http-success",u()(u()({},n),{},{dur:n.endTime-n.startTime,responseHeaders:t}))}})),this.addEventListener("error",(function(){r.addCustomEvent("http-error",u()(u()({},n),{},{dur:n.endTime-n.startTime}))})),Al.apply(this,[e])},window.fetch=function(){var e=s()(o()().mark((function e(t,n){var i,s,a,c,l,f,h;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t instanceof Request?t.url:t.toString(),s=(null==n?void 0:n.method)||(t instanceof Request?t.method:"GET").toUpperCase(),a=Date.now(),e.prev=3,(c=u()({},n)).headers=u()(u()({},(null==n?void 0:n.headers)||{}),kl),e.next=8,Ol(t,c);case 8:return l=e.sent,f=Date.now(),Sl(i,bl)&&(console.log("[Fetch] ".concat(s," ").concat(i," - ").concat(f-a,"ms")),h={},Cl.forEach((function(e){try{var t=l.headers.get(e);t&&(h[e]=t)}catch(t){console.warn("无法获取响应头 ".concat(e,":"),t)}})),r.addCustomEvent("http-success",{url:i,method:s,dur:f-a,responseHeaders:h})),e.abrupt("return",l);case 14:throw e.prev=14,e.t0=e.catch(3),console.error("[Fetch Error] ".concat(s," ").concat(i),e.t0),r.addCustomEvent("http-error",{url:i,method:s}),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,r){return e.apply(this,arguments)}}())}else console.log("RLog recording is disabled by config")},Kl=function(){var e=Zl().urlParamsToCache||["taskId"],t=new URLSearchParams(window.location.search);e.forEach((function(e){var r=t.get(e);r&&sessionStorage.setItem("rlog-".concat(e),r)}))},Jl=function(e){return sessionStorage.getItem("rlog-".concat(e))},Xl=function(){var e=s()(o()().mark((function e(t){var r,n,i,s,a,u,c,l,f,p,d;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Kl(),i=t.data&&t.data.length>0?t.data.length-1:-1,s={deviceId:t.deviceId,appId:t.appId,startTime:null===(r=t.data)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.timestamp,endTime:null===(n=t.data)||void 0===n||null===(n=n[i])||void 0===n?void 0:n.timestamp},a=Zl(),(a.urlParamsToCache||["taskId"]).forEach((function(e){var t=Jl(e);t&&(s[e]=t)})),u=new URLSearchParams(s),c="".concat(t.url).concat(u?"?".concat(u):""),(l=new FormData).append("file",new Blob([JSON.stringify(t.data)]),ll()+".json"),e.next=12,_l(c,l);case 12:f=e.sent,e.prev=13,p="string"==typeof f.data?JSON.parse(f.data):f.data,e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(13),e.abrupt("return");case 20:if(!p||"object"!==h()(p)||!1!==p.success){e.next=24;break}throw(d=new Error(p.errorMessage||"Upload failed with success=false")).responseData=p,d;case 24:case"end":return e.stop()}}),e,null,[[13,17]])})));return function(t){return e.apply(this,arguments)}}(),Hl=!1,Ql=new Map,ql=!1;function $l(){Hl=!0,ql=!1}var ef={enable:!1,trackHashChange:!0,trackHistoryChange:!0,trackPageStayTime:!0,ignoreRoutes:[],customMatchers:[]},tf=u()({},ef),rf="",nf=Date.now(),of=!1,sf=null,af=null;function uf(){if("undefined"==typeof window)return"";var e=window.location.pathname+window.location.search+window.location.hash;if(tf.customMatchers){var t,r=l()(tf.customMatchers);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.pattern.test(e))return n.name}}catch(e){r.e(e)}finally{r.f()}}return e}function cf(e,t,r){if(tf.enable&&(n=t,!tf.ignoreRoutes||!tf.ignoreRoutes.some((function(e){return"string"==typeof e?n.includes(e):e instanceof RegExp&&e.test(n)})))){var n,o={type:"route-change",from:e,to:t,method:r,timestamp:Date.now()};tf.trackPageStayTime&&e&&(o.duration=Date.now()-nf),Nt.addCustomEvent("route-change",o),nf=Date.now()}}function lf(){var e=rf,t=uf();e!==t&&cf(e,t,"popstate")}function ff(){var e=rf,t=uf();e!==t&&cf(e,t,"hashchange")}function hf(e){of||"undefined"==typeof window||(tf=u()(u()({},ef),e)).enable&&(rf=uf(),nf=Date.now(),tf.trackHistoryChange&&"undefined"!=typeof window&&(sf=window.history.pushState,af=window.history.replaceState,window.history.pushState=function(){for(var e=uf(),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=sf.apply(this,r),i=uf();return e!==i&&cf(e,i,"pushState"),o},window.history.replaceState=function(){for(var e=uf(),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=af.apply(this,r),i=uf();return e!==i&&cf(e,i,"replaceState"),o},window.addEventListener("popstate",lf)),tf.trackHashChange&&"undefined"!=typeof window&&window.addEventListener("hashchange",ff),of=!0)}function pf(e){tf=u()(u()({},tf),e)}function df(){return{currentRoute:rf,startTime:nf,stayTime:Date.now()-nf}}function vf(e,t){cf(t||rf,e,"pushState")}function gf(){of&&(sf&&af&&"undefined"!=typeof window&&(window.history.pushState=sf,window.history.replaceState=af),"undefined"!=typeof window&&(window.removeEventListener("popstate",lf),window.removeEventListener("hashchange",ff)),of=!1,sf=null,af=null,console.log("Router monitor stopped"))}var mf=[],yf=function(e){if(Zl().error)try{Nt.addCustomEvent("custom-error-event",e)}catch(t){console.log("RLog Error captured:",e)}};function wf(){console.log("Cleaning up RLog error handlers..."),mf.forEach((function(e){var t=e.target,r=e.type,n=e.listener,o=e.options;try{t.removeEventListener(r,n,o)}catch(e){console.warn("Failed to remove event listener for ".concat(r,":"),e)}})),mf.length=0,console.log("RLog error handlers cleaned up successfully")}function bf(e,t,r){Hl=!1,ql=!1,function(e){return Gl.apply(this,arguments)}(r).then((function(){var r=Zl();r.enable?(zl(),function(e,t){var r=function(){var n=s()(o()().mark((function n(){var i,s,a,u,c,l,f,h,p;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Hl){n.next=3;break}return console.log("RLog upload has been cancelled"),n.abrupt("return");case 3:if(!ql){n.next=6;break}return setTimeout((function(){r()}),100),n.abrupt("return");case 6:if((i=Zl()).enable){n.next=10;break}return console.log("RLog is disabled by config, stopping upload"),n.abrupt("return");case 10:return n.prev=10,ql=!0,n.next=14,wl.pull(fl(),100);case 14:if((s=n.sent)&&0!==s.length){n.next=19;break}return ql=!1,setTimeout((function(){r()}),i.uploadInterval),n.abrupt("return");case 19:if(a=Zl(),"true"!==sessionStorage.getItem("RLOG_CONSUME_ONLY")&&!a.consumeOnly){n.next=26;break}console.log("RLog consume only mode, skip upload"),ql=!1,n.next=60;break;case 26:return n.prev=26,n.next=29,Xl({appId:t,data:s,deviceId:fl(),url:e});case 29:u="".concat(t,"_").concat(fl()),Ql.delete(u),ql=!1,n.next=60;break;case 34:if(n.prev=34,n.t0=n.catch(26),console.warn("Upload failed:",n.t0),ql=!1,c=a.maxRetryCount||3,l="".concat(t,"_").concat(fl()),f=Ql.get(l)||0,h=f+1,Ql.set(l,h),!(h>=c)){n.next=57;break}console.warn("Upload failed ".concat(c," times consecutively, stopping upload")),p=new CustomEvent("rlog-upload-failure",{detail:{error:n.t0,retryCount:c,appId:t,deviceId:fl()}}),"undefined"!=typeof window&&window.dispatchEvent(p);try{Nt.addCustomEvent("rlog-upload-failure",{error:n.t0,retryCount:c,appId:t,deviceId:fl(),timestamp:Date.now()})}catch(e){console.warn("Failed to record upload failure event via addCustomEvent:",e)}return Ql.delete(l),$l(),setTimeout((function(){Vl()}),0),console.error("RLog upload and recording stopped due to repeated failures"),n.next=54,wl.unshiftBatch(fl(),s);case 54:return n.abrupt("return");case 57:return console.warn("Upload failed ".concat(h," time(s), will retry in next cycle")),n.next=60,wl.unshiftBatch(fl(),s);case 60:n.next=66;break;case 62:n.prev=62,n.t1=n.catch(10),ql=!1,console.error("Error in upload loop:",n.t1);case 66:setTimeout((function(){r()}),i.uploadInterval);case 67:case"end":return n.stop()}}),n,null,[[10,62],[26,34]])})));return function(){return n.apply(this,arguments)}}();r()}(e,t),r.routerMonitor&&hf(r.routerMonitor),function(){if(Zl().error){console.log("RLog error handling is enabled");var e=function(e){if(e.target!==window){var t={type:"RESOURCE_ERROR",resourceType:e.target.tagName,url:e.target.src||e.target.href||e.target.src,message:e.message,userAgent:navigator.userAgent,timestamp:Date.now(),location:window.location.href};return yf(t),!1}var r=e.message,n=e.filename,o=e.lineno,i=e.colno,s=e.error,a={type:"JS_ERROR",message:r,file:n,line:o,column:i,stack:null==s?void 0:s.stack,userAgent:navigator.userAgent,timestamp:Date.now(),location:window.location.href};return yf(a),!1};window.addEventListener("error",e,!0),mf.push({target:window,type:"error",listener:e,options:!0});var t=function(e){var t=e.reason||"Unknown rejection",r={type:"PROMISE_REJECTION",message:"string"==typeof t?t:t.message,stack:"object"===h()(t)?t.stack:null,timestamp:Date.now(),location:window.location.href};yf(r),e.preventDefault()};window.addEventListener("unhandledrejection",t),mf.push({target:window,type:"unhandledrejection",listener:t});var r=function(){yf({type:"PAGE_LOAD",url:window.location.href,timestamp:Date.now()})};window.addEventListener("load",r),mf.push({target:window,type:"load",listener:r});var n=function(){yf({type:"PAGE_UNLOAD",url:window.location.href,timestamp:Date.now()})};window.addEventListener("beforeunload",n),mf.push({target:window,type:"beforeunload",listener:n});var o=function(){yf({type:"NETWORK_ONLINE",timestamp:Date.now()})};window.addEventListener("online",o),mf.push({target:window,type:"online",listener:o});var i=function(){yf({type:"NETWORK_OFFLINE",timestamp:Date.now()})};window.addEventListener("offline",i),mf.push({target:window,type:"offline",listener:i})}else console.log("RLog error handling is disabled")}()):console.log("RLog is disabled by config")})).catch((function(e){console.error("Failed to initialize RLog:",e)}))}var kf=!1;function Cf(e){return kf=!1,bf(e.serv,e.appId,e.cdnConfigUrl),{cancel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(kf)console.warn("RLog SDK has already been cancelled");else{kf=!0;try{if(Vl(),$l(),"undefined"!=typeof window&&window.XMLHttpRequest&&El(),gf(),wf(),e.clearData){var t=fl();t&&wl.clear(t).catch((function(e){console.error("Error clearing storage:",e)}))}console.log("RLog SDK cancelled successfully")}catch(e){console.error("Error cancelling RLog SDK:",e)}}}}}function If(){Vl()}function Sf(e,t){Nt.addCustomEvent(e,t)}function xf(e){Wl({consumeOnly:e}),console.log("RLog consume only mode ".concat(e?"enabled":"disabled"))}function Af(){return!!Zl().consumeOnly}function Of(){var e=!Zl().consumeOnly;return xf(e),e}var Ef={getStorageAdapterType:function(){return wl.getAdapterType()},getDeviceId:fl,resetUploadState:function(){Hl=!1,ql=!1,Ql.clear()},getStorageState:function(){return s()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=fl(),e.abrupt("return",wl.getStorageState(t));case 2:case"end":return e.stop()}}),e)})))()},clearStorage:function(){return s()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=fl(),e.abrupt("return",wl.clear(t));case 2:case"end":return e.stop()}}),e)})))()}}}(),n}()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Rlog=t():e.Rlog=t()}(self,(function(){return function(){var e={738:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=u(e),s=i[0],a=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=16383,a=0,u=n-o;a<u;a+=s)i.push(c(e,a,a+s>u?u:a+s));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},579:function(e,t,r){"use strict";var n=r(738),o=r(55),i=r(937);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r);e=a(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|p(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):h(e,t);if("Buffer"===t.type&&i(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|p(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(n)return W(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=r;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){f=!1;break}if(f)return i}return-1}function w(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function b(e,t,r,n){return G(W(t,e.length-r),e,r,n)}function k(e,t,r,n){return G(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function C(e,t,r,n){return k(e,t,r,n)}function I(e,t,r,n){return G(Z(t),e,r,n)}function S(e,t,r,n){return G(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}t.lW=u,t.h2=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):v.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.h2;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(n,o),l=e.slice(t,r),f=0;f<a;++f)if(c[f]!==l[f]){i=c[f],s=l[f];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return k(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return I(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function M(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=j(e[i]);return o}function N(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function _(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function B(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,i){return i||B(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,i){return i||B(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):_(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):_(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);L(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);L(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):_(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):_(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=u.isBuffer(e)?e:W(new u(e,n).toString()),a=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},55:function(e,t){t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[r+p]=255&s,p+=d,s/=256,c-=8);e[r+p-d]|=128*v}},937:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},256:function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,u=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(a=u,u=[];++l<t;)a&&a[l].run();l=-1,t=u.length}a=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},933:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},956:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},961:function(e,t,r){var n=r(933);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},619:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},915:function(e){function t(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var s=e.apply(r,n);function a(e){t(s,o,i,a,u,"next",e)}function u(e){t(s,o,i,a,u,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},165:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},264:function(e,t,r){var n=r(913),o=r(665);function i(t,r,s){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return r&&n(i,r.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},534:function(e,t,r){var n=r(36);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},903:function(e,t,r){var n=r(931);e.exports=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}},e.exports.__esModule=!0,e.exports.default=e.exports},153:function(e,t,r){var n=r(894),o=r(665),i=r(441);e.exports=function(e){var t=o();return function(){var r,o=n(e);if(t){var s=n(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return i(this,r)}},e.exports.__esModule=!0,e.exports.default=e.exports},150:function(e,t,r){var n=r(36);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},670:function(e,t,r){var n=r(872);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,r){var o=n(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},894:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},411:function(e,t,r){var n=r(913);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},969:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},665:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},595:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},749:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},17:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},545:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},378:function(e,t,r){var n=r(150);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},955:function(e,t,r){var n=r(768);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},768:function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},441:function(e,t,r){var n=r(775).default,o=r(619);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},177:function(e,t,r){var n=r(775).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),s=new T(n||[]);return a(i,"_invoke",{value:E(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var v="suspendedStart",g="executing",m="completed",y={};function w(){}function b(){}function k(){}var C={};h(C,c,(function(){return this}));var I=Object.getPrototypeOf,S=I&&I(I(L([])));S&&S!==i&&s.call(S,c)&&(C=S);var x=k.prototype=w.prototype=Object.create(C);function A(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,u){var c=d(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&s.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function E(e,r,n){var o=v;return function(i,s){if(o===g)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw s;return{value:t,done:!0}}for(n.method=i,n.arg=s;;){var a=n.delegate;if(a){var u=R(a,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?m:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function R(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,R(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var s=i.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(s.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=k,a(x,"constructor",{value:k,configurable:!0}),a(k,"constructor",{value:b,configurable:!0}),b.displayName=h(k,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,h(e,f,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},A(O.prototype),h(O.prototype,l,(function(){return this})),r.AsyncIterator=O,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var s=new O(p(e,t,n,o),i);return r.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},A(x),h(x,f,"Generator"),h(x,c,(function(){return this})),h(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=L,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=s.call(i,"catchLoc"),c=s.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},913:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},377:function(e,t,r){var n=r(956),o=r(749),i=r(931),s=r(17);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},872:function(e,t,r){var n=r(894);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},958:function(e,t,r){var n=r(961),o=r(595),i=r(931),s=r(545);e.exports=function(e){return n(e)||o(e)||i(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},24:function(e,t,r){var n=r(775).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},36:function(e,t,r){var n=r(775).default,o=r(24);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},775:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},931:function(e,t,r){var n=r(933);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},458:function(e,t,r){var n=r(894),o=r(913),i=r(969),s=r(264);function a(t){var r="function"==typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{addCustomEvent:function(){return Sf},cleanupErrorHandler:function(){return wf},debug:function(){return Ef},getCurrentRouteInfo:function(){return df},init:function(){return Cf},isConsumeOnlyMode:function(){return Af},manualRouteChange:function(){return vf},setConsumeOnlyMode:function(){return xf},setCustomHeaders:function(){return Ml},setWhiteListUrls:function(){return Rl},stop:function(){return If},stopRouterMonitor:function(){return gf},toggleConsumeOnlyMode:function(){return Of},updateRouterConfig:function(){return pf}});var e,t=r(177),o=r.n(t),i=r(915),s=r.n(i),a=r(378),u=r.n(a),c=r(903),l=r.n(c),f=r(775),h=r.n(f);function p(e){return e.nodeType===e.ELEMENT_NODE}function d(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function v(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function g(e){try{var t=e.rules||e.cssRules;return t?((r=Array.from(t).map(m).join("")).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),r):null}catch(e){return null}var r}function m(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=g(e.styleSheet)||t}catch(e){}return t}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e||(e={}));var y=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(e){var t;if(!e)return-1;var r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=r?r:-1},e.prototype.getNode=function(e){return this.idNodeMap.get(e)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(e){return this.nodeMetaMap.get(e)||null},e.prototype.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))},e.prototype.has=function(e){return this.idNodeMap.has(e)},e.prototype.hasNode=function(e){return this.nodeMetaMap.has(e)},e.prototype.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},e.prototype.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function w(e){var t=e.maskInputOptions,r=e.tagName,n=e.type,o=e.value,i=e.maskInputFn,s=o||"";return(t[r.toLowerCase()]||t[n])&&(s=i?i(s):"*".repeat(s.length)),s}var b="__rrweb_original__";var k,C,I=1,S=new RegExp("[^a-z0-9-_:]");function x(){return I++}var A=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,O=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,E=/^(data:)([^,]*),(.*)/i;function R(e,t){return(e||"").replace(A,(function(e,r,n,o,i,s){var a,u=n||i||s,c=r||o||"";if(!u)return e;if(!O.test(u))return"url(".concat(c).concat(u).concat(c,")");if(E.test(u))return"url(".concat(c).concat(u).concat(c,")");if("/"===u[0])return"url(".concat(c).concat((a=t,(a.indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+u)).concat(c,")");var l=t.split("/"),f=u.split("/");l.pop();for(var h=0,p=f;h<p.length;h++){var d=p[h];"."!==d&&(".."===d?l.pop():l.push(d))}return"url(".concat(c).concat(l.join("/")).concat(c,")")}))}var M=/^[^ \t\n\r\u000c]+/,N=/^[, \t\n\r\u000c]+/;function T(e,t){if(!t||""===t.trim())return t;var r=e.createElement("a");return r.href=t,r.href}function L(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function P(){var e=document.createElement("a");return e.href="",e.href}function _(e,t,r,n){return"src"===r||"href"===r&&n&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&n&&"#"!==n[0]?T(e,n):"background"!==r||!n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r&&n?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}for(var o=[];n(N),!(r>=t.length);){var i=n(M);if(","===i.slice(-1))i=T(e,i.substring(0,i.length-1)),o.push(i);else{var s="";i=T(e,i);for(var a=!1;;){var u=t.charAt(r);if(""===u){o.push((i+s).trim());break}if(a)")"===u&&(a=!1);else{if(","===u){r+=1,o.push((i+s).trim());break}"("===u&&(a=!0)}s+=u,r+=1}}}return o.join(", ")}(e,n):"style"===r&&n?R(n,P()):"object"===t&&"data"===r&&n?T(e,n):n:T(e,n)}function B(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&B(e.parentNode,t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&B(e.parentNode,t,r)}function F(e,t,r){var n=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===n)return!1;if("string"==typeof t){if(n.classList.contains(t))return!0;if(n.closest(".".concat(t)))return!0}else if(B(n,t,!0))return!0;if(r){if(n.matches(r))return!0;if(n.closest(r))return!0}return!1}function D(t,r){var n=r.doc,o=r.mirror,i=r.blockClass,s=r.blockSelector,a=r.maskTextClass,u=r.maskTextSelector,c=r.inlineStylesheet,l=r.maskInputOptions,f=void 0===l?{}:l,h=r.maskTextFn,p=r.maskInputFn,d=r.dataURLOptions,v=void 0===d?{}:d,m=r.inlineImages,y=r.recordCanvas,I=r.keepIframeSrcFn,x=r.newlyAddedElement,A=void 0!==x&&x,O=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(n,o);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:O};case t.ELEMENT_NODE:return function(t,r){for(var n=r.doc,o=r.blockClass,i=r.blockSelector,s=r.inlineStylesheet,a=r.maskInputOptions,u=void 0===a?{}:a,c=r.maskInputFn,l=r.dataURLOptions,f=void 0===l?{}:l,h=r.inlineImages,p=r.recordCanvas,d=r.keepIframeSrcFn,v=r.newlyAddedElement,m=void 0!==v&&v,y=r.rootId,I=function(e,t,r){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&e.matches(r)}(t,o,i),x=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return S.test(t)?"div":t}(t),A={},O=t.attributes.length,E=0;E<O;E++){var M=t.attributes[E];A[M.name]=_(n,x,M.name,M.value)}if("link"===x&&s){var N=Array.from(n.styleSheets).find((function(e){return e.href===t.href})),T=null;N&&(T=g(N)),T&&(delete A.rel,delete A.href,A._cssText=R(T,N.href))}if("style"===x&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){(T=g(t.sheet))&&(A._cssText=R(T,P()))}if("input"===x||"textarea"===x||"select"===x){var B=t.value,F=t.checked;"radio"!==A.type&&"checkbox"!==A.type&&"submit"!==A.type&&"button"!==A.type&&B?A.value=w({type:A.type,tagName:x,value:B,maskInputOptions:u,maskInputFn:c}):F&&(A.checked=F)}"option"===x&&(t.selected&&!u.select?A.selected=!0:delete A.selected);if("canvas"===x&&p)if("2d"===t.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var o=t.getImageData,i=b in o?o[b]:o;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(t)||(A.rr_dataURL=t.toDataURL(f.type,f.quality));else if(!("__context"in t)){var D=t.toDataURL(f.type,f.quality),U=document.createElement("canvas");U.width=t.width,U.height=t.height,D!==U.toDataURL(f.type,f.quality)&&(A.rr_dataURL=D)}if("img"===x&&h){k||(k=n.createElement("canvas"),C=k.getContext("2d"));var j=t,W=j.crossOrigin;j.crossOrigin="anonymous";var Z=function(){try{k.width=j.naturalWidth,k.height=j.naturalHeight,C.drawImage(j,0,0),A.rr_dataURL=k.toDataURL(f.type,f.quality)}catch(e){console.warn("Cannot inline img src=".concat(j.currentSrc,"! Error: ").concat(e))}W?A.crossOrigin=W:j.removeAttribute("crossorigin")};j.complete&&0!==j.naturalWidth?Z():j.onload=Z}"audio"!==x&&"video"!==x||(A.rr_mediaState=t.paused?"paused":"played",A.rr_mediaCurrentTime=t.currentTime);m||(t.scrollLeft&&(A.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(A.rr_scrollTop=t.scrollTop));if(I){var G=t.getBoundingClientRect(),Y=G.width,V=G.height;A={class:A.class,rr_width:"".concat(Y,"px"),rr_height:"".concat(V,"px")}}"iframe"!==x||d(A.src)||(t.contentDocument||(A.rr_src=A.src),delete A.src);return{type:e.Element,tagName:x,attributes:A,childNodes:[],isSVG:L(t)||void 0,needBlock:I,rootId:y}}(t,{doc:n,blockClass:i,blockSelector:s,inlineStylesheet:c,maskInputOptions:f,maskInputFn:p,dataURLOptions:v,inlineImages:m,recordCanvas:y,keepIframeSrcFn:I,newlyAddedElement:A,rootId:O});case t.TEXT_NODE:return function(t,r){var n,o=r.maskTextClass,i=r.maskTextSelector,s=r.maskTextFn,a=r.rootId,u=t.parentNode&&t.parentNode.tagName,c=t.textContent,l="STYLE"===u||void 0,f="SCRIPT"===u||void 0;if(l&&c){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(c=(h=t.parentNode.sheet).cssRules?Array.from(h.cssRules).map((function(e){return e.cssText||""})).join(""):"")}catch(e){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(e),t)}c=R(c,P())}var h;f&&(c="SCRIPT_PLACEHOLDER");!l&&!f&&c&&F(t,o,i)&&(c=s?s(c):c.replace(/[\S]/g,"*"));return{type:e.Text,textContent:c||"",isStyle:l,rootId:a}}(t,{maskTextClass:a,maskTextSelector:u,maskTextFn:h,rootId:O});case t.CDATA_SECTION_NODE:return{type:e.CDATA,textContent:"",rootId:O};case t.COMMENT_NODE:return{type:e.Comment,textContent:t.textContent||"",rootId:O};default:return!1}}function U(e){return void 0===e?"":e.toLowerCase()}function j(t,r){var n,o=r.doc,i=r.mirror,s=r.blockClass,a=r.blockSelector,u=r.maskTextClass,c=r.maskTextSelector,l=r.skipChild,f=void 0!==l&&l,h=r.inlineStylesheet,g=void 0===h||h,m=r.maskInputOptions,y=void 0===m?{}:m,w=r.maskTextFn,b=r.maskInputFn,k=r.slimDOMOptions,C=r.dataURLOptions,I=void 0===C?{}:C,S=r.inlineImages,A=void 0!==S&&S,O=r.recordCanvas,E=void 0!==O&&O,R=r.onSerialize,M=r.onIframeLoad,N=r.iframeLoadTimeout,T=void 0===N?5e3:N,L=r.onStylesheetLoad,P=r.stylesheetLoadTimeout,_=void 0===P?5e3:P,B=r.keepIframeSrcFn,F=void 0===B?function(){return!1}:B,W=r.newlyAddedElement,Z=void 0!==W&&W,G=r.preserveWhiteSpace,Y=void 0===G||G,V=D(t,{doc:o,mirror:i,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:c,inlineStylesheet:g,maskInputOptions:y,maskTextFn:w,maskInputFn:b,dataURLOptions:I,inlineImages:A,recordCanvas:E,keepIframeSrcFn:F,newlyAddedElement:Z});if(!V)return console.warn(t,"not serialized"),null;n=i.hasNode(t)?i.getId(t):!function(t,r){if(r.comment&&t.type===e.Comment)return!0;if(t.type===e.Element){if(r.script&&("script"===t.tagName||"link"===t.tagName&&"preload"===t.attributes.rel&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(r.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(U(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===U(t.attributes.name)||"icon"===U(t.attributes.rel)||"apple-touch-icon"===U(t.attributes.rel)||"shortcut icon"===U(t.attributes.rel))))return!0;if("meta"===t.tagName){if(r.headMetaDescKeywords&&U(t.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(U(t.attributes.property).match(/^(og|twitter|fb):/)||U(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===U(t.attributes.name)))return!0;if(r.headMetaRobots&&("robots"===U(t.attributes.name)||"googlebot"===U(t.attributes.name)||"bingbot"===U(t.attributes.name)))return!0;if(r.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(r.headMetaAuthorship&&("author"===U(t.attributes.name)||"generator"===U(t.attributes.name)||"framework"===U(t.attributes.name)||"publisher"===U(t.attributes.name)||"progid"===U(t.attributes.name)||U(t.attributes.property).match(/^article:/)||U(t.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&("google-site-verification"===U(t.attributes.name)||"yandex-verification"===U(t.attributes.name)||"csrf-token"===U(t.attributes.name)||"p:domain_verify"===U(t.attributes.name)||"verify-v1"===U(t.attributes.name)||"verification"===U(t.attributes.name)||"shopify-checkout-api-token"===U(t.attributes.name)))return!0}}return!1}(V,k)&&(Y||V.type!==e.Text||V.isStyle||V.textContent.replace(/^\s+|\s+$/gm,"").length)?x():-2;var z=Object.assign(V,{id:n});if(i.add(t,z),-2===n)return null;R&&R(t);var K=!f;if(z.type===e.Element){K=K&&!z.needBlock,delete z.needBlock;var J=t.shadowRoot;J&&v(J)&&(z.isShadowHost=!0)}if((z.type===e.Document||z.type===e.Element)&&K){k.headWhitespace&&z.type===e.Element&&"head"===z.tagName&&(Y=!1);for(var X={doc:o,mirror:i,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:c,skipChild:f,inlineStylesheet:g,maskInputOptions:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:k,dataURLOptions:I,inlineImages:A,recordCanvas:E,preserveWhiteSpace:Y,onSerialize:R,onIframeLoad:M,iframeLoadTimeout:T,onStylesheetLoad:L,stylesheetLoadTimeout:_,keepIframeSrcFn:F},H=0,Q=Array.from(t.childNodes);H<Q.length;H++){(ee=j(Q[H],X))&&z.childNodes.push(ee)}if(p(t)&&t.shadowRoot)for(var q=0,$=Array.from(t.shadowRoot.childNodes);q<$.length;q++){var ee;(ee=j($[q],X))&&(v(t.shadowRoot)&&(ee.isShadow=!0),z.childNodes.push(ee))}}return t.parentNode&&d(t.parentNode)&&v(t.parentNode)&&(z.isShadow=!0),z.type===e.Element&&"iframe"===z.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"===o){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout((function(){i||(t(),i=!0)}),r);e.addEventListener("load",(function(){clearTimeout(a),i=!0,t()}))}}}(t,(function(){var e=t.contentDocument;if(e&&M){var r=j(e,{doc:e,mirror:i,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:k,dataURLOptions:I,inlineImages:A,recordCanvas:E,preserveWhiteSpace:Y,onSerialize:R,onIframeLoad:M,iframeLoadTimeout:T,onStylesheetLoad:L,stylesheetLoadTimeout:_,keepIframeSrcFn:F});r&&M(t,r)}}),T),z.type===e.Element&&"link"===z.tagName&&"stylesheet"===z.attributes.rel&&function(e,t,r){var n,o=!1;try{n=e.sheet}catch(e){return}if(!n){var i=setTimeout((function(){o||(t(),o=!0)}),r);e.addEventListener("load",(function(){clearTimeout(i),o=!0,t()}))}}(t,(function(){if(L){var e=j(t,{doc:o,mirror:i,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:k,dataURLOptions:I,inlineImages:A,recordCanvas:E,preserveWhiteSpace:Y,onSerialize:R,onIframeLoad:M,iframeLoadTimeout:T,onStylesheetLoad:L,stylesheetLoadTimeout:_,keepIframeSrcFn:F});e&&L(t,e)}}),_),z}function W(e,t){var r=t||{},n=r.mirror,o=void 0===n?new y:n,i=r.blockClass,s=void 0===i?"rr-block":i,a=r.blockSelector,u=void 0===a?null:a,c=r.maskTextClass,l=void 0===c?"rr-mask":c,f=r.maskTextSelector,h=void 0===f?null:f,p=r.inlineStylesheet,d=void 0===p||p,v=r.inlineImages,g=void 0!==v&&v,m=r.recordCanvas,w=void 0!==m&&m,b=r.maskAllInputs,k=void 0!==b&&b,C=r.maskTextFn,I=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,A=r.dataURLOptions,O=r.preserveWhiteSpace,E=r.onSerialize,R=r.onIframeLoad,M=r.iframeLoadTimeout,N=r.onStylesheetLoad,T=r.stylesheetLoadTimeout,L=r.keepIframeSrcFn;return j(e,{doc:e,mirror:o,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===k?{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}:!1===k?{password:!0}:k,maskTextFn:C,maskInputFn:I,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:A,inlineImages:g,recordCanvas:w,preserveWhiteSpace:O,onSerialize:E,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:N,stylesheetLoadTimeout:T,keepIframeSrcFn:void 0===L?function(){return!1}:L,newlyAddedElement:!1})}var Z=/([^\\]):hover/;new RegExp(Z.source,"g");var G=r(377),Y=r.n(G),V=r(958),z=r.n(V),K=r(165),J=r.n(K),X=r(534),H=r.n(X);function Q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var q="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.",$={map:{},getId:function(){return console.error(q),-1},getNode:function(){return console.error(q),null},removeNodeFromMap:function(){console.error(q)},has:function(){return console.error(q),!1},reset:function(){console.error(q)}};function ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();o||!1!==r.leading||(o=u);var c=t-(u-o),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout((function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)}),c))}}function te(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return te(e,t,i||{},!0)}}function re(e,t,r){try{if(!(t in e))return function(){};var n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,function(){e[t]=n}}catch(e){return function(){}}}function ne(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ie(e,t,r,n){if(!e)return!1;var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!o)return!1;if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(B(o,t,n))return!0;if(r){if(e.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1}function se(e,t){return-2===t.getId(e)}function ae(e,t){if(d(e))return!1;var r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ae(e.parentNode,t))}function ue(e){return Boolean(e.changedTouches)}function ce(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r[0];if(!(0 in r))throw new TypeError("1 argument is required");do{if(e===o)return!0}while(o=o&&o.parentNode);return!1})}function le(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function fe(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function he(e){return Boolean(null==e?void 0:e.shadowRoot)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&($=new Proxy($,{get:function(e,t,r){return"map"===t&&console.error(q),Reflect.get(e,t,r)}}));var pe=function(){function e(){K(this,e),this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}return X(e,[{key:"getId",value:function(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}(),de=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(de||{}),ve=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e}(ve||{}),ge=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(ge||{}),me=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(me||{});function ye(e){return"__ln"in e}var we=function(){function e(){K(this,e),this.length=0,this.head=null}return X(e,[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}},{key:"addNode",value:function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ye(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&ye(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}]),e}(),be=function(e,t){return"".concat(e,"@").concat(t)},ke=function(){function e(){var t=this;K(this,e),this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(e){e.forEach(t.processMutation),t.emit()},this.emit=function(){if(!t.frozen&&!t.locked){for(var e=[],r=new we,n=function(e){for(var r=e,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&t.mirror.getId(r);return n},o=function(o){var i,s,a,u,c=null;(null===(s=null===(i=o.getRootNode)||void 0===i?void 0:i.call(o))||void 0===s?void 0:s.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&o.getRootNode().host&&(c=o.getRootNode().host);for(var l=c;(null===(u=null===(a=null==l?void 0:l.getRootNode)||void 0===a?void 0:a.call(l))||void 0===u?void 0:u.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&l.getRootNode().host;)l=l.getRootNode().host;var f=!(t.doc.contains(o)||l&&t.doc.contains(l));if(o.parentNode&&!f){var h=d(o.parentNode)?t.mirror.getId(c):t.mirror.getId(o.parentNode),p=n(o);if(-1===h||-1===p)return r.addNode(o);var v=j(o,{doc:t.doc,mirror:t.mirror,blockClass:t.blockClass,blockSelector:t.blockSelector,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,dataURLOptions:t.dataURLOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(e){le(e,t.mirror)&&t.iframeManager.addIframe(e),fe(e,t.mirror)&&t.stylesheetManager.trackLinkElement(e),he(o)&&t.shadowDomManager.addShadowRoot(o.shadowRoot,t.doc)},onIframeLoad:function(e,r){t.iframeManager.attachIframe(e,r),t.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,r){t.stylesheetManager.attachLinkElement(e,r)}});v&&e.push({parentId:h,nextId:p,node:v})}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());for(var i=0,s=Array.from(t.movedSet.values());i<s.length;i++){var a=s[i];Ie(t.removes,a,t.mirror)&&!t.movedSet.has(a.parentNode)||o(a)}for(var u=0,c=Array.from(t.addedSet.values());u<c.length;u++){var l=c[u];xe(t.droppedSet,l)||Ie(t.removes,l,t.mirror)?xe(t.movedSet,l)?o(l):t.droppedSet.add(l):o(l)}for(var f=null;r.length;){var h=null;if(f){var p=t.mirror.getId(f.value.parentNode),v=n(f.value);-1!==p&&-1!==v&&(h=f)}if(!h)for(var g=r.length-1;g>=0;g--){var m=r.get(g);if(m){var y=t.mirror.getId(m.value.parentNode);if(-1===n(m.value))continue;if(-1!==y){h=m;break}var w=m.value;if(w.parentNode&&w.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var b=w.parentNode.host;if(-1!==t.mirror.getId(b)){h=m;break}}}}if(!h){for(;r.head;)r.removeNode(r.head.value);break}f=h.previous,r.removeNode(h.value),o(h.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!se(e.target,t.mirror))switch(e.type){case"characterData":var r=e.target.textContent;ie(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue||t.texts.push({value:F(e.target,t.maskTextClass,t.maskTextSelector)&&r?t.maskTextFn?t.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:e.target});break;case"attributes":var n=e.target,o=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(o=w({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:o,maskInputFn:t.maskInputFn})),ie(e.target,t.blockClass,t.blockSelector,!1)||o===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===n.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(o)){if(n.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var s=t.doc.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue),void 0!==i.attributes.style&&null!==i.attributes.style||(i.attributes.style={});for(var a=i.attributes.style,u=0,c=Array.from(n.style);u<c.length;u++){var l=c[u],f=n.style.getPropertyValue(l),h=n.style.getPropertyPriority(l);f===s.style.getPropertyValue(l)&&h===s.style.getPropertyPriority(l)||(a[l]=""===h?f:[f,h])}for(var p=0,g=Array.from(s.style);p<g.length;p++){var m=g[p];""===n.style.getPropertyValue(m)&&(a[m]=!1)}}else i.attributes[e.attributeName]=_(t.doc,n.tagName,e.attributeName,o);break;case"childList":if(ie(e.target,t.blockClass,t.blockSelector,!0))return;e.addedNodes.forEach((function(r){return t.genAdds(r,e.target)})),e.removedNodes.forEach((function(r){var n=t.mirror.getId(r),o=d(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);ie(e.target,t.blockClass,t.blockSelector,!1)||se(r,t.mirror)||!function(e,t){return-1!==t.getId(e)}(r,t.mirror)||(t.addedSet.has(r)?(Ce(t.addedSet,r),t.droppedSet.add(r)):t.addedSet.has(e.target)&&-1===n||ae(e.target,t.mirror)||(t.movedSet.has(r)&&t.movedMap[be(n,o)]?Ce(t.movedSet,r):t.removes.push({parentId:o,id:n,isShadow:!(!d(e.target)||!v(e.target))||void 0})),t.mapRemoves.push(r))}))}},this.genAdds=function(e,r){if(t.mirror.hasNode(e)){if(se(e,t.mirror))return;t.movedSet.add(e);var n=null;r&&t.mirror.hasNode(r)&&(n=t.mirror.getId(r)),n&&-1!==n&&(t.movedMap[be(t.mirror.getId(e),n)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);ie(e,t.blockClass,t.blockSelector,!1)||e.childNodes.forEach((function(e){return t.genAdds(e)}))}}return X(e,[{key:"init",value: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"].forEach((function(r){t[r]=e[r]}))}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]),e}();function Ce(e,t){e.delete(t),t.childNodes.forEach((function(t){return Ce(e,t)}))}function Ie(e,t,r){return 0!==e.length&&Se(e,t,r)}function Se(e,t,r){var n=t.parentNode;if(!n)return!1;var o=r.getId(n);return!!e.some((function(e){return e.id===o}))||Se(e,n,r)}function xe(e,t){return 0!==e.size&&Ae(e,t)}function Ae(e,t){var r=t.parentNode;return!!r&&(!!e.has(r)||Ae(e,r))}var Oe=[],Ee="undefined"!=typeof CSSGroupingRule,Re="undefined"!=typeof CSSMediaRule,Me="undefined"!=typeof CSSSupportsRule,Ne="undefined"!=typeof CSSConditionRule;function Te(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function Le(e,t){var r,n,o=new ke;Oe.push(o),o.init(e);var i=window.MutationObserver||window.__rrMutationObserver,s=null===(n=null===(r=null===window||void 0===window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");s&&window[s]&&(i=window[s]);var a=new i(o.processMutations.bind(o));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Pe(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,o=e.mirror;if(!1===r.mousemove)return function(){};var i,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,u=[],c=ee((function(e){var r=Date.now()-i;t(u.map((function(e){return e.timeOffset-=r,e})),e),u=[],i=null}),a),l=ee((function(e){var t=Te(e),r=ue(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;i||(i=Date.now()),u.push({x:n,y:s,id:o.getId(t),timeOffset:Date.now()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?ve.Drag:e instanceof MouseEvent?ve.MouseMove:ve.TouchMove)}),s,{trailing:!1}),f=[Q("mousemove",l,n),Q("touchmove",l,n),Q("drag",l,n)];return function(){f.forEach((function(e){return e()}))}}function _e(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[];return Object.keys(ge).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(e){var s=e.toLowerCase(),a=function(e){return function(r){var s=Te(r);if(!ie(s,o,i,!0)){var a=ue(r)?r.changedTouches[0]:r;if(a){var u=n.getId(s),c=a.clientX,l=a.clientY;t({type:ge[e],id:u,x:c,y:l})}}}}(e);u.push(Q(s,a,r))})),function(){u.forEach((function(e){return e()}))}}function Be(e){var t=e.scrollCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector;return Q("scroll",ee((function(e){var s=Te(e);if(s&&!ie(s,o,i,!0)){var a=n.getId(s);if(s===r){var u=r.scrollingElement||r.documentElement;t({id:a,x:u.scrollLeft,y:u.scrollTop})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),e.sampling.scroll||100),r)}function Fe(e){var t=e.viewportResizeCb,r=-1,n=-1;return Q("resize",ee((function(){var e=ne(),o=oe();r===e&&n===o||(t({width:Number(o),height:Number(e)}),r=e,n=o)}),200),window)}function De(e,t){var r=Object.assign({},e);return t||delete r.userTriggered,r}var Ue=["INPUT","TEXTAREA","SELECT"],je=new WeakMap;function We(e){var t=e.inputCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.ignoreClass,a=e.maskInputOptions,u=e.maskInputFn,c=e.sampling,l=e.userTriggeredOnInput;function f(e){var t=Te(e),n=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(Ue.indexOf(t.tagName)<0)&&!ie(t,o,i,!0)){var c=t.type;if(!t.classList.contains(s)){var f=t.value,p=!1;"radio"===c||"checkbox"===c?p=t.checked:(a[t.tagName.toLowerCase()]||a[c])&&(f=w({maskInputOptions:a,tagName:t.tagName,type:c,value:f,maskInputFn:u})),h(t,De({text:f,isChecked:p,userTriggered:n},l));var d=t.name;"radio"===c&&d&&p&&r.querySelectorAll('input[type="radio"][name="'.concat(d,'"]')).forEach((function(e){e!==t&&h(e,De({text:e.value,isChecked:!p,userTriggered:!1},l))}))}}}function h(e,r){var o=je.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){je.set(e,r);var i=n.getId(e);t(Object.assign(Object.assign({},r),{id:i}))}}var p=("last"===c.input?["change"]:["input","change"]).map((function(e){return Q(e,f,r)})),d=r.defaultView;if(!d)return function(){p.forEach((function(e){return e()}))};var v=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),g=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&p.push.apply(p,V(g.map((function(e){return te(e[0],e[1],{set:function(){f({target:this})}},!1,d)})))),function(){p.forEach((function(e){return e()}))}}function Ze(e){return function(e,t){if(Ee&&e.parentRule instanceof CSSGroupingRule||Re&&e.parentRule instanceof CSSMediaRule||Me&&e.parentRule instanceof CSSSupportsRule||Ne&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Ge(e,t,r){var n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function Ye(e,t){var r=e.styleSheetRuleCb,n=e.mirror,o=e.stylesheetManager,i=t.win,s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=Ge(this,n,o.styleMirror),a=i.id,u=i.styleId;return(a&&-1!==a||u&&-1!==u)&&r({id:a,styleId:u,adds:[{rule:e,index:t}]}),s.apply(this,[e,t])};var a,u,c=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=Ge(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,removes:[{index:e}]}),c.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(a=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=Ge(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,replace:e}),a.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=Ge(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,replaceSync:e}),u.apply(this,[e])});var l={};Ee?l.CSSGroupingRule=i.CSSGroupingRule:(Re&&(l.CSSMediaRule=i.CSSMediaRule),Ne&&(l.CSSConditionRule=i.CSSConditionRule),Me&&(l.CSSSupportsRule=i.CSSSupportsRule));var f={};return Object.entries(l).forEach((function(e){var t=G(e,2),i=t[0],s=t[1];f[i]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=function(e,t){var s=Ge(this.parentStyleSheet,n,o.styleMirror),a=s.id,u=s.styleId;return(a&&-1!==a||u&&-1!==u)&&r({id:a,styleId:u,adds:[{rule:e,index:[].concat(V(Ze(this)),[t||0])}]}),f[i].insertRule.apply(this,[e,t])},s.prototype.deleteRule=function(e){var t=Ge(this.parentStyleSheet,n,o.styleMirror),s=t.id,a=t.styleId;return(s&&-1!==s||a&&-1!==a)&&r({id:s,styleId:a,removes:[{index:[].concat(V(Ze(this)),[e])}]}),f[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=c,a&&(i.CSSStyleSheet.prototype.replace=a),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach((function(e){var t=G(e,2),r=t[0],n=t[1];n.prototype.insertRule=f[r].insertRule,n.prototype.deleteRule=f[r].deleteRule}))}}function Ve(e,t){var r,n,o,i=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?i.getId(t):i.getId(t.host);var u="#document"===t.nodeName?null===(r=t.defaultView)||void 0===r?void 0:r.Document:null===(o=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===o?void 0:o.ShadowRoot,c=Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets");return null!==a&&-1!==a&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set:function(e){var t,r=null===(t=c.set)||void 0===t?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}):function(){}}function ze(e,t){var r=e.styleDeclarationCb,n=e.mirror,o=e.ignoreCSSAttributes,i=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=function(e,t,s){var u;if(o.has(e))return a.apply(this,[e,t,s]);var c=Ge(null===(u=this.parentRule)||void 0===u?void 0:u.parentStyleSheet,n,i.styleMirror),l=c.id,f=c.styleId;return(l&&-1!==l||f&&-1!==f)&&r({id:l,styleId:f,set:{property:e,value:t,priority:s},index:Ze(this.parentRule)}),a.apply(this,[e,t,s])};var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(o.has(e))return u.apply(this,[e]);var s=Ge(null===(t=this.parentRule)||void 0===t?void 0:t.parentStyleSheet,n,i.styleMirror),a=s.id,c=s.styleId;return(a&&-1!==a||c&&-1!==c)&&r({id:a,styleId:c,remove:{property:e},index:Ze(this.parentRule)}),u.apply(this,[e])},function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u}}function Ke(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,o=e.mirror,i=e.sampling,s=function(e){return ee((function(i){var s=Te(i);if(s&&!ie(s,r,n,!0)){var a=s.currentTime,u=s.volume,c=s.muted,l=s.playbackRate;t({type:e,id:o.getId(s),currentTime:a,volume:u,muted:c,playbackRate:l})}}),i.media||500)},a=[Q("play",s(0)),Q("pause",s(1)),Q("seeked",s(2)),Q("volumechange",s(3)),Q("ratechange",s(4))];return function(){a.forEach((function(e){return e()}))}}function Je(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var o=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=re(r.fonts,"add",(function(e){return function(r){return setTimeout((function(){var e=i.get(r);e&&(t(e),i.delete(r))}),0),e.apply(this,[r])}}));return o.push((function(){n.FontFace=s})),o.push(a),function(){o.forEach((function(e){return e()}))}}function Xe(e){var t=e.doc,r=e.mirror,n=e.blockClass,o=e.blockSelector,i=e.selectionCb,s=!0,a=function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],u=e.rangeCount||0,c=0;c<u;c++){var l=e.getRangeAt(c),f=l.startContainer,h=l.startOffset,p=l.endContainer,d=l.endOffset;ie(f,n,o,!0)||ie(p,n,o,!0)||a.push({start:r.getId(f),startOffset:h,end:r.getId(p),endOffset:d})}i({ranges:a})}};return a(),Q("selectionchange",a)}function He(e,t){var r=e.mutationCb,n=e.mousemoveCb,o=e.mouseInteractionCb,i=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,h=e.fontCb,p=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),r.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),n.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),o.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),s.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),a.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),u.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),c.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),l.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),f.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),h.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),p.apply(void 0,arguments)}}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.doc.defaultView;if(!r)return function(){};He(e,t);var n,o=Le(e,e.doc),i=Pe(e),s=_e(e),a=Be(e),u=Fe(e),l=We(e),f=Ke(e),h=Ye(e,{win:r}),p=Ve(e,e.doc),d=ze(e,{win:r}),v=e.collectFonts?Je(e):function(){},g=Xe(e),m=[],y=c(e.plugins);try{for(y.s();!(n=y.n()).done;){var w=n.value;m.push(w.observer(w.callback,r,w.options))}}catch(e){y.e(e)}finally{y.f()}return function(){Oe.forEach((function(e){return e.reset()})),o.disconnect(),i(),s(),a(),u(),l(),f(),h(),p(),d(),v(),g(),m.forEach((function(e){return e()}))}}var qe=function(){function e(t){K(this,e),this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}return X(e,[{key:"getId",value:function(e,t,r,n){var o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}},{key:"getIds",value:function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getId(e,t,n,o)}))}},{key:"getRemoteId",value:function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var o=n.get(t);return o||-1}},{key:"getRemoteIds",value:function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getRemoteId(e,t,n)}))}},{key:"reset",value:function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),e}(),$e=function(){function e(t){K(this,e),this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new qe(x),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new qe(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}return X(e,[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var r,n=this;switch(t.type){case de.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:de.IncrementalSnapshot,data:{source:ve.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case de.Meta:case de.Load:case de.DomContentLoaded:return!1;case de.Plugin:return t;case de.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case de.IncrementalSnapshot:switch(t.data.source){case ve.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case ve.Drag:case ve.TouchMove:case ve.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case ve.ViewportResize:return!1;case ve.MediaInteraction:case ve.MouseInteraction:case ve.Scroll:case ve.CanvasMutation:case ve.Input:return this.replaceIds(t.data,e,["id"]),t;case ve.StyleSheetRule:case ve.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ve.Font:return t;case ve.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case ve.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach((function(t){n.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,r,n){var o,i=c(n);try{for(i.s();!(o=i.n()).done;){var s=o.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}},{key:"replaceStyleIds",value:function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}},{key:"replaceIdOnNode",value:function(e,t){var r=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){r.replaceIdOnNode(e,t)}))}}]),e}(),et=function(){function e(t){K(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var r=this;this.restorePatches.push(re(Element.prototype,"attachShadow",(function(e){return function(t){var n=e.call(this,t);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}return X(e,[{key:"addShadowRoot",value:function(e,t){var r=this;v(e)&&(this.shadowDoms.has(e)||(this.shadowDoms.add(e),Le(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),Be(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(e.host)),Ve({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e)}),0)))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(re(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(r){return function(n){var o=r.call(this,n);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),o}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}();function tt(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}for(var rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ot=0;ot<rt.length;ot++)nt[rt.charCodeAt(ot)]=ot;var it=new Map;var st=function(e,t,r){if(e&&(ct(e,t)||"object"===f(e))){var n=function(e,t){var r=it.get(e);return r||(r=new Map,it.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),o=n.indexOf(e);return-1===o&&(o=n.length,n.push(e)),o}};function at(e,t,r){if(e instanceof Array)return e.map((function(e){return at(e,t,r)}));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){var n=e.constructor.name,o=function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=rt[r[t]>>2],o+=rt[(3&r[t])<<4|r[t+1]>>4],o+=rt[(15&r[t+1])<<2|r[t+2]>>6],o+=rt[63&r[t+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:n,base64:o}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[at(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[at(e.data,t,r),e.width,e.height]}:ct(e,t)||"object"===f(e)?{rr_type:e.constructor.name,index:st(e,t,r)}:e}var ut=function(e,t,r){return V(e).map((function(e){return at(e,t,r)}))},ct=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return e instanceof t[r]})))};function lt(e,t,r){var n=[];try{var o=re(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(n){ie(this,t,r,!0)||"__context"in this||(this.__context=n);for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return e.apply(this,[n].concat(i))}}));n.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach((function(e){return e()}))}}function ft(e,t,r,n,o,i,s){var a,u=[],l=Object.getOwnPropertyNames(e),f=c(l);try{var h=function(){var i=a.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))return 0;try{if("function"!=typeof e[i])return 0;var c=re(e,i,(function(e){return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l=e.apply(this,u);if(st(l,s,this),!ie(this.canvas,n,o,!0)){var f=ut([].concat(u),s,this),h={type:t,property:i,args:f};r(this.canvas,h)}return l}}));u.push(c)}catch(n){var l=te(e,i,{set:function(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}});u.push(l)}};for(f.s();!(a=f.n()).done;)h()}catch(e){f.e(e)}finally{f.f()}return u}var ht=null;try{var pt="undefined"!=typeof module&&"function"==typeof module.require&&module.require("worker_threads")||"function"==typeof require&&require("worker_threads")||"function"==typeof require&&require("worker_threads");ht=pt.Worker}catch(e){}var dt=r(579).lW;function vt(e,t,r){var n=void 0===t?null:t,o=function(e,t){return dt.from(e,"base64").toString(t?"utf16":"utf8")}(e,void 0!==r&&r),i=o.indexOf("\n",10)+1,s=o.substring(i)+(n?"//# sourceMappingURL="+n:"");return function(e){return new ht(s,Object.assign({},e,{eval:!0}))}}function gt(e,t,r){var n=void 0===t?null:t,o=function(e,t){var r=atob(e);if(t){for(var n=new Uint8Array(r.length),o=0,i=r.length;o<i;++o)n[o]=r.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}(e,void 0!==r&&r),i=o.indexOf("\n",10)+1,s=o.substring(i)+(n?"//# sourceMappingURL="+n:""),a=new Blob([s],{type:"application/javascript"});return URL.createObjectURL(a)}var mt=r(256),yt="[object process]"===Object.prototype.toString.call(void 0!==mt?mt:0);var wt,bt,kt,Ct,It,St,xt=(wt="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1INCiAgICBPVEhFUiBUT1JUSU9VUyBBQ1RJT04sIEFSSVNJTkcgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgVVNFIE9SDQogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4NCiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqLw0KDQogICAgZnVuY3Rpb24gX19hd2FpdGVyKHRoaXNBcmcsIF9hcmd1bWVudHMsIFAsIGdlbmVyYXRvcikgew0KICAgICAgICBmdW5jdGlvbiBhZG9wdCh2YWx1ZSkgeyByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBQID8gdmFsdWUgOiBuZXcgUChmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXNvbHZlKHZhbHVlKTsgfSk7IH0NCiAgICAgICAgcmV0dXJuIG5ldyAoUCB8fCAoUCA9IFByb21pc2UpKShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgICAgICAgICBmdW5jdGlvbiBmdWxmaWxsZWQodmFsdWUpIHsgdHJ5IHsgc3RlcChnZW5lcmF0b3IubmV4dCh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiByZWplY3RlZCh2YWx1ZSkgeyB0cnkgeyBzdGVwKGdlbmVyYXRvclsidGhyb3ciXSh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiBzdGVwKHJlc3VsdCkgeyByZXN1bHQuZG9uZSA/IHJlc29sdmUocmVzdWx0LnZhbHVlKSA6IGFkb3B0KHJlc3VsdC52YWx1ZSkudGhlbihmdWxmaWxsZWQsIHJlamVjdGVkKTsgfQ0KICAgICAgICAgICAgc3RlcCgoZ2VuZXJhdG9yID0gZ2VuZXJhdG9yLmFwcGx5KHRoaXNBcmcsIF9hcmd1bWVudHMgfHwgW10pKS5uZXh0KCkpOw0KICAgICAgICB9KTsNCiAgICB9CgogICAgLyoKICAgICAqIGJhc2U2NC1hcnJheWJ1ZmZlciAxLjAuMSA8aHR0cHM6Ly9naXRodWIuY29tL25pa2xhc3ZoL2Jhc2U2NC1hcnJheWJ1ZmZlcj4KICAgICAqIENvcHlyaWdodCAoYykgMjAyMSBOaWtsYXMgdm9uIEhlcnR6ZW4gPGh0dHBzOi8vaGVydHplbi5jb20+CiAgICAgKiBSZWxlYXNlZCB1bmRlciBNSVQgTGljZW5zZQogICAgICovCiAgICB2YXIgY2hhcnMgPSAnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyc7CiAgICAvLyBVc2UgYSBsb29rdXAgdGFibGUgdG8gZmluZCB0aGUgaW5kZXguCiAgICB2YXIgbG9va3VwID0gdHlwZW9mIFVpbnQ4QXJyYXkgPT09ICd1bmRlZmluZWQnID8gW10gOiBuZXcgVWludDhBcnJheSgyNTYpOwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGFycy5sZW5ndGg7IGkrKykgewogICAgICAgIGxvb2t1cFtjaGFycy5jaGFyQ29kZUF0KGkpXSA9IGk7CiAgICB9CiAgICB2YXIgZW5jb2RlID0gZnVuY3Rpb24gKGFycmF5YnVmZmVyKSB7CiAgICAgICAgdmFyIGJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYXJyYXlidWZmZXIpLCBpLCBsZW4gPSBieXRlcy5sZW5ndGgsIGJhc2U2NCA9ICcnOwogICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkgKz0gMykgewogICAgICAgICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaV0gPj4gMl07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1soKGJ5dGVzW2ldICYgMykgPDwgNCkgfCAoYnl0ZXNbaSArIDFdID4+IDQpXTsKICAgICAgICAgICAgYmFzZTY0ICs9IGNoYXJzWygoYnl0ZXNbaSArIDFdICYgMTUpIDw8IDIpIHwgKGJ5dGVzW2kgKyAyXSA+PiA2KV07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1tieXRlc1tpICsgMl0gJiA2M107CiAgICAgICAgfQogICAgICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgJz0nOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgJz09JzsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGJhc2U2NDsKICAgIH07CgogICAgY29uc3QgbGFzdEJsb2JNYXAgPSBuZXcgTWFwKCk7DQogICAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gbmV3IE1hcCgpOw0KICAgIGZ1bmN0aW9uIGdldFRyYW5zcGFyZW50QmxvYkZvcih3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucykgew0KICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zKTsNCiAgICAgICAgICAgICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCcyZCcpOw0KICAgICAgICAgICAgICAgIGN0eC5kcmF3SW1hZ2UoYml0bWFwLCAwLCAwKTsNCiAgICAgICAgICAgICAgICBiaXRtYXAuY2xvc2UoKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IHR5cGUgPSBibG9iLnR5cGU7DQogICAgICAgICAgICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSB5aWVsZCBibG9iLmFycmF5QnVmZmVyKCk7DQogICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RCbG9iTWFwLmhhcyhpZCkgJiYgKHlpZWxkIHRyYW5zcGFyZW50QmFzZTY0KSA9PT0gYmFzZTY0KSB7DQogICAgICAgICAgICAgICAgICAgIGxhc3RCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",bt=null,kt=!1,yt?vt(wt,bt,kt):function(e,t,r){var n;return function(o){return n=n||gt(e,t,r),new Worker(n,o)}}(wt,bt,kt)),At=function(){function e(t){var r=this;K(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId)&&r.rafStamps.invokeId||(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(e)||r.pendingCanvasMutations.set(e,[]),r.pendingCanvasMutations.get(e).push(t)};var n=t.sampling,o=void 0===n?"all":n,i=t.win,s=t.blockClass,a=t.blockSelector,u=t.recordCanvas,c=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&"all"===o&&this.initCanvasMutationObserver(i,s,a),u&&"number"==typeof o&&this.initCanvasFPSObserver(o,i,s,a,{dataURLOptions:c})}return X(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,r,n,o,i){var s=this,a=lt(r,n,o),u=new Map,c=new xt;c.onmessage=function(e){var t=e.data.id;if(u.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,o=r.type,i=r.width,a=r.height;s.mutationCb({id:t,type:me["2D"],commands:[{property:"clearRect",args:[0,0,i,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:o}]},0,0]}]})}};var l,f=1e3/e,h=0;l=requestAnimationFrame((function e(a){var p;h&&a-h<f?l=requestAnimationFrame(e):(h=a,(p=[],r.document.querySelectorAll("canvas").forEach((function(e){ie(e,n,o,!0)||p.push(e)})),p).forEach((function(e){return tt(s,void 0,void 0,t().mark((function r(){var n,o,s,a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.mirror.getId(e),!u.get(o)){t.next=3;break}return t.abrupt("return");case 3:return u.set(o,!0),["webgl","webgl2"].includes(e.__context)&&(s=e.getContext(e.__context),!1===(null===(n=null==s?void 0:s.getContextAttributes())||void 0===n?void 0:n.preserveDrawingBuffer)&&(null==s||s.clear(s.COLOR_BUFFER_BIT))),t.next=7,createImageBitmap(e);case 7:a=t.sent,c.postMessage({id:o,bitmap:a,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[a]);case 9:case"end":return t.stop()}}),r,this)})))})),l=requestAnimationFrame(e))})),this.resetObservers=function(){a(),cancelAnimationFrame(l)}}},{key:"initCanvasMutationObserver",value:function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=lt(e,t,r),o=function(e,t,r,n){var o,i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=c(s);try{var u=function(){var s=o.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return 1;var a=re(t.CanvasRenderingContext2D.prototype,s,(function(o){return function(){for(var i=this,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return ie(this.canvas,r,n,!0)||setTimeout((function(){var r=ut([].concat(u),t,i);e(i.canvas,{type:me["2D"],property:s,args:r})}),0),o.apply(this,u)}}));i.push(a)}catch(r){var u=te(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:me["2D"],property:s,args:[t],setter:!0})}});i.push(u)}};for(a.s();!(o=a.n()).done;)u()}catch(e){a.e(e)}finally{a.f()}return function(){i.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n,o){var i=[];return i.push.apply(i,V(ft(t.WebGLRenderingContext.prototype,me.WebGL,e,r,n,0,t))),void 0!==t.WebGL2RenderingContext&&i.push.apply(i,V(ft(t.WebGL2RenderingContext.prototype,me.WebGL2,e,r,n,0,t))),function(){i.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=function(){n(),o(),i()}}},{key:"startPendingCanvasMutationFlusher",value:function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))}},{key:"startRAFTimestamping",value:function(){var e=this;requestAnimationFrame((function t(r){e.rafStamps.latestId=r,requestAnimationFrame(t)}))}},{key:"flushPendingCanvasMutations",value:function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))}},{key:"flushPendingCanvasMutationFor",value:function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((function(e){var t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),o=r[0].type;this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}}}]),e}(),Ot=function(){function e(t){K(this,e),this.trackedLinkElements=new WeakSet,this.styleMirror=new pe,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}return X(e,[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){if(0!==e.length){var r,n={id:t,styleIds:[]},o=[],i=c(e);try{for(i.s();!(r=i.n()).done;){var s=r.value,a=void 0;if(this.styleMirror.has(s))a=this.styleMirror.getId(s);else{a=this.styleMirror.add(s);var u=Array.from(s.rules||CSSRule);o.push({styleId:a,rules:u.map((function(e,t){return{rule:m(e),index:t}}))})}n.styleIds.push(a)}}catch(e){i.e(e)}finally{i.f()}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}();function Et(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}var Rt=!1,Mt=new y;function Nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,o=e.blockClass,i=void 0===o?"rr-block":o,s=e.blockSelector,a=void 0===s?null:s,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,f=e.maskTextClass,h=void 0===f?"rr-mask":f,p=e.maskTextSelector,d=void 0===p?null:p,v=e.inlineStylesheet,g=void 0===v||v,m=e.maskAllInputs,y=e.maskInputOptions,w=e.slimDOMOptions,b=e.maskInputFn,k=e.maskTextFn,C=e.hooks,I=e.packFn,S=e.sampling,x=void 0===S?{}:S,A=e.dataURLOptions,O=void 0===A?{}:A,E=e.mousemoveWait,R=e.recordCanvas,M=void 0!==R&&R,N=e.recordCrossOriginIframes,T=void 0!==N&&N,L=e.userTriggeredOnInput,P=void 0!==L&&L,_=e.collectFonts,B=void 0!==_&&_,F=e.inlineImages,D=void 0!==F&&F,U=e.plugins,j=e.keepIframeSrcFn,Z=void 0===j?function(){return!1}:j,G=e.ignoreCSSAttributes,Y=void 0===G?new Set([]):G,V=!T||window.parent===window,z=!1;if(!V)try{window.parent.document,z=!1}catch(e){z=!0}if(V&&!t)throw new Error("emit function is required");void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),Mt.reset();var K,J=!0===m?{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}:void 0!==y?y:{password:!0},X=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};ce();var H=0,q=function(e){var t,r=c(U||[]);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}}catch(e){r.e(e)}finally{r.f()}return I&&(e=I(e)),e};Ct=function(e,o){var i;if(!(null===(i=Oe[0])||void 0===i?void 0:i.isFrozen())||e.type===de.FullSnapshot||e.type===de.IncrementalSnapshot&&e.data.source===ve.Mutation||Oe.forEach((function(e){return e.unfreeze()})),V)null==t||t(q(e),o);else if(z){var s={type:"rrweb",event:q(e),isCheckout:o};window.parent.postMessage(s,"*")}if(e.type===de.FullSnapshot)K=e,H=0;else if(e.type===de.IncrementalSnapshot){if(e.data.source===ve.Mutation&&e.data.isAttachIframe)return;H++;var a=n&&H>=n,u=r&&e.timestamp-K.timestamp>r;(a||u)&&It(!0)}};var $,ee=function(e){Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Mutation},e)}))},te=function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Scroll},e)}))},re=function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.CanvasMutation},e)}))},ie=function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.AdoptedStyleSheet},e)}))},se=new Ot({mutationCb:ee,adoptedStyleSheetCb:ie}),ae=new $e({mirror:Mt,mutationCb:ee,stylesheetManager:se,recordCrossOriginIframes:T,wrappedEmit:Ct}),ue=c(U||[]);try{for(ue.s();!($=ue.n()).done;){var pe=$.value;pe.getMirror&&pe.getMirror({nodeMirror:Mt,crossOriginIframeMirror:ae.crossOriginIframeMirror,crossOriginIframeStyleMirror:ae.crossOriginIframeStyleMirror})}}catch(e){ue.e(e)}finally{ue.f()}St=new At({recordCanvas:M,mutationCb:re,win:window,blockClass:i,blockSelector:a,mirror:Mt,sampling:x.canvas,dataURLOptions:O});var ge=new et({mutationCb:ee,scrollCb:te,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:h,maskTextSelector:d,inlineStylesheet:g,maskInputOptions:J,dataURLOptions:O,maskTextFn:k,maskInputFn:b,recordCanvas:M,inlineImages:D,sampling:x,slimDOMOptions:X,iframeManager:ae,stylesheetManager:se,canvasManager:St,keepIframeSrcFn:Z},mirror:Mt});It=function(){var e,t,r,n,o,s,u=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ct(Et({type:de.Meta,data:{href:window.location.href,width:oe(),height:ne()}}),u),se.reset(),Oe.forEach((function(e){return e.lock()}));var c=W(document,{mirror:Mt,blockClass:i,blockSelector:a,maskTextClass:h,maskTextSelector:d,inlineStylesheet:g,maskAllInputs:J,maskTextFn:k,slimDOM:X,dataURLOptions:O,recordCanvas:M,inlineImages:D,onSerialize:function(e){le(e,Mt)&&ae.addIframe(e),fe(e,Mt)&&se.trackLinkElement(e),he(e)&&ge.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ae.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){se.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!c)return console.warn("Failed to snapshot the document");Ct(Et({type:de.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(t=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.scrollLeft)||(null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(s=null===document||void 0===document?void 0:document.body)||void 0===s?void 0:s.scrollTop)||0}}})),Oe.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&se.adoptStyleSheets(document.adoptedStyleSheets,Mt.getId(document))};try{var me=[];me.push(Q("DOMContentLoaded",(function(){Ct(Et({type:de.DomContentLoaded,data:{}}))})));var ye=function(e){var t;return Qe({mutationCb:ee,mousemoveCb:function(e,t){return Ct(Et({type:de.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.MouseInteraction},e)}))},scrollCb:te,viewportResizeCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.ViewportResize},e)}))},inputCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Input},e)}))},mediaInteractionCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.StyleDeclaration},e)}))},canvasMutationCb:re,fontCb:function(e){return Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Font},e)}))},selectionCb:function(e){Ct(Et({type:de.IncrementalSnapshot,data:Object.assign({source:ve.Selection},e)}))},blockClass:i,ignoreClass:l,maskTextClass:h,maskTextSelector:d,maskInputOptions:J,inlineStylesheet:g,sampling:x,recordCanvas:M,inlineImages:D,userTriggeredOnInput:P,collectFonts:B,doc:e,maskInputFn:b,maskTextFn:k,keepIframeSrcFn:Z,blockSelector:a,slimDOMOptions:X,dataURLOptions:O,mirror:Mt,iframeManager:ae,stylesheetManager:se,shadowDomManager:ge,canvasManager:St,ignoreCSSAttributes:Y,plugins:(null===(t=null==U?void 0:U.filter((function(e){return e.observer})))||void 0===t?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return Ct(Et({type:de.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ae.addLoadListener((function(e){me.push(ye(e.contentDocument))}));var we=function(){It(),me.push(ye(document)),Rt=!0};return"interactive"===document.readyState||"complete"===document.readyState?we():me.push(Q("load",(function(){Ct(Et({type:de.Load,data:{}})),we()}),window)),function(){me.forEach((function(e){return e()})),Rt=!1}}catch(e){console.warn(e)}}Nt.addCustomEvent=function(e,t){if(!Rt)throw new Error("please add custom event after start recording");Ct(Et({type:de.Custom,data:{tag:e,payload:t}}))},Nt.freezePage=function(){Oe.forEach((function(e){return e.freeze()}))},Nt.takeFullSnapshot=function(e){if(!Rt)throw new Error("please take full snapshot after start recording");It(e)},Nt.mirror=Mt;var Tt,Lt=r(955),Pt=r(670),_t=r(894),Bt=r(619),Ft=r(411),Dt=r(153),Ut=r(458),jt=r(579).lW,Wt=["inputs"],Zt=["inputId"],Gt=["inputs"],Yt=["inputId"],Vt=Object.defineProperty,zt=function(e,t,r){return function(e,t,r){return t in e?Vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==f(t)?t+"":t,r)},Kt=Object.defineProperty,Jt=function(e,t,r){return function(e,t,r){return t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==f(t)?t+"":t,r)},Xt=Object.defineProperty,Ht=function(e,t,r){return function(e,t,r){return t in e?Xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==f(t)?t+"":t,r)},Qt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},qt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},$t={};function er(e){if($t[e])return $t[e];var t=globalThis[e],r=t.prototype,n=e in Qt?Qt[e]:void 0,o=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),i=e in qt?qt[e]:void 0,s=Boolean(i&&i.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(o&&s&&!globalThis.Zone)return $t[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?$t[e]=c:r}catch(e){return r}}var tr={};function rr(e,t,r){var n,o="".concat(e,".").concat(String(r));if(tr[o])return tr[o].call(t);var i=er(e),s=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return s?(tr[o]=s,s.call(t)):t[r]}var nr={};function or(e,t,r){var n="".concat(e,".").concat(String(r));if(nr[n])return nr[n].bind(t);var o=er(e)[r];return"function"!=typeof o?t[r]:(nr[n]=o,o.bind(t))}var ir={childNodes:function(e){return rr("Node",e,"childNodes")},parentNode:function(e){return rr("Node",e,"parentNode")},parentElement:function(e){return rr("Node",e,"parentElement")},textContent:function(e){return rr("Node",e,"textContent")},contains:function(e,t){return or("Node",e,"contains")(t)},getRootNode:function(e){return or("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?rr("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?rr("Element",e,"shadowRoot"):null},querySelector:function(e,t){return rr("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return rr("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return er("MutationObserver").constructor}};var sr=function(){function e(){K(this,e),Ht(this,"idNodeMap",new Map),Ht(this,"nodeMetaMap",new WeakMap)}return X(e,[{key:"getId",value:function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]),e}();function ar(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ar(ir.parentNode(e),t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&ar(ir.parentNode(e),t,r)}function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var lr={exports:{}},fr=String,hr=function(){return{isColorSupported:!1,reset:fr,bold:fr,dim:fr,italic:fr,underline:fr,inverse:fr,hidden:fr,strikethrough:fr,black:fr,red:fr,green:fr,yellow:fr,blue:fr,magenta:fr,cyan:fr,white:fr,gray:fr,bgBlack:fr,bgRed:fr,bgGreen:fr,bgYellow:fr,bgBlue:fr,bgMagenta:fr,bgCyan:fr,bgWhite:fr}};lr.exports=hr(),lr.exports.createColors=hr;var pr=lr.exports,dr=cr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),vr=pr,gr=dr,mr=function(e){Ft(r,e);var t=Dt(r);function r(e,n,o,i,s,a){var u;return K(this,r),(u=t.call(this,e)).name="CssSyntaxError",u.reason=e,s&&(u.file=s),i&&(u.source=i),a&&(u.plugin=a),void 0!==n&&void 0!==o&&("number"==typeof n?(u.line=n,u.column=o):(u.line=n.line,u.column=n.column,u.endLine=o.line,u.endColumn=o.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(Bt(u),r),u}return X(r,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=vr.isColorSupported),gr&&e&&(r=gr(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),u=String(a).length;if(e){var c=vr.createColors(!0),l=c.bold,f=c.gray,h=c.red;n=function(e){return l(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(s,a).map((function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e})).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}]),r}(Ut(Error)),yr=mr;mr.default=mr;var wr={};wr.isClean=Symbol("isClean"),wr.my=Symbol("my");var br={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var kr=function(){function e(t){K(this,e),this.builder=t}return X(e,[{key:"atrule",value:function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}}},{key:"beforeAfter",value:function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)r+=i}return r}},{key:"block",value:function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var o=e.nodes[n],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==n||r)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}},{key:"decl",value:function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return br[r];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](i,e):i.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=br[r]),i.rawCache[r]=n,n}},{key:"rawBeforeClose",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawBeforeComment",value:function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeDecl",value:function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}},{key:"rawBeforeRule",value:function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawColon",value:function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}},{key:"rawIndent",value:function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}})),t);var t}},{key:"rawSemicolon",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}},{key:"rawValue",value:function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),e}(),Cr=kr;kr.default=kr;var Ir=Cr;function Sr(e,t){new Ir(t).stringify(e)}var xr=Sr;Sr.default=Sr;var Ar=wr.isClean,Or=wr.my,Er=yr,Rr=Cr,Mr=xr;function Nr(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],i=f(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((function(e){return Nr(e,r)})):("object"===i&&null!==o&&(o=Nr(o)),r[n]=o)}return r}var Tr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in K(this,e),this.raws={},this[Ar]=!1,this[Or]=!0,t)if("nodes"===r){this.nodes=[];var n,o=c(t[r]);try{for(o.s();!(n=o.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(e){o.e(e)}finally{o.f()}}else this[r]=t[r]}return X(e,[{key:"addToError",value: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 /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))}return e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this[t]=e[t];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Nr(this);for(var r in e)t[r]=e[r];return t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new Er(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}},{key:"markDirty",value:function(){if(this[Ar]){this[Ar]=!1;for(var e=this;e=e.parent;)e[Ar]=!1}}},{key:"next",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}},{key:"positionBy",value:function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}},{key:"positionInside",value:function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===r[i]?(n=1,o+=1):n+=1;return{column:n,line:o}}},{key:"prev",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}},{key:"rangeBy",value:function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),o=n.indexOf(e.word);-1!==o&&(t=this.positionInside(o,n),r=this.positionInside(o+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}},{key:"raw",value:function(e,t){return(new Rr).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i=0,s=n;i<s.length;i++){var a=s[i];a===this?t=!0:t?(this.parent.insertAfter(e,a),e=a):this.parent.insertBefore(e,a)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var r={},n=null==t;t=t||new Map;var o=0;for(var i in this)if(Object.prototype.hasOwnProperty.call(this,i)&&"parent"!==i&&"proxyCache"!==i){var s=this[i];if(Array.isArray(s))r[i]=s.map((function(e){return"object"===f(e)&&e.toJSON?e.toJSON(null,t):e}));else if("object"===f(s)&&s.toJSON)r[i]=s.toJSON(null,t);else if("source"===i){var a=t.get(s.input);null==a&&(a=o,t.set(s.input,o),o++),r[i]={end:s.end,inputId:a,start:s.start}}else r[i]=s}return n&&(r.inputs=V(t.keys()).map((function(e){return e.toJSON()}))),r}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t}},{key:"warn",value:function(e,t,r){var n={node:this};for(var o in r)n[o]=r[o];return e.warn(t,n)}},{key:"proxyOf",get:function(){return this}}]),e}(),Lr=Tr;Tr.default=Tr;var Pr=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=a(a({},e),{},{value:String(e.value)})),(n=t.call(this,e)).type="decl",n}return X(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),r}(Lr),_r=Pr;Pr.default=Pr;var Br="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Fr=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",r=e;r--;)t+=Br[64*Math.random()|0];return t},Dr=dr.SourceMapConsumer,Ur=dr.SourceMapGenerator,jr=dr.existsSync,Wr=dr.readFileSync,Zr=dr.dirname,Gr=dr.join;var Yr=function(){function e(t,r){if(K(this,e),!1!==r.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Zr(this.mapFile)),o&&(this.text=o)}}return X(e,[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new Dr(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),jt?jt.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===f(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}},{key:"loadFile",value:function(e){if(this.root=Zr(e),jr(e))return this.mapFile=e,Wr(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Dr)return Ur.fromSourceMap(t).toString();if(t instanceof Ur)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=Gr(Zr(e),o)),this.loadFile(o)}}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}]),e}(),Vr=Yr;Yr.default=Yr;var zr=dr.SourceMapConsumer,Kr=dr.SourceMapGenerator,Jr=dr.fileURLToPath,Xr=dr.pathToFileURL,Hr=dr.isAbsolute,Qr=dr.resolve,qr=Fr,$r=dr,en=yr,tn=Vr,rn=Symbol("fromOffsetCache"),nn=Boolean(zr&&Kr),on=Boolean(Qr&&Hr),sn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(this,e),null==t||"object"===f(t)&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!on||/^\w+:\/\//.test(r.from)||Hr(r.from)?this.file=r.from:this.file=Qr(r.from)),on&&nn){var n=new tn(this.css,r);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+qr(6)+">"),this.map&&(this.map.file=this.from)}return X(e,[{key:"error",value:function(e,t,r){var n,o,i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===f(t)){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,i=l.col}else o=u.line,i=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,i);return(n=p?new en(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,s.plugin):new en(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,s.plugin)).input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(Xr&&(n.input.url=Xr(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[rn])t=this[rn];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o<i;o++)t[o]=n,n+=r[o].length+1;this[rn]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:Qr(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=Hr(a.source)?Xr(a.source):new URL(a.source,this.map.consumer().sourceRoot||Xr(this.map.mapFile));var u={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Jr)throw new Error("file: protocol is not available in this PostCSS build");u.file=Jr(i)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u}},{key:"toJSON",value:function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=a({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}]),e}(),an=sn;sn.default=sn,$r&&$r.registerInput&&$r.registerInput(sn);var un=dr.SourceMapConsumer,cn=dr.SourceMapGenerator,ln=dr.dirname,fn=dr.relative,hn=dr.resolve,pn=dr.sep,dn=dr.pathToFileURL,vn=an,gn=Boolean(un&&cn),mn=Boolean(ln&&hn&&fn&&pn),yn=function(){function e(t,r,n,o){K(this,e),this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}return X(e,[{key:"addAnnotation",value:function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=c(this.previous());try{for(t.s();!(e=t.n()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),o=r.root||ln(r.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new un(r.text)).sourcesContent&&(i.sourcesContent=null):i=r.consumer(),this.map.applySourceMap(i,n,this.toUrl(this.path(o)))}}catch(e){t.e(e)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){if(this.clearAnnotation(),mn&&gn&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]}},{key:"generateMap",value:function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=cn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new cn({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]}},{key:"generateString",value:function(){var e=this;this.css="",this.map=new cn({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===l.last&&!l.raws.semicolon||(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}}))}},{key:"isAnnotation",value:function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))}},{key:"isInline",value:function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))}},{key:"isMap",value:function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}},{key:"isSourcesContent",value:function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ln(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ln(hn(r,this.mapOpts.annotation)));var n=fn(r,e);return this.memoizedPaths.set(e,n),n}},{key:"previous",value:function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new vn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}},{key:"setSourcesContent",value:function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}},{key:"sourcePath",value: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))}},{key:"toBase64",value:function(e){return jt?jt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(dn){var r=dn(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===pn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}]),e}(),wn=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="comment",n}return X(r)}(Lr),bn=wn;wn.default=wn;var kn,Cn,In,Sn,xn=wr.isClean,An=wr.my,On=_r,En=bn;function Rn(e){return e.map((function(e){return e.nodes&&(e.nodes=Rn(e.nodes)),delete e.source,e}))}function Mn(e){if(e[xn]=!1,e.proxyOf.nodes){var t,r=c(e.proxyOf.nodes);try{for(r.s();!(t=r.n()).done;){Mn(t.value)}}catch(e){r.e(e)}finally{r.f()}}}var Nn=function(e){Ft(r,e);var t=Dt(r);function r(){return K(this,r),t.apply(this,arguments)}return X(r,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=0,o=t;n<o.length;n++){var i,s=o[n],a=this.normalize(s,this.last),u=c(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;this.proxyOf.nodes.push(l)}}catch(e){u.e(e)}finally{u.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Pt(_t(r.prototype),"cleanRaws",this).call(this,e),this.nodes){var t,n=c(this.nodes);try{for(n.s();!(t=n.n()).done;){t.value.cleanRaws(e)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e[t].apply(e,V(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.apply(void 0,[e.toProxy()].concat(n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);var o,i,s=c(n);try{for(s.s();!(o=s.n()).done;){var a=o.value;this.proxyOf.nodes.splice(r+1,0,a)}}catch(e){s.e(e)}finally{s.f()}for(var u in this.indexes)r<(i=this.indexes[u])&&(this.indexes[u]=i+n.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var r=this.index(e),n=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);var i,s,a=c(o);try{for(a.s();!(i=a.n()).done;){var u=i.value;this.proxyOf.nodes.splice(r,0,u)}}catch(e){a.e(e)}finally{a.f()}for(var l in this.indexes)r<=(s=this.indexes[l])&&(this.indexes[l]=s+o.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=Rn(kn(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);var o,i=c(e);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}catch(e){i.e(e)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);var a,u=c(e);try{for(u.s();!(a=u.n()).done;){var l=a.value;l.parent&&l.parent.removeChild(l,"ignore")}}catch(e){u.e(e)}finally{u.f()}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new On(e)]}else if(e.selector)e=[new Cn(e)];else if(e.name)e=[new In(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new En(e)]}var f=e.map((function(e){return e[An]||r.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[xn]&&Mn(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return f}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();var n,o=c(t);try{for(o.s();!(n=o.n()).done;){var i,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=c(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;this.proxyOf.nodes.unshift(l)}}catch(e){u.e(e)}finally{u.f()}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+a.length}}catch(e){o.e(e)}finally{o.f()}return this.markDirty(),this}},{key:"push",value:function(e){return e.parent=this,this.proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=c(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;){e.value.parent=void 0}}catch(e){t.e(e)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}},{key:"walkAtRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))}},{key:"walkComments",value:function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))}},{key:"walkDecls",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))}},{key:"walkRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))}},{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]}}]),r}(Lr);Nn.registerParse=function(e){kn=e},Nn.registerRule=function(e){Cn=e},Nn.registerAtRule=function(e){In=e},Nn.registerRoot=function(e){Sn=e};var Tn=Nn;Nn.default=Nn,Nn.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,In.prototype):"rule"===e.type?Object.setPrototypeOf(e,Cn.prototype):"decl"===e.type?Object.setPrototypeOf(e,On.prototype):"comment"===e.type?Object.setPrototypeOf(e,En.prototype):"root"===e.type&&Object.setPrototypeOf(e,Sn.prototype),e[An]=!0,e.nodes&&e.nodes.forEach((function(e){Nn.rebuild(e)}))};var Ln,Pn,_n=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,a({type:"document"},e))).nodes||(n.nodes=[]),n}return X(r,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ln(new Pn,this,e);return t.stringify()}}]),r}(Tn);_n.registerLazyResult=function(e){Ln=e},_n.registerProcessor=function(e){Pn=e};var Bn=_n;_n.default=_n;var Fn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var o in r)this[o]=r[o]}return X(e,[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),e}(),Dn=Fn;Fn.default=Fn;var Un=Dn,jn=function(){function e(t,r,n){K(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}return X(e,[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Un(e,t);return this.messages.push(r),r}},{key:"warnings",value:function(){return this.messages.filter((function(e){return"warning"===e.type}))}},{key:"content",get:function(){return this.css}}]),e}(),Wn=jn;jn.default=jn;var Zn="'".charCodeAt(0),Gn='"'.charCodeAt(0),Yn="\\".charCodeAt(0),Vn="/".charCodeAt(0),zn="\n".charCodeAt(0),Kn=" ".charCodeAt(0),Jn="\f".charCodeAt(0),Xn="\t".charCodeAt(0),Hn="\r".charCodeAt(0),Qn="[".charCodeAt(0),qn="]".charCodeAt(0),$n="(".charCodeAt(0),eo=")".charCodeAt(0),to="{".charCodeAt(0),ro="}".charCodeAt(0),no=";".charCodeAt(0),oo="*".charCodeAt(0),io=":".charCodeAt(0),so="@".charCodeAt(0),ao=/[\t\n\f\r "#'()/;[\\\]{}]/g,uo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,co=/.[\r\n"'(/\\]/,lo=/[\da-f]/i,fo=Tn,ho=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="atrule",n}return X(r,[{key:"append",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Pt(_t(r.prototype),"append",this)).call.apply(e,[this].concat(n))}},{key:"prepend",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Pt(_t(r.prototype),"prepend",this)).call.apply(e,[this].concat(n))}}]),r}(fo),po=ho;ho.default=ho,fo.registerAtRule(ho);var vo,go,mo=Tn,yo=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="root",n.nodes||(n.nodes=[]),n}return X(r,[{key:"normalize",value:function(e,t,n){var o=Pt(_t(r.prototype),"normalize",this).call(this,e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var i,s=c(o);try{for(s.s();!(i=s.n()).done;){i.value.raws.before=t.raws.before}}catch(e){s.e(e)}finally{s.f()}}return o}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),Pt(_t(r.prototype),"removeChild",this).call(this,e)}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new vo(new go,this,e);return t.stringify()}}]),r}(mo);yo.registerLazyResult=function(e){vo=e},yo.registerProcessor=function(e){go=e};var wo=yo;yo.default=yo,mo.registerRoot(yo);var bo={comma:function(e){return bo.split(e,[","],!0)},space:function(e){return bo.split(e,[" ","\n","\t"])},split:function(e,t,r){var n,o=[],i="",s=!1,a=0,u=!1,l="",f=!1,h=c(e);try{for(h.s();!(n=h.n()).done;){var p=n.value;f?f=!1:"\\"===p?f=!0:u?p===l&&(u=!1):'"'===p||"'"===p?(u=!0,l=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=p}}catch(e){h.e(e)}finally{h.f()}return(r||""!==i)&&o.push(i.trim()),o}},ko=bo;bo.default=bo;var Co=Tn,Io=ko,So=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="rule",n.nodes||(n.nodes=[]),n}return X(r,[{key:"selectors",get:function(){return Io.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),r}(Co),xo=So;So.default=So,Co.registerRule(So);var Ao=_r,Oo=function(e){var t,r,n,o,i,s,a,u,c,l,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,g=[],m=[];function y(){return v}function w(t){throw e.error("Unclosed "+t,v)}function b(){return 0===m.length&&v>=d}function k(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case zn:case Kn:case Xn:case Hn:case Jn:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===Kn||t===zn||t===Xn||t===Hn||t===Jn);l=["space",h.slice(v,r)],v=r-1;break;case Qn:case qn:case to:case ro:case io:case no:case eo:var y=String.fromCharCode(t);l=[y,y,v];break;case $n:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(v+1),"url"===u&&c!==Zn&&c!==Gn&&c!==Kn&&c!==zn&&c!==Xn&&c!==Jn&&c!==Hn){r=v;do{if(s=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}w("bracket")}for(a=r;h.charCodeAt(a-1)===Yn;)a-=1,s=!s}while(s);l=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||co.test(o)?l=["(","(",v]:(l=["brackets",o,v,r],v=r);break;case Zn:case Gn:n=t===Zn?"'":'"',r=v;do{if(s=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}w("string")}for(a=r;h.charCodeAt(a-1)===Yn;)a-=1,s=!s}while(s);l=["string",h.slice(v,r+1),v,r],v=r;break;case so:ao.lastIndex=v+1,ao.test(h),r=0===ao.lastIndex?h.length-1:ao.lastIndex-2,l=["at-word",h.slice(v,r+1),v,r],v=r;break;case Yn:for(r=v,i=!0;h.charCodeAt(r+1)===Yn;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==Vn&&t!==Kn&&t!==zn&&t!==Xn&&t!==Hn&&t!==Jn&&(r+=1,lo.test(h.charAt(r)))){for(;lo.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Kn&&(r+=1)}l=["word",h.slice(v,r+1),v,r],v=r;break;default:t===Vn&&h.charCodeAt(v+1)===oo?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:w("comment")),l=["comment",h.slice(v,r+1),v,r],v=r):(uo.lastIndex=v+1,uo.test(h),r=0===uo.lastIndex?h.length-1:uo.lastIndex-2,l=["word",h.slice(v,r+1),v,r],g.push(l),v=r)}return v++,l}}function C(e){m.push(e)}return{back:C,endOfFile:b,nextToken:k,position:y}},Eo=bn,Ro=po,Mo=wo,No=xo,To={empty:!0,space:!0};var Lo=Tn,Po=function(){function e(t){K(this,e),this.input=t,this.root=new Mo,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}return X(e,[{key:"atrule",value:function(e){var t,r,n,o=new Ro;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},{key:"colon",value:function(e){var t,r,n,o,i=0,s=c(e.entries());try{for(s.s();!(o=s.n()).done;){var a=G(o.value,2),u=a[0];if("("===(r=(t=a[1])[0])&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}}catch(e){s.e(e)}finally{s.f()}return!1}},{key:"comment",value:function(e){var t=new Eo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}},{key:"createTokenizer",value:function(){this.tokenizer=Oo(this.input)}},{key:"decl",value:function(e,t){var r=new Ao;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),f="",h=u;h>0;h--){var p=l[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=l.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new No;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value: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)}},{key:"endFile",value: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())}},{key:"freeSemicolon",value:function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,r,n){for(var o,i,s,a,u=r.length,c="",l=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(a=r[f-1]?r[f-1][0]:"empty",s=r[f+1]?r[f+1][0]:"empty",To[a]||To[s]||","===c.slice(-1)?l=!1:c+=o[1]):c+=o[1]:l=!1;if(!l){var h=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:h,value:c}}e[t]=c}},{key:"rule",value:function(e){e.pop();var t=new No;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}]),e}(),_o=an;function Bo(e,t){var r=new _o(e,t),n=new Po(r);try{n.parse()}catch(e){throw e}return n.root}var Fo=Bo;Bo.default=Bo,Lo.registerParse(Bo);var Do=wr.isClean,Uo=wr.my,jo=yn,Wo=xr,Zo=Tn,Go=Bn,Yo=Wn,Vo=Fo,zo=wo,Ko={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Jo={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},Xo={Once:!0,postcssPlugin:!0,prepare:!0};function Ho(e){return"object"===f(e)&&"function"==typeof e.then}function Qo(e){var t=!1,r=Ko[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function qo(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Qo(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function $o(e){return e[Do]=!1,e.nodes&&e.nodes.forEach((function(e){return $o(e)})),e}var ei={},ti=function(e){function r(e,t,n){var o,i=this;if(K(this,r),this.stringified=!1,this.processed=!1,"object"!==f(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof r||t instanceof Yo)o=$o(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var s=Vo;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[Uo]&&Zo.rebuild(o)}else o=$o(t);this.result=new Yo(e,o,n),this.helpers=a(a({},ei),{},{postcss:ei,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===f(e)&&e.prepare?a(a({},e),e.prepare(i.result)):e}))}var n;return X(r,[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}},{key:"prepareVisitors",value:function(){var e=this;this.listeners={};var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=c(this.plugins);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("object"===f(o))for(var i in o){if(!Jo[i]&&/^[A-Z]/.test(i))throw new Error("Unknown event ".concat(i," in ").concat(o.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!Xo[i])if("object"===f(o[i]))for(var s in o[i])r(o,"*"===s?i:i+"-"+s.toLowerCase(),o[i][s]);else"function"==typeof o[i]&&r(o,i,o[i])}}}catch(e){n.e(e)}finally{n.f()}this.hasListener=Object.keys(this.listeners).length>0}},{key:"runAsync",value:(n=i(t().mark((function e(){var r,n,o,i,s,a,u,l,f,h,p=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.plugin=0,r=0;case 2:if(!(r<this.plugins.length)){e.next=17;break}if(n=this.plugins[r],!Ho(o=this.runOnRoot(n))){e.next=14;break}return e.prev=6,e.next=9,o;case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(6),this.handleError(e.t0);case 14:r++,e.next=2;break;case 17:if(this.prepareVisitors(),!this.hasListener){e.next=56;break}i=this.result.root;case 20:if(i[Do]){e.next=39;break}i[Do]=!0,s=[qo(i)];case 23:if(!(s.length>0)){e.next=37;break}if(!Ho(a=this.visitTick(s))){e.next=35;break}return e.prev=26,e.next=29,a;case 29:e.next=35;break;case 31:throw e.prev=31,e.t1=e.catch(26),u=s[s.length-1].node,this.handleError(e.t1,u);case 35:e.next=23;break;case 37:e.next=20;break;case 39:if(!this.listeners.OnceExit){e.next=56;break}l=c(this.listeners.OnceExit),e.prev=41,h=t().mark((function e(){var r,n,o,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=G(f.value,2),n=r[0],o=r[1],p.result.lastPlugin=n,e.prev=2,"document"!==i.type){e.next=9;break}return s=i.nodes.map((function(e){return o(e,p.helpers)})),e.next=7,Promise.all(s);case 7:e.next=11;break;case 9:return e.next=11,o(i,p.helpers);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(2),p.handleError(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})),l.s();case 44:if((f=l.n()).done){e.next=48;break}return e.delegateYield(h(),"t2",46);case 46:e.next=44;break;case 48:e.next=53;break;case 50:e.prev=50,e.t3=e.catch(41),l.e(e.t3);case 53:return e.prev=53,l.f(),e.finish(53);case 56:return this.processed=!0,e.abrupt("return",this.stringify());case 58:case"end":return e.stop()}}),e,this,[[6,11],[26,31],[41,50,53,56]])}))),function(){return n.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===f(e)&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Ho(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}},{key:"stringify",value:function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Wo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new jo(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=c(this.plugins);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(Ho(this.runOnRoot(r)))throw this.getAsyncError()}}catch(e){t.e(e)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Do];)n[Do]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type){var o,i=c(n.nodes);try{for(i.s();!(o=i.n()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}}catch(e){i.e(e)}finally{i.f()}}else this.visitSync(this.listeners.OnceExit,n)}return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var r,n=c(e);try{for(n.s();!(r=n.n()).done;){var o=G(r.value,2),i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ho(a))throw this.getAsyncError()}}catch(e){n.e(e)}finally{n.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var o=G(n[t.visitorIndex],2),i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[Do])return a[Do]=!0,void e.push(qo(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[Do]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var t=this;e[Do]=!0;var r,n=Qo(e),o=c(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[Do]||t.walkSync(e)}));else{var s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}}catch(e){o.e(e)}finally{o.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{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:e,get:function(){return"LazyResult"}}]),r}(Symbol.toStringTag);ti.registerPostcss=function(e){ei=e};var ri=ti;ti.default=ti,zo.registerLazyResult(ti),Go.registerLazyResult(ti);var ni=yn,oi=xr,ii=Fo,si=Wn,ai=function(e){function t(e,r,n){var o;K(this,t),r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;var i=oi;this.result=new si(this._processor,o,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var a=new ni(i,o,this._opts,r);if(a.isMap()){var u=a.generate(),c=G(u,2),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}return X(t,[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{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=ii;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:e,get:function(){return"NoWorkResult"}}]),t}(Symbol.toStringTag),ui=ai;ai.default=ai;var ci=ui,li=ri,fi=Bn,hi=wo,pi=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];K(this,e),this.version="8.4.38",this.plugins=this.normalize(t)}return X(e,[{key:"normalize",value:function(e){var t,r=[],n=c(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(!0===o.postcss?o=o():o.postcss&&(o=o.postcss),"object"===f(o)&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if("object"===f(o)&&o.postcssPlugin)r.push(o);else if("function"==typeof o)r.push(o);else{if("object"!==f(o)||!o.parse&&!o.stringify)throw new Error(o+" is not a PostCSS plugin")}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"process",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.plugins.length||t.parser||t.stringifier||t.syntax?new li(this,e,t):new ci(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),e}(),di=pi;pi.default=pi,hi.registerProcessor(pi),fi.registerProcessor(pi);var vi=_r,gi=Vr,mi=bn,yi=po,wi=an,bi=wo,ki=xo;function Ci(e,t){if(Array.isArray(e))return e.map((function(e){return Ci(e)}));var r=e.inputs,n=Lt(e,Wt);if(r){t=[];var o,i=c(r);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=a(a({},s),{},{__proto__:wi.prototype});u.map&&(u.map=a(a({},u.map),{},{__proto__:gi.prototype})),t.push(u)}}catch(e){i.e(e)}finally{i.f()}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return Ci(e,t)}))),n.source){var l=n.source,f=l.inputId,h=Lt(l,Zt);n.source=h,null!=f&&(n.source.input=t[f])}if("root"===n.type)return new bi(n);if("decl"===n.type)return new vi(n);if("rule"===n.type)return new ki(n);if("comment"===n.type)return new mi(n);if("atrule"===n.type)return new yi(n);throw new Error("Unknown node type: "+e.type)}var Ii=Ci;Ci.default=Ci;var Si=yr,xi=_r,Ai=ri,Oi=Tn,Ei=di,Ri=xr,Mi=Ii,Ni=Bn,Ti=Dn,Li=bn,Pi=po,_i=Wn,Bi=an,Fi=Fo,Di=ko,Ui=xo,ji=wo,Wi=Lr;function Zi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Ei(t)}Zi.plugin=function(e,t){var r,n=!1;function o(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG&&{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t.apply(void 0,arguments);return r.postcssPlugin=e,r.postcssVersion=(new Ei).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return Zi([o(r)]).process(e,t)},o},Zi.stringify=Ri,Zi.parse=Fi,Zi.fromJSON=Mi,Zi.list=Di,Zi.comment=function(e){return new Li(e)},Zi.atRule=function(e){return new Pi(e)},Zi.decl=function(e){return new xi(e)},Zi.rule=function(e){return new Ui(e)},Zi.root=function(e){return new ji(e)},Zi.document=function(e){return new Ni(e)},Zi.CssSyntaxError=Si,Zi.Declaration=xi,Zi.Container=Oi,Zi.Processor=Ei,Zi.Document=Ni,Zi.Comment=Li,Zi.Warning=Ti,Zi.AtRule=Pi,Zi.Result=_i,Zi.Input=Bi,Zi.Rule=Ui,Zi.Root=ji,Zi.Node=Wi,Ai.registerPostcss(Zi);var Gi=Zi;Zi.default=Zi;var Yi=ur(Gi);Yi.stringify,Yi.fromJSON,Yi.plugin,Yi.parse,Yi.list,Yi.document,Yi.comment,Yi.atRule,Yi.rule,Yi.decl,Yi.root,Yi.CssSyntaxError,Yi.Declaration,Yi.Container,Yi.Processor,Yi.Document,Yi.Comment,Yi.Warning,Yi.AtRule,Yi.Result,Yi.Input,Yi.Rule,Yi.Root,Yi.Node;var Vi=Object.defineProperty,zi=function(e,t,r){return function(e,t,r){return t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==f(t)?t+"":t,r)};function Ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ji(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Xi={exports:{}},Hi=String,Qi=function(){return{isColorSupported:!1,reset:Hi,bold:Hi,dim:Hi,italic:Hi,underline:Hi,inverse:Hi,hidden:Hi,strikethrough:Hi,black:Hi,red:Hi,green:Hi,yellow:Hi,blue:Hi,magenta:Hi,cyan:Hi,white:Hi,gray:Hi,bgBlack:Hi,bgRed:Hi,bgGreen:Hi,bgYellow:Hi,bgBlue:Hi,bgMagenta:Hi,bgCyan:Hi,bgWhite:Hi}};Xi.exports=Qi(),Xi.exports.createColors=Qi;var qi=Xi.exports,$i=Ji(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),es=qi,ts=$i,rs=function(e){Ft(r,e);var t=Dt(r);function r(e,n,o,i,s,a){var u;return K(this,r),(u=t.call(this,e)).name="CssSyntaxError",u.reason=e,s&&(u.file=s),i&&(u.source=i),a&&(u.plugin=a),void 0!==n&&void 0!==o&&("number"==typeof n?(u.line=n,u.column=o):(u.line=n.line,u.column=n.column,u.endLine=o.line,u.endColumn=o.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(Bt(u),r),u}return X(r,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=es.isColorSupported),ts&&e&&(r=ts(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),u=String(a).length;if(e){var c=es.createColors(!0),l=c.bold,f=c.gray,h=c.red;n=function(e){return l(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(s,a).map((function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e})).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}]),r}(Ut(Error)),ns=rs;rs.default=rs;var os={};os.isClean=Symbol("isClean"),os.my=Symbol("my");var is={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var ss=function(){function e(t){K(this,e),this.builder=t}return X(e,[{key:"atrule",value:function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}}},{key:"beforeAfter",value:function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)r+=i}return r}},{key:"block",value:function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var o=e.nodes[n],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==n||r)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}},{key:"decl",value:function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return is[r];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](i,e):i.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=is[r]),i.rawCache[r]=n,n}},{key:"rawBeforeClose",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawBeforeComment",value:function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeDecl",value:function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}},{key:"rawBeforeRule",value:function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawColon",value:function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}},{key:"rawIndent",value:function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}})),t);var t}},{key:"rawSemicolon",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}},{key:"rawValue",value:function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),e}(),as=ss;ss.default=ss;var us=as;function cs(e,t){new us(t).stringify(e)}var ls=cs;cs.default=cs;var fs=os.isClean,hs=os.my,ps=ns,ds=as,vs=ls;function gs(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],i=f(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((function(e){return gs(e,r)})):("object"===i&&null!==o&&(o=gs(o)),r[n]=o)}return r}var ms=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in K(this,e),this.raws={},this[fs]=!1,this[hs]=!0,t)if("nodes"===r){this.nodes=[];var n,o=c(t[r]);try{for(o.s();!(n=o.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(e){o.e(e)}finally{o.f()}}else this[r]=t[r]}return X(e,[{key:"addToError",value: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 /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))}return e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this[t]=e[t];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=gs(this);for(var r in e)t[r]=e[r];return t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new ps(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}},{key:"markDirty",value:function(){if(this[fs]){this[fs]=!1;for(var e=this;e=e.parent;)e[fs]=!1}}},{key:"next",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}},{key:"positionBy",value:function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}},{key:"positionInside",value:function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===r[i]?(n=1,o+=1):n+=1;return{column:n,line:o}}},{key:"prev",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}},{key:"rangeBy",value:function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),o=n.indexOf(e.word);-1!==o&&(t=this.positionInside(o,n),r=this.positionInside(o+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}},{key:"raw",value:function(e,t){return(new ds).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i=0,s=n;i<s.length;i++){var a=s[i];a===this?t=!0:t?(this.parent.insertAfter(e,a),e=a):this.parent.insertBefore(e,a)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var r={},n=null==t;t=t||new Map;var o=0;for(var i in this)if(Object.prototype.hasOwnProperty.call(this,i)&&"parent"!==i&&"proxyCache"!==i){var s=this[i];if(Array.isArray(s))r[i]=s.map((function(e){return"object"===f(e)&&e.toJSON?e.toJSON(null,t):e}));else if("object"===f(s)&&s.toJSON)r[i]=s.toJSON(null,t);else if("source"===i){var a=t.get(s.input);null==a&&(a=o,t.set(s.input,o),o++),r[i]={end:s.end,inputId:a,start:s.start}}else r[i]=s}return n&&(r.inputs=V(t.keys()).map((function(e){return e.toJSON()}))),r}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vs;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t}},{key:"warn",value:function(e,t,r){var n={node:this};for(var o in r)n[o]=r[o];return e.warn(t,n)}},{key:"proxyOf",get:function(){return this}}]),e}(),ys=ms;ms.default=ms;var ws=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=a(a({},e),{},{value:String(e.value)})),(n=t.call(this,e)).type="decl",n}return X(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),r}(ys),bs=ws;ws.default=ws;var ks="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Cs=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",r=e;r--;)t+=ks[64*Math.random()|0];return t},Is=$i.SourceMapConsumer,Ss=$i.SourceMapGenerator,xs=$i.existsSync,As=$i.readFileSync,Os=$i.dirname,Es=$i.join;var Rs=function(){function e(t,r){if(K(this,e),!1!==r.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Os(this.mapFile)),o&&(this.text=o)}}return X(e,[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new Is(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),jt?jt.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===f(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}},{key:"loadFile",value:function(e){if(this.root=Os(e),xs(e))return this.mapFile=e,As(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Is)return Ss.fromSourceMap(t).toString();if(t instanceof Ss)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=Es(Os(e),o)),this.loadFile(o)}}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}]),e}(),Ms=Rs;Rs.default=Rs;var Ns=$i.SourceMapConsumer,Ts=$i.SourceMapGenerator,Ls=$i.fileURLToPath,Ps=$i.pathToFileURL,_s=$i.isAbsolute,Bs=$i.resolve,Fs=Cs,Ds=$i,Us=ns,js=Ms,Ws=Symbol("fromOffsetCache"),Zs=Boolean(Ns&&Ts),Gs=Boolean(Bs&&_s),Ys=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(this,e),null==t||"object"===f(t)&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!Gs||/^\w+:\/\//.test(r.from)||_s(r.from)?this.file=r.from:this.file=Bs(r.from)),Gs&&Zs){var n=new js(this.css,r);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Fs(6)+">"),this.map&&(this.map.file=this.from)}return X(e,[{key:"error",value:function(e,t,r){var n,o,i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===f(t)){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,i=l.col}else o=u.line,i=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,i);return(n=p?new Us(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,s.plugin):new Us(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,s.plugin)).input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(Ps&&(n.input.url=Ps(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[Ws])t=this[Ws];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o<i;o++)t[o]=n,n+=r[o].length+1;this[Ws]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:Bs(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=_s(a.source)?Ps(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ps(this.map.mapFile));var u={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Ls)throw new Error("file: protocol is not available in this PostCSS build");u.file=Ls(i)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u}},{key:"toJSON",value:function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=a({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}]),e}(),Vs=Ys;Ys.default=Ys,Ds&&Ds.registerInput&&Ds.registerInput(Ys);var zs=$i.SourceMapConsumer,Ks=$i.SourceMapGenerator,Js=$i.dirname,Xs=$i.relative,Hs=$i.resolve,Qs=$i.sep,qs=$i.pathToFileURL,$s=Vs,ea=Boolean(zs&&Ks),ta=Boolean(Js&&Hs&&Xs&&Qs),ra=function(){function e(t,r,n,o){K(this,e),this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}return X(e,[{key:"addAnnotation",value:function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=c(this.previous());try{for(t.s();!(e=t.n()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),o=r.root||Js(r.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new zs(r.text)).sourcesContent&&(i.sourcesContent=null):i=r.consumer(),this.map.applySourceMap(i,n,this.toUrl(this.path(o)))}}catch(e){t.e(e)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){if(this.clearAnnotation(),ta&&ea&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]}},{key:"generateMap",value:function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ks.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ks({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]}},{key:"generateString",value:function(){var e=this;this.css="",this.map=new Ks({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===l.last&&!l.raws.semicolon||(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}}))}},{key:"isAnnotation",value:function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))}},{key:"isInline",value:function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))}},{key:"isMap",value:function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}},{key:"isSourcesContent",value:function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Js(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Js(Hs(r,this.mapOpts.annotation)));var n=Xs(r,e);return this.memoizedPaths.set(e,n),n}},{key:"previous",value:function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new $s(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}},{key:"setSourcesContent",value:function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}},{key:"sourcePath",value: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))}},{key:"toBase64",value:function(e){return jt?jt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(qs){var r=qs(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Qs&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}]),e}(),na=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="comment",n}return X(r)}(ys),oa=na;na.default=na;var ia,sa,aa,ua,ca=os.isClean,la=os.my,fa=bs,ha=oa;function pa(e){return e.map((function(e){return e.nodes&&(e.nodes=pa(e.nodes)),delete e.source,e}))}function da(e){if(e[ca]=!1,e.proxyOf.nodes){var t,r=c(e.proxyOf.nodes);try{for(r.s();!(t=r.n()).done;){da(t.value)}}catch(e){r.e(e)}finally{r.f()}}}var va=function(e){Ft(r,e);var t=Dt(r);function r(){return K(this,r),t.apply(this,arguments)}return X(r,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=0,o=t;n<o.length;n++){var i,s=o[n],a=this.normalize(s,this.last),u=c(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;this.proxyOf.nodes.push(l)}}catch(e){u.e(e)}finally{u.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Pt(_t(r.prototype),"cleanRaws",this).call(this,e),this.nodes){var t,n=c(this.nodes);try{for(n.s();!(t=n.n()).done;){t.value.cleanRaws(e)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e[t].apply(e,V(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.apply(void 0,[e.toProxy()].concat(n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);var o,i,s=c(n);try{for(s.s();!(o=s.n()).done;){var a=o.value;this.proxyOf.nodes.splice(r+1,0,a)}}catch(e){s.e(e)}finally{s.f()}for(var u in this.indexes)r<(i=this.indexes[u])&&(this.indexes[u]=i+n.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var r=this.index(e),n=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);var i,s,a=c(o);try{for(a.s();!(i=a.n()).done;){var u=i.value;this.proxyOf.nodes.splice(r,0,u)}}catch(e){a.e(e)}finally{a.f()}for(var l in this.indexes)r<=(s=this.indexes[l])&&(this.indexes[l]=s+o.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=pa(ia(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);var o,i=c(e);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}catch(e){i.e(e)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);var a,u=c(e);try{for(u.s();!(a=u.n()).done;){var l=a.value;l.parent&&l.parent.removeChild(l,"ignore")}}catch(e){u.e(e)}finally{u.f()}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new fa(e)]}else if(e.selector)e=[new sa(e)];else if(e.name)e=[new aa(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new ha(e)]}var f=e.map((function(e){return e[la]||r.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ca]&&da(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return f}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();var n,o=c(t);try{for(o.s();!(n=o.n()).done;){var i,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=c(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;this.proxyOf.nodes.unshift(l)}}catch(e){u.e(e)}finally{u.f()}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+a.length}}catch(e){o.e(e)}finally{o.f()}return this.markDirty(),this}},{key:"push",value:function(e){return e.parent=this,this.proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=c(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;){e.value.parent=void 0}}catch(e){t.e(e)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}},{key:"walkAtRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))}},{key:"walkComments",value:function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))}},{key:"walkDecls",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))}},{key:"walkRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))}},{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]}}]),r}(ys);va.registerParse=function(e){ia=e},va.registerRule=function(e){sa=e},va.registerAtRule=function(e){aa=e},va.registerRoot=function(e){ua=e};var ga=va;va.default=va,va.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,aa.prototype):"rule"===e.type?Object.setPrototypeOf(e,sa.prototype):"decl"===e.type?Object.setPrototypeOf(e,fa.prototype):"comment"===e.type?Object.setPrototypeOf(e,ha.prototype):"root"===e.type&&Object.setPrototypeOf(e,ua.prototype),e[la]=!0,e.nodes&&e.nodes.forEach((function(e){va.rebuild(e)}))};var ma,ya,wa=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,a({type:"document"},e))).nodes||(n.nodes=[]),n}return X(r,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ma(new ya,this,e);return t.stringify()}}]),r}(ga);wa.registerLazyResult=function(e){ma=e},wa.registerProcessor=function(e){ya=e};var ba=wa;wa.default=wa;var ka=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(K(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var o in r)this[o]=r[o]}return X(e,[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),e}(),Ca=ka;ka.default=ka;var Ia=Ca,Sa=function(){function e(t,r,n){K(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}return X(e,[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Ia(e,t);return this.messages.push(r),r}},{key:"warnings",value:function(){return this.messages.filter((function(e){return"warning"===e.type}))}},{key:"content",get:function(){return this.css}}]),e}(),xa=Sa;Sa.default=Sa;var Aa="'".charCodeAt(0),Oa='"'.charCodeAt(0),Ea="\\".charCodeAt(0),Ra="/".charCodeAt(0),Ma="\n".charCodeAt(0),Na=" ".charCodeAt(0),Ta="\f".charCodeAt(0),La="\t".charCodeAt(0),Pa="\r".charCodeAt(0),_a="[".charCodeAt(0),Ba="]".charCodeAt(0),Fa="(".charCodeAt(0),Da=")".charCodeAt(0),Ua="{".charCodeAt(0),ja="}".charCodeAt(0),Wa=";".charCodeAt(0),Za="*".charCodeAt(0),Ga=":".charCodeAt(0),Ya="@".charCodeAt(0),Va=/[\t\n\f\r "#'()/;[\\\]{}]/g,za=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ka=/.[\r\n"'(/\\]/,Ja=/[\da-f]/i,Xa=ga,Ha=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="atrule",n}return X(r,[{key:"append",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Pt(_t(r.prototype),"append",this)).call.apply(e,[this].concat(n))}},{key:"prepend",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Pt(_t(r.prototype),"prepend",this)).call.apply(e,[this].concat(n))}}]),r}(Xa),Qa=Ha;Ha.default=Ha,Xa.registerAtRule(Ha);var qa,$a,eu=ga,tu=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="root",n.nodes||(n.nodes=[]),n}return X(r,[{key:"normalize",value:function(e,t,n){var o=Pt(_t(r.prototype),"normalize",this).call(this,e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var i,s=c(o);try{for(s.s();!(i=s.n()).done;){i.value.raws.before=t.raws.before}}catch(e){s.e(e)}finally{s.f()}}return o}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),Pt(_t(r.prototype),"removeChild",this).call(this,e)}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new qa(new $a,this,e);return t.stringify()}}]),r}(eu);tu.registerLazyResult=function(e){qa=e},tu.registerProcessor=function(e){$a=e};var ru=tu;tu.default=tu,eu.registerRoot(tu);var nu={comma:function(e){return nu.split(e,[","],!0)},space:function(e){return nu.split(e,[" ","\n","\t"])},split:function(e,t,r){var n,o=[],i="",s=!1,a=0,u=!1,l="",f=!1,h=c(e);try{for(h.s();!(n=h.n()).done;){var p=n.value;f?f=!1:"\\"===p?f=!0:u?p===l&&(u=!1):'"'===p||"'"===p?(u=!0,l=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=p}}catch(e){h.e(e)}finally{h.f()}return(r||""!==i)&&o.push(i.trim()),o}},ou=nu;nu.default=nu;var iu=ga,su=ou,au=function(e){Ft(r,e);var t=Dt(r);function r(e){var n;return K(this,r),(n=t.call(this,e)).type="rule",n.nodes||(n.nodes=[]),n}return X(r,[{key:"selectors",get:function(){return su.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),r}(iu),uu=au;au.default=au,iu.registerRule(au);var cu=bs,lu=function(e){var t,r,n,o,i,s,a,u,c,l,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,g=[],m=[];function y(){return v}function w(t){throw e.error("Unclosed "+t,v)}function b(){return 0===m.length&&v>=d}function k(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case Ma:case Na:case La:case Pa:case Ta:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===Na||t===Ma||t===La||t===Pa||t===Ta);l=["space",h.slice(v,r)],v=r-1;break;case _a:case Ba:case Ua:case ja:case Ga:case Wa:case Da:var y=String.fromCharCode(t);l=[y,y,v];break;case Fa:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(v+1),"url"===u&&c!==Aa&&c!==Oa&&c!==Na&&c!==Ma&&c!==La&&c!==Ta&&c!==Pa){r=v;do{if(s=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}w("bracket")}for(a=r;h.charCodeAt(a-1)===Ea;)a-=1,s=!s}while(s);l=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||Ka.test(o)?l=["(","(",v]:(l=["brackets",o,v,r],v=r);break;case Aa:case Oa:n=t===Aa?"'":'"',r=v;do{if(s=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}w("string")}for(a=r;h.charCodeAt(a-1)===Ea;)a-=1,s=!s}while(s);l=["string",h.slice(v,r+1),v,r],v=r;break;case Ya:Va.lastIndex=v+1,Va.test(h),r=0===Va.lastIndex?h.length-1:Va.lastIndex-2,l=["at-word",h.slice(v,r+1),v,r],v=r;break;case Ea:for(r=v,i=!0;h.charCodeAt(r+1)===Ea;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==Ra&&t!==Na&&t!==Ma&&t!==La&&t!==Pa&&t!==Ta&&(r+=1,Ja.test(h.charAt(r)))){for(;Ja.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Na&&(r+=1)}l=["word",h.slice(v,r+1),v,r],v=r;break;default:t===Ra&&h.charCodeAt(v+1)===Za?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:w("comment")),l=["comment",h.slice(v,r+1),v,r],v=r):(za.lastIndex=v+1,za.test(h),r=0===za.lastIndex?h.length-1:za.lastIndex-2,l=["word",h.slice(v,r+1),v,r],g.push(l),v=r)}return v++,l}}function C(e){m.push(e)}return{back:C,endOfFile:b,nextToken:k,position:y}},fu=oa,hu=Qa,pu=ru,du=uu,vu={empty:!0,space:!0};var gu=ga,mu=function(){function e(t){K(this,e),this.input=t,this.root=new pu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}return X(e,[{key:"atrule",value:function(e){var t,r,n,o=new hu;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},{key:"colon",value:function(e){var t,r,n,o,i=0,s=c(e.entries());try{for(s.s();!(o=s.n()).done;){var a=G(o.value,2),u=a[0];if("("===(r=(t=a[1])[0])&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}}catch(e){s.e(e)}finally{s.f()}return!1}},{key:"comment",value:function(e){var t=new fu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}},{key:"createTokenizer",value:function(){this.tokenizer=lu(this.input)}},{key:"decl",value:function(e,t){var r=new cu;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),f="",h=u;h>0;h--){var p=l[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=l.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new du;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value: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)}},{key:"endFile",value: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())}},{key:"freeSemicolon",value:function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,r,n){for(var o,i,s,a,u=r.length,c="",l=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(a=r[f-1]?r[f-1][0]:"empty",s=r[f+1]?r[f+1][0]:"empty",vu[a]||vu[s]||","===c.slice(-1)?l=!1:c+=o[1]):c+=o[1]:l=!1;if(!l){var h=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:h,value:c}}e[t]=c}},{key:"rule",value:function(e){e.pop();var t=new du;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}]),e}(),yu=Vs;function wu(e,t){var r=new yu(e,t),n=new mu(r);try{n.parse()}catch(e){throw e}return n.root}var bu=wu;wu.default=wu,gu.registerParse(wu);var ku=os.isClean,Cu=os.my,Iu=ra,Su=ls,xu=ga,Au=ba,Ou=xa,Eu=bu,Ru=ru,Mu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Nu={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},Tu={Once:!0,postcssPlugin:!0,prepare:!0};function Lu(e){return"object"===f(e)&&"function"==typeof e.then}function Pu(e){var t=!1,r=Mu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function _u(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Pu(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Bu(e){return e[ku]=!1,e.nodes&&e.nodes.forEach((function(e){return Bu(e)})),e}var Fu={},Du=function(e){function r(e,t,n){var o,i=this;if(K(this,r),this.stringified=!1,this.processed=!1,"object"!==f(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof r||t instanceof Ou)o=Bu(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var s=Eu;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[Cu]&&xu.rebuild(o)}else o=Bu(t);this.result=new Ou(e,o,n),this.helpers=a(a({},Fu),{},{postcss:Fu,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===f(e)&&e.prepare?a(a({},e),e.prepare(i.result)):e}))}var n;return X(r,[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}},{key:"prepareVisitors",value:function(){var e=this;this.listeners={};var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=c(this.plugins);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("object"===f(o))for(var i in o){if(!Nu[i]&&/^[A-Z]/.test(i))throw new Error("Unknown event ".concat(i," in ").concat(o.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!Tu[i])if("object"===f(o[i]))for(var s in o[i])r(o,"*"===s?i:i+"-"+s.toLowerCase(),o[i][s]);else"function"==typeof o[i]&&r(o,i,o[i])}}}catch(e){n.e(e)}finally{n.f()}this.hasListener=Object.keys(this.listeners).length>0}},{key:"runAsync",value:(n=i(t().mark((function e(){var r,n,o,i,s,a,u,l,f,h,p=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.plugin=0,r=0;case 2:if(!(r<this.plugins.length)){e.next=17;break}if(n=this.plugins[r],!Lu(o=this.runOnRoot(n))){e.next=14;break}return e.prev=6,e.next=9,o;case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(6),this.handleError(e.t0);case 14:r++,e.next=2;break;case 17:if(this.prepareVisitors(),!this.hasListener){e.next=56;break}i=this.result.root;case 20:if(i[ku]){e.next=39;break}i[ku]=!0,s=[_u(i)];case 23:if(!(s.length>0)){e.next=37;break}if(!Lu(a=this.visitTick(s))){e.next=35;break}return e.prev=26,e.next=29,a;case 29:e.next=35;break;case 31:throw e.prev=31,e.t1=e.catch(26),u=s[s.length-1].node,this.handleError(e.t1,u);case 35:e.next=23;break;case 37:e.next=20;break;case 39:if(!this.listeners.OnceExit){e.next=56;break}l=c(this.listeners.OnceExit),e.prev=41,h=t().mark((function e(){var r,n,o,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=G(f.value,2),n=r[0],o=r[1],p.result.lastPlugin=n,e.prev=2,"document"!==i.type){e.next=9;break}return s=i.nodes.map((function(e){return o(e,p.helpers)})),e.next=7,Promise.all(s);case 7:e.next=11;break;case 9:return e.next=11,o(i,p.helpers);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(2),p.handleError(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})),l.s();case 44:if((f=l.n()).done){e.next=48;break}return e.delegateYield(h(),"t2",46);case 46:e.next=44;break;case 48:e.next=53;break;case 50:e.prev=50,e.t3=e.catch(41),l.e(e.t3);case 53:return e.prev=53,l.f(),e.finish(53);case 56:return this.processed=!0,e.abrupt("return",this.stringify());case 58:case"end":return e.stop()}}),e,this,[[6,11],[26,31],[41,50,53,56]])}))),function(){return n.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===f(e)&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Lu(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}},{key:"stringify",value:function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Su;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Iu(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=c(this.plugins);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(Lu(this.runOnRoot(r)))throw this.getAsyncError()}}catch(e){t.e(e)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[ku];)n[ku]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type){var o,i=c(n.nodes);try{for(i.s();!(o=i.n()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}}catch(e){i.e(e)}finally{i.f()}}else this.visitSync(this.listeners.OnceExit,n)}return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var r,n=c(e);try{for(n.s();!(r=n.n()).done;){var o=G(r.value,2),i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Lu(a))throw this.getAsyncError()}}catch(e){n.e(e)}finally{n.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var o=G(n[t.visitorIndex],2),i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[ku])return a[ku]=!0,void e.push(_u(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[ku]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var t=this;e[ku]=!0;var r,n=Pu(e),o=c(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[ku]||t.walkSync(e)}));else{var s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}}catch(e){o.e(e)}finally{o.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{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:e,get:function(){return"LazyResult"}}]),r}(Symbol.toStringTag);Du.registerPostcss=function(e){Fu=e};var Uu=Du;Du.default=Du,Ru.registerLazyResult(Du),Au.registerLazyResult(Du);var ju=ra,Wu=ls,Zu=bu,Gu=xa,Yu=function(e){function t(e,r,n){var o;K(this,t),r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;var i=Wu;this.result=new Gu(this._processor,o,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var a=new ju(i,o,this._opts,r);if(a.isMap()){var u=a.generate(),c=G(u,2),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}return X(t,[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{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=Zu;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:e,get:function(){return"NoWorkResult"}}]),t}(Symbol.toStringTag),Vu=Yu;Yu.default=Yu;var zu=Vu,Ku=Uu,Ju=ba,Xu=ru,Hu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];K(this,e),this.version="8.4.38",this.plugins=this.normalize(t)}return X(e,[{key:"normalize",value:function(e){var t,r=[],n=c(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(!0===o.postcss?o=o():o.postcss&&(o=o.postcss),"object"===f(o)&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if("object"===f(o)&&o.postcssPlugin)r.push(o);else if("function"==typeof o)r.push(o);else{if("object"!==f(o)||!o.parse&&!o.stringify)throw new Error(o+" is not a PostCSS plugin")}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"process",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.plugins.length||t.parser||t.stringifier||t.syntax?new Ku(this,e,t):new zu(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),e}(),Qu=Hu;Hu.default=Hu,Xu.registerProcessor(Hu),Ju.registerProcessor(Hu);var qu=bs,$u=Ms,ec=oa,tc=Qa,rc=Vs,nc=ru,oc=uu;function ic(e,t){if(Array.isArray(e))return e.map((function(e){return ic(e)}));var r=e.inputs,n=Lt(e,Gt);if(r){t=[];var o,i=c(r);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=a(a({},s),{},{__proto__:rc.prototype});u.map&&(u.map=a(a({},u.map),{},{__proto__:$u.prototype})),t.push(u)}}catch(e){i.e(e)}finally{i.f()}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return ic(e,t)}))),n.source){var l=n.source,f=l.inputId,h=Lt(l,Yt);n.source=h,null!=f&&(n.source.input=t[f])}if("root"===n.type)return new nc(n);if("decl"===n.type)return new qu(n);if("rule"===n.type)return new oc(n);if("comment"===n.type)return new ec(n);if("atrule"===n.type)return new tc(n);throw new Error("Unknown node type: "+e.type)}var sc=ic;ic.default=ic;var ac=ns,uc=bs,cc=Uu,lc=ga,fc=Qu,hc=ls,pc=sc,dc=ba,vc=Ca,gc=oa,mc=Qa,yc=xa,wc=Vs,bc=bu,kc=ou,Cc=uu,Ic=ru,Sc=ys;function xc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fc(t)}xc.plugin=function(e,t){var r,n=!1;function o(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG&&{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t.apply(void 0,arguments);return r.postcssPlugin=e,r.postcssVersion=(new fc).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return xc([o(r)]).process(e,t)},o},xc.stringify=hc,xc.parse=bc,xc.fromJSON=pc,xc.list=kc,xc.comment=function(e){return new gc(e)},xc.atRule=function(e){return new mc(e)},xc.decl=function(e){return new uc(e)},xc.rule=function(e){return new Cc(e)},xc.root=function(e){return new Ic(e)},xc.document=function(e){return new dc(e)},xc.CssSyntaxError=ac,xc.Declaration=uc,xc.Container=lc,xc.Processor=fc,xc.Document=dc,xc.Comment=gc,xc.Warning=vc,xc.AtRule=mc,xc.Result=yc,xc.Input=wc,xc.Rule=Cc,xc.Root=Ic,xc.Node=Sc,cc.registerPostcss(xc);var Ac=xc;xc.default=xc;var Oc=Ki(Ac);Oc.stringify,Oc.fromJSON,Oc.plugin,Oc.parse,Oc.list,Oc.document,Oc.comment,Oc.atRule,Oc.rule,Oc.decl,Oc.root,Oc.CssSyntaxError,Oc.Declaration,Oc.Container,Oc.Processor,Oc.Document,Oc.Comment,Oc.Warning,Oc.AtRule,Oc.Result,Oc.Input,Oc.Rule,Oc.Root,Oc.Node;var Ec=function(){function e(){K(this,e),zi(this,"parentElement",null),zi(this,"parentNode",null),zi(this,"ownerDocument"),zi(this,"firstChild",null),zi(this,"lastChild",null),zi(this,"previousSibling",null),zi(this,"nextSibling",null),zi(this,"ELEMENT_NODE",1),zi(this,"TEXT_NODE",3),zi(this,"nodeType"),zi(this,"nodeName"),zi(this,"RRNodeType")}return X(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}},{key:"contains",value:function(t){if(!(t instanceof e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}},{key:"appendChild",value:function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"insertBefore",value:function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}},{key:"removeChild",value:function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"toString",value:function(){return"RRNode"}}]),e}(),Rc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Mc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Nc={};function Tc(e){if(Nc[e])return Nc[e];var t=globalThis[e],r=t.prototype,n=e in Rc?Rc[e]:void 0,o=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),i=e in Mc?Mc[e]:void 0,s=Boolean(i&&i.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(o&&s&&!globalThis.Zone)return Nc[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Nc[e]=c:r}catch(e){return r}}var Lc={};function Pc(e,t,r){var n,o="".concat(e,".").concat(String(r));if(Lc[o])return Lc[o].call(t);var i=Tc(e),s=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return s?(Lc[o]=s,s.call(t)):t[r]}var _c={};function Bc(e,t,r){var n="".concat(e,".").concat(String(r));if(_c[n])return _c[n].bind(t);var o=Tc(e)[r];return"function"!=typeof o?t[r]:(_c[n]=o,o.bind(t))}var Fc={childNodes:function(e){return Pc("Node",e,"childNodes")},parentNode:function(e){return Pc("Node",e,"parentNode")},parentElement:function(e){return Pc("Node",e,"parentElement")},textContent:function(e){return Pc("Node",e,"textContent")},contains:function(e,t){return Bc("Node",e,"contains")(t)},getRootNode:function(e){return Bc("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Pc("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Pc("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Pc("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Pc("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Tc("MutationObserver").constructor}};var Dc="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.",Uc={map:{},getId:function(){return console.error(Dc),-1},getNode:function(){return console.error(Dc),null},removeNodeFromMap:function(){console.error(Dc)},has:function(){return console.error(Dc),!1},reset:function(){console.error(Dc)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Uc=new Proxy(Uc,{get:function(e,t,r){return"map"===t&&console.error(Dc),Reflect.get(e,t,r)}}));var jc=Date.now;function Wc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Fc.parentElement(e):null}/[1-9][0-9]{12}/.test(Date.now().toString())||(jc=function(){return(new Date).getTime()});var Zc=function(){function e(){K(this,e),Jt(this,"id",1),Jt(this,"styleIDMap",new WeakMap),Jt(this,"idStyleMap",new Map)}return X(e,[{key:"getId",value:function(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}();function Gc(e){var t,r=null;return"getRootNode"in e&&(null==(t=Fc.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Fc.host(Fc.getRootNode(e))&&(r=Fc.host(Fc.getRootNode(e))),r}function Yc(e){for(var t,r=e;t=Gc(r);)r=t;return r}function Vc(e){var t=e.ownerDocument;if(!t)return!1;var r=Yc(e);return Fc.contains(t,r)}for(var zc=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:Zc,get _mirror(){return Uc},closestElementOfNode:Wc,getBaseDimension:function e(t,r){var n,o,i=null==(o=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:o.frameElement;if(!i||i===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};var s=i.getBoundingClientRect(),a=e(i,r),u=s.height/i.clientHeight;return{x:s.x*a.relativeScale+a.x,y:s.y*a.relativeScale+a.y,relativeScale:u,absoluteScale:a.absoluteScale*u}},getNestedRule:function e(t,r){var n=t[r[0]];return 1===r.length?n:e(n.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(e){var t=V(e),r=t.pop();return{positions:t,index:r}},getRootShadowHost:Yc,getShadowHost:Gc,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,r,n,o,i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=Fc.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=Fc.parentElement(i.body))?void 0:n.scrollTop)||(null==(o=null==i?void 0:i.body)?void 0:o.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){return!!e&&(e instanceof Ec&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Fc.shadowRoot(e)))},hookSetter:function e(t,r,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,s=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),s&&s.set&&s.set.call(this,e)}}),function(){return e(t,r,s||{},!0)}},inDom:function(e){var t=e.ownerDocument;return!!t&&(Fc.contains(t,e)||Vc(e))},isAncestorRemoved:function e(t,r){if(o=(n=t)&&"host"in n&&"mode"in n&&ir.host(n)||null,Boolean(o&&"shadowRoot"in o&&ir.shadowRoot(o)===n))return!1;var n,o,i=r.getId(t);if(!r.has(i))return!0;var s=Fc.parentNode(t);return(!s||s.nodeType!==t.DOCUMENT_NODE)&&(!s||e(s,r))},isBlocked:function(e,t,r,n){if(!e)return!1;var o=Wc(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(ar(o,t,n))return!0}catch(e){}if(r){if(o.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1},isIgnored:function(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)},isSerialized:function(e,t){return-1!==t.getId(e)},isSerializedIframe:function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,r){r(t.value);for(var n=t.children.length-1;n>=0;n--)e(t.children[n],r)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return jc},on:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,function(){e[t]=n}}catch(e){return function(){}}},polyfill:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)},queueToResolveTrees:function(e){var t,r={},n=function(e,t){var n={value:e,parent:t,children:[]};return r[e.node.id]=n,n},o=[],i=c(e);try{for(i.s();!(t=i.n()).done;){var s=t.value,a=s.nextId,u=s.parentId;if(a&&a in r){var l=r[a];if(l.parent){var f=l.parent.children.indexOf(l);l.parent.children.splice(f,0,n(s,l.parent))}else{var h=o.indexOf(l);o.splice(h,0,n(s,null))}}else if(u in r){var p=r[u];p.children.push(n(s,p))}else o.push(n(s,null))}}catch(e){i.e(e)}finally{i.f()}return o},shadowHostInDom:Vc,throttle:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();o||!1!==r.leading||(o=u);var c=t-(u-o),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout((function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)}),c))}},uniqueTextMutations:function(e){for(var t=new Set,r=[],n=e.length;n--;){var o=e[n];t.has(o.id)||(r.push(o),t.add(o.id))}return r}},Symbol.toStringTag,{value:"Module"})),Kc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Xc=0;Xc<Kc.length;Xc++)Jc[Kc.charCodeAt(Xc)]=Xc;var Hc,Qc;"undefined"!=typeof window&&window.Blob&&new Blob([function(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))}("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=")],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var qc=document.createElement("iframe");document.body.appendChild(qc),Array.from=(null==(Tt=qc.contentWindow)?void 0:Tt.Array.from)||Array.from,document.body.removeChild(qc)}}catch(e){console.debug("Unable to override Array.from",e)}new sr,(Qc=Hc||(Hc={}))[Qc.NotStarted=0]="NotStarted",Qc[Qc.Running=1]="Running",Qc[Qc.Stopped=2]="Stopped";var $c=function(){function e(t){K(this,e),zt(this,"fileName"),zt(this,"functionName"),zt(this,"lineNumber"),zt(this,"columnNumber"),this.fileName=t.fileName||"",this.functionName=t.functionName||"",this.lineNumber=t.lineNumber,this.columnNumber=t.columnNumber}return X(e,[{key:"toString",value:function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?"".concat(this.functionName," (").concat(this.fileName,":").concat(e,":").concat(t,")"):"".concat(this.fileName,":").concat(e,":").concat(t)}}]),e}(),el=/(^|@)\S+:\d+/,tl=/^\s*at .*(\S+:\d+|\(native\))/m,rl=/^(eval@)?(\[native code])?$/,nl={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(tl)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: ".concat(e));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(tl)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(r?r[1]:n.pop()),i=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new $c({functionName:i,fileName:s,lineNumber:o[1],columnNumber:o[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(rl)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new $c({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,o=this.extractLocation(e.replace(t,""));return new $c({functionName:n,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],o=2,i=r.length;o<i;o+=2){var s=t.exec(r[o]);s&&n.push(new $c({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],o=0,i=r.length;o<i;o+=2){var s=t.exec(r[o]);s&&n.push(new $c({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(el)&&!e.match(/^Error created at/)}),this).map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new $c({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function ol(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,o=[];if(n.children&&n.children.length>0)for(var i=0;i<n.children.length;i++){var s=n.children[i];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&o.push(s)}o.length>1&&(r+=":eq(".concat(o.indexOf(e),")")),t=r+(t?">"+t:""),e=n}return t}function il(e){return"[object Object]"===Object.prototype.toString.call(e)}function sl(e,t){if(0===t)return!0;for(var r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(il(e[o])&&sl(e[o],t-1))return!0}return!1}function al(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],o=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?o.splice(i,1/0,e):o.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(il(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(il(e)&&sl(e,r.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t="".concat(t.slice(0,r.stringLengthLimit),"..."));return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){var s={};for(var a in t){var u=t[a];Array.isArray(u)?s[a]=ol(u.length?u[0]:null):s[a]=u}return s}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var ul={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 cl(e,t,r){var n,o=r?Object.assign({},ul,r):ul,i=o.logger;if(!i)return function(){};n="string"==typeof i?t[i]:i;var s=0,a=!1,u=[];if(o.level.includes("error")){var l=function(t){var r=t.message,n=t.error,i=nl.parse(n).map((function(e){return e.toString()})),s=[al(r,o.stringifyOptions)];e({level:"error",trace:i,payload:s})};t.addEventListener("error",l),u.push((function(){t.removeEventListener("error",l)}));var f=function(t){var r,n;t.reason instanceof Error?(r=t.reason,n=[al("Uncaught (in promise) ".concat(r.name,": ").concat(r.message),o.stringifyOptions)]):(r=new Error,n=[al("Uncaught (in promise)",o.stringifyOptions),al(t.reason,o.stringifyOptions)]);var i=nl.parse(r).map((function(e){return e.toString()}));e({level:"error",trace:i,payload:n})};t.addEventListener("unhandledrejection",f),u.push((function(){t.removeEventListener("unhandledrejection",f)}))}var h,p=c(o.level);try{for(p.s();!(h=p.n()).done;){var d=h.value;u.push(v(n,d))}}catch(e){p.e(e)}finally{p.f()}return function(){u.forEach((function(e){return e()}))};function v(t,r){var n=this;return t[r]?zc.patch(t,r,(function(t){return function(){for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];if(t.apply(n,u),!("assert"===r&&u[0]||a)){a=!0;try{var l=nl.parse(new Error).map((function(e){return e.toString()})).splice(1),f="assert"===r?u.slice(1):u,h=f.map((function(e){return al(e,o.stringifyOptions)}));++s<o.lengthThreshold?e({level:r,trace:l,payload:h}):s===o.lengthThreshold&&e({level:"warn",trace:[],payload:[al("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,["rrweb logger error:",e].concat(u))}finally{a=!1}}}})):function(){}}}var ll=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},fl=function(){var e,t,r;if(localStorage.getItem("rlog-deviceId"))return localStorage.getItem("rlog-deviceId");var n=(null===(e=localStorage)||void 0===e?void 0:e.getItem("utoken"))||(null===(t=localStorage)||void 0===t?void 0:t.getItem("IWP-iwp-deivceTag"))||ll();return null===(r=localStorage)||void 0===r||r.setItem("rlog-deviceId",n),n},hl=r(150),pl=r.n(hl),dl="logs",vl=function(){function e(){J()(this,e),pl()(this,"db",null),pl()(this,"isOpening",!1),pl()(this,"openPromise",null),this.openDB().catch(console.error)}var t,r,n,i,a,u,c,l;return H()(e,[{key:"openDB",value:(l=s()(o()().mark((function e(){var t=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return");case 2:if(!this.isOpening||!this.openPromise){e.next=4;break}return e.abrupt("return",this.openPromise);case 4:return this.isOpening=!0,this.openPromise=new Promise((function(e,r){var n=indexedDB.open("LogStorageDB",2);n.onupgradeneeded=function(e){var t=e.target.result;if(t.objectStoreNames.contains(dl)){var r=e.target.transaction;if(r){var n=r.objectStore(dl);n.indexNames.contains("lastModified")||n.createIndex("lastModified","lastModified",{unique:!1})}}else t.createObjectStore(dl,{keyPath:"deviceId"}).createIndex("lastModified","lastModified",{unique:!1})},n.onsuccess=function(r){t.db=r.target.result,t.isOpening=!1,e()},n.onerror=function(e){t.isOpening=!1,r(e.target.error)},n.onblocked=function(){console.warn("IndexedDB is blocked, trying to close existing connections..."),t.isOpening=!1,r(new Error("IndexedDB blocked"))}})),e.abrupt("return",this.openPromise);case 7:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"ensureDB",value:(c=s()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.openDB();case 3:if(this.db){e.next=5;break}throw new Error("Failed to open IndexedDB");case 5:return e.abrupt("return",this.db);case 6:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"withTransaction",value:(u=s()(o()().mark((function e(t,r){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureDB();case 2:return n=e.sent,e.abrupt("return",new Promise((function(e,o){var i,s=n.transaction([dl],t),a=s.objectStore(dl);s.onerror=function(){return o(s.error)},s.oncomplete=function(){setTimeout((function(){return e(i)}),0)},r(a).then((function(e){i=e}),o)})));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"push",value:(a=s()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var i=n.get(t);i.onsuccess=function(){var s=i.result||{deviceId:t,data:[],lastModified:Date.now(),version:1};s.data.push(r),s.lastModified=Date.now(),s.version=(s.version||1)+1,s.data.length>1e4&&s.data.splice(0,s.data.length-1e4);var a=n.put(s);a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}},i.onerror=function(){return o(i.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"unshift",value:(i=s()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var i=n.get(t);i.onsuccess=function(){var s=i.result||{deviceId:t,data:[],lastModified:Date.now(),version:1};s.data.unshift(r),s.lastModified=Date.now(),s.version=(s.version||1)+1,s.data.length>1e4&&s.data.splice(0,s.data.length-1e4);var a=n.put(s);a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}},i.onerror=function(){return o(i.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"unshiftBatch",value:(n=s()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var i=n.get(t);i.onsuccess=function(){var s,a=i.result||{deviceId:t,data:[],lastModified:Date.now(),version:1};(s=a.data).unshift.apply(s,z()(r)),a.lastModified=Date.now(),a.version=(a.version||1)+1,a.data.length>1e4&&a.data.splice(0,a.data.length-1e4);var u=n.put(a);u.onsuccess=function(){return e()},u.onerror=function(){return o(u.error)}},i.onerror=function(){return o(i.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=s()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var i=n.get(t);i.onsuccess=function(){var s=i.result||{deviceId:t,data:[],lastModified:Date.now(),version:1};if(0!==s.data.length){var a=Math.min(r,s.data.length),u=s.data.slice(0,a);if(s.data=s.data.slice(a),s.lastModified=Date.now(),s.version=(s.version||1)+1,s.data.length>0){var c=n.put(s);c.onsuccess=function(){return e(u)},c.onerror=function(){return o(c.error)}}else{var l=n.delete(t);l.onsuccess=function(){return e(u)},l.onerror=function(){return o(l.error)}}}else e([])},i.onerror=function(){return o(i.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=s()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.withTransaction("readwrite",function(){var e=s()(o()().mark((function e(r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var o=r.delete(t);o.onsuccess=function(){return e()},o.onerror=function(){return n(o.error)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),gl=function(){function e(){J()(this,e),pl()(this,"storage",new Map),pl()(this,"locks",new Map)}var t,r,n,i,a,u;return H()(e,[{key:"acquireLock",value:(u=s()(o()().mark((function e(t){var r,n,i,s=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t;case 1:if(!this.locks.has(r)){e.next=6;break}return e.next=4,this.locks.get(r);case 4:e.next=1;break;case 6:return i=new Promise((function(e){n=e})),this.locks.set(r,i),e.abrupt("return",(function(){s.locks.delete(r),n()}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"push",value:(a=s()(o()().mark((function e(t,r){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:n=e.sent;try{this.storage.has(t)||this.storage.set(t,[]),(i=this.storage.get(t)).push(r),i.length>1e4&&i.splice(0,i.length-1e4)}finally{n()}case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"unshift",value:(i=s()(o()().mark((function e(t,r){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:n=e.sent;try{this.storage.has(t)||this.storage.set(t,[]),(i=this.storage.get(t)).unshift(r),i.length>1e4&&i.splice(0,i.length-1e4)}finally{n()}case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"unshiftBatch",value:(n=s()(o()().mark((function e(t,r){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:n=e.sent;try{this.storage.has(t)||this.storage.set(t,[]),(i=this.storage.get(t)).unshift.apply(i,z()(r)),i.length>1e4&&i.splice(0,i.length-1e4)}finally{n()}case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=s()(o()().mark((function e(t,r){var n,i,s,a,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:if(n=e.sent,e.prev=3,0!==(i=this.storage.get(t)||[]).length){e.next=7;break}return e.abrupt("return",[]);case 7:return s=Math.min(r,i.length),a=i.slice(0,s),(u=i.slice(s)).length>0?this.storage.set(t,u):this.storage.delete(t),e.abrupt("return",a);case 12:return e.prev=12,n(),e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[3,,12,15]])}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=s()(o()().mark((function e(t){var r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.acquireLock(t);case 2:r=e.sent;try{this.storage.delete(t)}finally{r()}case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getStorageState",value:function(){var e={};return this.storage.forEach((function(t,r){e[r]=t.length})),e}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();pl()(gl,"instance",void 0);var ml=function(){function e(){J()(this,e)}var t,r,n,i,a,u,c;return H()(e,[{key:"acquireLock",value:(c=s()(o()().mark((function t(r){var n,i,s,a,u,c;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n="".concat(e.LOCK_KEY_PREFIX).concat(r),i="".concat(Date.now(),"_").concat(Math.random()),t.prev=2,!(s=localStorage.getItem(n))){t.next=8;break}if(a=s.split("_"),u=Y()(a,1),c=u[0],!(Date.now()-parseInt(c)<e.LOCK_TIMEOUT)){t.next=8;break}return t.abrupt("return",!1);case 8:if(localStorage.setItem(n,i),localStorage.getItem(n)!==i){t.next=12;break}return t.abrupt("return",!0);case 12:return t.abrupt("return",!1);case 15:return t.prev=15,t.t0=t.catch(2),console.warn("Failed to acquire lock:",t.t0),t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,15]])}))),function(e){return c.apply(this,arguments)})},{key:"releaseLock",value:function(t){var r="".concat(e.LOCK_KEY_PREFIX).concat(t);try{localStorage.removeItem(r)}catch(e){console.warn("Failed to release lock:",e)}}},{key:"withLock",value:(u=s()(o()().mark((function t(r,n){var i,s;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=0;case 1:if(!(i<e.MAX_RETRIES)){t.next=18;break}return t.next=4,this.acquireLock(r);case 4:if(!t.sent){t.next=13;break}return t.prev=5,t.next=8,n();case 8:return s=t.sent,t.abrupt("return",s);case 10:return t.prev=10,this.releaseLock(r),t.finish(10);case 13:return i++,t.next=16,new Promise((function(t){return setTimeout(t,e.RETRY_DELAY)}));case 16:t.next=1;break;case 18:throw new Error("Failed to acquire lock after maximum retries");case 19:case"end":return t.stop()}}),t,this,[[5,,10,13]])}))),function(e,t){return u.apply(this,arguments)})},{key:"getStorageKey",value:function(t){return"".concat(e.STORAGE_KEY_PREFIX).concat(t)}},{key:"push",value:(a=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.getStorageKey(t),s=localStorage.getItem(i),(a=s?JSON.parse(s):[]).push(r),a.length>1e4&&a.splice(0,a.length-1e4),localStorage.setItem(i,JSON.stringify(a));case 6:case"end":return e.stop()}}),e)}))));case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.warn("LocalStorage不可用,将使用内存缓存"),e.abrupt("return",gl.getInstance().push(t,r));case 9:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return a.apply(this,arguments)})},{key:"unshift",value:(i=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.getStorageKey(t),s=localStorage.getItem(i),(a=s?JSON.parse(s):[]).unshift(r),a.length>1e4&&a.splice(0,a.length-1e4),localStorage.setItem(i,JSON.stringify(a));case 6:case"end":return e.stop()}}),e)}))));case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.warn("LocalStorage不可用,将使用内存缓存"),e.abrupt("return",gl.getInstance().unshift(t,r));case 9:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return i.apply(this,arguments)})},{key:"unshiftBatch",value:(n=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.getStorageKey(t),s=localStorage.getItem(i),(a=s?JSON.parse(s):[]).unshift.apply(a,z()(r)),a.length>1e4&&a.splice(0,a.length-1e4),localStorage.setItem(i,JSON.stringify(a));case 6:case"end":return e.stop()}}),e)}))));case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.warn("LocalStorage不可用,将使用内存缓存"),e.abrupt("return",gl.getInstance().unshiftBatch(t,r));case 9:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var i,s,a,u,c,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.getStorageKey(t),s=localStorage.getItem(i),0!==(a=s?JSON.parse(s):[]).length){e.next=5;break}return e.abrupt("return",[]);case 5:return u=Math.min(r,a.length),c=a.slice(0,u),(l=a.slice(u)).length>0?localStorage.setItem(i,JSON.stringify(l)):localStorage.removeItem(i),e.abrupt("return",c);case 10:case"end":return e.stop()}}),e)}))));case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",gl.getInstance().pull(t,r));case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=s()(o()().mark((function e(t){var r=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.withLock(t,s()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.getStorageKey(t),localStorage.removeItem(n);case 2:case"end":return e.stop()}}),e)}))));case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",gl.getInstance().clear(t));case 8:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e){return t.apply(this,arguments)})}]),e}();pl()(ml,"LOCK_KEY_PREFIX","rlog_lock_"),pl()(ml,"STORAGE_KEY_PREFIX","rlog_data_"),pl()(ml,"LOCK_TIMEOUT",5e3),pl()(ml,"RETRY_DELAY",10),pl()(ml,"MAX_RETRIES",50);var yl=function(){function e(){J()(this,e),pl()(this,"adapter",void 0),pl()(this,"operationQueue",new Map),this.adapter=this.selectAdapter()}var t,r,n,i,a,u,c;return H()(e,[{key:"selectAdapter",value:function(){if("undefined"!=typeof window&&window.indexedDB)try{var e=indexedDB.open("__rlog_test__",1);return e.onerror=function(){throw new Error("IndexedDB blocked")},e.onsuccess=function(){e.result.close(),indexedDB.deleteDatabase("__rlog_test__")},new vl}catch(e){console.warn("IndexedDB不可用,降级使用LocalStorage")}if("undefined"!=typeof window&&window.localStorage)try{var t="__rlog_storage_test__";return window.localStorage.setItem(t,"test"),window.localStorage.removeItem(t),new ml}catch(e){console.warn("LocalStorage不可用,降级使用内存缓存")}return gl.getInstance()}},{key:"serialize",value:(c=s()(o()().mark((function e(t,r){var n,i,s,a=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,i=this.operationQueue.get(n)||Promise.resolve(),s=i.then((function(){return r()})).catch((function(e){throw console.error("Storage operation failed:",e),e})).finally((function(){a.operationQueue.get(n)===s&&a.operationQueue.delete(n)})),this.operationQueue.set(n,s),e.abrupt("return",s);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"push",value:(u=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return n.adapter.push(t,r)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"unshift",value:(a=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return n.adapter.unshift(t,r)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"unshiftBatch",value:(i=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return n.adapter.unshiftBatch(t,r)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"pull",value:(n=s()(o()().mark((function e(t,r){var n=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return n.adapter.pull(t,r)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"clear",value:(r=s()(o()().mark((function e(t){var r=this;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.serialize(t,(function(){return r.adapter.clear?r.adapter.clear(t):(console.warn("Storage adapter does not support clear operation"),Promise.resolve())})));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getAdapterType",value:function(){return this.adapter instanceof vl?"IndexedDB":this.adapter instanceof ml?"LocalStorage":this.adapter instanceof gl?"Memory":"Unknown"}},{key:"getStorageState",value:(t=s()(o()().mark((function e(t){var r,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.getAdapterType(),e.prev=1,e.next=4,this.pull(t,1e4);case 4:if(!((n=e.sent).length>0)){e.next=8;break}return e.next=8,this.unshiftBatch(t,n);case 8:return e.abrupt("return",{adapterType:r,eventCount:n.length});case 11:return e.prev=11,e.t0=e.catch(1),e.abrupt("return",{adapterType:r,eventCount:-1});case 14:case"end":return e.stop()}}),e,this,[[1,11]])}))),function(e){return t.apply(this,arguments)})}]),e}(),wl=new yl,bl=["https://api.example.com","https://analytics.example.org"],kl={},Cl=["sky_trace_id","antbank-traceid"];function Il(e){try{return e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:""}catch(r){var t=e.match(/^https?:\/\/([^\/]+)/);return t?t[1]:""}}function Sl(e,t){try{if(e.startsWith("http://")||e.startsWith("https://"))return t.some((function(t){return e.startsWith(t)}));var r=Il(window.location.href);return t.some((function(e){var t=Il(e);return r===t}))}catch(e){return!1}}var xl=XMLHttpRequest.prototype.open,Al=XMLHttpRequest.prototype.send,Ol=window.fetch;function El(){xl&&(XMLHttpRequest.prototype.open=xl),Al&&(XMLHttpRequest.prototype.send=Al),Ol&&(window.fetch=Ol),!1,console.log("RLog network monitoring restored")}function Rl(e){if(e&&e.length>0){var t=bl.concat(e),r=Array.from(new Set(t));bl.splice.apply(bl,[0,bl.length].concat(r))}}function Ml(e){Object.assign(kl,e)}function Nl(e){return Tl.apply(this,arguments)}function Tl(){return Tl=s()(o()().mark((function e(t){var r,n=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.abrupt("return",new Promise((function(e,n){var o=r.method,i=void 0===o?"GET":o,s=r.headers,a=void 0===s?{}:s,u=r.body,c=r.timeout,l=void 0===c?1e4:c,f=new XMLHttpRequest;f.timeout=l,f.onreadystatechange=function(){if(4===f.readyState){var t={ok:f.status>=200&&f.status<300,status:f.status,statusText:f.statusText,data:null,json:function(){return Promise.resolve(JSON.parse(f.responseText))},text:function(){return Promise.resolve(f.responseText)}};try{t.data=JSON.parse(f.responseText)}catch(e){t.data=f.responseText}t.ok?e(t):n(new Error("HTTP ".concat(f.status,": ").concat(f.statusText)))}},f.onerror=function(){n(new Error("Network error"))},f.ontimeout=function(){n(new Error("Request timeout"))},f.open(i,t,!0),Object.keys(a).forEach((function(e){f.setRequestHeader(e,a[e])})),u instanceof FormData?f.send(u):"object"===h()(u)?(f.setRequestHeader("Content-Type","application/json"),f.send(JSON.stringify(u))):f.send(u||null)})));case 2:case"end":return e.stop()}}),e)}))),Tl.apply(this,arguments)}function Ll(e){return Pl.apply(this,arguments)}function Pl(){return Pl=s()(o()().mark((function e(t){var r,n=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.abrupt("return",Nl(t,u()(u()({},r),{},{method:"GET"})));case 2:case"end":return e.stop()}}),e)}))),Pl.apply(this,arguments)}function _l(e,t){return Bl.apply(this,arguments)}function Bl(){return Bl=s()(o()().mark((function e(t,r){var n,i=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:{},e.abrupt("return",Nl(t,u()(u()({},n),{},{method:"POST",body:r})));case 2:case"end":return e.stop()}}),e)}))),Bl.apply(this,arguments)}var Fl={enable:!0,samplingRate:15,uploadInterval:2e3,configUpdateInterval:3e5,console:!1,http:!1,consumeOnly:!1,maxRetryCount:3,checkoutEveryNms:2e3,ignoreClass:"rr-ignore",blockClass:"rr-block",maskTextClass:"rr-mask",sampling:{mousemove:50,scroll:100,input:"last"},error:!1},Dl=u()({},Fl);function Ul(e){return jl.apply(this,arguments)}function jl(){return(jl=s()(o()().mark((function e(t){var r,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ll(t);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed to fetch config: ".concat(r.status));case 6:if(n={},r.data)if("object"!==h()(r.data)||r.data.data){if("object"===h()(r.data.data))n=r.data.data;else if("string"==typeof r.data.data)try{n=JSON.parse(r.data.data)}catch(e){console.warn("Failed to parse config JSON string:",e)}}else n=r.data;return e.abrupt("return",u()(u()({},Fl),n));case 11:return e.prev=11,e.t0=e.catch(0),console.warn("Failed to fetch config from CDN, using default config:",e.t0),e.abrupt("return",u()({},Fl));case 15:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function Wl(e){Dl=u()(u()({},Dl),e)}function Zl(){return u()({},Dl)}function Gl(){return(Gl=s()(o()().mark((function e(t){var r,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=7;break}return e.next=3,Ul(t);case 3:Wl(r=e.sent),(n=r.configUpdateInterval||Fl.configUpdateInterval)&&setInterval(s()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ul(t);case 3:Wl(e.sent),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.warn("Failed to update config from CDN:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Yl=null,Vl=function(){Yl&&Yl()},zl=function(){var e=Zl();if(e.enable){var t,r,n=fl();Yl=Nt({emit:function(e){var t=console.log.__rrweb_original__?console.log.__rrweb_original__:console.log;e.type!==de.IncrementalSnapshot&&t("event",e),wl.push(n,e)},recordCanvas:!0,sampling:u()({canvas:e.samplingRate},e.sampling||{}),checkoutEveryNms:e.checkoutEveryNms,ignoreClass:e.ignoreClass,blockClass:e.blockClass,maskTextClass:e.maskTextClass,dataURLOptions:{type:"image/webp",quality:.6},collectFonts:!0,recordCrossOriginIframes:!0,plugins:e.console?[(t={stringifyOptions:{numOfKeysLimit:50,depthOfLimit:4},logger:window.console},{name:"rrweb/console@1",observer:cl,options:t})]:[]}),Ml({"rlog-deviceId":n}),Rl(["http://alipay-rmsdeploy-image.cn-hangzhou.alipay.aliyun-inc.com"]),e.http&&(r=Nt,XMLHttpRequest.prototype.open=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return this._rlogRequest={method:e,url:t.toString(),startTime:0,endTime:0},xl.apply(this,[e,t,r,n,o])},XMLHttpRequest.prototype.send=function(e){var t=this,n=this._rlogRequest;return n.startTime=Date.now(),n.method,Object.entries(kl).forEach((function(e){var r=Y()(e,2),n=r[0],o=r[1];t.setRequestHeader(n,o)})),this.addEventListener("load",(function(){var e=this;if(n.endTime=Date.now(),Sl(n.url,bl)){var t={};Cl.forEach((function(r){try{var n=e.getResponseHeader(r);n&&(t[r]=n)}catch(e){console.warn("无法获取响应头 ".concat(r,":"),e)}})),r.addCustomEvent("http-success",u()(u()({},n),{},{dur:n.endTime-n.startTime,responseHeaders:t}))}})),this.addEventListener("error",(function(){r.addCustomEvent("http-error",u()(u()({},n),{},{dur:n.endTime-n.startTime}))})),Al.apply(this,[e])},window.fetch=function(){var e=s()(o()().mark((function e(t,n){var i,s,a,c,l,f,h;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t instanceof Request?t.url:t.toString(),s=(null==n?void 0:n.method)||(t instanceof Request?t.method:"GET").toUpperCase(),a=Date.now(),e.prev=3,(c=u()({},n)).headers=u()(u()({},(null==n?void 0:n.headers)||{}),kl),e.next=8,Ol(t,c);case 8:return l=e.sent,f=Date.now(),Sl(i,bl)&&(console.log("[Fetch] ".concat(s," ").concat(i," - ").concat(f-a,"ms")),h={},Cl.forEach((function(e){try{var t=l.headers.get(e);t&&(h[e]=t)}catch(t){console.warn("无法获取响应头 ".concat(e,":"),t)}})),r.addCustomEvent("http-success",{url:i,method:s,dur:f-a,responseHeaders:h})),e.abrupt("return",l);case 14:throw e.prev=14,e.t0=e.catch(3),console.error("[Fetch Error] ".concat(s," ").concat(i),e.t0),r.addCustomEvent("http-error",{url:i,method:s}),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,r){return e.apply(this,arguments)}}())}else console.log("RLog recording is disabled by config")},Kl=function(){var e=Zl().urlParamsToCache||["taskId"],t=new URLSearchParams(window.location.search);e.forEach((function(e){var r=t.get(e);r&&sessionStorage.setItem("rlog-".concat(e),r)}))},Jl=function(e){return sessionStorage.getItem("rlog-".concat(e))},Xl=function(){var e=s()(o()().mark((function e(t){var r,n,i,s,a,u,c,l,f,p,d;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Kl(),i=t.data&&t.data.length>0?t.data.length-1:-1,s={deviceId:t.deviceId,appId:t.appId,startTime:null===(r=t.data)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.timestamp,endTime:null===(n=t.data)||void 0===n||null===(n=n[i])||void 0===n?void 0:n.timestamp},a=Zl(),(a.urlParamsToCache||["taskId"]).forEach((function(e){var t=Jl(e);t&&(s[e]=t)})),u=new URLSearchParams(s),c="".concat(t.url).concat(u?"?".concat(u):""),(l=new FormData).append("file",new Blob([JSON.stringify(t.data)]),ll()+".json"),e.next=12,_l(c,l);case 12:f=e.sent,e.prev=13,p="string"==typeof f.data?JSON.parse(f.data):f.data,e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(13),e.abrupt("return");case 20:if(!p||"object"!==h()(p)||!1!==p.success){e.next=24;break}throw(d=new Error(p.errorMessage||"Upload failed with success=false")).responseData=p,d;case 24:case"end":return e.stop()}}),e,null,[[13,17]])})));return function(t){return e.apply(this,arguments)}}(),Hl=!1,Ql=new Map,ql=!1;function $l(){Hl=!0,ql=!1}var ef={enable:!1,trackHashChange:!0,trackHistoryChange:!0,trackPageStayTime:!0,ignoreRoutes:[],customMatchers:[]},tf=u()({},ef),rf="",nf=Date.now(),of=!1,sf=null,af=null;function uf(){if("undefined"==typeof window)return"";var e=window.location.pathname+window.location.search+window.location.hash;if(tf.customMatchers){var t,r=l()(tf.customMatchers);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.pattern.test(e))return n.name}}catch(e){r.e(e)}finally{r.f()}}return e}function cf(e,t,r){if(tf.enable&&(n=t,!tf.ignoreRoutes||!tf.ignoreRoutes.some((function(e){return"string"==typeof e?n.includes(e):e instanceof RegExp&&e.test(n)})))){var n,o={type:"route-change",from:e,to:t,method:r,timestamp:Date.now()};tf.trackPageStayTime&&e&&(o.duration=Date.now()-nf),Nt.addCustomEvent("route-change",o),nf=Date.now()}}function lf(){var e=rf,t=uf();e!==t&&cf(e,t,"popstate")}function ff(){var e=rf,t=uf();e!==t&&cf(e,t,"hashchange")}function hf(e){of||"undefined"==typeof window||(tf=u()(u()({},ef),e)).enable&&(rf=uf(),nf=Date.now(),tf.trackHistoryChange&&"undefined"!=typeof window&&(sf=window.history.pushState,af=window.history.replaceState,window.history.pushState=function(){for(var e=uf(),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=sf.apply(this,r),i=uf();return e!==i&&cf(e,i,"pushState"),o},window.history.replaceState=function(){for(var e=uf(),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=af.apply(this,r),i=uf();return e!==i&&cf(e,i,"replaceState"),o},window.addEventListener("popstate",lf)),tf.trackHashChange&&"undefined"!=typeof window&&window.addEventListener("hashchange",ff),of=!0)}function pf(e){tf=u()(u()({},tf),e)}function df(){return{currentRoute:rf,startTime:nf,stayTime:Date.now()-nf}}function vf(e,t){cf(t||rf,e,"pushState")}function gf(){of&&(sf&&af&&"undefined"!=typeof window&&(window.history.pushState=sf,window.history.replaceState=af),"undefined"!=typeof window&&(window.removeEventListener("popstate",lf),window.removeEventListener("hashchange",ff)),of=!1,sf=null,af=null,console.log("Router monitor stopped"))}var mf=[],yf=function(e){if(Zl().error)try{Nt.addCustomEvent("custom-error-event",e)}catch(t){console.log("RLog Error captured:",e)}};function wf(){console.log("Cleaning up RLog error handlers..."),mf.forEach((function(e){var t=e.target,r=e.type,n=e.listener,o=e.options;try{t.removeEventListener(r,n,o)}catch(e){console.warn("Failed to remove event listener for ".concat(r,":"),e)}})),mf.length=0,console.log("RLog error handlers cleaned up successfully")}function bf(e,t,r){Hl=!1,ql=!1,function(e){return Gl.apply(this,arguments)}(r).then((function(){var r=Zl();r.enable?(zl(),function(e,t){var r=function(){var n=s()(o()().mark((function n(){var i,s,a,u,c,l,f,h,p;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Hl){n.next=3;break}return console.log("RLog upload has been cancelled"),n.abrupt("return");case 3:if(!ql){n.next=6;break}return setTimeout((function(){r()}),100),n.abrupt("return");case 6:if((i=Zl()).enable){n.next=10;break}return console.log("RLog is disabled by config, stopping upload"),n.abrupt("return");case 10:return n.prev=10,ql=!0,n.next=14,wl.pull(fl(),100);case 14:if((s=n.sent)&&0!==s.length){n.next=19;break}return ql=!1,setTimeout((function(){r()}),i.uploadInterval),n.abrupt("return");case 19:if(a=Zl(),"true"!==sessionStorage.getItem("RLOG_CONSUME_ONLY")&&!a.consumeOnly){n.next=26;break}console.log("RLog consume only mode, skip upload"),ql=!1,n.next=60;break;case 26:return n.prev=26,n.next=29,Xl({appId:t,data:s,deviceId:fl(),url:e});case 29:u="".concat(t,"_").concat(fl()),Ql.delete(u),ql=!1,n.next=60;break;case 34:if(n.prev=34,n.t0=n.catch(26),console.warn("Upload failed:",n.t0),ql=!1,c=a.maxRetryCount||3,l="".concat(t,"_").concat(fl()),f=Ql.get(l)||0,h=f+1,Ql.set(l,h),!(h>=c)){n.next=57;break}console.warn("Upload failed ".concat(c," times consecutively, stopping upload")),p=new CustomEvent("rlog-upload-failure",{detail:{error:n.t0,retryCount:c,appId:t,deviceId:fl()}}),"undefined"!=typeof window&&window.dispatchEvent(p);try{Nt.addCustomEvent("rlog-upload-failure",{error:n.t0,retryCount:c,appId:t,deviceId:fl(),timestamp:Date.now()})}catch(e){console.warn("Failed to record upload failure event via addCustomEvent:",e)}return Ql.delete(l),$l(),setTimeout((function(){Vl()}),0),console.error("RLog upload and recording stopped due to repeated failures"),n.next=54,wl.unshiftBatch(fl(),s);case 54:return n.abrupt("return");case 57:return console.warn("Upload failed ".concat(h," time(s), will retry in next cycle")),n.next=60,wl.unshiftBatch(fl(),s);case 60:n.next=66;break;case 62:n.prev=62,n.t1=n.catch(10),ql=!1,console.error("Error in upload loop:",n.t1);case 66:setTimeout((function(){r()}),i.uploadInterval);case 67:case"end":return n.stop()}}),n,null,[[10,62],[26,34]])})));return function(){return n.apply(this,arguments)}}();r()}(e,t),r.routerMonitor&&hf(r.routerMonitor),function(){if(Zl().error){console.log("RLog error handling is enabled");var e=function(e){if(e.target!==window){var t={type:"RESOURCE_ERROR",resourceType:e.target.tagName,url:e.target.src||e.target.href||e.target.src,message:e.message,userAgent:navigator.userAgent,timestamp:Date.now(),location:window.location.href};return yf(t),!1}var r=e.message,n=e.filename,o=e.lineno,i=e.colno,s=e.error,a={type:"JS_ERROR",message:r,file:n,line:o,column:i,stack:null==s?void 0:s.stack,userAgent:navigator.userAgent,timestamp:Date.now(),location:window.location.href};return yf(a),!1};window.addEventListener("error",e,!0),mf.push({target:window,type:"error",listener:e,options:!0});var t=function(e){var t=e.reason||"Unknown rejection",r={type:"PROMISE_REJECTION",message:"string"==typeof t?t:t.message,stack:"object"===h()(t)?t.stack:null,timestamp:Date.now(),location:window.location.href};yf(r),e.preventDefault()};window.addEventListener("unhandledrejection",t),mf.push({target:window,type:"unhandledrejection",listener:t});var r=function(){yf({type:"PAGE_LOAD",url:window.location.href,timestamp:Date.now()})};window.addEventListener("load",r),mf.push({target:window,type:"load",listener:r});var n=function(){yf({type:"PAGE_UNLOAD",url:window.location.href,timestamp:Date.now()})};window.addEventListener("beforeunload",n),mf.push({target:window,type:"beforeunload",listener:n});var o=function(){yf({type:"NETWORK_ONLINE",timestamp:Date.now()})};window.addEventListener("online",o),mf.push({target:window,type:"online",listener:o});var i=function(){yf({type:"NETWORK_OFFLINE",timestamp:Date.now()})};window.addEventListener("offline",i),mf.push({target:window,type:"offline",listener:i})}else console.log("RLog error handling is disabled")}()):console.log("RLog is disabled by config")})).catch((function(e){console.error("Failed to initialize RLog:",e)}))}var kf=!1;function Cf(e){return kf=!1,bf(e.serv,e.appId,e.cdnConfigUrl),{cancel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(kf)console.warn("RLog SDK has already been cancelled");else{kf=!0;try{if(Vl(),$l(),"undefined"!=typeof window&&window.XMLHttpRequest&&El(),gf(),wf(),e.clearData){var t=fl();t&&wl.clear(t).catch((function(e){console.error("Error clearing storage:",e)}))}console.log("RLog SDK cancelled successfully")}catch(e){console.error("Error cancelling RLog SDK:",e)}}}}}function If(){Vl()}function Sf(e,t){Nt.addCustomEvent(e,t)}function xf(e){Wl({consumeOnly:e}),console.log("RLog consume only mode ".concat(e?"enabled":"disabled"))}function Af(){return!!Zl().consumeOnly}function Of(){var e=!Zl().consumeOnly;return xf(e),e}var Ef={getStorageAdapterType:function(){return wl.getAdapterType()},getDeviceId:fl,resetUploadState:function(){Hl=!1,ql=!1,Ql.clear()},getStorageState:function(){return s()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=fl(),e.abrupt("return",wl.getStorageState(t));case 2:case"end":return e.stop()}}),e)})))()},clearStorage:function(){return s()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=fl(),e.abrupt("return",wl.clear(t));case 2:case"end":return e.stop()}}),e)})))()}}}(),n}()}));