rollbar 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rollbar.cjs +260 -3
- package/dist/rollbar.js +88 -2
- package/dist/rollbar.js.map +1 -1
- package/dist/rollbar.min.cjs +1 -1
- package/dist/rollbar.min.js +1 -1
- package/dist/rollbar.min.js.map +1 -1
- package/dist/rollbar.named-amd.js +88 -2
- package/dist/rollbar.named-amd.js.map +1 -1
- package/dist/rollbar.named-amd.min.js +1 -1
- package/dist/rollbar.named-amd.min.js.map +1 -1
- package/dist/rollbar.noconflict.umd.js +88 -2
- package/dist/rollbar.noconflict.umd.js.map +1 -1
- package/dist/rollbar.noconflict.umd.min.js +1 -1
- package/dist/rollbar.noconflict.umd.min.js.map +1 -1
- package/dist/rollbar.replay.js +88 -2
- package/dist/rollbar.replay.js.map +1 -1
- package/dist/rollbar.replay.min.js +1 -1
- package/dist/rollbar.replay.min.js.map +1 -1
- package/dist/rollbar.replay.noconflict.umd.js +88 -2
- package/dist/rollbar.replay.noconflict.umd.js.map +1 -1
- package/dist/rollbar.replay.noconflict.umd.min.js +1 -1
- package/dist/rollbar.replay.noconflict.umd.min.js.map +1 -1
- package/dist/rollbar.replay.umd.js +88 -2
- package/dist/rollbar.replay.umd.js.map +1 -1
- package/dist/rollbar.replay.umd.min.js +1 -1
- package/dist/rollbar.replay.umd.min.js.map +1 -1
- package/dist/rollbar.snippet.js +1 -1
- package/dist/rollbar.umd.js +88 -2
- package/dist/rollbar.umd.js.map +1 -1
- package/dist/rollbar.umd.min.js +1 -1
- package/dist/rollbar.umd.min.js.map +1 -1
- package/index.d.ts +15 -0
- package/package.json +2 -1
- package/src/browser/telemetry.js +25 -0
- package/src/defaults.js +1 -1
- package/src/rollbar.js +3 -1
- package/src/server/middleware/rollbarExpressMiddleware.js +63 -0
- package/src/server/rollbar.js +13 -0
- package/src/server/telemetry.js +120 -1
- package/src/utility.js +70 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see rollbar.replay.noconflict.umd.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.rollbar=t():e.rollbar=t()}(this,function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.d(t,{default:function(){return Ov}});var r={};function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.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)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return i="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},i(e)}function a(e,t){return t===s(e)}function s(e){var t=i(e);return"object"!==t?t:e?e instanceof Error?"error":{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function u(e){return a(e,"function")}function l(e){return null!=e&&("object"==i(e)||"function"==typeof e)}function c(e,t){return null!=e&&(Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t))}function f(e){return Number.isFinite(e)}function h(e){return a(e,"error")||a(e,"exception")}function p(){return"********"}e.r(r),e.d(r,{parse:function(){return pn}});var d={debug:0,info:1,warning:2,error:3,critical:4};function v(e){try{var t=new URL(e);return t.password&&(t.password="********"),t.search&&(t.search="********"),t.toString()}catch(t){return e}}function y(e){var t=function(e){if(!a(e,"string"))return;for(var t=m,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},o=0,i=t.key.length;o<i;++o)n[t.key[o]]=r[o]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,o){r&&(n[t.q.name][r]=o)}),n}(e);return t?(""===t.anchor&&(t.source=t.source.replace("#","")),e=t.source.replace("?"+t.query,"")):"(unknown)"}var m={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function g(e,t){if(!(t=t||e.protocol)&&e.port&&(80===e.port?t="http:":443===e.port&&(t="https:")),t=t||"https:",!e.hostname)return null;var r=t+"//"+e.hostname;return e.port&&(r=r+":"+e.port),e.path&&(r+=e.path),r}function b(e,t){var r,n;try{r=JSON.stringify(e)}catch(o){if(t&&u(t))try{r=t(e)}catch(e){n=e}else n=o}return{error:n,value:r}}function w(e){var t,r;try{t=JSON.parse(e)}catch(e){r=e}return{error:r,value:t}}function k(e,t,r,n,o,i,a,s){var u={url:t||"",line:r,column:n};u.func=s.guessFunctionName(u.url,u.line),u.context=s.gatherContext(u.url,u.line);var l="undefined"!=typeof document&&document&&document.location&&document.location.href,c="undefined"!=typeof window&&window&&window.navigator&&window.navigator.userAgent;return{mode:i,message:o?String(o):e||a,url:l,stack:[u],useragent:c}}function S(e,t){return function(r,n){try{t(r,n)}catch(t){e.error(t)}}}function C(e){return function e(t,r){var n,o,i,u={};try{for(o in t)(n=t[o])&&(a(n,"object")||a(n,"array"))?r.includes(n)?u[o]="Removed circular reference: "+s(n):((i=r.slice()).push(n),u[o]=e(n,i)):u[o]=n}catch(e){u="Failed cloning custom data: "+e.message}return u}(e,[e])}function I(e,t,r,n,o){for(var i,a,u,l,c,f,h=[],p=[],d=0,v=e.length;d<v;++d){var y=s(f=e[d]);switch(p.push(y),y){case"undefined":break;case"string":i?h.push(f):i=f;break;case"function":l=S(t,f);break;case"date":h.push(f);break;case"error":case"domexception":case"exception":a?h.push(f):a=f;break;case"object":case"array":if(f instanceof Error||"undefined"!=typeof DOMException&&f instanceof DOMException){a?h.push(f):a=f;break}if(n&&"object"===y&&!c){for(var m=0,g=n.length;m<g;++m)if(void 0!==f[n[m]]){c=f;break}if(c)break}u?h.push(f):u=f;break;default:if(f instanceof Error||"undefined"!=typeof DOMException&&f instanceof DOMException){a?h.push(f):a=f;break}h.push(f)}}u&&(u=C(u)),h.length>0&&(u||(u=C({})),u.extraArgs=C(h));var b,w={message:i,err:a,custom:u,timestamp:T(),callback:l,notifier:r,diagnostic:{},uuid:(b=T(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(b+16*Math.random())%16|0;return b=Math.floor(b/16),("x"===e?t:7&t|8).toString(16)}))};return w.data=w.data||{},function(e,t){t&&void 0!==t.level&&(e.level=t.level,delete t.level);t&&void 0!==t.skipFrames&&(e.skipFrames=t.skipFrames,delete t.skipFrames)}(w,u),n&&c&&(w.request=c),o&&(w.lambdaContext=o),w._originalArgs=e,w.diagnostic.original_arg_types=p,w}var O=["log","network","dom","navigation","error","manual"],x=["critical","error","warning","info","debug"];function _(e,t){var r,o=n(e);try{for(o.s();!(r=o.n()).done;){if(r.value===t)return!0}}catch(e){o.e(e)}finally{o.f()}return!1}function E(e,t){e.attributes=e.attributes||[];var r,o=n(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;void 0!==i.value&&e.attributes.push(i)}}catch(e){o.e(e)}finally{o.f()}}function A(e,t){if(e){var r=t.split("."),n=e;try{for(var o=0,i=r.length;o<i;++o)n=n[r[o]]}catch(e){n=void 0}return n}}function R(e,t,r){if(e){Object.setPrototypeOf(e,null);var n=t.split("."),o=n.length;if(!(o<1))if(1!==o)try{for(var i=e[n[0]]||{},a=i,s=1;s<o-1;++s)i[n[s]]=i[n[s]]||{},i=i[n[s]];i[n[o-1]]=r,e[n[0]]=a}catch(e){return}else e[n[0]]=r}}function T(){return Date.now?Date.now():Number(new Date)}function M(e,t,r,n){var o=P(e,t,r);return o=function(e,t){e.hostWhiteList&&!e.hostSafeList&&(e.hostSafeList=e.hostWhiteList,e.hostWhiteList=void 0,t&&t.log("hostWhiteList is deprecated. Use hostSafeList."));e.hostBlackList&&!e.hostBlockList&&(e.hostBlockList=e.hostBlackList,e.hostBlackList=void 0,t&&t.log("hostBlackList is deprecated. Use hostBlockList."));return e}(o,n),!t||t.overwriteScrubFields||t.scrubFields&&(o.scrubFields=(e.scrubFields||[]).concat(t.scrubFields)),o}function P(){function e(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t,r=c(e,"constructor"),n=e.constructor&&e.constructor.prototype&&c(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||c(e,t)}var t,r,n,o,i,a=Object.create(null),s=null,u=arguments.length;for(t=0;t<u;t++)if(null!=(s=arguments[t]))for(i in s)r=a[i],a!==(n=s[i])&&(n&&e(n)?(o=r&&e(r)?r:{},a[i]=P(o,n)):void 0!==n&&(a[i]=n));return a}var j=function(e,t,r){var n,o,i,s,u=a(e,"object"),l=a(e,"array"),f=[];if(r=r||{obj:[],mapped:[]},u){if(s=r.obj.indexOf(e),u&&-1!==s)return r.mapped[s]||r.obj[s];r.obj.push(e),s=r.obj.length-1}if(u)for(n in e)c(e,n)&&f.push(n);else if(l)for(i=0;i<e.length;++i)f.push(i);var h=u?{}:[],p=!0;for(i=0;i<f.length;++i)o=e[n=f[i]],h[n]=t(n,o,r),p=p&&h[n]===e[n];return u&&!p&&(r.mapped[s]=h),p?e:h};function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||D(e,t)||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.")}()}function L(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=D(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function D(e,t){if(e){if("string"==typeof e)return F(e,t);var r={}.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)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r=t.split("."),n=r.length-1;try{var o,i=L(r.entries());try{for(i.s();!(o=i.n()).done;){var a=N(o.value,2),s=a[0],u=a[1];s<n?e=e[u]:e[u]=p()}}catch(e){i.e(e)}finally{i.f()}}catch(e){}}var B=function(e,t,r){if(t=t||[],r){var n,o=L(r);try{for(o.s();!(n=o.n()).done;){U(e,n.value)}}catch(e){o.e(e)}finally{o.f()}}var i=function(e){var t,r=[],n=L(e);try{for(n.s();!(t=n.n()).done;){var o="^\\[?(%5[bB])?"+t.value+"\\[?(%5[bB])?\\]?(%5[dD])?$";r.push(new RegExp(o,"i"))}}catch(e){n.e(e)}finally{n.f()}return r}(t),s=function(e){var t,r=[],n=L(e);try{for(n.s();!(t=n.n()).done;){var o="\\[?(%5[bB])?"+t.value+"\\[?(%5[bB])?\\]?(%5[dD])?";r.push(new RegExp("("+o+"=)([^&\\n]+)","igm"))}}catch(e){n.e(e)}finally{n.f()}return r}(t);function u(e,t){return t+"********"}return j(e,function e(t,r,n){var o=function(e,t){var r,n=L(i);try{for(n.s();!(r=n.n()).done;)if(r.value.test(e)){t=p();break}}catch(e){n.e(e)}finally{n.f()}return t}(t,r);return o===r?a(r,"object")||a(r,"array")?j(r,e,n):function(e){if(a(e,"string")){var t,r=L(s);try{for(r.s();!(t=r.n()).done;){var n=t.value;e=e.replace(n,u)}}catch(e){r.e(e)}finally{r.f()}}return e}(o):o})},W=["otelAttributes"];function z(e){return z="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},z(e)}function G(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}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach(function(t){H(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function H(e,t,r){return(t=J(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,J(n.key),n)}}function J(e){var t=function(e,t){if("object"!=z(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==z(t)?t:t+""}var Z=100;function Y(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}var X=function(){return e=function e(t,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queue=[],this.options=P(t);var o=this.options.maxTelemetryEvents||Z;this.maxQueueSize=Math.max(0,Math.min(o,Z)),this.tracing=r,this.telemetrySpan=null===(n=this.tracing)||void 0===n?void 0:n.startSpan("rollbar-telemetry",{})},t=[{key:"configure",value:function(e){var t=this.options;this.options=P(t,e);var r=this.options.maxTelemetryEvents||Z,n=Math.max(0,Math.min(r,Z)),o=0;this.queue.length>n&&(o=this.queue.length-n),this.maxQueueSize=n,this.queue.splice(0,o)}},{key:"copyEvents",value:function(){var e=Array.prototype.slice.call(this.queue,0);if(u(this.options.filterTelemetry))try{for(var t=e.length;t--;)this.options.filterTelemetry(e[t])&&e.splice(t,1)}catch(e){this.options.filterTelemetry=null}return e=(e=e.filter(function(e){return"connectivity"!==e.type})).map(function(e){e.otelAttributes;var t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,W);return t}),e}},{key:"exportTelemetrySpan",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.telemetrySpan&&(this.telemetrySpan.end(e),this.telemetrySpan=this.tracing.startSpan("rollbar-telemetry",{}))}},{key:"capture",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a={level:K(e,r),type:e,timestamp_ms:o||T(),body:t,source:"client"};n&&(a.uuid=n),i&&(a.otelAttributes=i);try{if(u(this.options.filterTelemetry)&&this.options.filterTelemetry(a))return!1}catch(e){this.options.filterTelemetry=null}return this.push(a),a}},{key:"captureEvent",value:function(e,t,r,n){return this.capture(e,t,r,n)}},{key:"captureError",value:function(e,t,r,n){var o,i=e.message||String(e),a={message:i};e.stack&&(a.stack=e.stack);var s={message:i,level:t,type:"error",uuid:r};return null===(o=this.telemetrySpan)||void 0===o||o.addEvent("rollbar-occurrence-event",s,Y(n)),this.capture("error",a,t,r,n,s)}},{key:"captureLog",value:function(e,t,r,n){var o,i=r?"rollbar-occurrence-event":"rollbar-log-event",a=V({message:e,level:t},r?{type:"message",uuid:r}:{});return null===(o=this.telemetrySpan)||void 0===o||o.addEvent(i,a,Y(n)),this.capture("log",{message:e},t,r,n,a)}},{key:"captureNetwork",value:function(e,t,r,n){var o,i,a;t=t||"xhr",e.subtype=e.subtype||t,n&&(e.request=n);var s=this.levelFromStatus(e.status_code),u=1e6*(e.end_time_ms||0),l={type:e.subtype,method:e.method,url:e.url,statusCode:e.status_code,"request.headers":JSON.stringify(e.request_headers||{}),"response.headers":JSON.stringify((null===(o=e.response)||void 0===o?void 0:o.headers)||{}),"response.timeUnixNano":u.toString()},c=e.request,f=null===(i=e.response)||void 0===i?void 0:i.body;return c&&(l["request.body"]=JSON.stringify(c)),f&&(l["response.body"]=JSON.stringify(f)),null===(a=this.telemetrySpan)||void 0===a||a.addEvent("rollbar-network-event",l,Y(e.start_time_ms)),this.capture("network",e,s,r,e.start_time_ms,l)}},{key:"levelFromStatus",value:function(e){return e>=200&&e<400?"info":0===e||e>=400?"error":"info"}},{key:"captureDom",value:function(e,t,r,n,o){var i={subtype:e,element:t};return void 0!==r&&(i.value=r),void 0!==n&&(i.checked=n),this.capture("dom",i,"info",o)}},{key:"captureInput",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.element,i=e.value,a=e.timestamp,s="rollbar-input-event",u={type:s,subtype:r,element:o,value:i},l={type:r,isSynthetic:n,element:o,value:i,endTimeUnixNano:Y(a)},c=this._getRepeatedEvent(s,l);return c?this._updateRepeatedEvent(c,l,a):(null===(t=this.telemetrySpan)||void 0===t||t.addEvent(s,l,Y(a)),this.capture("dom",u,"info",null,a,l))}},{key:"captureClick",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.element,i=e.timestamp,a="rollbar-click-event",s={type:a,subtype:r,element:o},u={type:r,isSynthetic:n,element:o,endTimeUnixNano:Y(i)},l=this._getRepeatedEvent(a,u);return l?this._updateRepeatedEvent(l,u,i):(null===(t=this.telemetrySpan)||void 0===t||t.addEvent(a,u,Y(i)),this.capture("dom",s,"info",null,i,u))}},{key:"_getRepeatedEvent",value:function(e,t){var r=this._lastEvent(this.queue);if(r&&r.body.type===e&&r.otelAttributes.target===t.target)return r}},{key:"_updateRepeatedEvent",value:function(e,t,r){var n=Math.max(r-e.timestamp_ms,1);e.body.value=t.value,e.otelAttributes.value=t.value,e.otelAttributes.height=t.height,e.otelAttributes.width=t.width,e.otelAttributes.textZoomRatio=t.textZoomRatio,e.otelAttributes.endTimeUnixNano=Y(r),e.otelAttributes.durationUnixNano=Y(n),e.otelAttributes.count=(e.otelAttributes.count||1)+1,e.otelAttributes.rate=e.otelAttributes.count/(n/1e3)}},{key:"_lastEvent",value:function(e){return e.length>0?e[e.length-1]:null}},{key:"captureFocus",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.element,i=e.timestamp,a="rollbar-focus-event",s={type:a,subtype:r,element:o},u={type:r,isSynthetic:n,element:o};return null===(t=this.telemetrySpan)||void 0===t||t.addEvent(a,u,Y(i)),this.capture("dom",s,"info",null,i,u)}},{key:"captureResize",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.width,i=e.height,a=e.textZoomRatio,s=e.timestamp,u="rollbar-resize-event",l={type:u,subtype:r,width:o,height:i,textZoomRatio:a},c={type:r,isSynthetic:n,width:o,height:i,textZoomRatio:a},f=this._getRepeatedEvent(u,c);return f?this._updateRepeatedEvent(f,c,s):(null===(t=this.telemetrySpan)||void 0===t||t.addEvent(u,c,Y(s)),this.capture("dom",l,"info",null,s,c))}},{key:"captureDragDrop",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.element,i=e.dropEffect,a=e.effectAllowed,s=e.kinds,u=e.mediaTypes,l=e.timestamp,c="rollbar-dragdrop-event",f={type:c,subtype:r,isSynthetic:n},h={type:r,isSynthetic:n};return"dragstart"===r&&(f=V(V({},f),{},{element:o,dropEffect:i,effectAllowed:a}),h=V(V({},h),{},{element:o,dropEffect:i,effectAllowed:a})),"drop"===r&&(f=V(V({},f),{},{element:o,dropEffect:i,effectAllowed:a,kinds:s,mediaTypes:u}),h=V(V({},h),{},{element:o,dropEffect:i,effectAllowed:a,kinds:s,mediaTypes:u})),null===(t=this.telemetrySpan)||void 0===t||t.addEvent(c,h,Y(l)),this.capture("dom",f,"info",null,l,h)}},{key:"captureNavigation",value:function(e,t,r,n){var o;return null===(o=this.telemetrySpan)||void 0===o||o.addEvent("rollbar-navigation-event",{"previous.url.full":e,"url.full":t},Y(n)),this.capture("navigation",{from:e,to:t},"info",r,n)}},{key:"captureDomContentLoaded",value:function(e){return this.capture("navigation",{subtype:"DOMContentLoaded"},"info",void 0,e&&e.getTime())}},{key:"captureLoad",value:function(e){return this.capture("navigation",{subtype:"load"},"info",void 0,e&&e.getTime())}},{key:"captureConnectivityChange",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.timestamp,i="rollbar-connectivity-event",a={type:i,subtype:r},s={type:r,isSynthetic:n};return null===(t=this.telemetrySpan)||void 0===t||t.addEvent(i,s,Y(o)),this.capture("connectivity",a,"info",null,o,s)}},{key:"_captureRollbarItem",value:function(e){if(this.options.includeItemsInTelemetry)return e.err?this.captureError(e.err,e.level,e.uuid,e.timestamp):e.message?this.captureLog(e.message,e.level,e.uuid,e.timestamp):e.custom?this.capture("log",e.custom,e.level,e.uuid,e.timestamp):void 0}},{key:"push",value:function(e){this.queue.push(e),this.queue.length>this.maxQueueSize&&this.queue.shift()}}],t&&q(e.prototype,t),r&&q(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function K(e,t){if(t)return t;return{error:"error",manual:"info"}[e]||"info"}var $=X;function Q(e){return Q="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},Q(e)}function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,te(n.key),n)}}function te(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}var re=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._currentContext=t?new Map(t):new Map}return t=e,(r=[{key:"getValue",value:function(e){return this._currentContext.get(e)}},{key:"setValue",value:function(t,r){var n=new e(this._currentContext);return n._currentContext.set(t,r),n}},{key:"deleteValue",value:function(t){var r=new e(self._currentContext);return r._currentContext.delete(t),r}}])&&ee(t.prototype,r),n&&ee(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}(),ne=new re;function oe(e){return oe="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},oe(e)}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ae(n.key),n)}}function ae(e){var t=function(e,t){if("object"!=oe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oe(t)?t:t+""}var se=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentContext=ne},t=[{key:"active",value:function(){return this.currentContext}},{key:"enterContext",value:function(e){var t=this.currentContext;return this.currentContext=e||ne,t}},{key:"exitContext",value:function(e){return this.currentContext=e,this.currentContext}},{key:"with",value:function(e,t,r){var n=this.enterContext(e);try{for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.call.apply(t,[r].concat(i))}finally{this.exitContext(n)}}}],t&&ie(e.prototype,t),r&&ie(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ue(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function le(e,t){return[e[0]+t[0]+Math.trunc((e[1]+t[1])/1e9),(e[1]+t[1])%1e9]}var ce={fromMillis:ue,toMillis:function(e){return 1e3*e[0]+Math.round(e[1]/1e6)},toNanos:function(e){return 1e9*e[0]+e[1]},add:le,now:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?le(ue(performance.timeOrigin),ue(performance.now())):ue(Date.now())},isHrTime:function(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}};function fe(e){return fe="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},fe(e)}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||de(e,t)||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.")}()}function pe(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||de(e)||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.")}()}function de(e,t){if(e){if("string"==typeof e)return ve(e,t);var r={}.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)?ve(e,t):void 0}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,me(n.key),n)}}function me(e){var t=function(e,t){if("object"!=fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fe(t)?t:t+""}var ge=function(){return e=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=t,this.options=r},t=[{key:"export",value:function(e,t){be.push.apply(be,pe(e))}},{key:"toPayload",value:function(){var e=this,t=be.slice();if(be.length=0,!t||!t.length)return{resourceSpans:[]};var r,n=t[0]&&t[0].resource||{},o=new Map,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=de(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a.instrumentationScope?"".concat(a.instrumentationScope.name,":").concat(a.instrumentationScope.version):"default:1.0.0";o.has(s)||o.set(s,{scope:a.instrumentationScope||{name:"default",version:"1.0.0",attributes:[]},spans:[]}),o.get(s).spans.push(this._transformSpan(a))}}catch(e){i.e(e)}finally{i.f()}return{resourceSpans:[{resource:this._transformResource(n),scopeSpans:Array.from(o.values()).map(function(t){return{scope:e._transformInstrumentationScope(t.scope),spans:t.spans}})}]}}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.api.postSpans(e,t)}},{key:"_transformSpan",value:function(e){var t,r=this,n=function(e){return Object.entries(e||{}).map(function(e){var t=he(e,2),n=t[0],o=t[1];return{key:n,value:r._transformAnyValue(o)}})};return{traceId:e.spanContext.traceId,spanId:e.spanContext.spanId,parentSpanId:e.parentSpanId||"",name:e.name,kind:e.kind||1,startTimeUnixNano:ce.toNanos(e.startTime),endTimeUnixNano:ce.toNanos(e.endTime),attributes:n(e.attributes),events:(t=e.events,(t||[]).map(function(e){return{timeUnixNano:ce.toNanos(e.time),name:e.name,attributes:n(e.attributes)}}))}}},{key:"_transformResource",value:function(e){var t=this,r=e.attributes||{};return{attributes:Object.entries(r).map(function(e){var r=he(e,2),n=r[0],o=r[1];return{key:n,value:t._transformAnyValue(o)}})}}},{key:"_transformInstrumentationScope",value:function(e){var t=this;return{name:e.name||"",version:e.version||"",attributes:(e.attributes||[]).map(function(e){return{key:e.key,value:t._transformAnyValue(e.value)}})}}},{key:"_transformAnyValue",value:function(e){var t=this;if(null==e)return{stringValue:""};var r=fe(e);return"string"===r?{stringValue:e}:"number"===r?Number.isInteger(e)?{intValue:e.toString()}:{doubleValue:e}:"boolean"===r?{boolValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(function(e){return t._transformAnyValue(e)})}}:"object"===r?{kvlistValue:{values:Object.entries(e).map(function(e){var r=he(e,2),n=r[0],o=r[1];return{key:n,value:t._transformAnyValue(o)}})}}:{stringValue:String(e)}}}],t&&ye(e.prototype,t),r&&ye(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),be=[];var we={gen:function(){var e=new Uint8Array(arguments.length>0&&void 0!==arguments[0]?arguments[0]:16);return crypto.getRandomValues(e),Array.from(e,function(e){return e.toString(16).padStart(2,"0")}).join("")}};function ke(e){return ke="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},ke(e)}function Se(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}function Ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach(function(t){Oe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xe(n.key),n)}}function Oe(e,t,r){return(t=xe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e){var t=function(e,t){if("object"!=ke(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ke(t)?t:t+""}var _e="RollbarSession",Ee=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Oe(this,"_attributes",void 0),this.options=r,this.tracing=t,this.window=t.window,this.session=null,this._attributes={}},t=[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.session||(this.getSession()||this.createSession(),this.initSessionAttributes(e)),this}},{key:"getSession",value:function(){try{var e=this.window.sessionStorage.getItem(_e);if(!e)return null;this.session=JSON.parse(e)}catch(e){return null}return this}},{key:"createSession",value:function(){return this.session={id:we.gen(),createdAt:Date.now()},this.setSession(this.session)}},{key:"setSession",value:function(e){var t=JSON.stringify(e);try{this.window.sessionStorage.setItem(_e,t)}catch(e){return null}return this}},{key:"attributes",get:function(){return this._attributes}},{key:"setAttributes",value:function(e){return this._attributes=Ce(Ce({},this._attributes),e),this}},{key:"setUser",value:function(e){return this.setAttributes({"user.id":null==e?void 0:e.id,"user.email":null==e?void 0:e.email,"user.name":(null==e?void 0:e.name)||(null==e?void 0:e.username)}),this}},{key:"initSessionAttributes",value:function(e){var t,r,n;return this.setAttributes(Ce({"session.id":this.session.id,"browser.brands":null===(t=navigator.userAgentData)||void 0===t?void 0:t.brands,"browser.language":navigator.language,"browser.mobile":null===(r=navigator.userAgentData)||void 0===r?void 0:r.mobile,"browser.platform":null===(n=navigator.userAgentData)||void 0===n?void 0:n.platform,"client.address":"$remote_ip","rollbar.notifier.framework":"browser-js","user_agent.original":navigator.userAgent},e)),this}}],t&&Ie(e.prototype,t),r&&Ie(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Ae=function(){},Re={debug:0,info:1,warn:2,error:3,disable:4},Te={error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ae("error",t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ae("warn",t)},info:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ae("info",t)},debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ae("debug",t)},log:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ae("info",t)},init:function(e){var t=e.logLevel;Ae=function(e,r){Re[e]<Re[t]||(r.unshift("Rollbar:"),console[e].apply(console,r))}}},Me=Te;function Pe(e){return Pe="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},Pe(e)}function je(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ne(e,t);var r={}.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)?Ne(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Le(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,De(n.key),n)}}function De(e){var t=function(e,t){if("object"!=Pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pe(t)?t:t+""}var Fe=function(){return e=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.exporter=t,this.options=r,this.pendingSpans=new Map,this.transforms=[this.userTransform.bind(this)]},t=[{key:"addTransform",value:function(e){this.transforms.unshift(e)}},{key:"userTransform",value:function(e){this.options.transformSpan&&this.options.transformSpan({span:e})}},{key:"applyTransforms",value:function(e){var t,r=je(this.transforms);try{for(r.s();!(t=r.n()).done;){var n=t.value;try{n(e)}catch(e){Me.error("Error running span transform callback",e)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"onStart",value:function(e,t){this.pendingSpans.set(e.span.spanContext.spanId,e)}},{key:"onEnd",value:function(e){this.applyTransforms(e.span),this.exporter.export([e.export()]),this.pendingSpans.delete(e.span.spanContext.spanId)}}],t&&Le(e.prototype,t),r&&Le(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Ue(e){return Ue="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},Ue(e)}function Be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return We(e,t);var r={}.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)?We(e,t):void 0}}(e,t)||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.")}()}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ze(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ge(n.key),n)}}function Ge(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}var Ve=function(){return e=function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.usePerformance=t.usePerformance,this.initReadableSpan(t),this.spanProcessor=t.spanProcessor,this.spanProcessor.onStart(this,t.context),t.attributes&&this.setAttributes(t.attributes),this},t=[{key:"initReadableSpan",value:function(e){var t;this.span={name:e.name,kind:e.kind,spanContext:e.spanContext,parentSpanId:e.parentSpanId,startTime:e.startTime||ce.now(e.usePerformance),endTime:[0,0],status:{code:0,message:""},attributes:{"session.id":null===(t=e.session)||void 0===t?void 0:t.id},links:[],events:[],duration:0,ended:!1,resource:e.resource,instrumentationScope:e.scope,droppedAttributesCount:0,droppedEventsCount:0,droppedLinksCount:0}}},{key:"spanContext",value:function(){return this.span.spanContext}},{key:"spanId",get:function(){return this.span.spanContext.spanId}},{key:"traceId",get:function(){return this.span.spanContext.traceId}},{key:"setAttribute",value:function(e,t){return null==t||this.span.ended||0===e.length||(this.span.attributes[e]=t),this}},{key:"setAttributes",value:function(e){for(var t=0,r=Object.entries(e);t<r.length;t++){var n=Be(r[t],2),o=n[0],i=n[1];this.setAttribute(o,i)}return this}},{key:"addEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this.span.ended||this.span.events.push({name:e,attributes:t,time:r||ce.now(),droppedAttributesCount:0}),this}},{key:"isRecording",value:function(){return!1===this.span.ended}},{key:"end",value:function(e,t){e&&this.setAttributes(e),this.span.endTime=t||ce.now(this.usePerformance),this.span.ended=!0,this.spanProcessor.onEnd(this)}},{key:"export",value:function(){return this.span}}],t&&ze(e.prototype,t),r&&ze(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function He(e){return He="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},He(e)}function qe(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}function Je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach(function(t){Ze(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ze(e,t,r){return(t=Xe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xe(n.key),n)}}function Xe(e){var t=function(e,t){if("object"!=He(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==He(t)?t:t+""}var Ke=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spanProcessor=r,this.tracing=t},t=[{key:"startSpan",value:function(e){var t,r,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tracing.contextManager.active(),u=this.tracing.getSpan(s),l=null==u?void 0:u.spanContext(),c=we.gen(8),f=null;l?(o=l.traceId,f=l.traceState,i=l.spanId):o=we.gen(16);var h={traceId:o,spanId:c,traceFlags:0,traceState:f},p={attributes:Je(Je({},(null===(t=this.tracing.resource)||void 0===t?void 0:t.attributes)||{}),(null===(r=a.resource)||void 0===r?void 0:r.attributes)||{})};return new Ve({resource:p,scope:this.tracing.scope,session:null===(n=this.tracing.session)||void 0===n?void 0:n.session,context:s,spanContext:h,name:e,kind:0,parentSpanId:i,spanProcessor:this.spanProcessor,startTime:a.startTime,usePerformance:a.usePerformance})}}],t&&Ye(e.prototype,t),r&&Ye(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function $e(e){return $e="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(e)}function Qe(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}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach(function(t){tt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tt(e,t,r){return(t=nt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nt(n.key),n)}}function nt(e){var t=function(e,t){if("object"!=$e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$e(t)?t:t+""}var ot,it=(ot="Rollbar Context Key SPAN",Symbol.for(ot)),at=function(){return e=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=r,this.options=n,this.window=t,this.window.sessionStorage&&(this.session=new Ee(this,n)),this.createTracer()},t=[{key:"configure",value:function(e){this.options=e}},{key:"initSession",value:function(){this.session&&this.session.init()}},{key:"sessionId",get:function(){return this.session?this.session.session.id:null}},{key:"resource",get:function(){var e,t;return{attributes:et(et({},this.options.resource||{}),{},{"rollbar.environment":null!==(e=null===(t=this.options.payload)||void 0===t?void 0:t.environment)&&void 0!==e?e:this.options.environment})}}},{key:"scope",get:function(){return{name:"rollbar-browser-js",version:this.options.version}}},{key:"idGen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return we.gen(e)}},{key:"createTracer",value:function(){this.contextManager=new se,this.exporter=new ge(this.api,this.options),this.spanProcessor=new Fe(this.exporter,this.options.tracing),this.tracer=new Ke(this,this.spanProcessor)}},{key:"getTracer",value:function(){return this.tracer}},{key:"addSpanTransform",value:function(e){this.spanProcessor.addTransform(e)}},{key:"getSpan",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.contextManager.active()).getValue(it)}},{key:"setSpan",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.contextManager.active(),t=arguments.length>1?arguments[1]:void 0;return e.setValue(it,t)}},{key:"startSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.contextManager.active();return this.tracer.startSpan(e,t,r)}},{key:"with",value:function(e,t,r){for(var n,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return(n=this.contextManager).with.apply(n,[e,t,r].concat(i))}},{key:"withSpan",value:function(e,t,r,n){var o=this.startSpan(e,t);return this.with(this.setSpan(this.contextManager.active(),o),r,n,o)}}],t&&rt(e.prototype,t),r&&rt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function st(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||lt(e,t)||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.")}()}function ut(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=lt(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function lt(e,t){if(e){if("string"==typeof e)return ct(e,t);var r={}.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)?ct(e,t):void 0}}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ft(e,t){return[e,b(e,t)]}function ht(e,t){var r=e.length;return r>2*t?e.slice(0,t).concat(e.slice(r-t)):e}function pt(e,t,r){r=void 0===r?30:r;var n,o=e.data.body;if(o.trace_chain){var i,a=ut(o.trace_chain);try{for(a.s();!(i=a.n()).done;){var s=i.value;n=ht(n=s.frames,r),s.frames=n}}catch(e){a.e(e)}finally{a.f()}}else o.trace&&(n=ht(n=o.trace.frames,r),o.trace.frames=n);return[e,b(e,t)]}function dt(e,t){return t&&t.length>e?t.slice(0,e-3).concat("..."):t}function vt(e,t,r){return t=j(t,function t(r,n,o){switch(s(n)){case"string":return dt(e,n);case"object":case"array":return j(n,t,o);default:return n}}),[t,b(t,r)]}function yt(e){return e.exception&&(delete e.exception.description,e.exception.message=dt(255,e.exception.message)),e.frames=ht(e.frames,1),e}function mt(e,t){var r=e.data.body;if(r.trace_chain){var n,o=r.trace_chain,i=ut(o.entries());try{for(i.s();!(n=i.n()).done;){var a=st(n.value,2),s=a[0],u=a[1];o[s]=yt(u)}}catch(e){i.e(e)}finally{i.f()}}else r.trace&&(r.trace=yt(r.trace));return[e,b(e,t)]}function gt(e,t){return function(e){for(var t=0,r=e.length,n=0;n<r;n++){var o=e.charCodeAt(n);o<128?t+=1:o<2048?t+=2:o<65536&&(t+=3)}return t}(e)>t}var bt={truncate:function(e,t,r){r=void 0===r?524288:r;for(var n,o,i,a=[ft,pt,vt.bind(null,1024),vt.bind(null,512),vt.bind(null,256),mt];n=a.shift();)if(e=(o=n(e,t))[0],(i=o[1]).error||!gt(i.value,r))return i;return i},raw:ft,truncateFrames:pt,truncateStrings:vt,maybeTruncateValue:dt};function wt(e){if(!a(e.context,"string")){var t=b(e.context);t.error?e.context="Error: could not serialize 'context'":e.context=t.value||"",e.context.length>255&&(e.context=e.context.substr(0,255))}return{data:e}}function kt(e,t,r){var n=t.hostname,o=t.protocol,i=t.port,a=t.path,s=t.search,u=e.timeout,l=function(e){var t="undefined"!=typeof window&&window||"undefined"!=typeof self&&self,r=e.defaultTransport||"xhr";void 0===t.fetch&&(r="xhr");void 0===t.XMLHttpRequest&&(r="fetch");return r}(e),c=e.proxy;if(e.endpoint){var f=r.parse(e.endpoint);n=f.hostname,o=f.protocol,i=f.port,a=f.pathname,s=f.search}return{timeout:u,hostname:n,protocol:o,port:i,path:a,search:s,proxy:c,transport:l}}function St(e,t){var r=e.protocol||"https:",n=e.port||("http:"===r?80:"https:"===r?443:void 0),o=e.hostname,i=e.path,a=e.timeout,s=e.transport;return e.search&&(i+=e.search),e.proxy&&(i=r+"//"+o+i,o=e.proxy.host||e.proxy.hostname,n=e.proxy.port,r=e.proxy.protocol||r),{timeout:a,protocol:r,hostname:o,path:i,port:n,method:t,transport:s}}function Ct(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}function It(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(r),!0).forEach(function(t){Ot(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ot(e,t,r){return(t=Tt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xt(e){return xt="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},xt(e)}function _t(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return Et(l,"_invoke",function(r,n,o){var i,s,u,l=0,c=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,u=e,h.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!f&&l&&!o&&t<c.length;t++){var o,i=c[t],p=h.p,d=i[2];r>3?(o=d===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,h.v=n,h.n=i[1]):p<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,h.n=d,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,d),s=c,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:r.call(n,h))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Et(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,Et(f,"constructor",l),Et(l,"constructor",u),u.displayName="GeneratorFunction",Et(l,o,"GeneratorFunction"),Et(f),Et(f,o,"Generator"),Et(f,n,function(){return this}),Et(f,"toString",function(){return"[object Generator]"}),(_t=function(){return{w:i,m:h}})()}function Et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Et=function(e,t,r,n){function i(t,r){Et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Et(e,t,r,n)}function At(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Rt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tt(n.key),n)}}function Tt(e){var t=function(e,t){if("object"!=xt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xt(t)?t:t+""}var Mt={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443},Pt={hostname:"api.rollbar.com",path:"/api/1/session/",search:null,version:"1",protocol:"https:",port:443},jt=function(){return e=function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.transport=r,this.url=n,this.truncation=o,this.accessToken=t.accessToken,this.transportOptions=Nt(t,n),this.OTLPTransportOptions=Lt(t,n)},t=[{key:"_postPromise",value:function(e){var t=this,r=e.accessToken,n=e.options,o=e.payload,i=e.headers;return new Promise(function(e,a){t.transport.post({accessToken:r,options:n,payload:o,headers:i,callback:function(t,r){return t?a(t):e(r)}})})}},{key:"postItem",value:function(e,t){var r=this,n=St(this.transportOptions,"POST"),o=wt(e);setTimeout(function(){r.transport.post({accessToken:r.accessToken,options:n,payload:o,callback:t})},0)}},{key:"postSpans",value:(n=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){At(i,n,o,a,s,"next",e)}function s(e){At(i,n,o,a,s,"throw",e)}a(void 0)})}}(_t().m(function e(t){var r,n,o=arguments;return _t().w(function(e){for(;;)if(0===e.n)return r=o.length>1&&void 0!==o[1]?o[1]:{},n=St(this.OTLPTransportOptions,"POST"),e.a(2,this._postPromise({accessToken:this.accessToken,options:n,payload:t,headers:r}))},e,this)})),function(e){return n.apply(this,arguments)})},{key:"buildJsonPayload",value:function(e,t){var r,n=wt(e);return(r=this.truncation?this.truncation.truncate(n):b(n)).error?(t&&t(r.error),null):r.value}},{key:"postJsonPayload",value:function(e,t){var r=St(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,r,e,t)}},{key:"configure",value:function(e){var t=this.options;return this.options=P(t,e),this.transportOptions=Nt(this.options,this.url),this.OTLPTransportOptions=Lt(this.options,this.url),void 0!==this.options.accessToken&&(this.accessToken=this.options.accessToken),this}}],t&&Rt(e.prototype,t),r&&Rt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n}();function Nt(e,t){return kt(e,Mt,t)}function Lt(e,t){var r;return kt(e=It(It({},e),{},{endpoint:null===(r=e.tracing)||void 0===r?void 0:r.endpoint}),Pt,t)}var Dt=jt,Ft="3.0.0",Ut="api.rollbar.com/api/1/item/",Bt="debug",Wt="debug",zt="error",Gt=/(^|@)\S+:\d+/,Vt=/^\s*at .*(\S+:\d+|\(native\))/m,Ht=/^(eval@)?(\[native code\])?$/;function qt(e,t){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return function(e,t){return!e.stacktrace||e.message.includes("\n")&&e.message.split("\n").length>e.stacktrace.split("\n").length?function(e,t){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),o=[],i=2,a=n.length;i<a;i+=2){var s=r.exec(n[i]);s&&o.push({file:s[2],line:+s[1],raw:n[i]})}return Zt(o,t)}(e):e.stack?function(e,t){var r=Zt(e.stack.split("\n").filter(function(e){return!!e.match(Gt)&&!e.match(/^Error created at/)}),t);return r.map(function(e){var t,r=e.split("@"),n=Jt(r.pop()),o=r.shift()||"",i=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return o.match(/\(([^)]*)\)/)&&(t=o.replace(/^[^(]+\(([^)]*)\)$/,"$1")),{function:i,args:void 0===t||"[arguments not available]"===t?void 0:t.split(","),file:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:e}})}(e,t):function(e,t){for(var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),o=[],i=0,a=n.length;i<a;i+=2){var s=r.exec(n[i]);s&&o.push({function:s[3]||void 0,file:s[2],line:s[1]?+s[1]:void 0,raw:n[i]})}return Zt(o,t)}(e)}(e,t);if(e.stack&&e.stack.match(Vt))return function(e,t){return Yt(e.stack,t)}(e,t);if(e.stack)return function(e,t){return Xt(e.stack,t)}(e,t);if(null!=t&&t.allowEmpty)return[];throw new Error("Cannot parse given Error object")}function Jt(e){if(!e.includes(":"))return[e,void 0,void 0];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]}function Zt(e,t){return t&&null!=t.slice?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e}function Yt(e,t){return Zt(e.split("\n").filter(function(e){return!!e.match(Vt)}),t).map(function(e){e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=t.match(/ (\(.+\)$)/);t=r?t.replace(r[0],""):t;var n=Jt(r?r[1]:t);return{function:r&&t||void 0,file:["eval","<anonymous>"].includes(n[0])?void 0:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:e}})}function Xt(e,t){return Zt(e.split("\n").filter(function(e){return!e.match(Ht)}),t).map(function(e){if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.includes("@")||e.includes(":")){var t=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,r=e.match(t),n=r&&r[1]?r[1]:void 0,o=Jt(e.replace(t,""));return{function:n,file:o[0],line:o[1]?+o[1]:void 0,col:o[2]?+o[2]:void 0,raw:e}}return{function:e}})}function Kt(e){return e.map(function(e){return{functionName:e.function,args:e.args,fileName:e.file,lineNumber:e.line,columnNumber:e.col,source:e.raw}})}var $t=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function Qt(){return null}function er(e){var t={};return t._stackFrame=e,t.url=e.fileName,t.line=e.lineNumber,t.func=e.functionName,t.column=e.columnNumber,t.args=e.args,t.context=null,t}function tr(e,t){return{stack:function(){var r,n=[];t=t||0;try{n=Kt(qt(e,r))}catch(e){n=[]}for(var o=[],i=t;i<n.length;i++)o.push(new er(n[i]));return o}(),message:e.message,name:rr(e),rawStack:e.stack,rawException:e}}function rr(e){var t=e.name&&e.name.length&&e.name,r=e.constructor.name&&e.constructor.name.length&&e.constructor.name;return t&&r?"Error"===t?r:t:t||r}var nr={guessFunctionName:function(){return"?"},guessErrorClass:function(e){if(!e||!e.match)return["Unknown error. There was no error message to display.",""];var t=e.match($t),r="(unknown)";return t&&(r=t[t.length-1],e=(e=e.replace((t[t.length-2]||"")+r+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[r,e]},gatherContext:Qt,parse:function(e,t){var r=e;if(r.nested||r.cause){for(var n=[];r;)n.push(new tr(r,t)),r=r.nested||r.cause,t=0;return n[0].traceChain=n,n[0]}return new tr(r,t)},Stack:tr,Frame:er};function or(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ir(e,t);var r={}.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)?ir(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ar(e,t){var r=e.level,n=d[r]||0,o=t.reportLevel;return!(n<(d[o]||0))}function sr(e,t,r){if(!e)return!r;var n,o,i=e.frames;if(!i||0===i.length)return!r;for(var s=t.length,u=i.length,l=0;l<u;l++){if(!a(n=i[l].filename,"string"))return!r;for(var c=0;c<s;c++)if(o=t[c],new RegExp(o).test(n))return!0}return!1}function ur(e,t,r,n){var o,i,a=!1;"blocklist"===r&&(a=!0);try{if(o=a?t.hostBlockList:t.hostSafeList,i=A(e,"body.trace_chain")||[A(e,"body.trace")],!o||0===o.length)return!a;if(0===i.length||!i[0])return!a;for(var s=i.length,u=0;u<s;u++)if(sr(i[u],o,a))return!0}catch(e){a?t.hostBlockList=null:t.hostSafeList=null;var l=a?"hostBlockList":"hostSafeList";return n.error("Error while reading your configuration's "+l+" option. Removing custom "+l+".",e),!a}return!1}function lr(e){return function(t,r){var n,o,i,a,s,u;try{if(!(i=r.ignoredMessages)||0===i.length)return!0;if(u=function(e){var t=e.body,r=[];if(t.trace_chain){var n,o=or(t.trace_chain);try{for(o.s();!(n=o.n()).done;){var i=n.value;r.push(A(i,"exception.message"))}}catch(e){o.e(e)}finally{o.f()}}t.trace&&r.push(A(t,"trace.exception.message"));t.message&&r.push(A(t,"message.body"));return r}(t),0===u.length)return!0;for(a=i.length,n=0;n<a;n++)for(s=new RegExp(i[n],"gi"),o=0;o<u.length;o++)if(s.test(u[o]))return!1}catch(t){r.ignoredMessages=null,e.error("Error while reading your configuration's ignoredMessages option. Removing custom ignoredMessages.")}return!0}}function cr(e){return cr="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},cr(e)}function fr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hr(n.key),n)}}function hr(e){var t=function(e,t){if("object"!=cr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cr(t)?t:t+""}var pr=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queue=t,this.options=r,this.transforms=[],this.diagnostic={}},(t=[{key:"configure",value:function(e){var t;null===(t=this.queue)||void 0===t||t.configure(e);var r=this.options;return this.options=P(r,e),this}},{key:"addTransform",value:function(e){return u(e)&&this.transforms.push(e),this}},{key:"log",value:function(e,t){var r=this;if(t=u(t)?t:function(){},!this.options.enabled)return t(new Error("Rollbar is not enabled"),null);this.queue.addPendingItem(e);var n=e.err;this._applyTransforms(e,function(o,i){if(o)return r.queue.removePendingItem(e),t(o,null);r.queue.addItem(i,t,n,e)})}},{key:"_applyTransforms",value:function(e,t){var r=-1,n=this.transforms.length,o=this.transforms,i=this.options,a=function(e,s){e?t(e,null):++r!==n?o[r](s,i,a):t(null,s)};a(null,e)}}])&&fr(e.prototype,t),r&&fr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function dr(e){return dr="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},dr(e)}function vr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yr(n.key),n)}}function yr(e){var t=function(e,t){if("object"!=dr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dr(t)?t:t+""}var mr,gr,br,wr=function(){function e(t,r,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rateLimiter=t,this.api=r,this.logger=n,this.options=o,this.replay=i,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}return t=e,r=[{key:"configure",value:function(e){var t;null===(t=this.api)||void 0===t||t.configure(e);var r=this.options;return this.options=P(r,e),this}},{key:"addPredicate",value:function(e){return u(e)&&this.predicates.push(e),this}},{key:"addPendingItem",value:function(e){this.pendingItems.push(e)}},{key:"removePendingItem",value:function(e){var t=this.pendingItems.indexOf(e);-1!==t&&this.pendingItems.splice(t,1)}},{key:"addItem",value:function(e,t,r,n){var o=this;t&&u(t)||(t=function(){});var i=e.data,a=this._applyPredicates(i);if(a.stop)return this.removePendingItem(n),void t(a.err);if(this._maybeLog(i,r),this.removePendingItem(n),this.options.transmit){this.replay&&i.body&&(e.replayId=this.replay.capture(null,i.uuid,{type:"occurrence",level:e.level}),e.replayId&&E(e.data,[{key:"replay_id",value:e.replayId}])),this.pendingRequests.push(i);try{this._makeApiRequest(i,function(r,n,a){o._dequeuePendingRequest(i),e.replayId&&o.replay.sendOrDiscardReplay(e.replayId,r,n,a),t(r,n)})}catch(r){var s;this._dequeuePendingRequest(i),e.replayId&&(null===(s=this.replay)||void 0===s||s.discard(e.replayId)),t(r)}}else t(new Error("Transmit disabled"))}},{key:"wait",value:function(e){var t=this;u(e)&&(this.waitCallback=e,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval(function(){t._maybeCallWait()},500)))}},{key:"_applyPredicates",value:function(e){for(var t=null,r=0,n=this.predicates.length;r<n;r++)if(!(t=this.predicates[r](e,this.options))||void 0!==t.err)return{stop:!0,err:t.err};return{stop:!1,err:null}}},{key:"_makeApiRequest",value:function(e,t){var r=this,n=this.rateLimiter.shouldSend(e);n.shouldSend?this.api.postItem(e,function(n,o,i){n?r._maybeRetry(n,e,t):t(n,o,i)}):n.error?t(n.error):this.api.postItem(n.payload,t)}},{key:"_maybeRetry",value:function(t,r,n){var o=!1;if(this.options.retryInterval){for(var i=0,a=e.RETRIABLE_ERRORS.length;i<a;i++)if(t.code===e.RETRIABLE_ERRORS[i]){o=!0;break}o&&f(this.options.maxRetries)&&(r.retries=r.retries?r.retries+1:1,r.retries>this.options.maxRetries&&(o=!1))}o?this._retryApiRequest(r,n):n(t)}},{key:"_retryApiRequest",value:function(e,t){var r=this;this.retryQueue.push({item:e,callback:t}),this.retryHandle||(this.retryHandle=setInterval(function(){for(;r.retryQueue.length;){var e=r.retryQueue.shift();r._makeApiRequest(e.item,e.callback)}},this.options.retryInterval))}},{key:"_dequeuePendingRequest",value:function(e){var t=this.pendingRequests.indexOf(e);-1!==t&&(this.pendingRequests.splice(t,1),this._maybeCallWait())}},{key:"_maybeLog",value:function(e,t){if(this.logger&&this.options.verbose){var r=t||A(e,"body.trace.exception.message")||A(e,"body.trace_chain.0.exception.message");if(r)return void this.logger.error(r);(r=A(e,"body.message.body"))&&this.logger.log(r)}}},{key:"_maybeCallWait",value:function(){return!(!u(this.waitCallback)||0!==this.pendingItems.length||0!==this.pendingRequests.length||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),0))}}],r&&vr(t.prototype,r),n&&vr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();mr=wr,br=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"],(gr=yr(gr="RETRIABLE_ERRORS"))in mr?Object.defineProperty(mr,gr,{value:br,enumerable:!0,configurable:!0,writable:!0}):mr[gr]=br;var kr=wr;function Sr(e){return Sr="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},Sr(e)}function Cr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ir(n.key),n)}}function Ir(e){var t=function(e,t){if("object"!=Sr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sr(t)?t:t+""}var Or=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startTime=Date.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(t)}return function(e,t,r){return t&&Cr(e.prototype,t),r&&Cr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"configureGlobal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.startTime,n=t.maxItems,o=t.itemsPerMinute;void 0!==r&&(e.globalSettings.startTime=r),void 0!==n&&(e.globalSettings.maxItems=n),void 0!==o&&(e.globalSettings.itemsPerMinute=o)}},{key:"shouldSend",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=r-this.startTime;(n<0||n>=6e4)&&(this.startTime=r,this.perMinCounter=0);var o=e.globalSettings.maxItems,i=e.globalSettings.itemsPerMinute;if(xr(t,o,this.counter))return _r(this.platform,this.platformOptions,"".concat(o," max items reached"),!1);if(xr(t,i,this.perMinCounter))return _r(this.platform,this.platformOptions,"".concat(i," items per minute reached"),!1);this.counter+=1,this.perMinCounter+=1;var a=!xr(t,o,this.counter),s=a,u=a&&!xr(t,i,this.perMinCounter);return _r(this.platform,this.platformOptions,null,u,o,i,s)}},{key:"setPlatformOptions",value:function(e,t){this.platform=e,this.platformOptions=t}}])}();function xr(e,t,r){return!e.ignoreRateLimit&&t>=1&&r>t}function _r(e,t,r,n,o,i,a){var s=null,u=r?new Error(r):null;return u||n||(s=function(e,t,r,n,o){var i=t.environment||t.payload&&t.payload.environment,a=o?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.",s={body:{message:{body:a,extra:{maxItems:r,itemsPerMinute:n}}},language:"javascript",environment:i,notifier:{version:t.notifier&&t.notifier.version||t.version}};"browser"===e?(s.platform="browser",s.framework="browser-js",s.notifier.name="rollbar-browser-js"):"server"===e?(s.framework=t.framework||"node-js",s.notifier.name=t.notifier.name):"react-native"===e&&(s.framework=t.framework||"react-native",s.notifier.name=t.notifier.name);return s}(e,t,o,i,a)),{error:u,shouldSend:n,payload:s}}!function(e,t,r){(t=Ir(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Or,"globalSettings",{startTime:Date.now(),maxItems:void 0,itemsPerMinute:void 0});var Er=Or;function Ar(e,t,r,n,o,i,a){this.options=P(e),this.logger=r,Ar.rateLimiter.configureGlobal(this.options),Ar.rateLimiter.setPlatformOptions(a,this.options),this.api=t,this.queue=new kr(Ar.rateLimiter,t,r,this.options,i),this.tracing=o;var s=this.options.tracer||null;Tr(s)?(this.tracer=s,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new pr(this.queue,this.options),this.telemeter=n,Rr(e),this.lastError=null,this.lastErrorHash="none"}function Rr(e){e.stackTraceLimit&&(Error.stackTraceLimit=e.stackTraceLimit)}function Tr(e){if(!e)return!1;if(!e.scope||"function"!=typeof e.scope)return!1;var t=e.scope();return!(!t||!t.active||"function"!=typeof t.active)}Ar.rateLimiter=new Er({maxItems:0,itemsPerMinute:60}),Ar.prototype.global=function(e){return Ar.rateLimiter.configureGlobal(e),this},Ar.prototype.configure=function(e,t){var r=this.options,n={};t&&(n={payload:t}),this.options=P(r,e,n);var o=this.options.tracer||null;return Tr(o)?(this.tracer=o,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),Rr(e),this.global(this.options),Tr(e.tracer)&&(this.tracer=e.tracer),this},Ar.prototype.log=function(e){var t=this._defaultLogLevel();return this._log(t,e)},Ar.prototype.debug=function(e){this._log("debug",e)},Ar.prototype.info=function(e){this._log("info",e)},Ar.prototype.warn=function(e){this._log("warning",e)},Ar.prototype.warning=function(e){this._log("warning",e)},Ar.prototype.error=function(e){this._log("error",e)},Ar.prototype.critical=function(e){this._log("critical",e)},Ar.prototype.wait=function(e){this.queue.wait(e)},Ar.prototype.captureEvent=function(e,t,r){return this.telemeter&&this.telemeter.captureEvent(e,t,r)},Ar.prototype.captureDomContentLoaded=function(e){return this.telemeter&&this.telemeter.captureDomContentLoaded(e)},Ar.prototype.captureLoad=function(e){return this.telemeter&&this.telemeter.captureLoad(e)},Ar.prototype.buildJsonPayload=function(e){return this.api.buildJsonPayload(e)},Ar.prototype.sendJsonPayload=function(e){this.api.postJsonPayload(e)},Ar.prototype._log=function(e,t){var r;if(t.callback&&(r=t.callback,delete t.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(t)){if(r){var n=new Error("ignored identical item");n.item=t,r(n)}}else try{t.level=t.level||e,this._addItemAttributes(t),this._addTracingInfo(t);var o=this.telemeter;o&&(o._captureRollbarItem(t),t.telemetryEvents=o.copyEvents()||[]),this.notifier.log(t,r)}catch(e){r&&r(e),this.logger.error(e)}},Ar.prototype._addItemAttributes=function(e){var t,r,n=null===(t=this.tracing)||void 0===t?void 0:t.getSpan(),o=[{key:"session_id",value:null===(r=this.tracing)||void 0===r?void 0:r.sessionId},{key:"span_id",value:null==n?void 0:n.spanId},{key:"trace_id",value:null==n?void 0:n.traceId}];e._isUncaught&&o.push({key:"is_uncaught",value:"true"}),E(e.data,o),null==n||n.addEvent("rollbar.occurrence",[{key:"rollbar.occurrence.uuid",value:e.uuid}])},Ar.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},Ar.prototype._sameAsLastError=function(e){if(!e._isUncaught)return!1;var t=function(e){var t=e.message||"",r=(e.err||{}).stack||String(e.err);return t+"::"+r}(e);return this.lastErrorHash===t||(this.lastError=e.err,this.lastErrorHash=t,!1)},Ar.prototype._addTracingInfo=function(e){if(this.tracer){var t=this.tracer.scope().active();if(function(e){if(!e||!e.context||"function"!=typeof e.context)return!1;var t=e.context();if(!t||!t.toSpanId||!t.toTraceId||"function"!=typeof t.toSpanId||"function"!=typeof t.toTraceId)return!1;return!0}(t)){t.setTag("rollbar.error_uuid",e.uuid),t.setTag("rollbar.has_error",!0),t.setTag("error",!0),t.setTag("rollbar.item_url","https://rollbar.com/item/uuid/?uuid=".concat(e.uuid)),t.setTag("rollbar.occurrence_url","https://rollbar.com/occurrence/uuid/?uuid=".concat(e.uuid));var r=t.context().toSpanId(),n=t.context().toTraceId();e.custom?(e.custom.opentracing_span_id=r,e.custom.opentracing_trace_id=n):e.custom={opentracing_span_id:r,opentracing_trace_id:n}}}};var Mr=Ar;function Pr(e,t,r){e._isUncaught&&(e.data._isUncaught=!0),e._originalArgs&&(e.data._originalArgs=e._originalArgs),r(null,e)}function jr(e,t,r){var n=t.payload||{};n.body&&delete n.body,e.data=P(e.data,n),r(null,e)}function Nr(e,t,r){e.telemetryEvents&&R(e,"data.body.telemetry",e.telemetryEvents),r(null,e)}function Lr(e,t,r){if(e.message){var n="data.body.trace_chain.0",o=A(e,n);if(o||(o=A(e,n="data.body.trace")),o){if(!o.exception||!o.exception.description)return R(e,n+".exception.description",e.message),void r(null,e);R(e,n+".extra",P(A(e,n+".extra")||{},{message:e.message}))}r(null,e)}else r(null,e)}function Dr(e){return function(t,r,n){var o,i=P(t),s=null;try{u(r.transform)&&(s=r.transform(i.data,t))}catch(o){return r.transform=null,e.error("Error while calling custom transform() function. Removing custom transform().",o),void n(null,t)}l(o=s)&&a(o.then,"function")?s.then(function(e){e&&(i.data=e),n(null,i)},function(e){n(e,t)}):n(null,i)}}function Fr(e,t,r){if(!t.sendConfig)return r(null,e);var n=A(e,"data.custom")||{};n._rollbarConfig=t,e.data.custom=n,r(null,e)}function Ur(e,t){u(e[t])&&(e[t]=e[t].toString())}function Br(e,t,r){var n=t._configuredOptions;Ur(n,"transform"),Ur(n,"checkIgnore"),Ur(n,"onSendCallback"),delete n.accessToken,e.data.notifier.configured_options=n,r(null,e)}function Wr(e,t,r){var n=P(e.notifier.client.notifier.diagnostic,e.diagnostic);if(A(e,"err._isAnonymous")&&(n.is_anonymous=!0),e._isUncaught&&(n.is_uncaught=e._isUncaught),e.err)try{n.raw_error={message:e.err.message,name:e.err.name,constructor_name:e.err.constructor&&e.err.constructor.name,filename:e.err.fileName,line:e.err.lineNumber,column:e.err.columnNumber,stack:e.err.stack}}catch(e){n.raw_error={failed:String(e)}}e.data.notifier.diagnostic=P(e.data.notifier.diagnostic,n),r(null,e)}function zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Gr=[].concat(function(e){return function(e){if(Array.isArray(e))return zr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return zr(e,t);var r={}.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)?zr(e,t):void 0}}(e)||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.")}()}(["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","secret_key","secretKey","secretToken"]),["cc-number","card number","cardnumber","cardnum","ccnum","ccnumber","cc num","creditcardnumber","credit card number","newcreditcardnumber","new credit card","creditcardno","credit card no","card#","card #","cc-csc","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"]),Vr={scrubFields:Gr};function Hr(e,t){return!A(t,"plugins.jquery.ignoreAjaxErrors")||!A(e,"body.message.extra.isAjax")}function qr(e,t,r){if(e.err&&"DOMException"===nr.Stack(e.err).name){var n=new Error;n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack,n.nested=e.err,e.err=n}r(null,e)}function Jr(e,t,r){if(e.data=e.data||{},e.err)try{e.stackInfo=e.err._savedStackTrace||nr.parse(e.err,e.skipFrames),t.addErrorContext&&function(e){var t=[],r=e.err;t.push(r);for(;r.nested||r.cause;)r=r.nested||r.cause,t.push(r);!function(e,t){var r=e.data.custom||{},o=!1;try{var i,a=n(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;c(s,"rollbarContext")&&(r=P(r,C(s.rollbarContext)),o=!0)}}catch(e){a.e(e)}finally{a.f()}o&&(e.data.custom=r)}catch(t){e.diagnostic.error_context="Failed: "+t.message}}(e,t)}(e)}catch(t){Me.error("Error while parsing the error object.",t);try{e.message=e.err.message||e.err.description||e.message||String(e.err)}catch(t){e.message=String(e.err)||String(t)}delete e.err}r(null,e)}function Zr(e,t,r){e.message||e.stackInfo||e.custom||r(new Error("No message, stack info, or custom data"),null),r(null,e)}function Yr(e,t,r){var n=t.payload&&t.payload.environment||t.environment;e.data=P(e.data,{environment:n,level:e.level,endpoint:t.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:e.uuid,notifier:{name:"rollbar-browser-js",version:t.version},custom:e.custom}),r(null,e)}function Xr(e,t,r){e.stackInfo?e.stackInfo.traceChain?function(e,t,r){for(var n=e.stackInfo.traceChain,o=[],i=n.length,a=0;a<i;a++){var s=Qr(e,n[a],t);o.push(s)}R(e,"data.body",{trace_chain:o}),r(null,e)}(e,t,r):function(e,t,r){var n=$r(e);if(n){R(e,"data.body",{trace:Qr(e,e.stackInfo,t)}),r(null,e)}else{var o=e.stackInfo,i=nr.guessErrorClass(o.message),a=en(o,i[0],t),s=i[1];e.message=a+": "+s,Kr(e,t,r)}}(e,t,r):Kr(e,t,r)}function Kr(e,t,r){var n=e.message,o=e.custom;n||(n="Item sent with null or missing arguments.");var i={body:n};o&&(i.extra=P(o)),R(e,"data.body",{message:i}),r(null,e)}function $r(e){var t=((arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||e.stackInfo).stack;return t&&0===t.length&&e._unhandledStackInfo&&e._unhandledStackInfo.stack&&(t=e._unhandledStackInfo.stack),t}function Qr(e,t,r){var n=e&&e.data.description,o=e&&e.custom,i=$r(e,t),a=nr.guessErrorClass(t.message),s={exception:{class:en(t,a[0],r),message:a[1]}};if(n&&(s.exception.description=n),i){var u,l,c,f,h,p,d,v;for(0===i.length&&(s.exception.stack=t.rawStack,s.exception.raw=String(t.rawException)),s.frames=[],d=0;d<i.length;++d)l={filename:(u=i[d]).url?y(u.url):"(unknown)",lineno:u.line||null,method:u.func&&"?"!==u.func?u.func:"[anonymous]",colno:u.column},r.sendFrameUrl&&(l.url=u.url),l.method&&l.method.endsWith&&l.method.endsWith("_rollbar_wrapped")||(c=f=h=null,(p=u.context?u.context.length:0)&&(v=Math.floor(p/2),f=u.context.slice(0,v),c=u.context[v],h=u.context.slice(v)),c&&(l.code=c),(f||h)&&(l.context={},f&&f.length&&(l.context.pre=f),h&&h.length&&(l.context.post=h)),u.args&&(l.args=u.args),s.frames.push(l));s.frames.reverse(),o&&(s.extra=P(o))}return s}function en(e,t,r){return e.name?e.name:r.guessErrorClass?t:"(unknown)"}function tn(e){return tn="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},tn(e)}function rn(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}function nn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=tn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var on=function(e){var t,r,n=e.accessToken,o=e.url,i=e.method,a=e.payload,s=e.headers,u=e.callback,l=e.timeout;f(l)&&(t=new AbortController,r=setTimeout(function(){t.abort()},l)),s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(r),!0).forEach(function(t){nn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"Content-Type":"application/json","X-Rollbar-Access-Token":n,signal:t&&t.signal},s),fetch(o,{method:i,headers:s,body:a}).then(function(e){r&&clearTimeout(r);var t=e.headers,n=o.endsWith("/api/1/item/")?{"Rollbar-Replay-Enabled":t.get("Rollbar-Replay-Enabled"),"Rollbar-Replay-RateLimit-Remaining":t.get("Rollbar-Replay-RateLimit-Remaining"),"Rollbar-Replay-RateLimit-Reset":t.get("Rollbar-Replay-RateLimit-Reset")}:{},i=e.json();u(null,i,n)}).catch(function(e){Me.error(e.message),u(e)})};function an(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sn(e,t);var r={}.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)?sn(e,t):void 0}}(e,t)||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.")}()}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function un(e,t){var r=new Error(e);return r.code=t||"ENOTFOUND",r}var ln=function(e){var t,r=e.accessToken,n=e.url,o=e.method,i=e.payload,s=e.headers,u=e.callback,l=e.requestFactory,c=e.timeout;if(!(t=l?l():function(){var e,t,r=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=r.length;for(t=0;t<n;t++)try{e=r[t]();break}catch(e){}return e}()))return u(new Error("No way to send a request"));try{try{var h=function(){try{if(h&&4===t.readyState){h=void 0;var e=w(t.responseText);if(function(e){return e&&e.status&&200===e.status}(t)){var r=n.endsWith("/api/1/item/")?{"Rollbar-Replay-Enabled":t.getResponseHeader("Rollbar-Replay-Enabled"),"Rollbar-Replay-RateLimit-Remaining":t.getResponseHeader("Rollbar-Replay-RateLimit-Remaining"),"Rollbar-Replay-RateLimit-Reset":t.getResponseHeader("Rollbar-Replay-RateLimit-Reset")}:{};return void u(e.error,e.value,r)}if(function(e){return e&&a(e.status,"number")&&e.status>=400&&e.status<600}(t)){if(403===t.status){var o=e.value&&e.value.message;Me.error(o)}u(new Error(String(t.status)))}else{u(un("XHR response had no status code (likely connection failure)"))}}}catch(e){var i;i=e&&e.stack?e:new Error(e),u(i)}};if(t.open(o,n,!0),t.setRequestHeader){t.setRequestHeader("Content-Type","application/json"),t.setRequestHeader("X-Rollbar-Access-Token",r);for(var p=0,d=Object.entries(null!=s?s:{});p<d.length;p++){var v=an(d[p],2),y=v[0],m=v[1];t.setRequestHeader(y,m)}}f(c)&&(t.timeout=c),t.onreadystatechange=h,t.send(i)}catch(e){if("undefined"!=typeof XDomainRequest){if(!window||!window.location)return u(new Error("No window available during request, unknown environment"));"http:"===window.location.href.substring(0,5)&&"https"===n.substring(0,5)&&(n="http"+n.substring(5));var g=new XDomainRequest;g.onprogress=function(){},g.ontimeout=function(){u(un("Request timed out","ETIMEDOUT"))},g.onerror=function(){u(new Error("Error during request"))},g.onload=function(){var e=w(g.responseText);u(e.error,e.value)},g.open(o,n,!0),g.send(i)}else u(new Error("Cannot find a method to transport a request"))}}catch(e){u(e)}};function cn(e){this.truncation=e}cn.prototype.get=function(e,t,r,n,o){n&&u(n)||(n=function(){}),function(e,t,r){(r=r||{}).access_token=e;var n,o=[];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&o.push([n,r[n]].join("="));var i="?"+o.sort().join("&");(t=t||{}).path=t.path||"";var a,s=t.path.indexOf("?"),u=t.path.indexOf("#");-1!==s&&(-1===u||u>s)?(a=t.path,t.path=a.substring(0,s)+i+"&"+a.substring(s+1)):-1!==u?(a=t.path,t.path=a.substring(0,u)+i+a.substring(u)):t.path=t.path+i}(e,t,r);var i=g(t);this._makeZoneRequest({accessToken:e,url:i,method:"GET",callback:n,requestFactory:o,timeout:t.timeout,transport:t.transport})},cn.prototype.post=function(e){var t,r=e.accessToken,n=e.options,o=e.payload,i=e.headers,a=e.callback,s=e.requestFactory;if(a&&u(a)||(a=function(){}),!o)return a(new Error("Cannot send empty request"));if((t=this.truncation&&o.body?this.truncation.truncate(o):b(o)).error)return a(t.error);var l=g(n);this._makeZoneRequest({accessToken:r,url:l,method:"POST",payload:t.value,headers:i,callback:a,requestFactory:s,timeout:n.timeout,transport:n.transport})},cn.prototype.postJsonPayload=function(e,t,r,n,o){n&&u(n)||(n=function(){});var i=g(t);this._makeZoneRequest({accessToken:e,url:i,method:"POST",payload:r,callback:n,requestFactory:o,timeout:t.timeout,transport:t.transport})},cn.prototype._makeZoneRequest=function(){var e=this,t="undefined"!=typeof window&&window||"undefined"!=typeof self&&self,r=t&&t.Zone&&t.Zone.root,n=Array.prototype.slice.call(arguments);r?r.run(function(){e._makeRequest.apply(void 0,n)}):this._makeRequest.apply(void 0,n)},cn.prototype._makeRequest=function(e){var t=e.payload,r=e.callback,n=e.transport;if("undefined"!=typeof RollbarProxy)return function(e,t){(new RollbarProxy).sendJsonPayload(e,function(e){},function(e){t(new Error(e))})}(t,r);"fetch"===n?on(e):ln(e)};var fn,hn=cn;function pn(e){var t,r,n={protocol:null,auth:null,host:null,path:null,hash:null,href:e,hostname:null,port:null,pathname:null,search:null,query:null};if(-1!==(t=e.indexOf("//"))?(n.protocol=e.substring(0,t),r=t+2):r=0,-1!==(t=e.indexOf("@",r))&&(n.auth=e.substring(r,t),r=t+1),-1===(t=e.indexOf("/",r))){if(-1===(t=e.indexOf("?",r)))return-1===(t=e.indexOf("#",r))?n.host=e.substring(r):(n.host=e.substring(r,t),n.hash=e.substring(t)),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),n;n.host=e.substring(r,t),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=t}else n.host=e.substring(r,t),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=t;if(-1===(t=e.indexOf("#",r))?n.path=e.substring(r):(n.path=e.substring(r,t),n.hash=e.substring(t)),n.path){var o=n.path.split("?");n.pathname=o[0],n.query=o[1],n.search=n.query?"?"+n.query:null}return n}function dn(e){return dn="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},dn(e)}function vn(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}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach(function(t){gn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function mn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bn(n.key),n)}}function gn(e,t,r){return(t=bn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bn(e){var t=function(e,t){if("object"!=dn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dn(t)?t:t+""}var wn=null,kn=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Me.init({logLevel:t.logLevel||"error"}),this.options=M(Cn,t,null,Me),this.options._configuredOptions=t,this.components=this.components||{};var o=this.components.telemeter,i=this.components.instrumenter;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var a=this.components.truncation,s=this.components.tracing,l=this.components.replay,c=new hn(a),f=new Dt(this.options,c,r,a);if(s&&(this.tracing=new s(Sn(),f,this.options),this.tracing.initSession()),o&&(this.telemeter=new o(this.options,this.tracing)),l&&"undefined"!=typeof window){var h=this.options.replay;this.replay=new l({tracing:this.tracing,telemeter:this.telemeter,options:h}),h.enabled&&h.autoStart&&this.replay.recorder.start()}this.client=n||new Mr(this.options,f,Me,this.telemeter,this.tracing,this.replay,"browser");var p=Sn(),d="undefined"!=typeof document&&document;this.isChrome=p.chrome&&p.chrome.runtime,this.anonymousErrorsPending=0,function(e,t,r){e.addTransform(qr).addTransform(Jr).addTransform(Zr).addTransform(Yr).addTransform(function(e){return function(t,r,n){var o={};e&&e.location&&(o.url=e.location.href,o.query_string=e.location.search);var i="$remote_ip";r.captureIp?!0!==r.captureIp&&(i+="_anonymize"):i=null,i&&(o.user_ip=i),Object.keys(o).length>0&&R(t,"data.request",o),n(null,t)}}(r)).addTransform(function(e){return function(t,r,n){if(!e)return n(null,t);var o=e.navigator||{},i=e.screen||{};R(t,"data.client",{runtime_ms:t.timestamp-e._rollbarStartTime,timestamp:Math.round(t.timestamp/1e3),javascript:{browser:o.userAgent,language:o.language,cookie_enabled:o.cookieEnabled,screen:{width:i.width,height:i.height}}}),n(null,t)}}(r)).addTransform(function(e){return function(t,r,n){if(!e||!e.navigator)return n(null,t);for(var o,i=[],a=e.navigator.plugins||[],s=0,u=a.length;s<u;++s)o=a[s],i.push({name:o.name,description:o.description});R(t,"data.client.javascript.plugins",i),n(null,t)}}(r)).addTransform(Xr).addTransform(Lr).addTransform(Nr).addTransform(Fr).addTransform((n=t.scrub,function(e,t,r){if(n){var o=t.scrubFields||[],i=t.scrubPaths||[];e.data=n(e.data,o,i)}r(null,e)})).addTransform(jr).addTransform(Dr(Me)).addTransform(Br).addTransform(Wr).addTransform(Pr);var n}(this.client.notifier,this,p),function(e){e.addPredicate(ar).addPredicate(Hr).addPredicate(function(e){return function(t,r){var n=Boolean(t._isUncaught);delete t._isUncaught;var o=t._originalArgs;delete t._originalArgs;try{u(r.onSendCallback)&&r.onSendCallback(n,o,t)}catch(t){r.onSendCallback=null,e.error("Error while calling onSendCallback, removing",t)}try{if(u(r.checkIgnore)&&r.checkIgnore(n,o,t))return!1}catch(t){r.checkIgnore=null,e.error("Error while calling custom checkIgnore(), removing",t)}return!0}}(Me)).addPredicate(function(e){return function(t,r){return!ur(t,r,"blocklist",e)}}(Me)).addPredicate(function(e){return function(t,r){return ur(t,r,"safelist",e)}}(Me)).addPredicate(lr(Me))}(this.client.queue),this.setupUnhandledCapture(),i&&(this.instrumenter=new i(this.options,this.client.telemeter,this,p,d),this.instrumenter.instrument()),this.setSessionAttributesFromOptions(t),this.rollbar=this}return function(e,t,r){return t&&mn(e.prototype,t),r&&mn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"global",value:function(e){return this.client.global(e),this}},{key:"configure",value:function(e,t){var r,n,o;e.logLevel&&Me.init({logLevel:e.logLevel}),this.setSessionAttributesFromOptions(e);var i=this.options,a={};return t&&(a={payload:t}),this.options=M(i,e,a,Me),this.options._configuredOptions=M(i._configuredOptions,e,a),null===(r=this.tracing)||void 0===r||r.configure(this.options),null===(n=this.replay)||void 0===n||n.configure(this.options.replay),this.client.configure(this.options,t),null===(o=this.instrumenter)||void 0===o||o.configure(this.options),this.setupUnhandledCapture(),this}},{key:"lastError",value:function(){return this.client.lastError}},{key:"log",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.log(e),{uuid:t}}},{key:"debug",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.debug(e),{uuid:t}}},{key:"info",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.info(e),{uuid:t}}},{key:"warn",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.warn(e),{uuid:t}}},{key:"warning",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.warning(e),{uuid:t}}},{key:"error",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.error(e),{uuid:t}}},{key:"critical",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.critical(e),{uuid:t}}},{key:"buildJsonPayload",value:function(e){return this.client.buildJsonPayload(e)}},{key:"sendJsonPayload",value:function(e){return this.client.sendJsonPayload(e)}},{key:"triggerDirectReplay",value:function(e){return this.triggerReplay(yn({type:"direct"},e))}},{key:"triggerReplay",value:function(e){return this.replay?this.replay.triggerReplay(e):null}},{key:"setupUnhandledCapture",value:function(){var e=Sn();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(!function(e,t,r){if(e){var n;if("function"==typeof t._rollbarOldOnError)n=t._rollbarOldOnError;else if(e.onerror){for(n=e.onerror;n._rollbarOldOnError;)n=n._rollbarOldOnError;t._rollbarOldOnError=n}t.handleAnonymousErrors();var o=function(){var r=Array.prototype.slice.call(arguments,0);!function(e,t,r,n){e._rollbarWrappedError&&(n[4]||(n[4]=e._rollbarWrappedError),n[5]||(n[5]=e._rollbarWrappedError._rollbarContext),e._rollbarWrappedError=null);var o=t.handleUncaughtException.apply(t,n);r&&r.apply(e,n),"anonymous"===o&&(t.anonymousErrorsPending+=1)}(e,t,n,r)};r&&(o._rollbarOldOnError=n),e.onerror=o}}(e,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(e,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(!function(e,t,r){if(e){"function"==typeof e._rollbarURH&&e._rollbarURH.belongsToShim&&e.removeEventListener("unhandledrejection",e._rollbarURH);var n=function(e){var r,n,o;try{r=e.reason}catch(e){r=void 0}try{n=e.promise}catch(e){n="[unhandledrejection] error getting `promise` from event"}try{o=e.detail,!r&&o&&(r=o.reason,n=o.promise)}catch(e){}r||(r="[unhandledrejection] error getting `reason` from event"),t&&t.handleUnhandledRejection&&t.handleUnhandledRejection(r,n)};n.belongsToShim=r,e._rollbarURH=n,e.addEventListener("unhandledrejection",n)}}(e,this),this.unhandledRejectionsInitialized=!0)}},{key:"handleUncaughtException",value:function(e,t,r,n,o,i){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&null===o&&""===t)return"anonymous";var a,s=k(e,t,r,n,o,"onerror","uncaught exception",nr);h(o)?(a=this._createItem([e,o,i]))._unhandledStackInfo=s:h(t)?(a=this._createItem([e,t,i]))._unhandledStackInfo=s:(a=this._createItem([e,i])).stackInfo=s,a.level=this.options.uncaughtErrorLevel,a._isUncaught=!0,this.client.log(a)}}},{key:"handleAnonymousErrors",value:function(){var e=this;if(this.options.inspectAnonymousErrors&&this.isChrome){try{Error.prepareStackTrace=function(t,r){if(e.options.inspectAnonymousErrors&&e.anonymousErrorsPending){if(e.anonymousErrorsPending-=1,!t)return;t._isAnonymous=!0,e.handleUncaughtException(t.message,null,null,null,t)}return t.stack}}catch(e){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",e)}}}},{key:"handleUnhandledRejection",value:function(e,t){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var r="unhandled rejection was null or undefined!";if(e)if(e.message)r=e.message;else{var n=b(e);n.value&&(r=n.value)}var o,i=e&&e._rollbarContext||t&&t._rollbarContext;h(e)?o=this._createItem([r,e,i]):(o=this._createItem([r,e,i])).stackInfo=k(r,"",0,0,null,"unhandledrejection","",nr),o.level=this.options.uncaughtErrorLevel,o._isUncaught=!0,o._originalArgs=o._originalArgs||[],o._originalArgs.push(t),this.client.log(o)}}},{key:"wrap",value:function(e,t,r){try{var n;if(n=u(t)?t:function(){return t||{}},!u(e))return e;if(e._isWrap)return e;if(!e._rollbar_wrapped)for(var o in e._rollbar_wrapped=function(){r&&u(r)&&r.apply(this,arguments);try{return e.apply(this,arguments)}catch(r){var t=r;throw t&&window._rollbarWrappedError!==t&&(a(t,"string")&&(t=new String(t)),t._rollbarContext=n()||{},t._rollbarContext._wrappedSource=e.toString(),window._rollbarWrappedError=t),t}},e._rollbar_wrapped._isWrap=!0,e)c(e,o)&&"_rollbar_wrapped"!==o&&(e._rollbar_wrapped[o]=e[o]);return e._rollbar_wrapped}catch(t){return e}}},{key:"captureEvent",value:function(){var e=function(e){for(var t,r,n,o,i=0,a=e.length;i<a;++i)switch(s(o=e[i])){case"string":!t&&_(O,o)?t=o:!n&&_(x,o)&&(n=o);break;case"object":r=o}return{type:t||"manual",metadata:r||{},level:n}}(arguments);return this.client.captureEvent(e.type,e.metadata,e.level)}},{key:"setSessionUser",value:function(e){var t;null!==(t=this.tracing)&&void 0!==t&&t.session&&this.tracing.session.setUser(e)}},{key:"setSessionAttributes",value:function(e){var t;null!==(t=this.tracing)&&void 0!==t&&t.session&&(e=yn({},e),this.tracing.session.setAttributes(e))}},{key:"setSessionAttributesFromOptions",value:function(e){var t,r,n,o,i,a=e.person||(null===(t=e.payload)||void 0===t?void 0:t.person);a&&this.setSessionUser(a);var s=(null===(r=e.client)||void 0===r||null===(r=r.javascript)||void 0===r?void 0:r.code_version)||e.codeVersion||e.code_version||(null===(n=e.payload)||void 0===n||null===(n=n.client)||void 0===n||null===(n=n.javascript)||void 0===n?void 0:n.code_version)||(null===(o=e.payload)||void 0===o?void 0:o.code_version)||(null===(i=e.payload)||void 0===i?void 0:i.codeVersion);this.setSessionAttributes({"rollbar.codeVersion":s,"rollbar.notifier.name":"rollbar-browser-js","rollbar.notifier.version":e.version})}},{key:"captureDomContentLoaded",value:function(e,t){return t||(t=new Date),this.client.captureDomContentLoaded(t)}},{key:"captureLoad",value:function(e,t){return t||(t=new Date),this.client.captureLoad(t)}},{key:"loadFull",value:function(){Me.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")}},{key:"_createItem",value:function(e){return I(e,Me,this)}}],[{key:"init",value:function(t,r){return wn?wn.global(t).configure(t):wn=new e(t,r)}},{key:"setComponents",value:function(t){e.prototype.components=t}},{key:"callInstance",value:function(e,t){if(wn)return wn[e].apply(wn,t);var r="Rollbar is not initialized";Me.error(r);var n=function(e){for(var t=0,r=e.length;t<r;++t)if(u(e[t]))return e[t];return}(t);n&&n(new Error(r))}}])}();function Sn(){return"undefined"!=typeof window&&window||"undefined"!=typeof self&&self}fn=kn,gn(kn,"global",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("global",t)}),gn(kn,"configure",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("configure",t)}),gn(kn,"lastError",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("lastError",t)}),gn(kn,"log",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("log",t)}),gn(kn,"debug",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("debug",t)}),gn(kn,"info",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("info",t)}),gn(kn,"warn",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("warn",t)}),gn(kn,"warning",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("warning",t)}),gn(kn,"error",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("error",t)}),gn(kn,"critical",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("critical",t)}),gn(kn,"buildJsonPayload",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("buildJsonPayload",t)}),gn(kn,"sendJsonPayload",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("sendJsonPayload",t)}),gn(kn,"wrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("wrap",t)}),gn(kn,"captureEvent",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn.callInstance("captureEvent",t)});var Cn={environment:"unknown",version:Ft,scrubFields:Vr.scrubFields,logLevel:Bt,reportLevel:Wt,uncaughtErrorLevel:zt,endpoint:Ut,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1,replay:{enabled:!1,autoStart:!0,triggerDefaults:{samplingRatio:1,preDuration:300,postDuration:5},triggers:[{type:"occurrence",level:["error","critical"]}],debug:{logErrors:!0,logEmits:!1},inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,maskInputOptions:{password:!0,email:!1,tel:!1,text:!1,color:!1,date:!1,"datetime-local":!1,month:!1,number:!1,range:!1,search:!1,time:!1,url:!1,week:!1},maskAllInputs:!1,blockClass:"rb-block",maskTextClass:"rb-mask",ignoreClass:"rb-ignore",slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}},tracing:{enabled:!1,endpoint:"api.rollbar.com/api/1/session/"}},In=kn,On=["inputs"],xn=["inputId"],_n=["inputs"],En=["inputId"],An=["type"];function Rn(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Tn(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(ro(e)+" is not iterable")}function Mn(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return Pn(l,"_invoke",function(r,n,o){var i,s,u,l=0,c=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,u=e,h.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!f&&l&&!o&&t<c.length;t++){var o,i=c[t],p=h.p,d=i[2];r>3?(o=d===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,h.v=n,h.n=i[1]):p<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,h.n=d,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,d),s=c,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:r.call(n,h))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Pn(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Pn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,Pn(f,"constructor",l),Pn(l,"constructor",u),u.displayName="GeneratorFunction",Pn(l,o,"GeneratorFunction"),Pn(f),Pn(f,o,"Generator"),Pn(f,n,function(){return this}),Pn(f,"toString",function(){return"[object Generator]"}),(Mn=function(){return{w:i,m:h}})()}function Pn(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Pn=function(e,t,r,n){function i(t,r){Pn(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Pn(e,t,r,n)}function jn(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Nn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){jn(i,n,o,a,s,"next",e)}function s(e){jn(i,n,o,a,s,"throw",e)}a(void 0)})}}function Ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||Xn(e,t)||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.")}()}function Dn(e,t,r,n){var o=Fn(Zn(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function Fn(){return Fn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Zn(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},Fn.apply(null,arguments)}function Un(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}function Bn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(r),!0).forEach(function(t){Wn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Un(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Wn(e,t,r){return(t=to(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zn(e){return function(e){if(Array.isArray(e))return Kn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xn(e)||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.")}()}function Gn(e,t,r){return t=Zn(t),function(e,t){if(t&&("object"==ro(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qn()?Reflect.construct(t,r||[],Zn(e).constructor):t.apply(e,r))}function Vn(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&&Jn(e,t)}function Hn(e){var t="function"==typeof Map?new Map:void 0;return Hn=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(qn())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Jn(o,r.prototype),o}(e,arguments,Zn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Jn(r,e)},Hn(e)}function qn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qn=function(){return!!e})()}function Jn(e,t){return Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jn(e,t)}function Zn(e){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zn(e)}function Yn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Xn(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Xn(e,t){if(e){if("string"==typeof e)return Kn(e,t);var r={}.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)?Kn(e,t):void 0}}function Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,to(n.key),n)}}function eo(e,t,r){return t&&Qn(e.prototype,t),r&&Qn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function to(e){var t=function(e,t){if("object"!=ro(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ro(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ro(t)?t:t+""}function ro(e){return ro="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},ro(e)}var no,oo=Object.defineProperty,io=function(e,t,r){return function(e,t,r){return t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==ro(t)?t+"":t,r)},ao=Object.defineProperty,so=function(e,t,r){return function(e,t,r){return t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==ro(t)?t+"":t,r)},uo=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(uo||{}),lo={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},co={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},fo={};function ho(e){if(fo[e])return fo[e];var t=globalThis[e],r=t.prototype,n=e in lo?lo[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 co?co[e]:void 0,a=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&&a&&!globalThis.Zone)return fo[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var u=s.contentWindow;if(!u)return t.prototype;var l=u[e].prototype;return document.body.removeChild(s),l?fo[e]=l:r}catch(e){return r}}var po={};function vo(e,t,r){var n,o="".concat(e,".").concat(String(r));if(po[o])return po[o].call(t);var i=ho(e),a=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return a?(po[o]=a,a.call(t)):t[r]}var yo={};function mo(e,t,r){var n="".concat(e,".").concat(String(r));if(yo[n])return yo[n].bind(t);var o=ho(e)[r];return"function"!=typeof o?t[r]:(yo[n]=o,o.bind(t))}var go={ownerDocument:function(e){return vo("Node",e,"ownerDocument")},childNodes:function(e){return vo("Node",e,"childNodes")},parentNode:function(e){return vo("Node",e,"parentNode")},parentElement:function(e){return vo("Node",e,"parentElement")},textContent:function(e){return vo("Node",e,"textContent")},contains:function(e,t){return mo("Node",e,"contains")(t)},getRootNode:function(e){return mo("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?vo("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?vo("Element",e,"shadowRoot"):null},querySelector:function(e,t){return vo("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return vo("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return ho("MutationObserver").constructor},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(){}}}};function bo(e){return e.nodeType===e.ELEMENT_NODE}function wo(e){var t=e&&"host"in e&&"mode"in e&&go.host(e)||null;return Boolean(t&&"shadowRoot"in t&&go.shadowRoot(t)===e)}function ko(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function So(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);var n=Array.from(t,function(e){return Co(e,r)}).join("");return(o=n).includes(" background-clip: text;")&&!o.includes(" -webkit-background-clip: text;")&&(o=o.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),o}catch(e){return null}var o}function Co(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=So(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer(".concat(e.layerName,")")),e.supportsText&&r.push("supports(".concat(e.supportsText,")")),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?jo(r,e.styleSheet.href):r}var n,o=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,o=o.replace(n,"$1\\$2")),t?jo(o,t):o}var Io=function(){return eo(function e(){$n(this,e),so(this,"idNodeMap",new Map),so(this,"nodeMetaMap",new WeakMap)},[{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}}])}();function Oo(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,o=e.type,i=e.value,a=e.maskInputFn,s=i||"",u=o&&xo(o);return(r[n.toLowerCase()]||u&&r[u])&&(s=a?a(s,t):"*".repeat(s.length)),s}function xo(e){return e.toLowerCase()}var _o="__rrweb_original__";function Eo(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?xo(t):null}function Ao(e,t){var r,n;try{n=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var o=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(r=null==o?void 0:o[1])&&void 0!==r?r:null}var Ro=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,To=/^(?:[a-z+]+:)?\/\//i,Mo=/^www\..*/i,Po=/^(data:)([^,]*),(.*)/i;function jo(e,t){return(e||"").replace(Ro,function(e,r,n,o,i,a){var s,u=n||i||a,l=r||o||"";if(!u)return e;if(To.test(u)||Mo.test(u))return"url(".concat(l).concat(u).concat(l,")");if(Po.test(u))return"url(".concat(l).concat(u).concat(l,")");if("/"===u[0])return"url(".concat(l).concat((s=t,(s.indexOf("//")>-1?s.split("/").slice(0,3).join("/"):s.split("/")[0]).split("?")[0]+u)).concat(l,")");var c=t.split("/"),f=u.split("/");c.pop();var h,p=Yn(f);try{for(p.s();!(h=p.n()).done;){var d=h.value;"."!==d&&(".."===d?c.pop():c.push(d))}}catch(e){p.e(e)}finally{p.f()}return"url(".concat(l).concat(c.join("/")).concat(l,")")})}function No(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Lo(e,t){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Array.from(t.childNodes),o=[],i=0;if(n.length>1&&e&&"string"==typeof e)for(var a=No(e,r),s=a.length/e.length,u=1;u<n.length;u++)if(n[u].textContent&&"string"==typeof n[u].textContent){for(var l=No(n[u].textContent,r),c=3;c<l.length&&(l[c].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,c),1));c++);for(;c<l.length;c++){var f=l.substring(0,c),h=a.split(f),p=-1;if(2===h.length)p=h[0].length;else if(h.length>2&&""===h[0]&&""!==n[u-1].textContent)p=a.indexOf(f,1);else if(1===h.length){if(f=f.substring(0,f.length-1),(h=a.split(f)).length<=1)return o.push(e),o;c=101}else c===l.length-1&&(p=a.indexOf(f));if(h.length>=2&&c>100){var d=n[u-1].textContent;if(d&&"string"==typeof d){var v=No(d).length;p=a.indexOf(f,v)}-1===p&&(p=h[0].length)}if(-1!==p){for(var y=Math.floor(p/s);y>0&&y<e.length;){if((i+=1)>50*n.length)return o.push(e),o;var m=No(e.substring(0,y),r);if(m.length===p){o.push(e.substring(0,y)),e=e.substring(y),a=a.substring(p);break}m.length<p?y+=Math.max(1,Math.floor((p-m.length)/s)):y-=Math.max(1,Math.floor((m.length-p)*s))}break}}}return o.push(e),o}(e,t).join("/* rr_split */")}var Do,Fo,Uo=1,Bo=new RegExp("[^a-z0-9-_:]");function Wo(){return Uo++}var zo=/^[^ \t\n\r\u000c]+/,Go=/^[, \t\n\r\u000c]+/;var Vo=new WeakMap;function Ho(e,t){return t&&""!==t.trim()?Jo(e,t):t}function qo(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Jo(e,t){var r=Vo.get(e);if(r||(r=e.createElement("a"),Vo.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function Zo(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]||"background"===r&&["table","td","th"].includes(t)?Ho(e,n):"srcset"===r?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(Go),!(r>=t.length);){var i=n(zo);if(","===i.slice(-1))i=Ho(e,i.substring(0,i.length-1)),o.push(i);else{var a="";i=Ho(e,i);for(var s=!1;;){var u=t.charAt(r);if(""===u){o.push((i+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){r+=1,o.push((i+a).trim());break}"("===u&&(s=!0)}a+=u,r+=1}}}return o.join(", ")}(e,n):"style"===r?jo(n,Jo(e)):"object"===t&&"data"===r?Ho(e,n):n:n}function Yo(e,t,r){return["video","audio"].includes(e)&&"autoplay"===t}function Xo(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Xo(go.parentNode(e),t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&Xo(go.parentNode(e),t,r)}function Ko(e,t,r,n){var o;if(bo(e)){if(o=e,!go.childNodes(o).length)return!1}else{if(null===go.parentElement(e))return!1;o=go.parentElement(e)}try{if("string"==typeof t){if(n){if(o.closest(".".concat(t)))return!0}else if(o.classList.contains(t))return!0}else if(Xo(o,t,n))return!0;if(r)if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}catch(e){}return!1}function $o(e,t){var r=t.doc,n=t.mirror,o=t.blockClass,i=t.blockSelector,a=t.needsMask,s=t.inlineStylesheet,u=t.maskInputOptions,l=void 0===u?{}:u,c=t.maskTextFn,f=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,d=t.inlineImages,v=t.recordCanvas,y=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,b=t.cssCaptured,w=void 0!==b&&b,k=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:uo.Document,childNodes:[],compatMode:e.compatMode}:{type:uo.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:uo.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,o=t.blockClass,i=t.blockSelector,a=t.inlineStylesheet,s=t.maskInputOptions,u=void 0===s?{}:s,l=t.maskInputFn,c=t.dataURLOptions,f=void 0===c?{}:c,h=t.inlineImages,p=t.recordCanvas,d=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,m=t.rootId,g=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,i),b=function(e){if(e instanceof HTMLFormElement)return"form";var t=xo(e.tagName);return Bo.test(t)?"div":t}(e),w={},k=e.attributes.length,S=0;S<k;S++){var C=e.attributes[S];Yo(b,C.name,C.value)||(w[C.name]=Zo(n,b,xo(C.name),C.value))}if("link"===b&&a){var I=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),O=null;I&&(O=So(I)),O&&(delete w.rel,delete w.href,w._cssText=O)}if("style"===b&&e.sheet){var x=So(e.sheet);x&&(e.childNodes.length>1&&(x=Lo(x,e)),w._cssText=x)}if(["input","textarea","select"].includes(b)){var _=e.value,E=e.checked;"radio"!==w.type&&"checkbox"!==w.type&&"submit"!==w.type&&"button"!==w.type&&_?w.value=Oo({element:e,type:Eo(e),tagName:b,value:_,maskInputOptions:u,maskInputFn:l}):E&&(w.checked=E)}"option"===b&&(e.selected&&!u.select?w.selected=!0:delete w.selected);"dialog"===b&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===b&&p)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var o=t.getImageData,i=_o in o?o[_o]: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})(e)||(w.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){var A=e.toDataURL(f.type,f.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,A!==R.toDataURL(f.type,f.quality)&&(w.rr_dataURL=A)}if("img"===b&&h){Do||(Do=n.createElement("canvas"),Fo=Do.getContext("2d"));var T=e,M=T.currentSrc||T.getAttribute("src")||"<unknown-src>",P=T.crossOrigin,j=function(){T.removeEventListener("load",j);try{Do.width=T.naturalWidth,Do.height=T.naturalHeight,Fo.drawImage(T,0,0),w.rr_dataURL=Do.toDataURL(f.type,f.quality)}catch(e){if("anonymous"!==T.crossOrigin)return T.crossOrigin="anonymous",void(T.complete&&0!==T.naturalWidth?j():T.addEventListener("load",j));console.warn("Cannot inline img src=".concat(M,"! Error: ").concat(e))}"anonymous"===T.crossOrigin&&(P?w.crossOrigin=P:T.removeAttribute("crossorigin"))};T.complete&&0!==T.naturalWidth?j():T.addEventListener("load",j)}if(["audio","video"].includes(b)){var N=w;N.rr_mediaState=e.paused?"paused":"played",N.rr_mediaCurrentTime=e.currentTime,N.rr_mediaPlaybackRate=e.playbackRate,N.rr_mediaMuted=e.muted,N.rr_mediaLoop=e.loop,N.rr_mediaVolume=e.volume}y||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(g){var L=e.getBoundingClientRect(),D=L.width,F=L.height;w={class:w.class,rr_width:"".concat(D,"px"),rr_height:"".concat(F,"px")}}"iframe"!==b||d(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(b)&&(r=!0)}catch(e){}return{type:uo.Element,tagName:b,attributes:w,childNodes:[],isSVG:qo(e)||void 0,needBlock:g,rootId:m,isCustom:r}}(e,{doc:r,blockClass:o,blockSelector:i,inlineStylesheet:s,maskInputOptions:l,maskInputFn:f,dataURLOptions:p,inlineImages:d,recordCanvas:v,keepIframeSrcFn:y,newlyAddedElement:g,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,o=t.rootId,i=t.cssCaptured,a=go.parentNode(e),s=a&&a.tagName,u="",l="STYLE"===s||void 0,c="SCRIPT"===s||void 0;c?u="SCRIPT_PLACEHOLDER":i||(u=go.textContent(e),l&&u&&(u=jo(u,Jo(t.doc))));!l&&!c&&u&&r&&(u=n?n(u,go.parentElement(e)):u.replace(/[\S]/g,"*"));return{type:uo.Text,textContent:u||"",rootId:o}}(e,{doc:r,needsMask:a,maskTextFn:c,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:uo.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:uo.Comment,textContent:go.textContent(e)||"",rootId:k};default:return!1}}function Qo(e){return null==e?"":e.toLowerCase()}function ei(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function ti(e,t){var r=t.doc,n=t.mirror,o=t.blockClass,i=t.blockSelector,a=t.maskTextClass,s=t.maskTextSelector,u=t.skipChild,l=void 0!==u&&u,c=t.inlineStylesheet,f=void 0===c||c,h=t.maskInputOptions,p=void 0===h?{}:h,d=t.maskTextFn,v=t.maskInputFn,y=t.slimDOMOptions,m=t.dataURLOptions,g=void 0===m?{}:m,b=t.inlineImages,w=void 0!==b&&b,k=t.recordCanvas,S=void 0!==k&&k,C=t.onSerialize,I=t.onIframeLoad,O=t.iframeLoadTimeout,x=void 0===O?5e3:O,_=t.onStylesheetLoad,E=t.stylesheetLoadTimeout,A=void 0===E?5e3:E,R=t.keepIframeSrcFn,T=void 0===R?function(){return!1}:R,M=t.newlyAddedElement,P=void 0!==M&&M,j=t.cssCaptured,N=void 0!==j&&j,L=t.needsMask,D=t.preserveWhiteSpace,F=void 0===D||D;L||(L=Ko(e,a,s,void 0===L));var U,B=$o(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:L,inlineStylesheet:f,maskInputOptions:p,maskTextFn:d,maskInputFn:v,dataURLOptions:g,inlineImages:w,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:P,cssCaptured:N});if(!B)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===uo.Comment)return!0;if(e.type===uo.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Ao(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Qo(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Qo(e.attributes.name)||"icon"===Qo(e.attributes.rel)||"apple-touch-icon"===Qo(e.attributes.rel)||"shortcut icon"===Qo(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Qo(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Qo(e.attributes.property).match(/^(og|twitter|fb):/)||Qo(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Qo(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Qo(e.attributes.name)||"googlebot"===Qo(e.attributes.name)||"bingbot"===Qo(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Qo(e.attributes.name)||"generator"===Qo(e.attributes.name)||"framework"===Qo(e.attributes.name)||"publisher"===Qo(e.attributes.name)||"progid"===Qo(e.attributes.name)||Qo(e.attributes.property).match(/^article:/)||Qo(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Qo(e.attributes.name)||"yandex-verification"===Qo(e.attributes.name)||"csrf-token"===Qo(e.attributes.name)||"p:domain_verify"===Qo(e.attributes.name)||"verify-v1"===Qo(e.attributes.name)||"verification"===Qo(e.attributes.name)||"shopify-checkout-api-token"===Qo(e.attributes.name)))return!0}}return!1}(B,y)||!F&&B.type===uo.Text&&!B.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Wo();var W=Object.assign(B,{id:U});if(n.add(e,W),-2===U)return null;C&&C(e);var z=!l;if(W.type===uo.Element){z=z&&!W.needBlock,delete W.needBlock;var G=go.shadowRoot(e);G&&ko(G)&&(W.isShadowHost=!0)}if((W.type===uo.Document||W.type===uo.Element)&&z){y.headWhitespace&&W.type===uo.Element&&"head"===W.tagName&&(F=!1);var V={doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:L,maskTextClass:a,maskTextSelector:s,skipChild:l,inlineStylesheet:f,maskInputOptions:p,maskTextFn:d,maskInputFn:v,slimDOMOptions:y,dataURLOptions:g,inlineImages:w,recordCanvas:S,preserveWhiteSpace:F,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:_,stylesheetLoadTimeout:A,keepIframeSrcFn:T,cssCaptured:!1};if(W.type===uo.Element&&"textarea"===W.tagName&&void 0!==W.attributes.value);else{W.type===uo.Element&&void 0!==W.attributes._cssText&&"string"==typeof W.attributes._cssText&&(V.cssCaptured=!0);for(var H=0,q=Array.from(go.childNodes(e));H<q.length;H++){var J=ti(q[H],V);J&&W.childNodes.push(J)}}var Z=null;if(bo(e)&&(Z=go.shadowRoot(e)))for(var Y=0,X=Array.from(go.childNodes(Z));Y<X.length;Y++){var K=ti(X[Y],V);K&&(ko(Z)&&(K.isShadow=!0),W.childNodes.push(K))}}var $=go.parentNode(e);return $&&wo($)&&ko($)&&(W.isShadow=!0),W.type===uo.Element&&"iframe"===W.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 a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var s=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&I){var r=ti(t,{doc:t,mirror:n,blockClass:o,blockSelector:i,needsMask:L,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskTextFn:d,maskInputFn:v,slimDOMOptions:y,dataURLOptions:g,inlineImages:w,recordCanvas:S,preserveWhiteSpace:F,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:_,stylesheetLoadTimeout:A,keepIframeSrcFn:T});r&&I(e,r)}},x),W.type===uo.Element&&"link"===W.tagName&&"string"==typeof W.attributes.rel&&("stylesheet"===W.attributes.rel||"preload"===W.attributes.rel&&"string"==typeof W.attributes.href&&"css"===Ao(W.attributes.href))&&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()})}}(e,function(){if(_){var t=ti(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:L,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskTextFn:d,maskInputFn:v,slimDOMOptions:y,dataURLOptions:g,inlineImages:w,recordCanvas:S,preserveWhiteSpace:F,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:_,stylesheetLoadTimeout:A,keepIframeSrcFn:T});t&&_(e,t)}},A),W}function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ni(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 oi={exports:{}},ii=String,ai=function(){return{isColorSupported:!1,reset:ii,bold:ii,dim:ii,italic:ii,underline:ii,inverse:ii,hidden:ii,strikethrough:ii,black:ii,red:ii,green:ii,yellow:ii,blue:ii,magenta:ii,cyan:ii,white:ii,gray:ii,bgBlack:ii,bgRed:ii,bgGreen:ii,bgYellow:ii,bgBlue:ii,bgMagenta:ii,bgCyan:ii,bgWhite:ii}};oi.exports=ai(),oi.exports.createColors=ai;var si=oi.exports,ui=ni(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),li=si,ci=ui,fi=function(e){function t(e,r,n,o,i,a){var s;return $n(this,t),(s=Gn(this,t,[e])).name="CssSyntaxError",s.reason=e,i&&(s.file=i),o&&(s.source=o),a&&(s.plugin=a),void 0!==r&&void 0!==n&&("number"==typeof r?(s.line=r,s.column=n):(s.line=r.line,s.column=r.column,s.endLine=n.line,s.endColumn=n.column)),s.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return Vn(t,e),eo(t,[{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=li.isColorSupported),ci&&e&&(r=ci(r));var n,o,i=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),u=String(s).length;if(e){var l=li.createColors(!0),c=l.bold,f=l.gray,h=l.red;n=function(e){return c(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(a,s).map(function(e,r){var i=a+1+r,s=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var l=o(s.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(s)+e+"\n "+l+n("^")}return" "+o(s)+e}).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}])}(Hn(Error)),hi=fi;fi.default=fi;var pi={};pi.isClean=Symbol("isClean"),pi.my=Symbol("my");var di={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var vi=function(){return eo(function e(t){$n(this,e),this.builder=t},[{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 a=0;a<o;a++)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 di[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 a,s="raw"+((a=r)[0].toUpperCase()+a.slice(1));return this[s]?n=this[s](i,e):i.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=di[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)}}])}(),yi=vi;vi.default=vi;var mi=yi;function gi(e,t){new mi(t).stringify(e)}var bi=gi;gi.default=gi;var wi=pi.isClean,ki=pi.my,Si=hi,Ci=yi,Ii=bi;function Oi(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=ro(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map(function(e){return Oi(e,r)}):("object"===i&&null!==o&&(o=Oi(o)),r[n]=o)}return r}var xi=function(){return eo(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in $n(this,e),this.raws={},this[wi]=!1,this[ki]=!0,t)if("nodes"===r){this.nodes=[];var n,o=Yn(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]},[{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=Oi(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 Si(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[wi]){this[wi]=!1;for(var e=this;e=e.parent;)e[wi]=!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 Ci).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,a=n;i<a.length;i++){var s=a[i];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}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 a=this[i];if(Array.isArray(a))r[i]=a.map(function(e){return"object"===ro(e)&&e.toJSON?e.toJSON(null,t):e});else if("object"===ro(a)&&a.toJSON)r[i]=a.toJSON(null,t);else if("source"===i){var s=t.get(a.input);null==s&&(s=o,t.set(a.input,o),o++),r[i]={end:a.end,inputId:s,start:a.start}}else r[i]=a}return n&&(r.inputs=zn(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]:Ii;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}}])}(),_i=xi;xi.default=xi;var Ei=function(e){function t(e){var r;return $n(this,t),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=Bn(Bn({},e),{},{value:String(e.value)})),(r=Gn(this,t,[e])).type="decl",r}return Vn(t,e),eo(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}])}(_i),Ai=Ei;Ei.default=Ei;var Ri=function(){for(var e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},Ti=ui.SourceMapConsumer,Mi=ui.SourceMapGenerator,Pi=ui.existsSync,ji=ui.readFileSync,Ni=ui.dirname,Li=ui.join;var Di=function(){return eo(function e(t,r){if($n(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=Ni(this.mapFile)),o&&(this.text=o)}},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new Ti(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),Buffer?Buffer.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"===ro(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=Ni(e),Pi(e))return this.mapFile=e,ji(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 Ti)return Mi.fromSourceMap(t).toString();if(t instanceof Mi)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=Li(Ni(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)}}])}(),Fi=Di;Di.default=Di;var Ui=ui.SourceMapConsumer,Bi=ui.SourceMapGenerator,Wi=ui.fileURLToPath,zi=ui.pathToFileURL,Gi=ui.isAbsolute,Vi=ui.resolve,Hi=Ri,qi=ui,Ji=hi,Zi=Fi,Yi=Symbol("fromOffsetCache"),Xi=Boolean(Ui&&Bi),Ki=Boolean(Vi&&Gi),$i=function(){return eo(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if($n(this,e),null==t||"object"===ro(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&&(!Ki||/^\w+:\/\//.test(r.from)||Gi(r.from)?this.file=r.from:this.file=Vi(r.from)),Ki&&Xi){var n=new Zi(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 "+Hi(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,r){var n,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===ro(t)){var s=t,u=r;if("number"==typeof s.offset){var l=this.fromOffset(s.offset);t=l.line,r=l.col}else t=s.line,r=s.column;if("number"==typeof u.offset){var c=this.fromOffset(u.offset);o=c.line,i=c.col}else o=u.line,i=u.column}else if(!r){var f=this.fromOffset(t);t=f.line,r=f.col}var h=this.origin(t,r,o,i);return(n=h?new Ji(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,a.plugin):new Ji(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,a.plugin)).input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(zi&&(n.input.url=zi(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[Yi])t=this[Yi];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[Yi]=t}var a=0;if(e>=t[t.length-1])a=t.length-1;else for(var s,u=t.length-2;a<u;)if(e<t[s=a+(u-a>>1)])u=s-1;else{if(!(e>=t[s+1])){a=s;break}a=s+1}return{col:e-t[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:Vi(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,a=this.map.consumer(),s=a.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof r&&(o=a.originalPositionFor({column:n,line:r})),i=Gi(s.source)?zi(s.source):new URL(s.source,this.map.consumer().sourceRoot||zi(this.map.mapFile));var u={column:s.column,endColumn:o&&o.column,endLine:o&&o.line,line:s.line,url:i.toString()};if("file:"===i.protocol){if(!Wi)throw new Error("file: protocol is not available in this PostCSS build");u.file=Wi(i)}var l=a.sourceContentFor(s.source);return l&&(u.source=l),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=Bn({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}])}(),Qi=$i;$i.default=$i,qi&&qi.registerInput&&qi.registerInput($i);var ea=ui.SourceMapConsumer,ta=ui.SourceMapGenerator,ra=ui.dirname,na=ui.relative,oa=ui.resolve,ia=ui.sep,aa=ui.pathToFileURL,sa=Qi,ua=Boolean(ea&&ta),la=Boolean(ra&&oa&&na&&ia),ca=function(){return eo(function e(t,r,n,o){$n(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},[{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=Yn(this.previous());try{for(t.s();!(e=t.n()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),o=r.root||ra(r.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new ea(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(),la&&ua&&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=ta.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ta({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 ta({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,u,l){if(e.css+=s,u&&"end"!==l&&(a.generated.line=n,a.generated.column=o-1,u.source&&u.source.start?(a.source=e.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,e.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(t=s.match(/\n/g))?(n+=t.length,r=s.lastIndexOf("\n"),o=s.length-r):o+=s.length,u&&"start"!==l){var c=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===c.last&&!c.raws.semicolon||(u.source&&u.source.end?(a.source=e.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=n,a.generated.column=o-2,e.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=o-1,e.map.addMapping(a)))}})}},{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?ra(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ra(oa(r,this.mapOpts.annotation)));var n=na(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 sa(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 Buffer?Buffer.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(aa){var r=aa(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;"\\"===ia&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}])}(),fa=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[e])).type="comment",r}return Vn(t,e),eo(t)}(_i),ha=fa;fa.default=fa;var pa,da,va,ya,ma=pi.isClean,ga=pi.my,ba=Ai,wa=ha;function ka(e){return e.map(function(e){return e.nodes&&(e.nodes=ka(e.nodes)),delete e.source,e})}function Sa(e){if(e[ma]=!1,e.proxyOf.nodes){var t,r=Yn(e.proxyOf.nodes);try{for(r.s();!(t=r.n()).done;){Sa(t.value)}}catch(e){r.e(e)}finally{r.f()}}}var Ca=function(e){function t(){return $n(this,t),Gn(this,t,arguments)}return Vn(t,e),eo(t,[{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,a=o[n],s=Yn(this.normalize(a,this.last));try{for(s.s();!(i=s.n()).done;){var u=i.value;this.proxyOf.nodes.push(u)}}catch(e){s.e(e)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Dn(t,"cleanRaws",this,3)([e]),this.nodes){var r,n=Yn(this.nodes);try{for(n.s();!(r=n.n()).done;){r.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,zn(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,a=Yn(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}}catch(e){a.e(e)}finally{a.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,a,s=Yn(o);try{for(s.s();!(i=s.n()).done;){var u=i.value;this.proxyOf.nodes.splice(r,0,u)}}catch(e){s.e(e)}finally{s.f()}for(var l in this.indexes)r<=(a=this.indexes[l])&&(this.indexes[l]=a+o.length);return this.markDirty(),this}},{key:"normalize",value:function(e,r){var n=this;if("string"==typeof e)e=ka(pa(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var o,i=Yn(e=e.slice(0));try{for(i.s();!(o=i.n()).done;){var a=o.value;a.parent&&a.parent.removeChild(a,"ignore")}}catch(e){i.e(e)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var s,u=Yn(e=e.nodes.slice(0));try{for(u.s();!(s=u.n()).done;){var l=s.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 ba(e)]}else if(e.selector)e=[new da(e)];else if(e.name)e=[new va(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new wa(e)]}var c=e.map(function(e){return e[ga]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ma]&&Sa(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return c}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=Yn(t=t.reverse());try{for(o.s();!(n=o.n()).done;){var i,a=n.value,s=this.normalize(a,this.first,"prepend").reverse(),u=Yn(s);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 c in this.indexes)this.indexes[c]=this.indexes[c]+s.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=Yn(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]}}])}(_i);Ca.registerParse=function(e){pa=e},Ca.registerRule=function(e){da=e},Ca.registerAtRule=function(e){va=e},Ca.registerRoot=function(e){ya=e};var Ia=Ca;Ca.default=Ca,Ca.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,va.prototype):"rule"===e.type?Object.setPrototypeOf(e,da.prototype):"decl"===e.type?Object.setPrototypeOf(e,ba.prototype):"comment"===e.type?Object.setPrototypeOf(e,wa.prototype):"root"===e.type&&Object.setPrototypeOf(e,ya.prototype),e[ga]=!0,e.nodes&&e.nodes.forEach(function(e){Ca.rebuild(e)})};var Oa,xa,_a=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[Bn({type:"document"},e)])).nodes||(r.nodes=[]),r}return Vn(t,e),eo(t,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Oa(new xa,this,e).stringify()}}])}(Ia);_a.registerLazyResult=function(e){Oa=e},_a.registerProcessor=function(e){xa=e};var Ea=_a;_a.default=_a;var Aa=function(){return eo(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if($n(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]},[{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}}])}(),Ra=Aa;Aa.default=Aa;var Ta=Ra,Ma=function(){return eo(function e(t,r,n){$n(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0},[{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 Ta(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}}])}(),Pa=Ma;Ma.default=Ma;var ja="'".charCodeAt(0),Na='"'.charCodeAt(0),La="\\".charCodeAt(0),Da="/".charCodeAt(0),Fa="\n".charCodeAt(0),Ua=" ".charCodeAt(0),Ba="\f".charCodeAt(0),Wa="\t".charCodeAt(0),za="\r".charCodeAt(0),Ga="[".charCodeAt(0),Va="]".charCodeAt(0),Ha="(".charCodeAt(0),qa=")".charCodeAt(0),Ja="{".charCodeAt(0),Za="}".charCodeAt(0),Ya=";".charCodeAt(0),Xa="*".charCodeAt(0),Ka=":".charCodeAt(0),$a="@".charCodeAt(0),Qa=/[\t\n\f\r "#'()/;[\\\]{}]/g,es=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ts=/.[\r\n"'(/\\]/,rs=/[\da-f]/i,ns=Ia,os=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[e])).type="atrule",r}return Vn(t,e),eo(t,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Dn(t,"append",this,3)(r)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Dn(t,"prepend",this,3)(r)}}])}(ns),is=os;os.default=os,ns.registerAtRule(os);var as,ss,us=Ia,ls=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[e])).type="root",r.nodes||(r.nodes=[]),r}return Vn(t,e),eo(t,[{key:"normalize",value:function(e,r,n){var o=Dn(t,"normalize",this,3)([e]);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var i,a=Yn(o);try{for(a.s();!(i=a.n()).done;){i.value.raws.before=r.raws.before}}catch(e){a.e(e)}finally{a.f()}}return o}},{key:"removeChild",value:function(e,r){var n=this.index(e);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),Dn(t,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new as(new ss,this,e).stringify()}}])}(us);ls.registerLazyResult=function(e){as=e},ls.registerProcessor=function(e){ss=e};var cs=ls;ls.default=ls,us.registerRoot(ls);var fs={comma:function(e){return fs.split(e,[","],!0)},space:function(e){return fs.split(e,[" ","\n","\t"])},split:function(e,t,r){var n,o=[],i="",a=!1,s=0,u=!1,l="",c=!1,f=Yn(e);try{for(f.s();!(n=f.n()).done;){var h=n.value;c?c=!1:"\\"===h?c=!0:u?h===l&&(u=!1):'"'===h||"'"===h?(u=!0,l=h):"("===h?s+=1:")"===h?s>0&&(s-=1):0===s&&t.includes(h)&&(a=!0),a?(""!==i&&o.push(i.trim()),i="",a=!1):i+=h}}catch(e){f.e(e)}finally{f.f()}return(r||""!==i)&&o.push(i.trim()),o}},hs=fs;fs.default=fs;var ps=Ia,ds=hs,vs=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[e])).type="rule",r.nodes||(r.nodes=[]),r}return Vn(t,e),eo(t,[{key:"selectors",get:function(){return ds.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)}}])}(ps),ys=vs;vs.default=vs,ps.registerRule(vs);var ms=Ai,gs=function(e){var t,r,n,o,i,a,s,u,l,c,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,y=[],m=[];function g(t){throw e.error("Unclosed "+t,v)}return{back:function(e){m.push(e)},endOfFile:function(){return 0===m.length&&v>=d},nextToken:function(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case Fa:case Ua:case Wa:case za:case Ba:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===Ua||t===Fa||t===Wa||t===za||t===Ba);c=["space",h.slice(v,r)],v=r-1;break;case Ga:case Va:case Ja:case Za:case Ka:case Ya:case qa:var b=String.fromCharCode(t);c=[b,b,v];break;case Ha:if(u=y.length?y.pop()[1]:"",l=h.charCodeAt(v+1),"url"===u&&l!==ja&&l!==Na&&l!==Ua&&l!==Fa&&l!==Wa&&l!==Ba&&l!==za){r=v;do{if(a=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}g("bracket")}for(s=r;h.charCodeAt(s-1)===La;)s-=1,a=!a}while(a);c=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||ts.test(o)?c=["(","(",v]:(c=["brackets",o,v,r],v=r);break;case ja:case Na:n=t===ja?"'":'"',r=v;do{if(a=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}g("string")}for(s=r;h.charCodeAt(s-1)===La;)s-=1,a=!a}while(a);c=["string",h.slice(v,r+1),v,r],v=r;break;case $a:Qa.lastIndex=v+1,Qa.test(h),r=0===Qa.lastIndex?h.length-1:Qa.lastIndex-2,c=["at-word",h.slice(v,r+1),v,r],v=r;break;case La:for(r=v,i=!0;h.charCodeAt(r+1)===La;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==Da&&t!==Ua&&t!==Fa&&t!==Wa&&t!==za&&t!==Ba&&(r+=1,rs.test(h.charAt(r)))){for(;rs.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Ua&&(r+=1)}c=["word",h.slice(v,r+1),v,r],v=r;break;default:t===Da&&h.charCodeAt(v+1)===Xa?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:g("comment")),c=["comment",h.slice(v,r+1),v,r],v=r):(es.lastIndex=v+1,es.test(h),r=0===es.lastIndex?h.length-1:es.lastIndex-2,c=["word",h.slice(v,r+1),v,r],y.push(c),v=r)}return v++,c}},position:function(){return v}}},bs=ha,ws=is,ks=cs,Ss=ys,Cs={empty:!0,space:!0};var Is=Ia,Os=function(){return eo(function e(t){$n(this,e),this.input=t,this.root=new ks,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,r,n,o=new ws;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,a=!1,s=[],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){a=!0;break}if("}"===t){if(s.length>0){for(r=s[n=s.length-1];r&&"space"===r[0];)r=s[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(o.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(o,"params",s),i&&(e=s[s.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=""),a&&(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,a=Yn(e.entries());try{for(a.s();!(o=a.n()).done;){var s=Ln(o.value,2),u=s[0];if("("===(r=(t=s[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){a.e(e)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new bs;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=gs(this.input)}},{key:"decl",value:function(e,t){var r=new ms;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 a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.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 l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var c=e.slice(0),f="",h=u;h>0;h--){var p=c[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=c.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=c)}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+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.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 Ss;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=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(r=u[0],s.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(a&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(s,a);break}if("{"===r)return void this.rule(s);if("}"===r){this.tokenizer.back(s.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(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{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,a,s,u=r.length,l="",c=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(s=r[f-1]?r[f-1][0]:"empty",a=r[f+1]?r[f+1][0]:"empty",Cs[s]||Cs[a]||","===l.slice(-1)?c=!1:l+=o[1]):l+=o[1]:c=!1;if(!c){var h=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:h,value:l}}e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new Ss;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})}}])}(),xs=Qi;function _s(e,t){var r=new xs(e,t),n=new Os(r);try{n.parse()}catch(e){throw e}return n.root}var Es=_s;_s.default=_s,Is.registerParse(_s);var As=pi.isClean,Rs=pi.my,Ts=ca,Ms=bi,Ps=Ia,js=Ea,Ns=Pa,Ls=Es,Ds=cs,Fs={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Us={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},Bs={Once:!0,postcssPlugin:!0,prepare:!0};function Ws(e){return"object"===ro(e)&&"function"==typeof e.then}function zs(e){var t=!1,r=Fs[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 Gs(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:zs(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Vs(e){return e[As]=!1,e.nodes&&e.nodes.forEach(function(e){return Vs(e)}),e}var Hs={},qs=function(){return eo(function e(t,r,n){var o,i=this;if($n(this,e),this.stringified=!1,this.processed=!1,"object"!==ro(r)||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof Ns)o=Vs(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var a=Ls;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[Rs]&&Ps.rebuild(o)}else o=Vs(r);this.result=new Ns(t,o,n),this.helpers=Bn(Bn({},Hs),{},{postcss:Hs,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===ro(e)&&e.prepare?Bn(Bn({},e),e.prepare(i.result)):e})},[{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=Yn(this.plugins);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("object"===ro(o))for(var i in o){if(!Us[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(!Bs[i])if("object"===ro(o[i]))for(var a in o[i])r(o,"*"===a?i:i+"-"+a.toLowerCase(),o[i][a]);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:(e=Nn(Mn().m(function e(){var t,r,n,o,i,a,s,u,l,c,f,h,p,d=this;return Mn().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(!(t<this.plugins.length)){e.n=6;break}if(r=this.plugins[t],!Ws(n=this.runOnRoot(r))){e.n=5;break}return e.p=2,e.n=3,n;case 3:e.n=5;break;case 4:throw e.p=4,f=e.v,this.handleError(f);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}o=this.result.root;case 7:if(o[As]){e.n=14;break}o[As]=!0,i=[Gs(o)];case 8:if(!(i.length>0)){e.n=13;break}if(!Ws(a=this.visitTick(i))){e.n=12;break}return e.p=9,e.n=10,a;case 10:e.n=12;break;case 11:throw e.p=11,h=e.v,s=i[i.length-1].node,this.handleError(h,s);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}u=Yn(this.listeners.OnceExit),e.p=15,c=Mn().m(function e(){var t,r,n,i,a;return Mn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=Ln(l.value,2),r=t[0],n=t[1],d.result.lastPlugin=r,e.p=1,"document"!==o.type){e.n=3;break}return i=o.nodes.map(function(e){return n(e,d.helpers)}),e.n=2,Promise.all(i);case 2:e.n=4;break;case 3:return e.n=4,n(o,d.helpers);case 4:e.n=6;break;case 5:throw e.p=5,a=e.v,d.handleError(a);case 6:return e.a(2)}},e,null,[[1,5]])}),u.s();case 16:if((l=u.n()).done){e.n=18;break}return e.d(Tn(c()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,p=e.v,u.e(p);case 20:return e.p=20,u.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return e.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===ro(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 Ws(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=Ms;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ts(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=Yn(this.plugins);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(Ws(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[As];)n[As]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type){var o,i=Yn(n.nodes);try{for(i.s();!(o=i.n()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}}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=Yn(e);try{for(n.s();!(r=n.n()).done;){var o=Ln(r.value,2),i=o[0],a=o[1];this.result.lastPlugin=i;var s=void 0;try{s=a(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ws(s))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=Ln(n[t.visitorIndex],2),i=o[0],a=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return a(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var s,u=t.iterator;s=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!s[As])return s[As]=!0,void e.push(Gs(s));t.iterator=0,delete r.indexes[u]}for(var l=t.events;t.eventIndex<l.length;){var c=l[t.eventIndex];if(t.eventIndex+=1,0===c)return void(r.nodes&&r.nodes.length&&(r[As]=!0,t.iterator=r.getIterator()));if(this.listeners[c])return void(t.visitors=this.listeners[c])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var t=this;e[As]=!0;var r,n=Yn(zs(e));try{for(n.s();!(r=n.n()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[As]||t.walkSync(e)});else{var i=this.listeners[o];if(i&&this.visitSync(i,e.toProxy()))return}}}catch(e){n.e(e)}finally{n.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:Symbol.toStringTag,get:function(){return"LazyResult"}}]);var e}();qs.registerPostcss=function(e){Hs=e};var Js=qs;qs.default=qs,Ds.registerLazyResult(qs),js.registerLazyResult(qs);var Zs=ca,Ys=bi,Xs=Es,Ks=Pa,$s=function(){return eo(function e(t,r,n){var o;$n(this,e),r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=n,this._map=void 0;var i=Ys;this.result=new Ks(this._processor,o,this._opts),this.result.css=r;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var s=new Zs(i,o,this._opts,r);if(s.isMap()){var u=Ln(s.generate(),2),l=u[0],c=u[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css},[{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=Xs;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}])}(),Qs=$s;$s.default=$s;var eu=Qs,tu=Js,ru=Ea,nu=cs,ou=function(){return eo(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];$n(this,e),this.version="8.4.38",this.plugins=this.normalize(t)},[{key:"normalize",value:function(e){var t,r=[],n=Yn(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"===ro(o)&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if("object"===ro(o)&&o.postcssPlugin)r.push(o);else if("function"==typeof o)r.push(o);else{if("object"!==ro(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 tu(this,e,t):new eu(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}])}(),iu=ou;ou.default=ou,nu.registerProcessor(ou),ru.registerProcessor(ou);var au=Ai,su=Fi,uu=ha,lu=is,cu=Qi,fu=cs,hu=ys;function pu(e,t){if(Array.isArray(e))return e.map(function(e){return pu(e)});var r=e.inputs,n=Rn(e,On);if(r){t=[];var o,i=Yn(r);try{for(i.s();!(o=i.n()).done;){var a=Bn(Bn({},o.value),{},{__proto__:cu.prototype});a.map&&(a.map=Bn(Bn({},a.map),{},{__proto__:su.prototype})),t.push(a)}}catch(e){i.e(e)}finally{i.f()}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return pu(e,t)})),n.source){var s=n.source,u=s.inputId,l=Rn(s,xn);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new fu(n);if("decl"===n.type)return new au(n);if("rule"===n.type)return new hu(n);if("comment"===n.type)return new uu(n);if("atrule"===n.type)return new lu(n);throw new Error("Unknown node type: "+e.type)}var du=pu;pu.default=pu;var vu=hi,yu=Ai,mu=Js,gu=Ia,bu=iu,wu=bi,ku=du,Su=Ea,Cu=Ra,Iu=ha,Ou=is,xu=Pa,_u=Qi,Eu=Es,Au=hs,Ru=ys,Tu=cs,Mu=_i;function Pu(){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 bu(t)}Pu.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"),process.env.LANG&&process.env.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 bu).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return Pu([o(r)]).process(e,t)},o},Pu.stringify=wu,Pu.parse=Eu,Pu.fromJSON=ku,Pu.list=Au,Pu.comment=function(e){return new Iu(e)},Pu.atRule=function(e){return new Ou(e)},Pu.decl=function(e){return new yu(e)},Pu.rule=function(e){return new Ru(e)},Pu.root=function(e){return new Tu(e)},Pu.document=function(e){return new Su(e)},Pu.CssSyntaxError=vu,Pu.Declaration=yu,Pu.Container=gu,Pu.Processor=bu,Pu.Document=Su,Pu.Comment=Iu,Pu.Warning=Cu,Pu.AtRule=Ou,Pu.Result=xu,Pu.Input=_u,Pu.Rule=Ru,Pu.Root=Tu,Pu.Node=Mu,mu.registerPostcss(Pu);var ju=Pu;Pu.default=Pu;var Nu=ri(ju);Nu.stringify,Nu.fromJSON,Nu.plugin,Nu.parse,Nu.list,Nu.document,Nu.comment,Nu.atRule,Nu.rule,Nu.decl,Nu.root,Nu.CssSyntaxError,Nu.Declaration,Nu.Container,Nu.Processor,Nu.Document,Nu.Comment,Nu.Warning,Nu.AtRule,Nu.Result,Nu.Input,Nu.Rule,Nu.Root,Nu.Node;var Lu=Object.defineProperty,Du=function(e,t,r){return function(e,t,r){return t in e?Lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==ro(t)?t+"":t,r)};function Fu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uu(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 Bu={exports:{}},Wu=String,zu=function(){return{isColorSupported:!1,reset:Wu,bold:Wu,dim:Wu,italic:Wu,underline:Wu,inverse:Wu,hidden:Wu,strikethrough:Wu,black:Wu,red:Wu,green:Wu,yellow:Wu,blue:Wu,magenta:Wu,cyan:Wu,white:Wu,gray:Wu,bgBlack:Wu,bgRed:Wu,bgGreen:Wu,bgYellow:Wu,bgBlue:Wu,bgMagenta:Wu,bgCyan:Wu,bgWhite:Wu}};Bu.exports=zu(),Bu.exports.createColors=zu;var Gu=Bu.exports,Vu=Uu(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Hu=Gu,qu=Vu,Ju=function(e){function t(e,r,n,o,i,a){var s;return $n(this,t),(s=Gn(this,t,[e])).name="CssSyntaxError",s.reason=e,i&&(s.file=i),o&&(s.source=o),a&&(s.plugin=a),void 0!==r&&void 0!==n&&("number"==typeof r?(s.line=r,s.column=n):(s.line=r.line,s.column=r.column,s.endLine=n.line,s.endColumn=n.column)),s.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return Vn(t,e),eo(t,[{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=Hu.isColorSupported),qu&&e&&(r=qu(r));var n,o,i=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),u=String(s).length;if(e){var l=Hu.createColors(!0),c=l.bold,f=l.gray,h=l.red;n=function(e){return c(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(a,s).map(function(e,r){var i=a+1+r,s=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var l=o(s.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(s)+e+"\n "+l+n("^")}return" "+o(s)+e}).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}])}(Hn(Error)),Zu=Ju;Ju.default=Ju;var Yu={};Yu.isClean=Symbol("isClean"),Yu.my=Symbol("my");var Xu={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Ku=function(){return eo(function e(t){$n(this,e),this.builder=t},[{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 a=0;a<o;a++)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 Xu[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 a,s="raw"+((a=r)[0].toUpperCase()+a.slice(1));return this[s]?n=this[s](i,e):i.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Xu[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)}}])}(),$u=Ku;Ku.default=Ku;var Qu=$u;function el(e,t){new Qu(t).stringify(e)}var tl=el;el.default=el;var rl=Yu.isClean,nl=Yu.my,ol=Zu,il=$u,al=tl;function sl(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=ro(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map(function(e){return sl(e,r)}):("object"===i&&null!==o&&(o=sl(o)),r[n]=o)}return r}var ul=function(){return eo(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in $n(this,e),this.raws={},this[rl]=!1,this[nl]=!0,t)if("nodes"===r){this.nodes=[];var n,o=Yn(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]},[{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=sl(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 ol(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[rl]){this[rl]=!1;for(var e=this;e=e.parent;)e[rl]=!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 il).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,a=n;i<a.length;i++){var s=a[i];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}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 a=this[i];if(Array.isArray(a))r[i]=a.map(function(e){return"object"===ro(e)&&e.toJSON?e.toJSON(null,t):e});else if("object"===ro(a)&&a.toJSON)r[i]=a.toJSON(null,t);else if("source"===i){var s=t.get(a.input);null==s&&(s=o,t.set(a.input,o),o++),r[i]={end:a.end,inputId:s,start:a.start}}else r[i]=a}return n&&(r.inputs=zn(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]:al;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}}])}(),ll=ul;ul.default=ul;var cl=function(e){function t(e){var r;return $n(this,t),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=Bn(Bn({},e),{},{value:String(e.value)})),(r=Gn(this,t,[e])).type="decl",r}return Vn(t,e),eo(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}])}(ll),fl=cl;cl.default=cl;var hl=function(){for(var e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},pl=Vu.SourceMapConsumer,dl=Vu.SourceMapGenerator,vl=Vu.existsSync,yl=Vu.readFileSync,ml=Vu.dirname,gl=Vu.join;var bl=function(){return eo(function e(t,r){if($n(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=ml(this.mapFile)),o&&(this.text=o)}},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new pl(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),Buffer?Buffer.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"===ro(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=ml(e),vl(e))return this.mapFile=e,yl(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 pl)return dl.fromSourceMap(t).toString();if(t instanceof dl)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=gl(ml(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)}}])}(),wl=bl;bl.default=bl;var kl=Vu.SourceMapConsumer,Sl=Vu.SourceMapGenerator,Cl=Vu.fileURLToPath,Il=Vu.pathToFileURL,Ol=Vu.isAbsolute,xl=Vu.resolve,_l=hl,El=Vu,Al=Zu,Rl=wl,Tl=Symbol("fromOffsetCache"),Ml=Boolean(kl&&Sl),Pl=Boolean(xl&&Ol),jl=function(){return eo(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if($n(this,e),null==t||"object"===ro(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&&(!Pl||/^\w+:\/\//.test(r.from)||Ol(r.from)?this.file=r.from:this.file=xl(r.from)),Pl&&Ml){var n=new Rl(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 "+_l(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,r){var n,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===ro(t)){var s=t,u=r;if("number"==typeof s.offset){var l=this.fromOffset(s.offset);t=l.line,r=l.col}else t=s.line,r=s.column;if("number"==typeof u.offset){var c=this.fromOffset(u.offset);o=c.line,i=c.col}else o=u.line,i=u.column}else if(!r){var f=this.fromOffset(t);t=f.line,r=f.col}var h=this.origin(t,r,o,i);return(n=h?new Al(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,a.plugin):new Al(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,a.plugin)).input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(Il&&(n.input.url=Il(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[Tl])t=this[Tl];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[Tl]=t}var a=0;if(e>=t[t.length-1])a=t.length-1;else for(var s,u=t.length-2;a<u;)if(e<t[s=a+(u-a>>1)])u=s-1;else{if(!(e>=t[s+1])){a=s;break}a=s+1}return{col:e-t[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:xl(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,a=this.map.consumer(),s=a.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof r&&(o=a.originalPositionFor({column:n,line:r})),i=Ol(s.source)?Il(s.source):new URL(s.source,this.map.consumer().sourceRoot||Il(this.map.mapFile));var u={column:s.column,endColumn:o&&o.column,endLine:o&&o.line,line:s.line,url:i.toString()};if("file:"===i.protocol){if(!Cl)throw new Error("file: protocol is not available in this PostCSS build");u.file=Cl(i)}var l=a.sourceContentFor(s.source);return l&&(u.source=l),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=Bn({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}])}(),Nl=jl;jl.default=jl,El&&El.registerInput&&El.registerInput(jl);var Ll=Vu.SourceMapConsumer,Dl=Vu.SourceMapGenerator,Fl=Vu.dirname,Ul=Vu.relative,Bl=Vu.resolve,Wl=Vu.sep,zl=Vu.pathToFileURL,Gl=Nl,Vl=Boolean(Ll&&Dl),Hl=Boolean(Fl&&Bl&&Ul&&Wl),ql=function(){return eo(function e(t,r,n,o){$n(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},[{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=Yn(this.previous());try{for(t.s();!(e=t.n()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),o=r.root||Fl(r.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Ll(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(),Hl&&Vl&&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=Dl.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Dl({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 Dl({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,u,l){if(e.css+=s,u&&"end"!==l&&(a.generated.line=n,a.generated.column=o-1,u.source&&u.source.start?(a.source=e.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,e.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(t=s.match(/\n/g))?(n+=t.length,r=s.lastIndexOf("\n"),o=s.length-r):o+=s.length,u&&"start"!==l){var c=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===c.last&&!c.raws.semicolon||(u.source&&u.source.end?(a.source=e.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=n,a.generated.column=o-2,e.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=o-1,e.map.addMapping(a)))}})}},{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?Fl(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Fl(Bl(r,this.mapOpts.annotation)));var n=Ul(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 Gl(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 Buffer?Buffer.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(zl){var r=zl(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;"\\"===Wl&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}])}(),Jl=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[e])).type="comment",r}return Vn(t,e),eo(t)}(ll),Zl=Jl;Jl.default=Jl;var Yl,Xl,Kl,$l,Ql=Yu.isClean,ec=Yu.my,tc=fl,rc=Zl;function nc(e){return e.map(function(e){return e.nodes&&(e.nodes=nc(e.nodes)),delete e.source,e})}function oc(e){if(e[Ql]=!1,e.proxyOf.nodes){var t,r=Yn(e.proxyOf.nodes);try{for(r.s();!(t=r.n()).done;){oc(t.value)}}catch(e){r.e(e)}finally{r.f()}}}var ic=function(e){function t(){return $n(this,t),Gn(this,t,arguments)}return Vn(t,e),eo(t,[{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,a=o[n],s=Yn(this.normalize(a,this.last));try{for(s.s();!(i=s.n()).done;){var u=i.value;this.proxyOf.nodes.push(u)}}catch(e){s.e(e)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Dn(t,"cleanRaws",this,3)([e]),this.nodes){var r,n=Yn(this.nodes);try{for(n.s();!(r=n.n()).done;){r.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,zn(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,a=Yn(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}}catch(e){a.e(e)}finally{a.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,a,s=Yn(o);try{for(s.s();!(i=s.n()).done;){var u=i.value;this.proxyOf.nodes.splice(r,0,u)}}catch(e){s.e(e)}finally{s.f()}for(var l in this.indexes)r<=(a=this.indexes[l])&&(this.indexes[l]=a+o.length);return this.markDirty(),this}},{key:"normalize",value:function(e,r){var n=this;if("string"==typeof e)e=nc(Yl(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var o,i=Yn(e=e.slice(0));try{for(i.s();!(o=i.n()).done;){var a=o.value;a.parent&&a.parent.removeChild(a,"ignore")}}catch(e){i.e(e)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var s,u=Yn(e=e.nodes.slice(0));try{for(u.s();!(s=u.n()).done;){var l=s.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 tc(e)]}else if(e.selector)e=[new Xl(e)];else if(e.name)e=[new Kl(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new rc(e)]}var c=e.map(function(e){return e[ec]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ql]&&oc(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return c}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=Yn(t=t.reverse());try{for(o.s();!(n=o.n()).done;){var i,a=n.value,s=this.normalize(a,this.first,"prepend").reverse(),u=Yn(s);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 c in this.indexes)this.indexes[c]=this.indexes[c]+s.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=Yn(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]}}])}(ll);ic.registerParse=function(e){Yl=e},ic.registerRule=function(e){Xl=e},ic.registerAtRule=function(e){Kl=e},ic.registerRoot=function(e){$l=e};var ac=ic;ic.default=ic,ic.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Kl.prototype):"rule"===e.type?Object.setPrototypeOf(e,Xl.prototype):"decl"===e.type?Object.setPrototypeOf(e,tc.prototype):"comment"===e.type?Object.setPrototypeOf(e,rc.prototype):"root"===e.type&&Object.setPrototypeOf(e,$l.prototype),e[ec]=!0,e.nodes&&e.nodes.forEach(function(e){ic.rebuild(e)})};var sc,uc,lc=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[Bn({type:"document"},e)])).nodes||(r.nodes=[]),r}return Vn(t,e),eo(t,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new sc(new uc,this,e).stringify()}}])}(ac);lc.registerLazyResult=function(e){sc=e},lc.registerProcessor=function(e){uc=e};var cc=lc;lc.default=lc;var fc=function(){return eo(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if($n(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]},[{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}}])}(),hc=fc;fc.default=fc;var pc=hc,dc=function(){return eo(function e(t,r,n){$n(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0},[{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 pc(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}}])}(),vc=dc;dc.default=dc;var yc="'".charCodeAt(0),mc='"'.charCodeAt(0),gc="\\".charCodeAt(0),bc="/".charCodeAt(0),wc="\n".charCodeAt(0),kc=" ".charCodeAt(0),Sc="\f".charCodeAt(0),Cc="\t".charCodeAt(0),Ic="\r".charCodeAt(0),Oc="[".charCodeAt(0),xc="]".charCodeAt(0),_c="(".charCodeAt(0),Ec=")".charCodeAt(0),Ac="{".charCodeAt(0),Rc="}".charCodeAt(0),Tc=";".charCodeAt(0),Mc="*".charCodeAt(0),Pc=":".charCodeAt(0),jc="@".charCodeAt(0),Nc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Lc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Dc=/.[\r\n"'(/\\]/,Fc=/[\da-f]/i,Uc=ac,Bc=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[e])).type="atrule",r}return Vn(t,e),eo(t,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Dn(t,"append",this,3)(r)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Dn(t,"prepend",this,3)(r)}}])}(Uc),Wc=Bc;Bc.default=Bc,Uc.registerAtRule(Bc);var zc,Gc,Vc=ac,Hc=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[e])).type="root",r.nodes||(r.nodes=[]),r}return Vn(t,e),eo(t,[{key:"normalize",value:function(e,r,n){var o=Dn(t,"normalize",this,3)([e]);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var i,a=Yn(o);try{for(a.s();!(i=a.n()).done;){i.value.raws.before=r.raws.before}}catch(e){a.e(e)}finally{a.f()}}return o}},{key:"removeChild",value:function(e,r){var n=this.index(e);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),Dn(t,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new zc(new Gc,this,e).stringify()}}])}(Vc);Hc.registerLazyResult=function(e){zc=e},Hc.registerProcessor=function(e){Gc=e};var qc=Hc;Hc.default=Hc,Vc.registerRoot(Hc);var Jc={comma:function(e){return Jc.split(e,[","],!0)},space:function(e){return Jc.split(e,[" ","\n","\t"])},split:function(e,t,r){var n,o=[],i="",a=!1,s=0,u=!1,l="",c=!1,f=Yn(e);try{for(f.s();!(n=f.n()).done;){var h=n.value;c?c=!1:"\\"===h?c=!0:u?h===l&&(u=!1):'"'===h||"'"===h?(u=!0,l=h):"("===h?s+=1:")"===h?s>0&&(s-=1):0===s&&t.includes(h)&&(a=!0),a?(""!==i&&o.push(i.trim()),i="",a=!1):i+=h}}catch(e){f.e(e)}finally{f.f()}return(r||""!==i)&&o.push(i.trim()),o}},Zc=Jc;Jc.default=Jc;var Yc=ac,Xc=Zc,Kc=function(e){function t(e){var r;return $n(this,t),(r=Gn(this,t,[e])).type="rule",r.nodes||(r.nodes=[]),r}return Vn(t,e),eo(t,[{key:"selectors",get:function(){return Xc.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)}}])}(Yc),$c=Kc;Kc.default=Kc,Yc.registerRule(Kc);var Qc=fl,ef=function(e){var t,r,n,o,i,a,s,u,l,c,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,y=[],m=[];function g(t){throw e.error("Unclosed "+t,v)}return{back:function(e){m.push(e)},endOfFile:function(){return 0===m.length&&v>=d},nextToken:function(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case wc:case kc:case Cc:case Ic:case Sc:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===kc||t===wc||t===Cc||t===Ic||t===Sc);c=["space",h.slice(v,r)],v=r-1;break;case Oc:case xc:case Ac:case Rc:case Pc:case Tc:case Ec:var b=String.fromCharCode(t);c=[b,b,v];break;case _c:if(u=y.length?y.pop()[1]:"",l=h.charCodeAt(v+1),"url"===u&&l!==yc&&l!==mc&&l!==kc&&l!==wc&&l!==Cc&&l!==Sc&&l!==Ic){r=v;do{if(a=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}g("bracket")}for(s=r;h.charCodeAt(s-1)===gc;)s-=1,a=!a}while(a);c=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||Dc.test(o)?c=["(","(",v]:(c=["brackets",o,v,r],v=r);break;case yc:case mc:n=t===yc?"'":'"',r=v;do{if(a=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}g("string")}for(s=r;h.charCodeAt(s-1)===gc;)s-=1,a=!a}while(a);c=["string",h.slice(v,r+1),v,r],v=r;break;case jc:Nc.lastIndex=v+1,Nc.test(h),r=0===Nc.lastIndex?h.length-1:Nc.lastIndex-2,c=["at-word",h.slice(v,r+1),v,r],v=r;break;case gc:for(r=v,i=!0;h.charCodeAt(r+1)===gc;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==bc&&t!==kc&&t!==wc&&t!==Cc&&t!==Ic&&t!==Sc&&(r+=1,Fc.test(h.charAt(r)))){for(;Fc.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===kc&&(r+=1)}c=["word",h.slice(v,r+1),v,r],v=r;break;default:t===bc&&h.charCodeAt(v+1)===Mc?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:g("comment")),c=["comment",h.slice(v,r+1),v,r],v=r):(Lc.lastIndex=v+1,Lc.test(h),r=0===Lc.lastIndex?h.length-1:Lc.lastIndex-2,c=["word",h.slice(v,r+1),v,r],y.push(c),v=r)}return v++,c}},position:function(){return v}}},tf=Zl,rf=Wc,nf=qc,of=$c,af={empty:!0,space:!0};var sf=ac,uf=function(){return eo(function e(t){$n(this,e),this.input=t,this.root=new nf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,r,n,o=new rf;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,a=!1,s=[],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){a=!0;break}if("}"===t){if(s.length>0){for(r=s[n=s.length-1];r&&"space"===r[0];)r=s[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(o.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(o,"params",s),i&&(e=s[s.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=""),a&&(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,a=Yn(e.entries());try{for(a.s();!(o=a.n()).done;){var s=Ln(o.value,2),u=s[0];if("("===(r=(t=s[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){a.e(e)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new tf;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=ef(this.input)}},{key:"decl",value:function(e,t){var r=new Qc;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 a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.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 l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var c=e.slice(0),f="",h=u;h>0;h--){var p=c[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=c.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=c)}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+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.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 of;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=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(r=u[0],s.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(a&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(s,a);break}if("{"===r)return void this.rule(s);if("}"===r){this.tokenizer.back(s.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(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{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,a,s,u=r.length,l="",c=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(s=r[f-1]?r[f-1][0]:"empty",a=r[f+1]?r[f+1][0]:"empty",af[s]||af[a]||","===l.slice(-1)?c=!1:l+=o[1]):l+=o[1]:c=!1;if(!c){var h=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:h,value:l}}e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new of;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})}}])}(),lf=Nl;function cf(e,t){var r=new lf(e,t),n=new uf(r);try{n.parse()}catch(e){throw e}return n.root}var ff=cf;cf.default=cf,sf.registerParse(cf);var hf=Yu.isClean,pf=Yu.my,df=ql,vf=tl,yf=ac,mf=cc,gf=vc,bf=ff,wf=qc,kf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sf={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},Cf={Once:!0,postcssPlugin:!0,prepare:!0};function If(e){return"object"===ro(e)&&"function"==typeof e.then}function Of(e){var t=!1,r=kf[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 xf(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Of(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function _f(e){return e[hf]=!1,e.nodes&&e.nodes.forEach(function(e){return _f(e)}),e}var Ef={},Af=function(){return eo(function e(t,r,n){var o,i=this;if($n(this,e),this.stringified=!1,this.processed=!1,"object"!==ro(r)||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof gf)o=_f(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var a=bf;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[pf]&&yf.rebuild(o)}else o=_f(r);this.result=new gf(t,o,n),this.helpers=Bn(Bn({},Ef),{},{postcss:Ef,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===ro(e)&&e.prepare?Bn(Bn({},e),e.prepare(i.result)):e})},[{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=Yn(this.plugins);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("object"===ro(o))for(var i in o){if(!Sf[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(!Cf[i])if("object"===ro(o[i]))for(var a in o[i])r(o,"*"===a?i:i+"-"+a.toLowerCase(),o[i][a]);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:(e=Nn(Mn().m(function e(){var t,r,n,o,i,a,s,u,l,c,f,h,p,d=this;return Mn().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(!(t<this.plugins.length)){e.n=6;break}if(r=this.plugins[t],!If(n=this.runOnRoot(r))){e.n=5;break}return e.p=2,e.n=3,n;case 3:e.n=5;break;case 4:throw e.p=4,f=e.v,this.handleError(f);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}o=this.result.root;case 7:if(o[hf]){e.n=14;break}o[hf]=!0,i=[xf(o)];case 8:if(!(i.length>0)){e.n=13;break}if(!If(a=this.visitTick(i))){e.n=12;break}return e.p=9,e.n=10,a;case 10:e.n=12;break;case 11:throw e.p=11,h=e.v,s=i[i.length-1].node,this.handleError(h,s);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}u=Yn(this.listeners.OnceExit),e.p=15,c=Mn().m(function e(){var t,r,n,i,a;return Mn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=Ln(l.value,2),r=t[0],n=t[1],d.result.lastPlugin=r,e.p=1,"document"!==o.type){e.n=3;break}return i=o.nodes.map(function(e){return n(e,d.helpers)}),e.n=2,Promise.all(i);case 2:e.n=4;break;case 3:return e.n=4,n(o,d.helpers);case 4:e.n=6;break;case 5:throw e.p=5,a=e.v,d.handleError(a);case 6:return e.a(2)}},e,null,[[1,5]])}),u.s();case 16:if((l=u.n()).done){e.n=18;break}return e.d(Tn(c()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,p=e.v,u.e(p);case 20:return e.p=20,u.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return e.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===ro(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 If(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=vf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new df(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=Yn(this.plugins);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(If(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[hf];)n[hf]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type){var o,i=Yn(n.nodes);try{for(i.s();!(o=i.n()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}}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=Yn(e);try{for(n.s();!(r=n.n()).done;){var o=Ln(r.value,2),i=o[0],a=o[1];this.result.lastPlugin=i;var s=void 0;try{s=a(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(If(s))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=Ln(n[t.visitorIndex],2),i=o[0],a=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return a(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var s,u=t.iterator;s=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!s[hf])return s[hf]=!0,void e.push(xf(s));t.iterator=0,delete r.indexes[u]}for(var l=t.events;t.eventIndex<l.length;){var c=l[t.eventIndex];if(t.eventIndex+=1,0===c)return void(r.nodes&&r.nodes.length&&(r[hf]=!0,t.iterator=r.getIterator()));if(this.listeners[c])return void(t.visitors=this.listeners[c])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var t=this;e[hf]=!0;var r,n=Yn(Of(e));try{for(n.s();!(r=n.n()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[hf]||t.walkSync(e)});else{var i=this.listeners[o];if(i&&this.visitSync(i,e.toProxy()))return}}}catch(e){n.e(e)}finally{n.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:Symbol.toStringTag,get:function(){return"LazyResult"}}]);var e}();Af.registerPostcss=function(e){Ef=e};var Rf=Af;Af.default=Af,wf.registerLazyResult(Af),mf.registerLazyResult(Af);var Tf=ql,Mf=tl,Pf=ff,jf=vc,Nf=function(){return eo(function e(t,r,n){var o;$n(this,e),r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=n,this._map=void 0;var i=Mf;this.result=new jf(this._processor,o,this._opts),this.result.css=r;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var s=new Tf(i,o,this._opts,r);if(s.isMap()){var u=Ln(s.generate(),2),l=u[0],c=u[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css},[{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=Pf;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}])}(),Lf=Nf;Nf.default=Nf;var Df=Lf,Ff=Rf,Uf=cc,Bf=qc,Wf=function(){return eo(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];$n(this,e),this.version="8.4.38",this.plugins=this.normalize(t)},[{key:"normalize",value:function(e){var t,r=[],n=Yn(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"===ro(o)&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if("object"===ro(o)&&o.postcssPlugin)r.push(o);else if("function"==typeof o)r.push(o);else{if("object"!==ro(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 Ff(this,e,t):new Df(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}])}(),zf=Wf;Wf.default=Wf,Bf.registerProcessor(Wf),Uf.registerProcessor(Wf);var Gf=fl,Vf=wl,Hf=Zl,qf=Wc,Jf=Nl,Zf=qc,Yf=$c;function Xf(e,t){if(Array.isArray(e))return e.map(function(e){return Xf(e)});var r=e.inputs,n=Rn(e,_n);if(r){t=[];var o,i=Yn(r);try{for(i.s();!(o=i.n()).done;){var a=Bn(Bn({},o.value),{},{__proto__:Jf.prototype});a.map&&(a.map=Bn(Bn({},a.map),{},{__proto__:Vf.prototype})),t.push(a)}}catch(e){i.e(e)}finally{i.f()}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Xf(e,t)})),n.source){var s=n.source,u=s.inputId,l=Rn(s,En);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Zf(n);if("decl"===n.type)return new Gf(n);if("rule"===n.type)return new Yf(n);if("comment"===n.type)return new Hf(n);if("atrule"===n.type)return new qf(n);throw new Error("Unknown node type: "+e.type)}var Kf=Xf;Xf.default=Xf;var $f=Zu,Qf=fl,eh=Rf,th=ac,rh=zf,nh=tl,oh=Kf,ih=cc,ah=hc,sh=Zl,uh=Wc,lh=vc,ch=Nl,fh=ff,hh=Zc,ph=$c,dh=qc,vh=ll;function yh(){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 rh(t)}yh.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"),process.env.LANG&&process.env.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 rh).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return yh([o(r)]).process(e,t)},o},yh.stringify=nh,yh.parse=fh,yh.fromJSON=oh,yh.list=hh,yh.comment=function(e){return new sh(e)},yh.atRule=function(e){return new uh(e)},yh.decl=function(e){return new Qf(e)},yh.rule=function(e){return new ph(e)},yh.root=function(e){return new dh(e)},yh.document=function(e){return new ih(e)},yh.CssSyntaxError=$f,yh.Declaration=Qf,yh.Container=th,yh.Processor=rh,yh.Document=ih,yh.Comment=sh,yh.Warning=ah,yh.AtRule=uh,yh.Result=lh,yh.Input=ch,yh.Rule=ph,yh.Root=dh,yh.Node=vh,eh.registerPostcss(yh);var mh=yh;yh.default=yh;var gh=Fu(mh);gh.stringify,gh.fromJSON,gh.plugin,gh.parse,gh.list,gh.document,gh.comment,gh.atRule,gh.rule,gh.decl,gh.root,gh.CssSyntaxError,gh.Declaration,gh.Container,gh.Processor,gh.Document,gh.Comment,gh.Warning,gh.AtRule,gh.Result,gh.Input,gh.Rule,gh.Root,gh.Node;var bh=function(){function e(){$n(this,e),Du(this,"parentElement",null),Du(this,"parentNode",null),Du(this,"ownerDocument"),Du(this,"firstChild",null),Du(this,"lastChild",null),Du(this,"previousSibling",null),Du(this,"nextSibling",null),Du(this,"ELEMENT_NODE",1),Du(this,"TEXT_NODE",3),Du(this,"nodeType"),Du(this,"nodeName"),Du(this,"RRNodeType")}return eo(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"}}])}(),wh={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},kh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Sh={};function Ch(e){if(Sh[e])return Sh[e];var t=globalThis[e],r=t.prototype,n=e in wh?wh[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 kh?kh[e]:void 0,a=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&&a&&!globalThis.Zone)return Sh[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var u=s.contentWindow;if(!u)return t.prototype;var l=u[e].prototype;return document.body.removeChild(s),l?Sh[e]=l:r}catch(e){return r}}var Ih={};function Oh(e,t,r){var n,o="".concat(e,".").concat(String(r));if(Ih[o])return Ih[o].call(t);var i=Ch(e),a=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return a?(Ih[o]=a,a.call(t)):t[r]}var xh={};function _h(e,t,r){var n="".concat(e,".").concat(String(r));if(xh[n])return xh[n].bind(t);var o=Ch(e)[r];return"function"!=typeof o?t[r]:(xh[n]=o,o.bind(t))}function Eh(){return Ch("MutationObserver").constructor}function Ah(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(){}}}var Rh={ownerDocument:function(e){return Oh("Node",e,"ownerDocument")},childNodes:function(e){return Oh("Node",e,"childNodes")},parentNode:function(e){return Oh("Node",e,"parentNode")},parentElement:function(e){return Oh("Node",e,"parentElement")},textContent:function(e){return Oh("Node",e,"textContent")},contains:function(e,t){return _h("Node",e,"contains")(t)},getRootNode:function(e){return _h("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Oh("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Oh("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Oh("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Oh("Element",e,"querySelectorAll")(t)},mutationObserver:Eh,patch:Ah};function Th(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 Mh="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.",Ph={map:{},getId:function(){return console.error(Mh),-1},getNode:function(){return console.error(Mh),null},removeNodeFromMap:function(){console.error(Mh)},has:function(){return console.error(Mh),!1},reset:function(){console.error(Mh)}};function jh(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=Date.now();o||!1!==r.leading||(o=u);var l=t-(u-o),c=this;l<=0||l>t?(n&&(clearTimeout(n),n=null),o=u,e.apply(c,a)):n||!1===r.trailing||(n=setTimeout(function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(c,a)},l))}}function Nh(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 Nh(e,t,i||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ph=new Proxy(Ph,{get:function(e,t,r){return"map"===t&&console.error(Mh),Reflect.get(e,t,r)}}));var Lh=Date.now;function Dh(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=Rh.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=Rh.parentElement(i.body))?void 0:n.scrollTop)||(null==(o=null==i?void 0:i.body)?void 0:o.scrollTop)||0}}function Fh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Uh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Bh(e){return e?e.nodeType===e.ELEMENT_NODE?e:Rh.parentElement(e):null}function Wh(e,t,r,n){if(!e)return!1;var o=Bh(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(Xo(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}function zh(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function Gh(e,t){if(wo(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Rh.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Gh(n,t))}function Vh(e){return Boolean(e.changedTouches)}function Hh(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function qh(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Jh(e){return!!e&&(e instanceof bh&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Rh.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Lh=function(){return(new Date).getTime()});var Zh=function(){return eo(function e(){$n(this,e),io(this,"id",1),io(this,"styleIDMap",new WeakMap),io(this,"idStyleMap",new Map)},[{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++}}])}();function Yh(e){var t,r=null;return"getRootNode"in e&&(null==(t=Rh.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Rh.host(Rh.getRootNode(e))&&(r=Rh.host(Rh.getRootNode(e))),r}function Xh(e){var t=Rh.ownerDocument(e);if(!t)return!1;var r=function(e){for(var t,r=e;t=Yh(r);)r=t;return r}(e);return Rh.contains(t,r)}function Kh(e){var t=Rh.ownerDocument(e);return!!t&&(Rh.contains(t,e)||Xh(e))}var $h=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}($h||{}),Qh=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Qh||{}),ep=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}(ep||{}),tp=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(tp||{}),rp=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(rp||{}),np=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(np||{}),op=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(op||{});function ip(e){return"__ln"in e}var ap,sp=function(){return eo(function e(){$n(this,e),io(this,"length",0),io(this,"head",null),io(this,"tail",null)},[{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&&ip(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&&ip(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}},{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.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}])}(),up=function(e,t){return"".concat(e,"@").concat(t)},lp=function(){return eo(function e(){var t=this;$n(this,e),io(this,"frozen",!1),io(this,"locked",!1),io(this,"texts",[]),io(this,"attributes",[]),io(this,"attributeMap",new WeakMap),io(this,"removes",[]),io(this,"mapRemoves",[]),io(this,"movedMap",{}),io(this,"addedSet",new Set),io(this,"movedSet",new Set),io(this,"droppedSet",new Set),io(this,"removesSubTreeCache",new Set),io(this,"mutationCb"),io(this,"blockClass"),io(this,"blockSelector"),io(this,"maskTextClass"),io(this,"maskTextSelector"),io(this,"inlineStylesheet"),io(this,"maskInputOptions"),io(this,"maskTextFn"),io(this,"maskInputFn"),io(this,"keepIframeSrcFn"),io(this,"recordCanvas"),io(this,"inlineImages"),io(this,"slimDOMOptions"),io(this,"dataURLOptions"),io(this,"doc"),io(this,"mirror"),io(this,"iframeManager"),io(this,"stylesheetManager"),io(this,"shadowDomManager"),io(this,"canvasManager"),io(this,"processedNodeManager"),io(this,"unattachedDoc"),io(this,"processMutations",function(e){e.forEach(t.processMutation),t.emit()}),io(this,"emit",function(){if(!t.frozen&&!t.locked){for(var e=[],r=new Set,n=new sp,o=function(e){for(var r=e,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&t.mirror.getId(r);return n},i=function(i){var a=Rh.parentNode(i);if(a&&Kh(i)){var s=!1;if(i.nodeType===Node.TEXT_NODE){var u=a.tagName;if("TEXTAREA"===u)return;"STYLE"===u&&t.addedSet.has(a)&&(s=!0)}var l=wo(a)?t.mirror.getId(Yh(i)):t.mirror.getId(a),c=o(i);if(-1===l||-1===c)return n.addNode(i);var f=ti(i,{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){Hh(e,t.mirror)&&t.iframeManager.addIframe(e),qh(e,t.mirror)&&t.stylesheetManager.trackLinkElement(e),Jh(i)&&t.shadowDomManager.addShadowRoot(Rh.shadowRoot(i),t.doc)},onIframeLoad:function(e,r){t.iframeManager.attachIframe(e,r),t.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,r){t.stylesheetManager.attachLinkElement(e,r)},cssCaptured:s});f&&(e.push({parentId:l,nextId:c,node:f}),r.add(f.id))}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());var a,s=Yn(t.movedSet);try{for(s.s();!(a=s.n()).done;){var u=a.value;fp(t.removesSubTreeCache,u,t.mirror)&&!t.movedSet.has(Rh.parentNode(u))||i(u)}}catch(e){s.e(e)}finally{s.f()}var l,c=Yn(t.addedSet);try{for(c.s();!(l=c.n()).done;){var f=l.value;hp(t.droppedSet,f)||fp(t.removesSubTreeCache,f,t.mirror)?hp(t.movedSet,f)?i(f):t.droppedSet.add(f):i(f)}}catch(e){c.e(e)}finally{c.f()}for(var h=null;n.length;){var p=null;if(h){var d=t.mirror.getId(Rh.parentNode(h.value)),v=o(h.value);-1!==d&&-1!==v&&(p=h)}if(!p)for(var y=n.tail;y;){var m=y;if(y=y.previous,m){var g=t.mirror.getId(Rh.parentNode(m.value));if(-1===o(m.value))continue;if(-1!==g){p=m;break}var b=m.value,w=Rh.parentNode(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=Rh.host(w);if(-1!==t.mirror.getId(k)){p=m;break}}}}if(!p){for(;n.head;)n.removeNode(n.head.value);break}h=p.previous,n.removeNode(p.value),i(p.value)}var S={texts:t.texts.map(function(e){var r=e.node,n=Rh.parentNode(r);return n&&"TEXTAREA"===n.tagName&&t.genTextAreaValueMutation(n),{id:t.mirror.getId(r),value:e.value}}).filter(function(e){return!r.has(e.id)}).filter(function(e){return t.mirror.has(e.id)}),attributes:t.attributes.map(function(e){var r=e.attributes;if("string"==typeof r.style){var n=JSON.stringify(e.styleDiff),o=JSON.stringify(e._unchangedStyles);n.length<r.style.length&&(n+o).split("var(").length===r.style.split("var(").length&&(r.style=e.styleDiff)}return{id:t.mirror.getId(e.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(e){return t.mirror.has(e.id)}),removes:t.removes,adds:e};(S.texts.length||S.attributes.length||S.removes.length||S.adds.length)&&(t.texts=[],t.attributes=[],t.attributeMap=new WeakMap,t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.removesSubTreeCache=new Set,t.movedMap={},t.mutationCb(S))}}),io(this,"genTextAreaValueMutation",function(e){var r=t.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(r),t.attributeMap.set(e,r));var n=Array.from(Rh.childNodes(e),function(e){return Rh.textContent(e)||""}).join("");r.attributes.value=Oo({element:e,maskInputOptions:t.maskInputOptions,tagName:e.tagName,type:Eo(e),value:n,maskInputFn:t.maskInputFn})}),io(this,"processMutation",function(e){if(!zh(e.target,t.mirror,t.slimDOMOptions))switch(e.type){case"characterData":var r=Rh.textContent(e.target);Wh(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue||t.texts.push({value:Ko(e.target,t.maskTextClass,t.maskTextSelector,!0)&&r?t.maskTextFn?t.maskTextFn(r,Bh(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break;case"attributes":var n=e.target,o=e.attributeName,i=e.target.getAttribute(o);if("value"===o){var a=Eo(n);i=Oo({element:n,maskInputOptions:t.maskInputOptions,tagName:n.tagName,type:a,value:i,maskInputFn:t.maskInputFn})}if(Wh(e.target,t.blockClass,t.blockSelector,!1)||i===e.oldValue)return;var s=t.attributeMap.get(e.target);if("IFRAME"===n.tagName&&"src"===o&&!t.keepIframeSrcFn(i)){if(n.contentDocument)return;o="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(s),t.attributeMap.set(e.target,s)),"type"===o&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Yo(n.tagName,o))if(s.attributes[o]=Zo(t.doc,xo(n.tagName),xo(o),i),"style"===o){if(!t.unattachedDoc)try{t.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){t.unattachedDoc=t.doc}var u=t.unattachedDoc.createElement("span");e.oldValue&&u.setAttribute("style",e.oldValue);for(var l=0,c=Array.from(n.style);l<c.length;l++){var f=c[l],h=n.style.getPropertyValue(f),p=n.style.getPropertyPriority(f);h!==u.style.getPropertyValue(f)||p!==u.style.getPropertyPriority(f)?s.styleDiff[f]=""===p?h:[h,p]:s._unchangedStyles[f]=[h,p]}for(var d=0,v=Array.from(u.style);d<v.length;d++){var y=v[d];""===n.style.getPropertyValue(y)&&(s.styleDiff[y]=!1)}}else"open"===o&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break;case"childList":if(Wh(e.target,t.blockClass,t.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void t.genTextAreaValueMutation(e.target);e.addedNodes.forEach(function(r){return t.genAdds(r,e.target)}),e.removedNodes.forEach(function(r){var n=t.mirror.getId(r),o=wo(e.target)?t.mirror.getId(Rh.host(e.target)):t.mirror.getId(e.target);Wh(e.target,t.blockClass,t.blockSelector,!1)||zh(r,t.mirror,t.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,t.mirror)||(t.addedSet.has(r)?(cp(t.addedSet,r),t.droppedSet.add(r)):t.addedSet.has(e.target)&&-1===n||Gh(e.target,t.mirror)||(t.movedSet.has(r)&&t.movedMap[up(n,o)]?cp(t.movedSet,r):(t.removes.push({parentId:o,id:n,isShadow:!(!wo(e.target)||!ko(e.target))||void 0}),function(e,t){var r=[e];for(;r.length;){var n=r.pop();t.has(n)||(t.add(n),Rh.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,t.removesSubTreeCache))),t.mapRemoves.push(r))})}}),io(this,"genAdds",function(e,r){if(!t.processedNodeManager.inOtherBuffer(e,t)&&!t.addedSet.has(e)&&!t.movedSet.has(e)){if(t.mirror.hasNode(e)){if(zh(e,t.mirror,t.slimDOMOptions))return;t.movedSet.add(e);var n=null;r&&t.mirror.hasNode(r)&&(n=t.mirror.getId(r)),n&&-1!==n&&(t.movedMap[up(t.mirror.getId(e),n)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);Wh(e,t.blockClass,t.blockSelector,!1)||(Rh.childNodes(e).forEach(function(e){return t.genAdds(e)}),Jh(e)&&Rh.childNodes(Rh.shadowRoot(e)).forEach(function(r){t.processedNodeManager.add(r,t),t.genAdds(r,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","processedNodeManager"].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()}}])}();function cp(e,t){e.delete(t),Rh.childNodes(t).forEach(function(t){return cp(e,t)})}function fp(e,t,r){return 0!==e.size&&function(e,t){var r=Rh.parentNode(t);return!!r&&e.has(r)}(e,t)}function hp(e,t){return 0!==e.size&&pp(e,t)}function pp(e,t){var r=Rh.parentNode(t);return!!r&&(!!e.has(r)||pp(e,r))}var dp=function(e){if(!ap)return e;return function(){try{return e.apply(void 0,arguments)}catch(e){if(ap&&!0===ap(e))return;throw e}}},vp=[];function yp(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function mp(e,t){var r=new lp;vp.push(r),r.init(e);var n=new(Eh())(dp(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function gp(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[],l=null;return Object.keys(ep).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]}).forEach(function(e){var a=xo(e),s=function(e){return function(r){var a=yp(r);if(!Wh(a,o,i,!0)){var s=null,u=e;if("pointerType"in r){switch(r.pointerType){case"mouse":s=tp.Mouse;break;case"touch":s=tp.Touch;break;case"pen":s=tp.Pen}s===tp.Touch?ep[e]===ep.MouseDown?u="TouchStart":ep[e]===ep.MouseUp&&(u="TouchEnd"):tp.Pen}else Vh(r)&&(s=tp.Touch);null!==s?(l=s,(u.startsWith("Touch")&&s===tp.Touch||u.startsWith("Mouse")&&s===tp.Mouse)&&(s=null)):ep[e]===ep.Click&&(s=l,l=null);var c=Vh(r)?r.changedTouches[0]:r;if(c){var f=n.getId(a),h=c.clientX,p=c.clientY;dp(t)(Bn({type:ep[u],id:f,x:h,y:p},null!==s&&{pointerType:s}))}}}}(e);if(window.PointerEvent)switch(ep[e]){case ep.MouseDown:case ep.MouseUp:a=a.replace("mouse","pointer");break;case ep.TouchStart:case ep.TouchEnd:return}u.push(Th(a,s,r))}),dp(function(){u.forEach(function(e){return e()})})}function bp(e){var t=e.scrollCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,a=e.sampling,s=dp(jh(dp(function(e){var a=yp(e);if(a&&!Wh(a,o,i,!0)){var s=n.getId(a);if(a===r&&r.defaultView){var u=Dh(r.defaultView);t({id:s,x:u.left,y:u.top})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),a.scroll||100));return Th("scroll",s,r)}var wp=["INPUT","TEXTAREA","SELECT"],kp=new WeakMap;function Sp(e){return function(e,t){if(xp("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||xp("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||xp("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||xp("CSSConditionRule")&&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 Cp(e,t,r){var n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function Ip(e,t){var r,n,o,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(Rh.host(t));var u="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(o=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:o.ShadowRoot,l=(null==u?void 0:u.prototype)?Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&u&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(e){}return r}}),dp(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):function(){}}function Op(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,o=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,u=e.mediaInteractionCb,l=e.styleSheetRuleCb,c=e.styleDeclarationCb,f=e.canvasMutationCb,h=e.fontCb,p=e.selectionCb,d=e.customElementCb;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),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.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),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),c.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)},e.customElementCb=function(){t.customElement&&t.customElement.apply(t,arguments),d.apply(void 0,arguments)}}(e,r),e.recordDOM&&(t=mp(e,e.doc));var o,i,a,s,u,l,c,f,h,p,d,v,y,m,g=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,o=e.mirror;if(!1===r.mousemove)return function(){};var i,a="number"==typeof r.mousemove?r.mousemove:50,s="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,u=[],l=jh(dp(function(e){var r=Date.now()-i;t(u.map(function(e){return e.timeOffset-=r,e}),e),u=[],i=null}),s),c=dp(jh(dp(function(e){var t=yp(e),r=Vh(e)?e.changedTouches[0]:e,n=r.clientX,a=r.clientY;i||(i=Lh()),u.push({x:n,y:a,id:o.getId(t),timeOffset:Lh()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Qh.Drag:e instanceof MouseEvent?Qh.MouseMove:Qh.TouchMove)}),a,{trailing:!1})),f=[Th("mousemove",c,n),Th("touchmove",c,n),Th("drag",c,n)];return dp(function(){f.forEach(function(e){return e()})})}(e),b=gp(e),w=bp(e),k=(o={win:n},i=e.viewportResizeCb,a=o.win,s=-1,u=-1,Th("resize",dp(jh(dp(function(){var e=Fh(),t=Uh();s===e&&u===t||(i({width:Number(t),height:Number(e)}),s=e,u=t)}),200)),a)),S=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.ignoreSelector,u=e.maskInputOptions,l=e.maskInputFn,c=e.sampling,f=e.userTriggeredOnInput;function h(e){var t=yp(e),n=e.isTrusted,c=t&&t.tagName;if(t&&"OPTION"===c&&(t=Rh.parentElement(t)),t&&c&&!(wp.indexOf(c)<0)&&!Wh(t,o,i,!0)&&!(t.classList.contains(a)||s&&t.matches(s))){var h=t.value,d=!1,v=Eo(t)||"";"radio"===v||"checkbox"===v?d=t.checked:(u[c.toLowerCase()]||u[v])&&(h=Oo({element:t,maskInputOptions:u,tagName:c,type:v,value:h,maskInputFn:l})),p(t,f?{text:h,isChecked:d,userTriggered:n}:{text:h,isChecked:d});var y=t.name;"radio"===v&&y&&d&&r.querySelectorAll('input[type="radio"][name="'.concat(y,'"]')).forEach(function(e){if(e!==t){var r=e.value;p(e,f?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function p(e,r){var o=kp.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){kp.set(e,r);var i=n.getId(e);dp(t)(Bn(Bn({},r),{},{id:i}))}}var d=("last"===c.input?["change"]:["input","change"]).map(function(e){return Th(e,dp(h),r)}),v=r.defaultView;if(!v)return function(){d.forEach(function(e){return e()})};var y=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),m=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&d.push.apply(d,zn(m.map(function(e){return Nh(e[0],e[1],{set:function(){dp(h)({target:this,isTrusted:!1})}},!1,v)}))),dp(function(){d.forEach(function(e){return e()})})}(e),C=(c=(l=e).mediaInteractionCb,f=l.blockClass,h=l.blockSelector,p=l.mirror,d=l.sampling,v=l.doc,y=dp(function(e){return jh(dp(function(t){var r=yp(t);if(r&&!Wh(r,f,h,!0)){var n=r.currentTime,o=r.volume,i=r.muted,a=r.playbackRate,s=r.loop;c({type:e,id:p.getId(r),currentTime:n,volume:o,muted:i,playbackRate:a,loop:s})}}),d.media||500)}),m=[Th("play",y(np.Play),v),Th("pause",y(np.Pause),v),Th("seeked",y(np.Seeked),v),Th("volumechange",y(np.VolumeChange),v),Th("ratechange",y(np.RateChange),v)],dp(function(){m.forEach(function(e){return e()})})),I=function(){},O=function(){},x=function(){},_=function(){};e.recordDOM&&(I=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,o=e.stylesheetManager,i=t.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:dp(function(e,t,i){var a=Ln(i,2),s=a[0],u=a[1],l=Cp(t,n,o.styleMirror),c=l.id,f=l.styleId;return(c&&-1!==c||f&&-1!==f)&&r({id:c,styleId:f,adds:[{rule:s,index:u}]}),e.apply(t,i)})}),i.CSSStyleSheet.prototype.addRule=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.cssRules.length,n="".concat(e," { ").concat(t," }");return i.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var s,u,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(l,{apply:dp(function(e,t,i){var a=Ln(i,1)[0],s=Cp(t,n,o.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,removes:[{index:a}]}),e.apply(t,i)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:dp(function(e,t,i){var a=Ln(i,1)[0],s=Cp(t,n,o.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,replace:a}),e.apply(t,i)})})),i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:dp(function(e,t,i){var a=Ln(i,1)[0],s=Cp(t,n,o.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,replaceSync:a}),e.apply(t,i)})}));var c={};_p("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(_p("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),_p("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),_p("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));var f={};return Object.entries(c).forEach(function(e){var t=Ln(e,2),i=t[0],a=t[1];f[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(f[i].insertRule,{apply:dp(function(e,t,i){var a=Ln(i,2),s=a[0],u=a[1],l=Cp(t.parentStyleSheet,n,o.styleMirror),c=l.id,f=l.styleId;return(c&&-1!==c||f&&-1!==f)&&r({id:c,styleId:f,adds:[{rule:s,index:[].concat(zn(Sp(t)),[u||0])}]}),e.apply(t,i)})}),a.prototype.deleteRule=new Proxy(f[i].deleteRule,{apply:dp(function(e,t,i){var a=Ln(i,1)[0],s=Cp(t.parentStyleSheet,n,o.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,removes:[{index:[].concat(zn(Sp(t)),[a])}]}),e.apply(t,i)})})}),dp(function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEach(function(e){var t=Ln(e,2),r=t[0],n=t[1];n.prototype.insertRule=f[r].insertRule,n.prototype.deleteRule=f[r].deleteRule})})}(e,{win:n}),O=Ip(e,e.doc),x=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,o=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:dp(function(e,t,a){var u,l=Ln(a,3),c=l[0],f=l[1],h=l[2];if(o.has(c))return s.apply(t,[c,f,h]);var p=Cp(null==(u=t.parentRule)?void 0:u.parentStyleSheet,n,i.styleMirror),d=p.id,v=p.styleId;return(d&&-1!==d||v&&-1!==v)&&r({id:d,styleId:v,set:{property:c,value:f,priority:h},index:Sp(t.parentRule)}),e.apply(t,a)})});var u=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:dp(function(e,t,a){var s,l=Ln(a,1)[0];if(o.has(l))return u.apply(t,[l]);var c=Cp(null==(s=t.parentRule)?void 0:s.parentStyleSheet,n,i.styleMirror),f=c.id,h=c.styleId;return(f&&-1!==f||h&&-1!==h)&&r({id:f,styleId:h,remove:{property:l},index:Sp(t.parentRule)}),e.apply(t,a)})}),dp(function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=u})}(e,{win:n}),e.collectFonts&&(_=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var o=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,r){var n=new a(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 s=Ah(r.fonts,"add",function(e){return function(r){return setTimeout(dp(function(){var e=i.get(r);e&&(t(e),i.delete(r))}),0),e.apply(this,[r])}});return o.push(function(){n.FontFace=a}),o.push(s),dp(function(){o.forEach(function(e){return e()})})}(e)));var E,A=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,o=e.blockSelector,i=e.selectionCb,a=!0,s=dp(function(){var e=t.getSelection();if(!(!e||a&&(null==e?void 0:e.isCollapsed))){a=e.isCollapsed||!1;for(var s=[],u=e.rangeCount||0,l=0;l<u;l++){var c=e.getRangeAt(l),f=c.startContainer,h=c.startOffset,p=c.endContainer,d=c.endOffset;Wh(f,n,o,!0)||Wh(p,n,o,!0)||s.push({start:r.getId(f),startOffset:h,end:r.getId(p),endOffset:d})}i({ranges:s})}});return s(),Th("selectionchange",s)}(e),R=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Ah(n.customElements,"define",function(e){return function(t,n,o){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for ".concat(t))}return e.apply(this,[t,n,o])}}):function(){}}(e),T=[],M=Yn(e.plugins);try{for(M.s();!(E=M.n()).done;){var P=E.value;T.push(P.observer(P.callback,n,P.options))}}catch(e){M.e(e)}finally{M.f()}return dp(function(){vp.forEach(function(e){return e.reset()}),null==t||t.disconnect(),g(),b(),w(),k(),S(),C(),I(),O(),x(),_(),A(),R(),T.forEach(function(e){return e()})})}function xp(e){return void 0!==window[e]}function _p(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Ep=function(){return eo(function e(t){$n(this,e),io(this,"iframeIdToRemoteIdMap",new WeakMap),io(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t},[{key:"getId",value:function(e,t,r,n){var o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}},{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}}])}(),Ap=function(){return eo(function e(t){$n(this,e),io(this,"iframes",new WeakMap),io(this,"crossOriginIframeMap",new WeakMap),io(this,"crossOriginIframeMirror",new Ep(Wo)),io(this,"crossOriginIframeStyleMirror"),io(this,"crossOriginIframeRootIdMap",new WeakMap),io(this,"mirror"),io(this,"mutationCb"),io(this,"wrappedEmit"),io(this,"loadListener"),io(this,"stylesheetManager"),io(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ep(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))},[{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,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}}},{key:"transformCrossOriginEvent",value:function(e,t){var r,n=this;switch(t.type){case $h.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var o=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,o),this.patchRootIdOnNode(t.data.node,o),{timestamp:t.timestamp,type:$h.IncrementalSnapshot,data:{source:Qh.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case $h.Meta:case $h.Load:case $h.DomContentLoaded:return!1;case $h.Plugin:return t;case $h.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case $h.IncrementalSnapshot:switch(t.data.source){case Qh.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Qh.Drag:case Qh.TouchMove:case Qh.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Qh.ViewportResize:return!1;case Qh.MediaInteraction:case Qh.MouseInteraction:case Qh.Scroll:case Qh.CanvasMutation:case Qh.Input:return this.replaceIds(t.data,e,["id"]),t;case Qh.StyleSheetRule:case Qh.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Qh.Font:return t;case Qh.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Qh.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1}},{key:"replace",value:function(e,t,r,n){var o,i=Yn(n);try{for(i.s();!(o=i.n()).done;){var a=o.value;(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]))}}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","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})}},{key:"patchRootIdOnNode",value:function(e,t){var r=this;e.type===op.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})}}])}(),Rp=function(){return eo(function e(t){$n(this,e),io(this,"shadowDoms",new WeakSet),io(this,"mutationCb"),io(this,"scrollCb"),io(this,"bypassOptions"),io(this,"mirror"),io(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()},[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var r=this;if(ko(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=mp(Bn(Bn({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(bp(Bn(Bn({},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(Rh.host(e))),r.restoreHandlers.push(Ip({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}}},{key:"observeAttachShadow",value:function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}},{key:"patchAttachShadow",value:function(e,t){var r=this;this.restoreHandlers.push(Ah(e.prototype,"attachShadow",function(e){return function(n){var o=e.call(this,n),i=Rh.shadowRoot(this);return i&&Kh(this)&&r.addShadowRoot(i,t),o}}))}},{key:"reset",value:function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}])}(),Tp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mp="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Pp=0;Pp<64;Pp++)Mp[Tp.charCodeAt(Pp)]=Pp;var jp=new Map;var Np=function(e,t,r){if(e&&(Fp(e,t)||"object"===ro(e))){var n=function(e,t){var r=jp.get(e);return r||(r=new Map,jp.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 Lp(e,t,r){if(e instanceof Array)return e.map(function(e){return Lp(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)return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=Tp[r[t]>>2],o+=Tp[(3&r[t])<<4|r[t+1]>>4],o+=Tp[(15&r[t+1])<<2|r[t+2]>>6],o+=Tp[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)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Lp(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:[Lp(e.data,t,r),e.width,e.height]}:Fp(e,t)||"object"===ro(e)?{rr_type:e.constructor.name,index:Np(e,t,r)}:e}var Dp=function(e,t,r){return e.map(function(e){return Lp(e,t,r)})},Fp=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 Up(e,t,r,n){var o=[];try{var i=Ah(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(!Wh(this,t,r,!0)){var u=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(a[0]&&"object"===ro(a[0])){var l=a[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o].concat(a))}});o.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){o.forEach(function(e){return e()})}}function Bp(e,t,r,n,o,i){var a,s=[],u=Yn(Object.getOwnPropertyNames(e));try{var l=function(){var u=a.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))return 0;try{if("function"!=typeof e[u])return 0;var l=Ah(e,u,function(e){return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=e.apply(this,s);if(Np(c,i,this),"tagName"in this.canvas&&!Wh(this.canvas,n,o,!0)){var f=Dp(s,i,this),h={type:t,property:u,args:f};r(this.canvas,h)}return c}});s.push(l)}catch(n){var c=Nh(e,u,{set:function(e){r(this.canvas,{type:t,property:u,args:[e],setter:!0})}});s.push(c)}};for(u.s();!(a=u.n()).done;)l()}catch(e){u.e(e)}finally{u.f()}return s}var Wp,zp="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Gp="undefined"!=typeof window&&window.Blob&&new Blob([(Wp=zp,Uint8Array.from(atob(Wp),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function Vp(e){var t;try{if(!(t=Gp&&(window.URL||window.webkitURL).createObjectURL(Gp)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+zp,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Hp,qp,Jp,Zp=function(){return eo(function e(t){var r=this;$n(this,e),io(this,"pendingCanvasMutations",new Map),io(this,"rafStamps",{latestId:0,invokeId:null}),io(this,"mirror"),io(this,"mutationCb"),io(this,"resetObservers"),io(this,"frozen",!1),io(this,"locked",!1),io(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,a=t.blockClass,s=t.blockSelector,u=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&"all"===o&&this.initCanvasMutationObserver(i,a,s),u&&"number"==typeof o&&this.initCanvasFPSObserver(o,i,a,s,{dataURLOptions:l})},[{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,t,r,n,o){var i=this,a=Up(t,r,n,!0),s=new Map,u=new Vp;u.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,o=r.type,a=r.width,u=r.height;i.mutationCb({id:t,type:rp["2D"],commands:[{property:"clearRect",args:[0,0,a,u]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:o}]},0,0]}]})}};var l,c=1e3/e,f=0,h=function(e){var a;f&&e-f<c?l=requestAnimationFrame(h):(f=e,(a=[],t.document.querySelectorAll("canvas").forEach(function(e){Wh(e,r,n,!0)||a.push(e)}),a).forEach(function(){var e=Nn(Mn().m(function e(t){var r,n,a,l;return Mn().w(function(e){for(;;)switch(e.n){case 0:if(n=i.mirror.getId(t),!s.get(n)){e.n=1;break}return e.a(2);case 1:if(0!==t.width&&0!==t.height){e.n=2;break}return e.a(2);case 2:return s.set(n,!0),["webgl","webgl2"].includes(t.__context)&&(a=t.getContext(t.__context),!1===(null==(r=null==a?void 0:a.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&a.clear(a.COLOR_BUFFER_BIT)),e.n=3,createImageBitmap(t);case 3:l=e.v,u.postMessage({id:n,bitmap:l,width:t.width,height:t.height,dataURLOptions:o.dataURLOptions},[l]);case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),l=requestAnimationFrame(h))};l=requestAnimationFrame(h),this.resetObservers=function(){a(),cancelAnimationFrame(l)}}},{key:"initCanvasMutationObserver",value:function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Up(e,t,r,!1),o=function(e,t,r,n){var o,i=[],a=Yn(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));try{var s=function(){var a=o.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])return 1;var s=Ah(t.CanvasRenderingContext2D.prototype,a,function(o){return function(){for(var i=this,s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];return Wh(this.canvas,r,n,!0)||setTimeout(function(){var r=Dp(u,t,i);e(i.canvas,{type:rp["2D"],property:a,args:r})},0),o.apply(this,u)}});i.push(s)}catch(r){var u=Nh(t.CanvasRenderingContext2D.prototype,a,{set:function(t){e(this.canvas,{type:rp["2D"],property:a,args:[t],setter:!0})}});i.push(u)}};for(a.s();!(o=a.n()).done;)s()}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){var o=[];return o.push.apply(o,zn(Bp(t.WebGLRenderingContext.prototype,rp.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&o.push.apply(o,zn(Bp(t.WebGL2RenderingContext.prototype,rp.WebGL2,e,r,n,t))),function(){o.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);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,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};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){e.type;return Rn(e,An)}),o=r[0].type;this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}}}])}(),Yp=function(){return eo(function e(t){$n(this,e),io(this,"trackedLinkElements",new WeakSet),io(this,"mutationCb"),io(this,"adoptedStyleSheetCb"),io(this,"styleMirror",new Zh),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb},[{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){var r=this;if(0!==e.length){var n,o={id:t,styleIds:[]},i=[],a=Yn(e);try{var s=function(){var e,t=n.value;r.styleMirror.has(t)?e=r.styleMirror.getId(t):(e=r.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,function(e,r){return{rule:Co(e,t.href),index:r}})})),o.styleIds.push(e)};for(a.s();!(n=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}i.length>0&&(o.styles=i),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}])}(),Xp=function(){return eo(function e(){$n(this,e),io(this,"nodeMap",new WeakMap),io(this,"active",!1)},[{key:"inOtherBuffer",value:function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})}},{key:"add",value:function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"destroy",value:function(){}}])}(),Kp=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var $p=document.createElement("iframe");document.body.appendChild($p),Array.from=(null==(no=$p.contentWindow)?void 0:no.Array.from)||Array.from,document.body.removeChild($p)}}catch(e){console.debug("Unable to override Array.from",e)}var Qp,ed,td=new Io;function rd(){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,a=e.blockSelector,s=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,c=e.ignoreSelector,f=void 0===c?null:c,h=e.maskTextClass,p=void 0===h?"rr-mask":h,d=e.maskTextSelector,v=void 0===d?null:d,y=e.inlineStylesheet,m=void 0===y||y,g=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,k=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,O=e.sampling,x=void 0===O?{}:O,_=e.dataURLOptions,E=void 0===_?{}:_,A=e.mousemoveWait,R=e.recordDOM,T=void 0===R||R,M=e.recordCanvas,P=void 0!==M&&M,j=e.recordCrossOriginIframes,N=void 0!==j&&j,L=e.recordAfter,D=void 0===L?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":L,F=e.userTriggeredOnInput,U=void 0!==F&&F,B=e.collectFonts,W=void 0!==B&&B,z=e.inlineImages,G=void 0!==z&&z,V=e.plugins,H=e.keepIframeSrcFn,q=void 0===H?function(){return!1}:H,J=e.ignoreCSSAttributes,Z=void 0===J?new Set([]):J,Y=e.errorHandler;ap=Y;var X=!N||window.parent===window,K=!1;if(!X)try{window.parent.document&&(K=!1)}catch(e){K=!0}if(X&&!t)throw new Error("emit function is required");if(!X&&!K)return function(){};void 0!==A&&void 0===x.mousemove&&(x.mousemove=A),td.reset();var $,Q=!0===g?{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!==b?b:{password:!0},ee=ei(w);!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)}();var te=0,re=function(e){var t,r=Yn(V||[]);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&&!K&&(e=I(e)),e};Hp=function(e,o){var i,a=e;if(a.timestamp=Lh(),!(null==(i=vp[0])?void 0:i.isFrozen())||a.type===$h.FullSnapshot||a.type===$h.IncrementalSnapshot&&a.data.source===Qh.Mutation||vp.forEach(function(e){return e.unfreeze()}),X)null==t||t(re(a),o);else if(K){var s={type:"rrweb",event:re(a),origin:window.location.origin,isCheckout:o};window.parent.postMessage(s,"*")}if(a.type===$h.FullSnapshot)$=a,te=0;else if(a.type===$h.IncrementalSnapshot){if(a.data.source===Qh.Mutation&&a.data.isAttachIframe)return;te++;var u=n&&te>=n,l=r&&a.timestamp-$.timestamp>r;(u||l)&&qp(!0)}};var ne,oe=function(e){Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.Mutation},e)})},ie=function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.Scroll},e)})},ae=function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.CanvasMutation},e)})},se=new Yp({mutationCb:oe,adoptedStyleSheetCb:function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.AdoptedStyleSheet},e)})}}),ue=new Ap({mirror:td,mutationCb:oe,stylesheetManager:se,recordCrossOriginIframes:N,wrappedEmit:Hp}),le=Yn(V||[]);try{for(le.s();!(ne=le.n()).done;){var ce=ne.value;ce.getMirror&&ce.getMirror({nodeMirror:td,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(e){le.e(e)}finally{le.f()}var fe=new Xp;Jp=new Zp({recordCanvas:P,mutationCb:ae,win:window,blockClass:i,blockSelector:s,mirror:td,sampling:x.canvas,dataURLOptions:E});var he=new Rp({mutationCb:oe,scrollCb:ie,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:p,maskTextSelector:v,inlineStylesheet:m,maskInputOptions:Q,dataURLOptions:E,maskTextFn:S,maskInputFn:k,recordCanvas:P,inlineImages:G,sampling:x,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:se,canvasManager:Jp,keepIframeSrcFn:q,processedNodeManager:fe},mirror:td});qp=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(T){Hp({type:$h.Meta,data:{href:window.location.href,width:Uh(),height:Fh()}},e),se.reset(),he.init(),vp.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,o=void 0===n?new Io:n,i=r.blockClass,a=void 0===i?"rr-block":i,s=r.blockSelector,u=void 0===s?null:s,l=r.maskTextClass,c=void 0===l?"rr-mask":l,f=r.maskTextSelector,h=void 0===f?null:f,p=r.inlineStylesheet,d=void 0===p||p,v=r.inlineImages,y=void 0!==v&&v,m=r.recordCanvas,g=void 0!==m&&m,b=r.maskAllInputs,w=void 0!==b&&b,k=r.maskTextFn,S=r.maskInputFn,C=r.slimDOM,I=void 0!==C&&C,O=r.dataURLOptions,x=r.preserveWhiteSpace,_=r.onSerialize,E=r.onIframeLoad,A=r.iframeLoadTimeout,R=r.onStylesheetLoad,T=r.stylesheetLoadTimeout,M=r.keepIframeSrcFn,P=void 0===M?function(){return!1}:M;return ti(e,{doc:e,mirror:o,blockClass:a,blockSelector:u,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===w?{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===w?{password:!0}:w,maskTextFn:k,maskInputFn:S,slimDOMOptions:ei(I),dataURLOptions:O,inlineImages:y,recordCanvas:g,preserveWhiteSpace:x,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:T,keepIframeSrcFn:P,newlyAddedElement:!1})}(document,{mirror:td,blockClass:i,blockSelector:s,maskTextClass:p,maskTextSelector:v,inlineStylesheet:m,maskAllInputs:Q,maskTextFn:S,maskInputFn:k,slimDOM:ee,dataURLOptions:E,recordCanvas:P,inlineImages:G,onSerialize:function(e){Hh(e,td)&&ue.addIframe(e),qh(e,td)&&se.trackLinkElement(e),Jh(e)&&he.addShadowRoot(Rh.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),he.observeAttachShadow(e)},onStylesheetLoad:function(e,t){se.attachLinkElement(e,t)},keepIframeSrcFn:q});if(!t)return console.warn("Failed to snapshot the document");Hp({type:$h.FullSnapshot,data:{node:t,initialOffset:Dh(window)}},e),vp.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&se.adoptStyleSheets(document.adoptedStyleSheets,td.getId(document))}};try{var pe=[],de=function(e){var t;return dp(Op)({mutationCb:oe,mousemoveCb:function(e,t){return Hp({type:$h.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.MouseInteraction},e)})},scrollCb:ie,viewportResizeCb:function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.ViewportResize},e)})},inputCb:function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.Input},e)})},mediaInteractionCb:function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.StyleDeclaration},e)})},canvasMutationCb:ae,fontCb:function(e){return Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.Font},e)})},selectionCb:function(e){Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.Selection},e)})},customElementCb:function(e){Hp({type:$h.IncrementalSnapshot,data:Bn({source:Qh.CustomElement},e)})},blockClass:i,ignoreClass:l,ignoreSelector:f,maskTextClass:p,maskTextSelector:v,maskInputOptions:Q,inlineStylesheet:m,sampling:x,recordDOM:T,recordCanvas:P,inlineImages:G,userTriggeredOnInput:U,collectFonts:W,doc:e,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:q,blockSelector:s,slimDOMOptions:ee,dataURLOptions:E,mirror:td,iframeManager:ue,stylesheetManager:se,shadowDomManager:he,processedNodeManager:fe,canvasManager:Jp,ignoreCSSAttributes:Z,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Hp({type:$h.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},C)};ue.addLoadListener(function(e){try{pe.push(de(e.contentDocument))}catch(e){console.warn(e)}});var ve=function(){qp(),pe.push(de(document)),Kp=!0};return["interactive","complete"].includes(document.readyState)?ve():(pe.push(Th("DOMContentLoaded",function(){Hp({type:$h.DomContentLoaded,data:{}}),"DOMContentLoaded"===D&&ve()})),pe.push(Th("load",function(){Hp({type:$h.Load,data:{}}),"load"===D&&ve()},window))),function(){pe.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),fe.destroy(),Kp=!1,ap=void 0}}catch(e){console.warn(e)}}rd.addCustomEvent=function(e,t){if(!Kp)throw new Error("please add custom event after start recording");Hp({type:$h.Custom,data:{tag:e,payload:t}})},rd.freezePage=function(){vp.forEach(function(e){return e.freeze()})},rd.takeFullSnapshot=function(e){if(!Kp)throw new Error("please take full snapshot after start recording");qp(e)},rd.mirror=td,(ed=Qp||(Qp={}))[ed.NotStarted=0]="NotStarted",ed[ed.Running=1]="Running",ed[ed.Stopped=2]="Stopped";var nd=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}(nd||{});function od(e){return od="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},od(e)}function id(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sd(n.key),n)}}function ad(e,t,r){return(t=sd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sd(e){var t=function(e,t){if("object"!=od(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=od(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==od(t)?t:t+""}var ud=function(){return function(e,t,r){return t&&id(e.prototype,t),r&&id(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r=t.getIntervalMs,n=t.forceCheckout,o=t.marginMs,i=void 0===o?1e3:o,a=t.now,s=void 0===a?function(){return Date.now()}:a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ad(this,"_getIntervalMs",void 0),ad(this,"_forceCheckout",void 0),ad(this,"_marginMs",void 0),ad(this,"_now",void 0),ad(this,"_timerId",null),ad(this,"_lastCheckoutAt",null),ad(this,"_running",!1),this._getIntervalMs=r,this._forceCheckout=n,this._marginMs=i,this._now=s},[{key:"start",value:function(){this._running||(this._running=!0,this._lastCheckoutAt=this._now(),this._arm())}},{key:"stop",value:function(){this._running&&(this._running=!1,this._lastCheckoutAt=null,this._clearTimer())}},{key:"notify",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._now();this._running&&(this._lastCheckoutAt=e,this._arm())}},{key:"_arm",value:function(){var e=this;if(this._clearTimer(),this._running){var t=this._getIntervalMs()+this._marginMs;this._timerId=setTimeout(function(){return e._maybeForceCheckout()},t)}}},{key:"_maybeForceCheckout",value:function(){var e;if(this._running){var t=this._getIntervalMs(),r=null!==(e=this._lastCheckoutAt)&&void 0!==e?e:this._now();if(this._now()-r<t)this._arm();else{try{this._forceCheckout()}catch(e){Me.error("Replay: Forced checkout failed",e)}this._lastCheckoutAt=this._now(),this._arm()}}}},{key:"_clearTimer",value:function(){this._timerId&&(clearTimeout(this._timerId),this._timerId=null)}}])}(),ld=["enabled","autoStart","maxPreDuration","debug","emit","checkoutEveryNms"];function cd(e){return cd="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},cd(e)}function fd(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return hd(e,t);var r={}.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)?hd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function pd(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}function dd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pd(Object(r),!0).forEach(function(t){yd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,md(n.key),n)}}function yd(e,t,r){return(t=md(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function md(e){var t=function(e,t){if("object"!=cd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cd(t)?t:t+""}var gd=function(){function e(){var t,r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yd(this,"_options",void 0),yd(this,"_rrwebOptions",void 0),yd(this,"_isReady",!1),yd(this,"_stopFn",null),yd(this,"_recordFn",void 0),yd(this,"_checkoutWatchdog",void 0),yd(this,"_buffers",[[],[]]),yd(this,"_currentSlot",0),this.options=n,this._recordFn=n.recordFn||rd,!u(null===(t=this._recordFn)||void 0===t?void 0:t.takeFullSnapshot))throw new Error("Recorder requires a valid rrweb record function");this._checkoutWatchdog=new ud({getIntervalMs:function(){return r.checkoutEveryNms()},forceCheckout:function(){return r._recordFn.takeFullSnapshot(!0)}})}return function(e,t,r){return t&&vd(e.prototype,t),r&&vd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"_previousSlot",get:function(){return 1^this._currentSlot}},{key:"isRecording",get:function(){return null!==this._stopFn}},{key:"isReady",get:function(){return this._isReady}},{key:"options",get:function(){return this._options},set:function(e){this.configure(e)}},{key:"configure",value:function(e){var t=e.enabled,r=e.autoStart,n=e.maxPreDuration,o=e.debug,i=(e.emit,e.checkoutEveryNms,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ld));this._options={enabled:t,autoStart:r,maxPreDuration:n,debug:o},this._rrwebOptions=i,this.isRecording&&!1===e.enabled&&this.stop()}},{key:"checkoutEveryNms",value:function(){return 1e3*(this.options.maxPreDuration||10)/2}},{key:"bufferCursor",value:function(){return{slot:this._currentSlot,offset:this._buffers[this._currentSlot].length-1}}},{key:"exportRecordingSpan",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=o?this._collectEventsFromCursor(o):this._collectAll();if(0===i.length)throw new Error("Replay recording has no events");var a=e.startSpan("rrweb-replay-recording",{});a.setAttributes(dd(dd({},null!==(t=null===(r=e.session)||void 0===r?void 0:r.attributes)&&void 0!==t?t:{}),n));var s=i.reduce(function(e,t){return t.timestamp<e.timestamp?t:e});a.span.startTime=ce.fromMillis(s.timestamp);var u,l=fd(i);try{for(l.s();!(u=l.n()).done;){var c=u.value;a.addEvent("rrweb-replay-events",{eventType:c.type,json:JSON.stringify(c.data)},ce.fromMillis(c.timestamp))}}catch(e){l.e(e)}finally{l.f()}a.end()}},{key:"start",value:function(){var t=this;if(!this.isRecording&&!1!==this.options.enabled)return this.clear(),this._stopFn=this._recordFn(dd({emit:function(r,n){var o;t._isReady||r.type!==nd.FullSnapshot||(t._isReady=!0),null!==(o=t.options.debug)&&void 0!==o&&o.logEmits&&e._logEvent(r,n),n&&r.type===nd.Meta&&(t._currentSlot=t._previousSlot,t._buffers[t._currentSlot]=[],t._checkoutWatchdog.notify(r.timestamp)),t._buffers[t._currentSlot].push(r)},checkoutEveryNms:this.checkoutEveryNms(),errorHandler:function(e){var r;return null!==(r=t.options.debug)&&void 0!==r&&r.logErrors&&Me.error("Error during replay recording",e),!0}},this._rrwebOptions)),this._checkoutWatchdog.start(),this}},{key:"stop",value:function(){if(this.isRecording)return this._stopFn(),this._stopFn=null,this._isReady=!1,this._checkoutWatchdog.stop(),this}},{key:"clear",value:function(){this._buffers=[[],[]],this._currentSlot=0,this._isReady=!1,this._checkoutWatchdog.stop()}},{key:"_collectAll",value:function(){var t=this._buffers[this._previousSlot],r=this._buffers[this._currentSlot],n=t.concat(r);return n.length>0&&n.push(e._replayEndEvent()),n}},{key:"_collectEventsFromCursor",value:function(t){var r,n,o=this._currentSlot,i=null!==(r=this._buffers[t.slot])&&void 0!==r?r:[],a=this._buffers[o],s=i.slice(Math.max(0,t.offset+1)),u=t.slot===o?[]:a,l=s.concat(u);return null!==(n=this.options.debug)&&void 0!==n&&n.logErrors&&t.slot!==o&&0===s.length&&Me.warn("Captured lead buffer cleared by multiple checkouts"),l.length>0&&l.push(e._replayEndEvent()),l}}],[{key:"_replayEndEvent",value:function(){return{type:nd.Custom,timestamp:Date.now(),data:{tag:"replay.end",payload:{}}}}},{key:"_logEvent",value:function(e,t){Me.log("Recorder: ".concat(t?"checkout":""," event\n"),function(e){var t=new WeakSet;return JSON.stringify(e,function(e,r){if("object"===cd(r)&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}(e))}}])}();function bd(e){return bd="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},bd(e)}function wd(e){return function(e){if(Array.isArray(e))return Sd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kd(e)||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.")}()}function kd(e,t){if(e){if("string"==typeof e)return Sd(e,t);var r={}.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)?Sd(e,t):void 0}}function Sd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Cd(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}function Id(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(r),!0).forEach(function(t){xd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Od(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_d(n.key),n)}}function xd(e,t,r){return(t=_d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _d(e){var t=function(e,t){if("object"!=bd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bd(t)?t:t+""}var Ed=function(){return function(e,t,r){return t&&Od(e.prototype,t),r&&Od(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xd(this,"maxAdjustedCount",Math.pow(2,56)),this.configure(t),this.predicates={occurrence:[this.isLevelMatching.bind(this),this.isPredicateFnMatching.bind(this),this.isSampled.bind(this)],navigation:[this.isPathMatching.bind(this),this.isPredicateFnMatching.bind(this),this.isSampled.bind(this)],direct:[this.isTagMatching.bind(this),this.isPredicateFnMatching.bind(this),this.isSampled.bind(this)]}},[{key:"configure",value:function(e){this.config=e||{},this.triggers=this._triggersWithDefaults(e),this.maxPreDuration=this._maxPreDuration()}},{key:"_triggersWithDefaults",value:function(e){return((null==e?void 0:e.triggers)||[]).map(function(t){return Id(Id({},e.triggerDefaults),t)})}},{key:"_maxPreDuration",value:function(){return this.triggers?Math.max.apply(Math,wd(this.triggers.map(function(e){return e.preDuration||0})).concat([0])):0}},{key:"shouldCaptureForTriggerContext",value:function(e){var t,r=this.predicates[e.type],n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=kd(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(this.triggers);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(o.type===e.type&&this.isEnabledForTrigger(o,r,e))return o}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"isEnabledForTrigger",value:function(e,t,r){return!t.find(function(t){return!t(e,r)})}},{key:"isLevelMatching",value:function(e,t){return!(e.level&&!e.level.includes(t.level))}},{key:"isPathMatching",value:function(e,t){var r=t.path,n=e.pathMatch;if(!n)return!0;if(!r)return!1;if("string"==typeof n){if(r.includes(n))return!0}else if(r.match(n))return!0;return!1}},{key:"isTagMatching",value:function(e,t){var r;return!e.tags||!(null===(r=t.tags)||void 0===r||!r.some(function(t){return e.tags.includes(t)}))}},{key:"isPredicateFnMatching",value:function(e,t){return"function"!=typeof e.predicateFn||e.predicateFn(e,t)}},{key:"isSampled",value:function(e,t){var r,n=null!==(r=e.samplingRatio)&&void 0!==r?r:1;return 1===n||t.replayId.slice(-14)>=(this.maxAdjustedCount*(1-n)).toString(16).padStart(14,"0")}}])}();function Ad(e){return Ad="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},Ad(e)}function Rd(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Td(e,t);var r={}.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)?Td(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Td(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Md(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return Pd(l,"_invoke",function(r,n,o){var i,s,u,l=0,c=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,u=e,h.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!f&&l&&!o&&t<c.length;t++){var o,i=c[t],p=h.p,d=i[2];r>3?(o=d===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,h.v=n,h.n=i[1]):p<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,h.n=d,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,d),s=c,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:r.call(n,h))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Pd(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Pd(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,Pd(f,"constructor",l),Pd(l,"constructor",u),u.displayName="GeneratorFunction",Pd(l,o,"GeneratorFunction"),Pd(f),Pd(f,o,"Generator"),Pd(f,n,function(){return this}),Pd(f,"toString",function(){return"[object Generator]"}),(Md=function(){return{w:i,m:h}})()}function Pd(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Pd=function(e,t,r,n){function i(t,r){Pd(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Pd(e,t,r,n)}function jd(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Nd(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){jd(i,n,o,a,s,"next",e)}function s(e){jd(i,n,o,a,s,"throw",e)}a(void 0)})}}function Ld(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fd(n.key),n)}}function Dd(e,t,r){return(t=Fd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fd(e){var t=function(e,t){if("object"!=Ad(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ad(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ad(t)?t:t+""}var Ud=function(){return function(e,t,r){return t&&Ld(e.prototype,t),r&&Ld(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r=t.recorder,n=t.tracing,o=t.telemeter,i=t.shouldSend,a=t.onComplete;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Dd(this,"_recorder",void 0),Dd(this,"_tracing",void 0),Dd(this,"_telemeter",void 0),Dd(this,"_pending",new Map),Dd(this,"_shouldSend",void 0),Dd(this,"_onComplete",void 0),this._recorder=r,this._tracing=n,this._telemeter=o,this._shouldSend=i,this._onComplete=a},[{key:"schedule",value:function(e,t,r){var n=this,o=Date.now(),i=o+1e3*r,a=this._recorder.checkoutEveryNms(),s=this._recorder.bufferCursor(),u=setInterval(function(){n._export(e)},a),l=setTimeout(function(){n._finalExport(e)},1e3*r);this._pending.set(e,{intervalId:u,endTimerId:l,startTime:o,endAt:i,postDuration:r,occurrenceUuid:t,cursor:s,chunkQueue:[],sending:!1,aborted:!1,finished:!1})}},{key:"_export",value:(r=Nd(Md().m(function e(t){var r,n,o,i,a,s;return Md().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!(!(n=this._pending.get(t))||n.aborted||n.finished||Date.now()>=n.endAt)){e.n=1;break}return e.a(2);case 1:o=n.cursor,i=this._recorder.bufferCursor(),e.p=2,this._recorder.exportRecordingSpan(this._tracing,{"rollbar.replay.id":t,"rollbar.occurrence.uuid":n.occurrenceUuid},o),e.n=4;break;case 3:return e.p=3,s=e.v,Me.debug("Error exporting leading chunk (tick):",s),e.a(2);case 4:return null===(r=this._telemeter)||void 0===r||r.exportTelemetrySpan({"rollbar.replay.id":t}),a=this._tracing.exporter.toPayload(),n.chunkQueue.push({payload:a,cursor:o}),n.cursor=i,e.n=5,this.sendIfReady(t);case 5:return e.a(2)}},e,this,[[2,3]])})),function(e){return r.apply(this,arguments)})},{key:"_finalExport",value:(t=Nd(Md().m(function e(t){var r,n,o,i,a,s;return Md().w(function(e){for(;;)switch(e.n){case 0:if((r=this._pending.get(t))&&!r.aborted){e.n=1;break}return e.a(2);case 1:r.intervalId&&clearInterval(r.intervalId),r.endTimerId&&clearTimeout(r.endTimerId),r.finished=!0,n=r.cursor,o=this._recorder.bufferCursor();try{this._recorder.exportRecordingSpan(this._tracing,{"rollbar.replay.id":t,"rollbar.occurrence.uuid":r.occurrenceUuid},n),null===(i=this._telemeter)||void 0===i||i.exportTelemetrySpan({"rollbar.replay.id":t}),a=this._tracing.exporter.toPayload(),r.chunkQueue.push({payload:a,cursor:n}),r.cursor=o}catch(e){Me.debug("Error exporting leading chunk (final):",e)}if(r.sending||0!==r.chunkQueue.length){e.n=2;break}return this._pending.delete(t),null===(s=this._onComplete)||void 0===s||s.call(this,t),e.a(2);case 2:return e.n=3,this.sendIfReady(t);case 3:return e.a(2)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"sendIfReady",value:(e=Nd(Md().m(function e(t){var r,n,o,i,a,s,u,l;return Md().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=this._pendingContextIfReady(t)){e.n=1;break}return e.a(2);case 1:if(!r.finished||r.sending||0!==r.chunkQueue.length){e.n=2;break}return this._pending.delete(t),null===(n=this._onComplete)||void 0===n||n.call(this,t),e.a(2);case 2:r.sending=!0,o=Rd(r.chunkQueue),e.p=3,o.s();case 4:if((i=o.n()).done){e.n=10;break}if(a=i.value,!r.aborted){e.n=5;break}return e.a(3,10);case 5:if(this._shouldSend(t)){e.n=6;break}throw Me.error("Coordination check failed during chunk send"),this.discard(t),new Error("Coordination check failed during chunk send");case 6:return e.p=6,e.n=7,this._tracing.exporter.post(a.payload,{"X-Rollbar-Replay-Id":t});case 7:e.n=9;break;case 8:throw e.p=8,u=e.v,Me.error("Failed to send leading replay:",u),this.discard(t),u;case 9:e.n=4;break;case 10:e.n=12;break;case 11:e.p=11,l=e.v,o.e(l);case 12:return e.p=12,o.f(),e.f(12);case 13:r.sending=!1,r.chunkQueue=[],r.finished&&(this._pending.delete(t),null===(s=this._onComplete)||void 0===s||s.call(this,t));case 14:return e.a(2)}},e,this,[[6,8],[3,11,12,13]])})),function(t){return e.apply(this,arguments)})},{key:"discard",value:function(e){var t,r=this._pending.get(e);r&&(r.aborted=!0,r.intervalId&&clearInterval(r.intervalId),r.endTimerId&&clearTimeout(r.endTimerId),r.chunkQueue=[],this._pending.delete(e),null===(t=this._onComplete)||void 0===t||t.call(this,e))}},{key:"_pendingContextIfReady",value:function(e){var t=this._pending.get(e);return t&&!t.aborted&&!t.sending&&t.chunkQueue.length>0&&this._shouldSend(e)?t:null}}]);var e,t,r}();function Bd(e){return Bd="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},Bd(e)}function Wd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zd(e,t);var r={}.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)?zd(e,t):void 0}}(e,t)||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.")}()}function zd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Gd(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return Vd(l,"_invoke",function(r,n,o){var i,s,u,l=0,c=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,u=e,h.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!f&&l&&!o&&t<c.length;t++){var o,i=c[t],p=h.p,d=i[2];r>3?(o=d===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,h.v=n,h.n=i[1]):p<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,h.n=d,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,d),s=c,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:r.call(n,h))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Vd(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Vd(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,Vd(f,"constructor",l),Vd(l,"constructor",u),u.displayName="GeneratorFunction",Vd(l,o,"GeneratorFunction"),Vd(f),Vd(f,o,"Generator"),Vd(f,n,function(){return this}),Vd(f,"toString",function(){return"[object Generator]"}),(Gd=function(){return{w:i,m:h}})()}function Vd(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vd=function(e,t,r,n){function i(t,r){Vd(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Vd(e,t,r,n)}function Hd(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function qd(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Hd(i,n,o,a,s,"next",e)}function s(e){Hd(i,n,o,a,s,"throw",e)}a(void 0)})}}function Jd(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}function Zd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(r),!0).forEach(function(t){Xd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Yd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kd(n.key),n)}}function Xd(e,t,r){return(t=Kd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kd(e){var t=function(e,t){if("object"!=Bd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Bd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bd(t)?t:t+""}var $d=Object.freeze({PENDING:"pending",SENT:"sent",FAILED:"failed",SKIPPED:"skipped"}),Qd=function(){function e(t){var r=t.tracing,n=t.telemeter,o=t.options;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xd(this,"_map",void 0),Xd(this,"_options",void 0),Xd(this,"_recorder",void 0),Xd(this,"_tracing",void 0),Xd(this,"_telemeter",void 0),Xd(this,"_scheduledCapture",void 0),Xd(this,"_trailingStatus",void 0),!r)throw new TypeError("Expected 'tracing' to be provided");this._map=new Map,this._options=o,this._predicates=new Ed(o),this._recorder=new gd(Zd(Zd({},o),{},{maxPreDuration:this._predicates.maxPreDuration})),this._tracing=r,this._telemeter=n,this._trailingStatus=new Map,this._scheduledCapture=new Ud({recorder:this._recorder,tracing:this._tracing,telemeter:this._telemeter,shouldSend:this._shouldSendScheduled.bind(this),onComplete:this._onScheduledComplete.bind(this)}),this._tracing.addSpanTransform(this.uuidsTransform.bind(this))}return function(e,t,r){return t&&Yd(e.prototype,t),r&&Yd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"_onScheduledComplete",value:function(e){this._trailingStatus.delete(e)}},{key:"_shouldSendScheduled",value:function(e){var t=this._trailingStatus.get(e);return t===$d.SENT||t===$d.SKIPPED}},{key:"configure",value:function(e){this._options=e,this._predicates.configure(e),this._recorder.configure(Zd(Zd({},e),{},{maxPreDuration:this._predicates.maxPreDuration}))}},{key:"_exportSpansAndAddTracingPayload",value:(o=qd(Gd().m(function e(t,r,n,o){var i,a,s,u;return Gd().w(function(e){for(;;)switch(e.p=e.n){case 0:e.p=0,this._recorder.exportRecordingSpan(this._tracing,{"rollbar.replay.id":t,"rollbar.occurrence.uuid":r,"rollbar.replay.trigger.type":n.type,"rollbar.replay.trigger.context":JSON.stringify(o),"rollbar.replay.trigger":JSON.stringify(n),"rollbar.replay.url.full":v(window.location.href),"rollbar.replay.options":JSON.stringify(this._options||{})}),e.n=2;break;case 1:return e.p=1,u=e.v,Me.debug("Error exporting recording span:",u),e.a(2);case 2:null===(i=this._telemeter)||void 0===i||i.exportTelemetrySpan({"rollbar.replay.id":t}),a=this._tracing.exporter.toPayload(),this._map.set(t,a),(s=(null==n?void 0:n.postDuration)||0)>0&&(this._scheduledCapture.schedule(t,r,s),this._trailingStatus.set(t,$d.PENDING));case 3:return e.a(2)}},e,this,[[0,1]])})),function(e,t,r,n){return o.apply(this,arguments)})},{key:"capture",value:function(e,t,r){if(!this._recorder.isReady)return Me.warn("Replay.capture: Recorder is not ready, cannot export replay"),null;e=e||we.gen(8);var n=this._predicates.shouldCaptureForTriggerContext(Zd(Zd({},r),{},{replayId:e}));return n?(this._exportSpansAndAddTracingPayload(e,t,n,r),e):null}},{key:"triggerReplay",value:(n=qd(Gd().m(function e(t){var r,n,o,i;return Gd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=we.gen(8),n=this._predicates.shouldCaptureForTriggerContext(Zd(Zd({},t),{},{replayId:r}))){e.n=1;break}return e.a(2,null);case 1:if(!this._recorder.isReady){e.n=3;break}return e.n=2,this._exportSpansAndAddTracingPayload(r,null,n,t);case 2:e.n=4;break;case 3:this._trailingStatus.set(r,$d.SKIPPED),(i=(null===(o=this._recorder.options)||void 0===o?void 0:o.postDuration)||0)>0&&this._scheduledCapture.schedule(r,null,i);case 4:return e.p=4,e.n=5,this.send(r);case 5:e.n=7;break;case 6:return e.p=6,e.v,this.discard(r),e.a(2,null);case 7:return e.a(2,r)}},e,this,[[4,6]])})),function(e){return n.apply(this,arguments)})},{key:"sendOrDiscardReplay",value:(r=qd(Gd().m(function t(r,n,o,i){var a;return Gd().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!e._canSendReplay(n,o,i)){t.n=5;break}return t.p=1,t.n=2,this.send(r);case 2:t.n=4;break;case 3:t.p=3,a=t.v,Me.error("Failed to send replay:",a),this.discard(r);case 4:t.n=6;break;case 5:this.discard(r);case 6:return t.a(2)}},t,this,[[1,3]])})),function(e,t,n,o){return r.apply(this,arguments)})},{key:"send",value:(t=qd(Gd().m(function e(t){var r;return Gd().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}throw Error("Replay.send: No replayId provided");case 1:if(this._map.has(t)){e.n=2;break}throw Error("Replay.send: No replay found for id: ".concat(t));case 2:if(r=this._map.get(t),this._map.delete(t),!(!r||Array.isArray(r)&&0===r.length||r.resourceSpans&&0===r.resourceSpans.length)){e.n=3;break}throw Error("Replay.send: No payload found for id: ".concat(t));case 3:return e.n=4,this._tracing.exporter.post(r,{"X-Rollbar-Replay-Id":t});case 4:return this._trailingStatus.set(t,$d.SENT),e.n=5,this._scheduledCapture.sendIfReady(t);case 5:return e.a(2)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"discard",value:function(e){return e?(this._trailingStatus.set(e,$d.FAILED),this._scheduledCapture.discard(e),this._map.has(e)?(this._map.delete(e),this._trailingStatus.delete(e),!0):(Me.error("Replay.discard: No replay found for replayId: ".concat(e)),!1)):(Me.error("Replay.discard: No replayId provided"),!1)}},{key:"uuidsTransform",value:function(e){var t=ce.toMillis(e.startTime),r=this._telemeter.queue.filter(function(e){return e.timestamp_ms>=t&&e.uuid}),n=r.map(function(e){return e.uuid});e.attributes["rollbar.occurrence.uuids"]=JSON.stringify(n)}},{key:"getSpans",value:function(e){var t;return null!==(t=this._map.get(e))&&void 0!==t?t:null}},{key:"setSpans",value:function(e,t){this._map.set(e,t)}},{key:"clear",value:function(){this._map.clear()}},{key:"size",get:function(){return this._map.size}},{key:"recorder",get:function(){return this._recorder}}],[{key:"_canSendReplay",value:function(e,t,r){if(!r)return!1;var n=!e&&0===(null==t?void 0:t.err),o=Object.fromEntries(Object.entries(r).map(function(e){var t=Wd(e,2),r=t[0],n=t[1];return[r.toLowerCase(),String(n).trim()]})),i="true"===o["rollbar-replay-enabled"]&&"0"!==o["rollbar-replay-ratelimit-remaining"];return n&&i}}]);var t,r,n,o}();function ev(e){return"string"!=typeof e&&(e=String(e)),e.toLowerCase()}function tv(e){this.map={},e instanceof tv?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}tv.prototype.append=function(e,t){e=ev(e),t=function(e){return"string"!=typeof e&&(e=String(e)),e}(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},tv.prototype.get=function(e){return e=ev(e),this.has(e)?this.map[e]:null},tv.prototype.has=function(e){return c(this.map,ev(e))},tv.prototype.forEach=function(e,t){for(var r in this.map)c(this.map,r)&&e.call(t,this.map[r],r,this)},tv.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),function(e){return{next:function(){var t=e.shift();return{done:void 0===t,value:t}}}}(e)};var rv=function(e){return"undefined"==typeof Headers?new tv(e):new Headers(e)};var nv=function(e,t,r,n,o){var i=e[t];e[t]=r(i),n&&n[o].push([e,t,i])};function ov(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return iv(e,t);var r={}.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)?iv(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function iv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function av(e){return function(e){for(var t,r,n=[],o=0,i=e.length-1;i>=0;i--){if(t=sv(e[i]),r=o+3*n.length+t.length,i<e.length-1&&r>=83){n.unshift("...");break}n.unshift(t),o+=t.length}return n.join(" > ")}(function(e){for(var t,r=[],n=0;e&&n<5&&(t=uv(e))&&"html"!==t.tagName;n++)r.unshift(t),e=e.parentNode;return r}(e))}function sv(e){if(!e||!e.tagName)return"";var t=[e.tagName];e.id&&t.push("#"+e.id),e.classes&&t.push("."+e.classes.join("."));var r,n=ov(e.attributes);try{for(n.s();!(r=n.n()).done;){var o=r.value;t.push("["+o.key+'="'+o.value+'"]')}}catch(e){n.e(e)}finally{n.f()}return t.join("")}function uv(e){if(!e||!e.tagName)return null;var t,r={};r.tagName=e.tagName.toLowerCase(),e.id&&(r.id=e.id),(t=e.className)&&"string"==typeof t&&(r.classes=t.split(/\s+/));r.attributes=[];for(var n=0,o=["type","name","title","alt"];n<o.length;n++){var i=o[n],a=e.getAttribute(i);a&&r.attributes.push({key:i,value:a})}return r}function lv(e){return lv="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},lv(e)}function cv(e){return function(e){if(Array.isArray(e))return vv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dv(e)||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.")}()}function fv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hv(n.key),n)}}function hv(e){var t=function(e,t){if("object"!=lv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lv(t)?t:t+""}function pv(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=dv(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function dv(e,t){if(e){if("string"==typeof e)return vv(e,t);var r={}.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)?vv(e,t):void 0}}function vv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var yv={network:!0,networkResponseHeaders:!1,networkResponseBody:!1,networkRequestHeaders:!1,networkRequestBody:!1,networkErrorOnHttp5xx:!1,networkErrorOnHttp4xx:!1,networkErrorOnHttp0:!1,log:!0,dom:!0,navigation:!0,connectivity:!0,contentSecurityPolicy:!0,errorOnContentSecurityPolicy:!1};function mv(e,t){for(var r;e[t].length;)(r=e[t].shift())[0][r[1]]=r[2]}function gv(e){var t,r=[],n=pv(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;r.push(new RegExp(o,"i"))}}catch(e){n.e(e)}finally{n.f()}return function(e){var t=function(e){if(!e||!e.attributes)return null;var t,r=pv(e.attributes);try{for(r.s();!(t=r.n()).done;){var n=t.value;if("name"===n.key)return n.value}}catch(e){r.e(e)}finally{r.f()}return null}(e);if(!t)return!1;for(var n=0,o=r;n<o.length;n++){if(o[n].test(t))return!0}return!1}}var bv=function(){return function(e,t,r){return t&&fv(e.prototype,t),r&&fv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,r){(t=hv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"deinstrumentConnectivity",function(){this.removeListeners("connectivity")}),this.options=t;var s=t.autoInstrument;!1===t.enabled||!1===s?this.autoInstrument={}:(a(s,"object")||(s=yv),this.autoInstrument=P(yv,s)),this.configureScrubbing(),this.telemeter=r,this.rollbar=n,this.diagnostic=n.client.notifier.diagnostic,this._window=o||{},this._document=i||{},this.replacements={network:[],log:[],navigation:[],connectivity:[]},this.eventRemovers={dom:[],connectivity:[],contentsecuritypolicy:[]},this._location=this._window.location,this._lastHref=this._location&&this._location.href},[{key:"configureScrubbing",value:function(){var e,t,r,n,o,i,a,s,u,l,c=this.options;this.scrubTelemetryInputs=Boolean(null!==(e=c.scrubTelemetryInputs)&&void 0!==e?e:null===(t=c.replay)||void 0===t?void 0:t.maskAllInputs),this.telemetryScrubber=c.telemetryScrubber,this.defaultValueScrubber=gv(c.scrubFields),this.maskInputFn=null===(r=c.replay)||void 0===r?void 0:r.maskInputFn,this.maskInputOptions=(null===(n=c.replay)||void 0===n?void 0:n.maskInputOptions)||{},this.scrubClasses=[null===(o=c.replay)||void 0===o?void 0:o.blockClass,null===(i=c.replay)||void 0===i?void 0:i.ignoreClass,null===(a=c.replay)||void 0===a?void 0:a.maskTextClass].filter(Boolean),this.scrubSelectors=[null===(s=c.replay)||void 0===s?void 0:s.blockSelector,null===(u=c.replay)||void 0===u?void 0:u.ignoreSelector,null===(l=c.replay)||void 0===l?void 0:l.maskTextSelector].filter(Boolean)}},{key:"configure",value:function(e){this.options=P(this.options,e);var t=e.autoInstrument,r=P(this.autoInstrument);!1===e.enabled||!1===t?this.autoInstrument={}:(a(t,"object")||(t=yv),this.autoInstrument=P(yv,t)),this.configureScrubbing(),this.instrument(r)}},{key:"instrument",value:function(e){!this.autoInstrument.network||e&&e.network?!this.autoInstrument.network&&e&&e.network&&this.deinstrumentNetwork():this.instrumentNetwork(),!this.autoInstrument.log||e&&e.log?!this.autoInstrument.log&&e&&e.log&&this.deinstrumentConsole():this.instrumentConsole(),!this.autoInstrument.dom||e&&e.dom?!this.autoInstrument.dom&&e&&e.dom&&this.deinstrumentDom():this.instrumentDom(),!this.autoInstrument.navigation||e&&e.navigation?!this.autoInstrument.navigation&&e&&e.navigation&&this.deinstrumentNavigation():this.instrumentNavigation(),!this.autoInstrument.connectivity||e&&e.connectivity?!this.autoInstrument.connectivity&&e&&e.connectivity&&this.deinstrumentConnectivity():this.instrumentConnectivity(),!this.autoInstrument.contentSecurityPolicy||e&&e.contentSecurityPolicy?!this.autoInstrument.contentSecurityPolicy&&e&&e.contentSecurityPolicy&&this.deinstrumentContentSecurityPolicy():this.instrumentContentSecurityPolicy()}},{key:"deinstrumentNetwork",value:function(){mv(this.replacements,"network")}},{key:"instrumentNetwork",value:function(){var e=this;function t(t,r){t in r&&u(r[t])&&nv(r,t,function(t){return e.rollbar.wrap(t)})}if("XMLHttpRequest"in this._window){var r=this._window.XMLHttpRequest.prototype;nv(r,"open",function(e){return function(t,r){var n=wv(r);return(a(r,"string")||n)&&(r=n?r.toString():r,this.__rollbar_xhr?(this.__rollbar_xhr.method=t,this.__rollbar_xhr.url=r,this.__rollbar_xhr.status_code=null,this.__rollbar_xhr.start_time_ms=T(),this.__rollbar_xhr.end_time_ms=null):this.__rollbar_xhr={method:t,url:r,status_code:null,start_time_ms:T(),end_time_ms:null}),e.apply(this,arguments)}},this.replacements,"network"),nv(r,"setRequestHeader",function(t){return function(r,n){return this.__rollbar_xhr||(this.__rollbar_xhr={}),a(r,"string")&&a(n,"string")&&(e.autoInstrument.networkRequestHeaders&&(this.__rollbar_xhr.request_headers||(this.__rollbar_xhr.request_headers={}),this.__rollbar_xhr.request_headers[r]=n),"content-type"===r.toLowerCase()&&(this.__rollbar_xhr.request_content_type=n)),t.apply(this,arguments)}},this.replacements,"network"),nv(r,"send",function(r){return function(n){var o=this;function i(){if(o.__rollbar_xhr&&(null===o.__rollbar_xhr.status_code&&(o.__rollbar_xhr.status_code=0,e.autoInstrument.networkRequestBody&&(o.__rollbar_xhr.request=n),o.__rollbar_event=e.captureNetwork(o.__rollbar_xhr,"xhr",void 0)),o.readyState<2&&(o.__rollbar_xhr.start_time_ms=T()),o.readyState>3)){var t=T();o.__rollbar_xhr.end_time_ms=t;var r=null;if(o.__rollbar_xhr.response_content_type=o.getResponseHeader("Content-Type"),e.autoInstrument.networkResponseHeaders){var i=e.autoInstrument.networkResponseHeaders;r={};try{var a;if(!0===i){var s=o.getAllResponseHeaders();if(s){var u,l,c,f=pv(s.trim().split(/[\r\n]+/));try{for(f.s();!(c=f.n()).done;){a=(u=c.value.split(": ")).shift(),l=u.join(": "),r[a]=l}}catch(e){f.e(e)}finally{f.f()}}}else{var h,p=pv(i);try{for(p.s();!(h=p.n()).done;){var d=h.value;r[d]=o.getResponseHeader(d)}}catch(e){p.e(e)}finally{p.f()}}}catch(e){}}var v=null;if(e.autoInstrument.networkResponseBody)try{v=o.responseText}catch(e){}var y=null;(v||r)&&(y={},v&&(e.isJsonContentType(o.__rollbar_xhr.response_content_type)?y.body=e.scrubJson(v):y.body=v),r&&(y.headers=r)),y&&(o.__rollbar_xhr.response=y);try{var m=o.status;m=1223===m?204:m,o.__rollbar_xhr.status_code=m,e.addOtelNetworkResponse(o.__rollbar_event,t,m),o.__rollbar_event.level=e.telemeter.levelFromStatus(m),e.errorOnHttpStatus(o.__rollbar_xhr)}catch(e){}}}return t("onload",o),t("onerror",o),t("onprogress",o),"onreadystatechange"in o&&u(o.onreadystatechange)?nv(o,"onreadystatechange",function(t){return e.rollbar.wrap(t,void 0,i)}):o.onreadystatechange=i,o.__rollbar_xhr&&e.trackHttpErrors()&&(o.__rollbar_xhr.stack=(new Error).stack),r.apply(this,arguments)}},this.replacements,"network")}"fetch"in this._window&&nv(this._window,"fetch",function(t){return function(r,n){var o,i=Array.prototype.slice.call(arguments),s=i[0],u="GET",l=wv(s);a(s,"string")||l?o=l?s.toString():s:s&&(o=s.url,s.method&&(u=s.method)),i[1]&&i[1].method&&(u=i[1].method);var c={method:u,url:o,status_code:null,start_time_ms:T(),end_time_ms:null};if(i[1]&&i[1].headers){var f=rv(i[1].headers);c.request_content_type=f.get("Content-Type"),e.autoInstrument.networkRequestHeaders&&(c.request_headers=e.fetchHeaders(f,e.autoInstrument.networkRequestHeaders))}e.autoInstrument.networkRequestBody&&(i[1]&&i[1].body?c.request=i[1].body:i[0]&&!a(i[0],"string")&&i[0].body&&(c.request=i[0].body));var h=e.captureNetwork(c,"fetch",void 0);return e.trackHttpErrors()&&(c.stack=(new Error).stack),t.apply(this,i).then(function(t){var r=T();c.end_time_ms=r,c.status_code=t.status,e.addOtelNetworkResponse(h,r,t.status),c.response_content_type=t.headers.get("Content-Type");var n=null;e.autoInstrument.networkResponseHeaders&&(n=e.fetchHeaders(t.headers,e.autoInstrument.networkResponseHeaders));var o=null;return e.autoInstrument.networkResponseBody&&"function"==typeof t.text&&(o=t.clone().text()),(n||o)&&(c.response={},o&&("function"==typeof o.then?o.then(function(t){t&&e.isJsonContentType(c.response_content_type)?c.response.body=e.scrubJson(t):c.response.body=t}):c.response.body=o),n&&(c.response.headers=n)),e.errorOnHttpStatus(c),t})}},this.replacements,"network")}},{key:"captureNetwork",value:function(e,t,r){return e.request&&this.isJsonContentType(e.request_content_type)&&(e.request=this.scrubJson(e.request)),this.telemeter.captureNetwork(e,t,r)}},{key:"isJsonContentType",value:function(e){return!!(e&&a(e,"string")&&e.toLowerCase().includes("json"))}},{key:"addOtelNetworkResponse",value:function(e,t,r){e.otelAttributes&&(e.otelAttributes["response.timeUnixNano"]=(1e6*t).toString(),e.otelAttributes.statusCode=r)}},{key:"scrubJson",value:function(e){return JSON.stringify(B(JSON.parse(e),this.options.scrubFields))}},{key:"fetchHeaders",value:function(e,t){var r={};try{if(!0===t){if("function"==typeof e.entries)for(var n=e.entries(),o=n.next();!o.done;)r[o.value[0]]=o.value[1],o=n.next()}else{var i,a=pv(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;r[s]=e.get(s)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){}return r}},{key:"trackHttpErrors",value:function(){return this.autoInstrument.networkErrorOnHttp5xx||this.autoInstrument.networkErrorOnHttp4xx||this.autoInstrument.networkErrorOnHttp0}},{key:"errorOnHttpStatus",value:function(e){var t=e.status_code;if(t>=500&&this.autoInstrument.networkErrorOnHttp5xx||t>=400&&this.autoInstrument.networkErrorOnHttp4xx||0===t&&this.autoInstrument.networkErrorOnHttp0){var r=new Error("HTTP request failed with Status "+t);r.stack=e.stack,this.rollbar.error(r,{skipFrames:1})}}},{key:"deinstrumentConsole",value:function(){for(var e;this.replacements.log.length;)e=this.replacements.log.shift(),this._window.console[e[0]]=e[1]}},{key:"instrumentConsole",value:function(){var e;if(null!==(e=this._window)&&void 0!==e&&null!==(e=e.console)&&void 0!==e&&e.log){var t=this,r=this._window.console;try{for(var n=0,o=["debug","info","warn","error","log"];n<o.length;n++){i(o[n])}}catch(e){this.diagnostic.instrumentConsole={error:e.message}}}function i(e){var n=r[e],o=r,i="warn"===e?"warning":e;r[e]=function(){var e=Array.prototype.slice.call(arguments),r=function(e){var t,r,n,o=[];for(t=0,r=e.length;t<r;++t){switch(s(n=e[t])){case"object":(n=(n=b(n)).error||n.value).length>500&&(n=n.substr(0,497)+"...");break;case"null":n="null";break;case"undefined":n="undefined";break;case"symbol":n=n.toString()}o.push(n)}return o.join(" ")}(e);t.telemeter.captureLog(r,i,null,T()),n&&Function.prototype.apply.call(n,o,e)},t.replacements.log.push([e,n])}}},{key:"deinstrumentDom",value:function(){this.removeListeners("dom")}},{key:"instrumentDom",value:function(){var e=this;this.addListener("dom",this._window,["click","dblclick","contextmenu"],function(t){return e.handleEvent("click",t)}),this.addListener("dom",this._window,["dragstart","dragend","dragenter","dragleave","drop"],function(t){return e.handleEvent("dragdrop",t)}),this.addListener("dom",this._window,["blur","focus"],function(t){return e.handleEvent("focus",t)}),this.addListener("dom",this._window,["submit","invalid"],function(t){return e.handleEvent("form",t)}),this.addListener("dom",this._window,["input","change"],function(t){return e.handleEvent("input",t)}),this.addListener("dom",this._window,["resize"],function(t){return e.handleEvent("resize",t)}),this.addListener("dom",this._document,["DOMContentLoaded"],function(t){return e.handleEvent("contentLoaded",t)})}},{key:"handleEvent",value:function(e,t){try{return{click:this.handleClick,dragdrop:this.handleDrag,focus:this.handleFocus,form:this.handleForm,input:this.handleInput,resize:this.handleResize,contentLoaded:this.handleContentLoaded}[e].call(this,t)}catch(r){Me.log("".concat(e," handler error"),t,r,r.stack)}}},{key:"handleContentLoaded",value:function(e){this.rollbar.triggerReplay({type:"navigation",path:new URL(this._location.href).pathname})}},{key:"handleClick",value:function(e){var t,r=null===(t=e.target)||void 0===t?void 0:t.tagName.toLowerCase();["input","select","textarea"].includes(r)||this.telemeter.captureClick({type:e.type,isSynthetic:!e.isTrusted,element:av(e.target),timestamp:T()})}},{key:"handleFocus",value:function(e){var t,r=e.type,n=null!==(t=e.target)&&void 0!==t&&t.window?"window":av(e.target);this.telemeter.captureFocus({type:r,isSynthetic:!e.isTrusted,element:n,timestamp:T()})}},{key:"handleForm",value:function(e){}},{key:"handleResize",value:function(e){var t=window.screen.width/window.innerWidth;this.telemeter.captureResize({type:e.type,isSynthetic:!e.isTrusted,width:window.innerWidth,height:window.innerHeight,textZoomRatio:t,timestamp:T()})}},{key:"handleDrag",value:function(e){var t,r,n,o,i,a,s=e.type;if("drop"===s){t=[],r=[];var u,l=pv([].concat(cv(e.dataTransfer.files),cv(e.dataTransfer.items)));try{for(l.s();!(u=l.n()).done;){var c=u.value;c.kind&&c.type&&(t.push(c.kind),r.push(c.type))}}catch(e){l.e(e)}finally{l.f()}}["drop","dragstart"].includes(s)&&(n=null===(i=e.dataTransfer)||void 0===i?void 0:i.dropEffect,o=null===(a=e.dataTransfer)||void 0===a?void 0:a.effectAllowed);this.telemeter.captureDragDrop({type:s,isSynthetic:!e.isTrusted,element:av(e.target),dropEffect:n,effectAllowed:o,kinds:JSON.stringify(t),mediaTypes:JSON.stringify(r),timestamp:T()})}},{key:"scrubInputValue",value:function(e,t,r,n){var o="******";if("password"===n)return o;if(this.scrubTelemetryInputs)return o;var i=uv(t);if(this.telemetryScrubber){if(this.telemetryScrubber(i))return o}else if(this.defaultValueScrubber(i))return o;return function(e,t,r){try{var n,o=ov(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;if("string"==typeof i){if(e.classList.contains(i))return!0}else{var a,s=ov(e.classList);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(i.test(u))return!0}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){o.e(e)}finally{o.f()}var l,c=ov(r);try{for(c.s();!(l=c.n()).done;){var f=l.value;if(e.matches(f))return!0}}catch(e){c.e(e)}finally{c.f()}}catch(e){}return!1}(t,this.scrubClasses,this.scrubSelectors)?o:this.maskInputOptions[r.toLowerCase()]||this.maskInputOptions[n]?this.maskInputFn?this.maskInputFn(e,t):o:e}},{key:"handleInput",value:function(e){var t,r,n,o,i=e.type,a=null===(t=e.target)||void 0===t?void 0:t.tagName.toLowerCase(),s=null===(r=e.target)||void 0===r?void 0:r.value,u=(null===(n=e.target)||void 0===n||null===(n=n.attributes)||void 0===n||null===(n=n.type)||void 0===n?void 0:n.value)||(null===(o=e.target)||void 0===o?void 0:o.type);switch(void 0!==s&&(s=this.scrubInputValue(s,e.target,a,u)),i){case"input":if(["radio","checkbox"].includes(u))return;["select","textarea"].includes(a)&&(u=a);break;case"change":if(!["radio","checkbox"].includes(u))return;var l;if("checkbox"===u)s=null===(l=e.target)||void 0===l?void 0:l.checked}this.telemeter.captureInput({type:u,isSynthetic:!e.isTrusted,element:av(e.target),value:s,timestamp:T()})}},{key:"deinstrumentNavigation",value:function(){var e=this._window.chrome;!(e&&e.app&&e.app.runtime)&&this._window.history&&this._window.history.pushState&&mv(this.replacements,"navigation")}},{key:"instrumentNavigation",value:function(){var e=this._window.chrome;if(!(e&&e.app&&e.app.runtime)&&this._window.history&&this._window.history.pushState){var t=this;nv(this._window,"onpopstate",function(e){return function(){var r=t._location.href;t.handleUrlChange(t._lastHref,r),e&&e.apply(this,arguments)}},this.replacements,"navigation"),nv(this._window.history,"pushState",function(e){return function(){var r=arguments.length>2?arguments[2]:void 0;return r&&t.handleUrlChange(t._lastHref,String(r)),e.apply(this,arguments)}},this.replacements,"navigation")}}},{key:"handleUrlChange",value:function(e,t){var r=pn(this._location.href),n=pn(t),o=pn(e);this._lastHref=t,r.protocol===n.protocol&&r.host===n.host&&(t=n.path+(n.hash||"")),r.protocol===o.protocol&&r.host===o.host&&(e=o.path+(o.hash||"")),this.telemeter.captureNavigation(e,t,null,T()),this.rollbar.triggerReplay({type:"navigation",path:t})}},{key:"instrumentConnectivity",value:function(){var e=this;this.addListener("connectivity",this._window,["online","offline"],function(t){return e.handleConnectivity(t)})}},{key:"handleConnectivity",value:function(e){var t=e.type;this.telemeter.captureConnectivityChange({type:t,isSynthetic:!e.isTrusted,timestamp:T()})}},{key:"handleCspEvent",value:function(e){var t="Security Policy Violation: blockedURI: "+e.blockedURI+", violatedDirective: "+e.violatedDirective+", effectiveDirective: "+e.effectiveDirective+", ";e.sourceFile&&(t+="location: "+e.sourceFile+", line: "+e.lineNumber+", col: "+e.columnNumber+", "),t+="originalPolicy: "+e.originalPolicy,this.telemeter.captureLog(t,"error",null,T()),this.handleCspError(t)}},{key:"handleCspError",value:function(e){this.autoInstrument.errorOnContentSecurityPolicy&&this.rollbar.error(e)}},{key:"deinstrumentContentSecurityPolicy",value:function(){this.removeListeners("contentsecuritypolicy")}},{key:"instrumentContentSecurityPolicy",value:function(){if("addEventListener"in this._document){var e=this.handleCspEvent.bind(this);this.addListener("contentsecuritypolicy",this._document,["securitypolicyviolation"],e)}}},{key:"addListener",value:function(e,t,r,n){var o=this;if(t.addEventListener){var i,a=pv(r);try{var s=function(){var r=i.value,a={capture:!0,passive:!0};t.addEventListener(r,n,a,!0),o.eventRemovers[e].push(function(){t.removeEventListener(r,n,a)})};for(a.s();!(i=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}}}},{key:"removeListeners",value:function(e){for(;this.eventRemovers[e].length;)this.eventRemovers[e].shift()()}}])}();function wv(e){return"undefined"!=typeof URL&&e instanceof URL}var kv=bv;function Sv(e,t,r){if(c(t,"addEventListener")){for(var n=t.addEventListener;n._rollbarOldAdd&&n.belongsToShim;)n=n._rollbarOldAdd;var o=function(t,r,o){n.call(this,t,e.wrap(r),o)};o._rollbarOldAdd=n,o.belongsToShim=r,t.addEventListener=o;for(var i=t.removeEventListener;i._rollbarOldRemove&&i.belongsToShim;)i=i._rollbarOldRemove;var a=function(e,t,r){i.call(this,e,t&&t._rollbar_wrapped||t,r)};a._rollbarOldRemove=i,a.belongsToShim=r,t.removeEventListener=a}}var Cv=function(e,t,r){if(e){var n,o,i="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(n=0;n<i.length;++n)e[o=i[n]]&&e[o].prototype&&Sv(t,e[o].prototype,r)}};In.setComponents({telemeter:$,instrumenter:kv,wrapGlobals:Cv,scrub:B,truncation:bt,tracing:at,replay:Qd});var Iv=In;"undefined"==typeof window||window._rollbarStartTime||(window._rollbarStartTime=(new Date).getTime());var Ov=Iv;return t=t.default}()});
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.rollbar=t():e.rollbar=t()}(this,function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.d(t,{default:function(){return _v}});var r={};function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.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)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return i="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},i(e)}function a(e,t){return t===s(e)}function s(e){var t=i(e);return"object"!==t?t:e?e instanceof Error?"error":{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function u(e){return a(e,"function")}function l(e){return null!=e&&("object"==i(e)||"function"==typeof e)}function c(e,t){return null!=e&&(Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t))}function f(e){return Number.isFinite(e)}function h(e){return a(e,"error")||a(e,"exception")}function p(){return"********"}e.r(r),e.d(r,{parse:function(){return vn}});var d={debug:0,info:1,warning:2,error:3,critical:4};function v(e){try{var t=new URL(e);return t.password&&(t.password="********"),t.search&&(t.search="********"),t.toString()}catch(t){return e}}function y(e){var t=function(e){if(!a(e,"string"))return;for(var t=m,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},o=0,i=t.key.length;o<i;++o)n[t.key[o]]=r[o]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,o){r&&(n[t.q.name][r]=o)}),n}(e);return t?(""===t.anchor&&(t.source=t.source.replace("#","")),e=t.source.replace("?"+t.query,"")):"(unknown)"}var m={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function g(e,t){if(!(t=t||e.protocol)&&e.port&&(80===e.port?t="http:":443===e.port&&(t="https:")),t=t||"https:",!e.hostname)return null;var r=t+"//"+e.hostname;return e.port&&(r=r+":"+e.port),e.path&&(r+=e.path),r}function b(e,t){var r,n;try{r=JSON.stringify(e)}catch(o){if(t&&u(t))try{r=t(e)}catch(e){n=e}else n=o}return{error:n,value:r}}function w(e){var t,r;try{t=JSON.parse(e)}catch(e){r=e}return{error:r,value:t}}function k(e,t,r,n,o,i,a,s){var u={url:t||"",line:r,column:n};u.func=s.guessFunctionName(u.url,u.line),u.context=s.gatherContext(u.url,u.line);var l="undefined"!=typeof document&&document&&document.location&&document.location.href,c="undefined"!=typeof window&&window&&window.navigator&&window.navigator.userAgent;return{mode:i,message:o?String(o):e||a,url:l,stack:[u],useragent:c}}function S(e,t){return function(r,n){try{t(r,n)}catch(t){e.error(t)}}}function C(e){return function e(t,r){var n,o,i,u={};try{for(o in t)(n=t[o])&&(a(n,"object")||a(n,"array"))?r.includes(n)?u[o]="Removed circular reference: "+s(n):((i=r.slice()).push(n),u[o]=e(n,i)):u[o]=n}catch(e){u="Failed cloning custom data: "+e.message}return u}(e,[e])}function I(e,t,r,n,o){for(var i,a,u,l,c,f,h=[],p=[],d=0,v=e.length;d<v;++d){var y=s(f=e[d]);switch(p.push(y),y){case"undefined":break;case"string":i?h.push(f):i=f;break;case"function":l=S(t,f);break;case"date":h.push(f);break;case"error":case"domexception":case"exception":a?h.push(f):a=f;break;case"object":case"array":if(f instanceof Error||"undefined"!=typeof DOMException&&f instanceof DOMException){a?h.push(f):a=f;break}if(n&&"object"===y&&!c){for(var m=0,g=n.length;m<g;++m)if(void 0!==f[n[m]]){c=f;break}if(c)break}u?h.push(f):u=f;break;default:if(f instanceof Error||"undefined"!=typeof DOMException&&f instanceof DOMException){a?h.push(f):a=f;break}h.push(f)}}u&&(u=C(u)),h.length>0&&(u||(u=C({})),u.extraArgs=C(h));var b,w={message:i,err:a,custom:u,timestamp:T(),callback:l,notifier:r,diagnostic:{},uuid:(b=T(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(b+16*Math.random())%16|0;return b=Math.floor(b/16),("x"===e?t:7&t|8).toString(16)}))};return w.data=w.data||{},function(e,t){t&&void 0!==t.level&&(e.level=t.level,delete t.level);t&&void 0!==t.skipFrames&&(e.skipFrames=t.skipFrames,delete t.skipFrames)}(w,u),n&&c&&(w.request=c),o&&(w.lambdaContext=o),w._originalArgs=e,w.diagnostic.original_arg_types=p,w}var O=["log","network","dom","navigation","error","manual"],x=["critical","error","warning","info","debug"];function _(e,t){var r,o=n(e);try{for(o.s();!(r=o.n()).done;){if(r.value===t)return!0}}catch(e){o.e(e)}finally{o.f()}return!1}function E(e,t){e.attributes=e.attributes||[];var r,o=n(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;void 0!==i.value&&e.attributes.push(i)}}catch(e){o.e(e)}finally{o.f()}}function A(e,t){if(e){var r=t.split("."),n=e;try{for(var o=0,i=r.length;o<i;++o)n=n[r[o]]}catch(e){n=void 0}return n}}function R(e,t,r){if(e){Object.setPrototypeOf(e,null);var n=t.split("."),o=n.length;if(!(o<1))if(1!==o)try{for(var i=e[n[0]]||{},a=i,s=1;s<o-1;++s)i[n[s]]=i[n[s]]||{},i=i[n[s]];i[n[o-1]]=r,e[n[0]]=a}catch(e){return}else e[n[0]]=r}}function T(){return Date.now?Date.now():Number(new Date)}function M(e,t,r,n){var o=P(e,t,r);return o=function(e,t){e.hostWhiteList&&!e.hostSafeList&&(e.hostSafeList=e.hostWhiteList,e.hostWhiteList=void 0,t&&t.log("hostWhiteList is deprecated. Use hostSafeList."));e.hostBlackList&&!e.hostBlockList&&(e.hostBlockList=e.hostBlackList,e.hostBlackList=void 0,t&&t.log("hostBlackList is deprecated. Use hostBlockList."));return e}(o,n),!t||t.overwriteScrubFields||t.scrubFields&&(o.scrubFields=(e.scrubFields||[]).concat(t.scrubFields)),o}function P(){function e(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t,r=c(e,"constructor"),n=e.constructor&&e.constructor.prototype&&c(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||c(e,t)}var t,r,n,o,i,a=Object.create(null),s=null,u=arguments.length;for(t=0;t<u;t++)if(null!=(s=arguments[t]))for(i in s)r=a[i],a!==(n=s[i])&&(n&&e(n)?(o=r&&e(r)?r:{},a[i]=P(o,n)):void 0!==n&&(a[i]=n));return a}function j(e,t,r){var n;if(null==t||!t.sessionId||!r)return!1;var o=null==e||null===(n=e.tracing)||void 0===n?void 0:n.propagation,i=null==o?void 0:o.enabledHeaders;if(!Array.isArray(i)||!i.includes("baggage"))return!1;var s=null==o?void 0:o.enabledCorsUrls;return!(!Array.isArray(s)||0===s.length)&&s.some(function(e){return a(e,"string")?r===e:!!a(e,"regexp")&&e.test(r)})}function N(e,t){var r,n=e[1],o=null===(r=n)||void 0===r?void 0:r.headers,i=function(e){return"undefined"!=typeof Request&&e instanceof Request}(e[0])&&e[0].headers,a=o||i;if(a||(n||(e[1]=n={}),a=n.headers={}),a instanceof Headers)for(var s=0,u=Object.keys(t);s<u.length;s++){var c=u[s];a.append(c,t[c])}else if(l(a))for(var f=0,h=Object.keys(t);f<h.length;f++){var p=h[f];a[p]=t[p]}}var L=function(e,t,r){var n,o,i,s,u=a(e,"object"),l=a(e,"array"),f=[];if(r=r||{obj:[],mapped:[]},u){if(s=r.obj.indexOf(e),u&&-1!==s)return r.mapped[s]||r.obj[s];r.obj.push(e),s=r.obj.length-1}if(u)for(n in e)c(e,n)&&f.push(n);else if(l)for(i=0;i<e.length;++i)f.push(i);var h=u?{}:[],p=!0;for(i=0;i<f.length;++i)o=e[n=f[i]],h[n]=t(n,o,r),p=p&&h[n]===e[n];return u&&!p&&(r.mapped[s]=h),p?e:h};function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||U(e,t)||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.")}()}function F(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=U(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function U(e,t){if(e){if("string"==typeof e)return B(e,t);var r={}.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)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t){var r=t.split("."),n=r.length-1;try{var o,i=F(r.entries());try{for(i.s();!(o=i.n()).done;){var a=D(o.value,2),s=a[0],u=a[1];s<n?e=e[u]:e[u]=p()}}catch(e){i.e(e)}finally{i.f()}}catch(e){}}var z=function(e,t,r){if(t=t||[],r){var n,o=F(r);try{for(o.s();!(n=o.n()).done;){W(e,n.value)}}catch(e){o.e(e)}finally{o.f()}}var i=function(e){var t,r=[],n=F(e);try{for(n.s();!(t=n.n()).done;){var o="^\\[?(%5[bB])?"+t.value+"\\[?(%5[bB])?\\]?(%5[dD])?$";r.push(new RegExp(o,"i"))}}catch(e){n.e(e)}finally{n.f()}return r}(t),s=function(e){var t,r=[],n=F(e);try{for(n.s();!(t=n.n()).done;){var o="\\[?(%5[bB])?"+t.value+"\\[?(%5[bB])?\\]?(%5[dD])?";r.push(new RegExp("("+o+"=)([^&\\n]+)","igm"))}}catch(e){n.e(e)}finally{n.f()}return r}(t);function u(e,t){return t+"********"}return L(e,function e(t,r,n){var o=function(e,t){var r,n=F(i);try{for(n.s();!(r=n.n()).done;)if(r.value.test(e)){t=p();break}}catch(e){n.e(e)}finally{n.f()}return t}(t,r);return o===r?a(r,"object")||a(r,"array")?L(r,e,n):function(e){if(a(e,"string")){var t,r=F(s);try{for(r.s();!(t=r.n()).done;){var n=t.value;e=e.replace(n,u)}}catch(e){r.e(e)}finally{r.f()}}return e}(o):o})},G=["otelAttributes"];function V(e){return V="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},V(e)}function H(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}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach(function(t){J(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function J(e,t,r){return(t=Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}function Y(e){var t=function(e,t){if("object"!=V(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==V(t)?t:t+""}var X=100;function K(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}var $=function(){return e=function e(t,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queue=[],this.options=P(t);var o=this.options.maxTelemetryEvents||X;this.maxQueueSize=Math.max(0,Math.min(o,X)),this.tracing=r,this.telemetrySpan=null===(n=this.tracing)||void 0===n?void 0:n.startSpan("rollbar-telemetry",{})},t=[{key:"configure",value:function(e){var t=this.options;this.options=P(t,e);var r=this.options.maxTelemetryEvents||X,n=Math.max(0,Math.min(r,X)),o=0;this.queue.length>n&&(o=this.queue.length-n),this.maxQueueSize=n,this.queue.splice(0,o)}},{key:"copyEvents",value:function(){var e=Array.prototype.slice.call(this.queue,0);if(u(this.options.filterTelemetry))try{for(var t=e.length;t--;)this.options.filterTelemetry(e[t])&&e.splice(t,1)}catch(e){this.options.filterTelemetry=null}return e=(e=e.filter(function(e){return"connectivity"!==e.type})).map(function(e){e.otelAttributes;var t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,G);return t}),e}},{key:"exportTelemetrySpan",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.telemetrySpan&&(this.telemetrySpan.end(e),this.telemetrySpan=this.tracing.startSpan("rollbar-telemetry",{}))}},{key:"capture",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a={level:Q(e,r),type:e,timestamp_ms:o||T(),body:t,source:"client"};n&&(a.uuid=n),i&&(a.otelAttributes=i);try{if(u(this.options.filterTelemetry)&&this.options.filterTelemetry(a))return!1}catch(e){this.options.filterTelemetry=null}return this.push(a),a}},{key:"captureEvent",value:function(e,t,r,n){return this.capture(e,t,r,n)}},{key:"captureError",value:function(e,t,r,n){var o,i=e.message||String(e),a={message:i};e.stack&&(a.stack=e.stack);var s={message:i,level:t,type:"error",uuid:r};return null===(o=this.telemetrySpan)||void 0===o||o.addEvent("rollbar-occurrence-event",s,K(n)),this.capture("error",a,t,r,n,s)}},{key:"captureLog",value:function(e,t,r,n){var o,i=r?"rollbar-occurrence-event":"rollbar-log-event",a=q({message:e,level:t},r?{type:"message",uuid:r}:{});return null===(o=this.telemetrySpan)||void 0===o||o.addEvent(i,a,K(n)),this.capture("log",{message:e},t,r,n,a)}},{key:"captureNetwork",value:function(e,t,r,n){var o,i,a;t=t||"xhr",e.subtype=e.subtype||t,n&&(e.request=n);var s=this.levelFromStatus(e.status_code),u=1e6*(e.end_time_ms||0),l={type:e.subtype,method:e.method,url:e.url,statusCode:e.status_code,"request.headers":JSON.stringify(e.request_headers||{}),"response.headers":JSON.stringify((null===(o=e.response)||void 0===o?void 0:o.headers)||{}),"response.timeUnixNano":u.toString()},c=e.request,f=null===(i=e.response)||void 0===i?void 0:i.body;return c&&(l["request.body"]=JSON.stringify(c)),f&&(l["response.body"]=JSON.stringify(f)),null===(a=this.telemetrySpan)||void 0===a||a.addEvent("rollbar-network-event",l,K(e.start_time_ms)),this.capture("network",e,s,r,e.start_time_ms,l)}},{key:"levelFromStatus",value:function(e){return e>=200&&e<400?"info":0===e||e>=400?"error":"info"}},{key:"captureDom",value:function(e,t,r,n,o){var i={subtype:e,element:t};return void 0!==r&&(i.value=r),void 0!==n&&(i.checked=n),this.capture("dom",i,"info",o)}},{key:"captureInput",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.element,i=e.value,a=e.timestamp,s="rollbar-input-event",u={type:s,subtype:r,element:o,value:i},l={type:r,isSynthetic:n,element:o,value:i,endTimeUnixNano:K(a)},c=this._getRepeatedEvent(s,l);return c?this._updateRepeatedEvent(c,l,a):(null===(t=this.telemetrySpan)||void 0===t||t.addEvent(s,l,K(a)),this.capture("dom",u,"info",null,a,l))}},{key:"captureClick",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.element,i=e.timestamp,a="rollbar-click-event",s={type:a,subtype:r,element:o},u={type:r,isSynthetic:n,element:o,endTimeUnixNano:K(i)},l=this._getRepeatedEvent(a,u);return l?this._updateRepeatedEvent(l,u,i):(null===(t=this.telemetrySpan)||void 0===t||t.addEvent(a,u,K(i)),this.capture("dom",s,"info",null,i,u))}},{key:"_getRepeatedEvent",value:function(e,t){var r=this._lastEvent(this.queue);if(r&&r.body.type===e&&r.otelAttributes.target===t.target)return r}},{key:"_updateRepeatedEvent",value:function(e,t,r){var n=Math.max(r-e.timestamp_ms,1);e.body.value=t.value,e.otelAttributes.value=t.value,e.otelAttributes.height=t.height,e.otelAttributes.width=t.width,e.otelAttributes.textZoomRatio=t.textZoomRatio,e.otelAttributes.endTimeUnixNano=K(r),e.otelAttributes.durationUnixNano=K(n),e.otelAttributes.count=(e.otelAttributes.count||1)+1,e.otelAttributes.rate=e.otelAttributes.count/(n/1e3)}},{key:"_lastEvent",value:function(e){return e.length>0?e[e.length-1]:null}},{key:"captureFocus",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.element,i=e.timestamp,a="rollbar-focus-event",s={type:a,subtype:r,element:o},u={type:r,isSynthetic:n,element:o};return null===(t=this.telemetrySpan)||void 0===t||t.addEvent(a,u,K(i)),this.capture("dom",s,"info",null,i,u)}},{key:"captureResize",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.width,i=e.height,a=e.textZoomRatio,s=e.timestamp,u="rollbar-resize-event",l={type:u,subtype:r,width:o,height:i,textZoomRatio:a},c={type:r,isSynthetic:n,width:o,height:i,textZoomRatio:a},f=this._getRepeatedEvent(u,c);return f?this._updateRepeatedEvent(f,c,s):(null===(t=this.telemetrySpan)||void 0===t||t.addEvent(u,c,K(s)),this.capture("dom",l,"info",null,s,c))}},{key:"captureDragDrop",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.element,i=e.dropEffect,a=e.effectAllowed,s=e.kinds,u=e.mediaTypes,l=e.timestamp,c="rollbar-dragdrop-event",f={type:c,subtype:r,isSynthetic:n},h={type:r,isSynthetic:n};return"dragstart"===r&&(f=q(q({},f),{},{element:o,dropEffect:i,effectAllowed:a}),h=q(q({},h),{},{element:o,dropEffect:i,effectAllowed:a})),"drop"===r&&(f=q(q({},f),{},{element:o,dropEffect:i,effectAllowed:a,kinds:s,mediaTypes:u}),h=q(q({},h),{},{element:o,dropEffect:i,effectAllowed:a,kinds:s,mediaTypes:u})),null===(t=this.telemetrySpan)||void 0===t||t.addEvent(c,h,K(l)),this.capture("dom",f,"info",null,l,h)}},{key:"captureNavigation",value:function(e,t,r,n){var o;return null===(o=this.telemetrySpan)||void 0===o||o.addEvent("rollbar-navigation-event",{"previous.url.full":e,"url.full":t},K(n)),this.capture("navigation",{from:e,to:t},"info",r,n)}},{key:"captureDomContentLoaded",value:function(e){return this.capture("navigation",{subtype:"DOMContentLoaded"},"info",void 0,e&&e.getTime())}},{key:"captureLoad",value:function(e){return this.capture("navigation",{subtype:"load"},"info",void 0,e&&e.getTime())}},{key:"captureConnectivityChange",value:function(e){var t,r=e.type,n=e.isSynthetic,o=e.timestamp,i="rollbar-connectivity-event",a={type:i,subtype:r},s={type:r,isSynthetic:n};return null===(t=this.telemetrySpan)||void 0===t||t.addEvent(i,s,K(o)),this.capture("connectivity",a,"info",null,o,s)}},{key:"_captureRollbarItem",value:function(e){if(this.options.includeItemsInTelemetry)return e.err?this.captureError(e.err,e.level,e.uuid,e.timestamp):e.message?this.captureLog(e.message,e.level,e.uuid,e.timestamp):e.custom?this.capture("log",e.custom,e.level,e.uuid,e.timestamp):void 0}},{key:"push",value:function(e){this.queue.push(e),this.queue.length>this.maxQueueSize&&this.queue.shift()}}],t&&Z(e.prototype,t),r&&Z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Q(e,t){if(t)return t;return{error:"error",manual:"info"}[e]||"info"}var ee=$;function te(e){return te="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},te(e)}function re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ne(n.key),n)}}function ne(e){var t=function(e,t){if("object"!=te(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==te(t)?t:t+""}var oe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._currentContext=t?new Map(t):new Map}return t=e,(r=[{key:"getValue",value:function(e){return this._currentContext.get(e)}},{key:"setValue",value:function(t,r){var n=new e(this._currentContext);return n._currentContext.set(t,r),n}},{key:"deleteValue",value:function(t){var r=new e(self._currentContext);return r._currentContext.delete(t),r}}])&&re(t.prototype,r),n&&re(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}(),ie=new oe;function ae(e){return ae="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},ae(e)}function se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ue(n.key),n)}}function ue(e){var t=function(e,t){if("object"!=ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ae(t)?t:t+""}var le=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentContext=ie},t=[{key:"active",value:function(){return this.currentContext}},{key:"enterContext",value:function(e){var t=this.currentContext;return this.currentContext=e||ie,t}},{key:"exitContext",value:function(e){return this.currentContext=e,this.currentContext}},{key:"with",value:function(e,t,r){var n=this.enterContext(e);try{for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.call.apply(t,[r].concat(i))}finally{this.exitContext(n)}}}],t&&se(e.prototype,t),r&&se(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ce(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function fe(e,t){return[e[0]+t[0]+Math.trunc((e[1]+t[1])/1e9),(e[1]+t[1])%1e9]}var he={fromMillis:ce,toMillis:function(e){return 1e3*e[0]+Math.round(e[1]/1e6)},toNanos:function(e){return 1e9*e[0]+e[1]},add:fe,now:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?fe(ce(performance.timeOrigin),ce(performance.now())):ce(Date.now())},isHrTime:function(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}};function pe(e){return pe="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},pe(e)}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||ye(e,t)||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.")}()}function ve(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ye(e)||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.")}()}function ye(e,t){if(e){if("string"==typeof e)return me(e,t);var r={}.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)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,be(n.key),n)}}function be(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:t+""}var we=function(){return e=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=t,this.options=r},t=[{key:"export",value:function(e,t){ke.push.apply(ke,ve(e))}},{key:"toPayload",value:function(){var e=this,t=ke.slice();if(ke.length=0,!t||!t.length)return{resourceSpans:[]};var r,n=t[0]&&t[0].resource||{},o=new Map,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ye(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a.instrumentationScope?"".concat(a.instrumentationScope.name,":").concat(a.instrumentationScope.version):"default:1.0.0";o.has(s)||o.set(s,{scope:a.instrumentationScope||{name:"default",version:"1.0.0",attributes:[]},spans:[]}),o.get(s).spans.push(this._transformSpan(a))}}catch(e){i.e(e)}finally{i.f()}return{resourceSpans:[{resource:this._transformResource(n),scopeSpans:Array.from(o.values()).map(function(t){return{scope:e._transformInstrumentationScope(t.scope),spans:t.spans}})}]}}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.api.postSpans(e,t)}},{key:"_transformSpan",value:function(e){var t,r=this,n=function(e){return Object.entries(e||{}).map(function(e){var t=de(e,2),n=t[0],o=t[1];return{key:n,value:r._transformAnyValue(o)}})};return{traceId:e.spanContext.traceId,spanId:e.spanContext.spanId,parentSpanId:e.parentSpanId||"",name:e.name,kind:e.kind||1,startTimeUnixNano:he.toNanos(e.startTime),endTimeUnixNano:he.toNanos(e.endTime),attributes:n(e.attributes),events:(t=e.events,(t||[]).map(function(e){return{timeUnixNano:he.toNanos(e.time),name:e.name,attributes:n(e.attributes)}}))}}},{key:"_transformResource",value:function(e){var t=this,r=e.attributes||{};return{attributes:Object.entries(r).map(function(e){var r=de(e,2),n=r[0],o=r[1];return{key:n,value:t._transformAnyValue(o)}})}}},{key:"_transformInstrumentationScope",value:function(e){var t=this;return{name:e.name||"",version:e.version||"",attributes:(e.attributes||[]).map(function(e){return{key:e.key,value:t._transformAnyValue(e.value)}})}}},{key:"_transformAnyValue",value:function(e){var t=this;if(null==e)return{stringValue:""};var r=pe(e);return"string"===r?{stringValue:e}:"number"===r?Number.isInteger(e)?{intValue:e.toString()}:{doubleValue:e}:"boolean"===r?{boolValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(function(e){return t._transformAnyValue(e)})}}:"object"===r?{kvlistValue:{values:Object.entries(e).map(function(e){var r=de(e,2),n=r[0],o=r[1];return{key:n,value:t._transformAnyValue(o)}})}}:{stringValue:String(e)}}}],t&&ge(e.prototype,t),r&&ge(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),ke=[];var Se={gen:function(){var e=new Uint8Array(arguments.length>0&&void 0!==arguments[0]?arguments[0]:16);return crypto.getRandomValues(e),Array.from(e,function(e){return e.toString(16).padStart(2,"0")}).join("")}};function Ce(e){return Ce="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},Ce(e)}function Ie(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}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach(function(t){_e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ee(n.key),n)}}function _e(e,t,r){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ee(e){var t=function(e,t){if("object"!=Ce(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ce(t)?t:t+""}var Ae="RollbarSession",Re=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_e(this,"_attributes",void 0),this.options=r,this.tracing=t,this.window=t.window,this.session=null,this._attributes={}},t=[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.session||(this.getSession()||this.createSession(),this.initSessionAttributes(e)),this}},{key:"getSession",value:function(){try{var e=this.window.sessionStorage.getItem(Ae);if(!e)return null;this.session=JSON.parse(e)}catch(e){return null}return this}},{key:"createSession",value:function(){return this.session={id:Se.gen(),createdAt:Date.now()},this.setSession(this.session)}},{key:"setSession",value:function(e){var t=JSON.stringify(e);try{this.window.sessionStorage.setItem(Ae,t)}catch(e){return null}return this}},{key:"attributes",get:function(){return this._attributes}},{key:"setAttributes",value:function(e){return this._attributes=Oe(Oe({},this._attributes),e),this}},{key:"setUser",value:function(e){return this.setAttributes({"user.id":null==e?void 0:e.id,"user.email":null==e?void 0:e.email,"user.name":(null==e?void 0:e.name)||(null==e?void 0:e.username)}),this}},{key:"initSessionAttributes",value:function(e){var t,r,n;return this.setAttributes(Oe({"session.id":this.session.id,"browser.brands":null===(t=navigator.userAgentData)||void 0===t?void 0:t.brands,"browser.language":navigator.language,"browser.mobile":null===(r=navigator.userAgentData)||void 0===r?void 0:r.mobile,"browser.platform":null===(n=navigator.userAgentData)||void 0===n?void 0:n.platform,"client.address":"$remote_ip","rollbar.notifier.framework":"browser-js","user_agent.original":navigator.userAgent},e)),this}}],t&&xe(e.prototype,t),r&&xe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Te=function(){},Me={debug:0,info:1,warn:2,error:3,disable:4},Pe={error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Te("error",t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Te("warn",t)},info:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Te("info",t)},debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Te("debug",t)},log:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Te("info",t)},init:function(e){var t=e.logLevel;Te=function(e,r){Me[e]<Me[t]||(r.unshift("Rollbar:"),console[e].apply(console,r))}}},je=Pe;function Ne(e){return Ne="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},Ne(e)}function Le(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return De(e,t);var r={}.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)?De(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ue(n.key),n)}}function Ue(e){var t=function(e,t){if("object"!=Ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ne(t)?t:t+""}var Be=function(){return e=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.exporter=t,this.options=r,this.pendingSpans=new Map,this.transforms=[this.userTransform.bind(this)]},t=[{key:"addTransform",value:function(e){this.transforms.unshift(e)}},{key:"userTransform",value:function(e){this.options.transformSpan&&this.options.transformSpan({span:e})}},{key:"applyTransforms",value:function(e){var t,r=Le(this.transforms);try{for(r.s();!(t=r.n()).done;){var n=t.value;try{n(e)}catch(e){je.error("Error running span transform callback",e)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"onStart",value:function(e,t){this.pendingSpans.set(e.span.spanContext.spanId,e)}},{key:"onEnd",value:function(e){this.applyTransforms(e.span),this.exporter.export([e.export()]),this.pendingSpans.delete(e.span.spanContext.spanId)}}],t&&Fe(e.prototype,t),r&&Fe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function We(e){return We="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},We(e)}function ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ge(e,t);var r={}.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)?Ge(e,t):void 0}}(e,t)||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.")}()}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,He(n.key),n)}}function He(e){var t=function(e,t){if("object"!=We(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==We(t)?t:t+""}var qe=function(){return e=function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.usePerformance=t.usePerformance,this.initReadableSpan(t),this.spanProcessor=t.spanProcessor,this.spanProcessor.onStart(this,t.context),t.attributes&&this.setAttributes(t.attributes),this},t=[{key:"initReadableSpan",value:function(e){var t;this.span={name:e.name,kind:e.kind,spanContext:e.spanContext,parentSpanId:e.parentSpanId,startTime:e.startTime||he.now(e.usePerformance),endTime:[0,0],status:{code:0,message:""},attributes:{"session.id":null===(t=e.session)||void 0===t?void 0:t.id},links:[],events:[],duration:0,ended:!1,resource:e.resource,instrumentationScope:e.scope,droppedAttributesCount:0,droppedEventsCount:0,droppedLinksCount:0}}},{key:"spanContext",value:function(){return this.span.spanContext}},{key:"spanId",get:function(){return this.span.spanContext.spanId}},{key:"traceId",get:function(){return this.span.spanContext.traceId}},{key:"setAttribute",value:function(e,t){return null==t||this.span.ended||0===e.length||(this.span.attributes[e]=t),this}},{key:"setAttributes",value:function(e){for(var t=0,r=Object.entries(e);t<r.length;t++){var n=ze(r[t],2),o=n[0],i=n[1];this.setAttribute(o,i)}return this}},{key:"addEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this.span.ended||this.span.events.push({name:e,attributes:t,time:r||he.now(),droppedAttributesCount:0}),this}},{key:"isRecording",value:function(){return!1===this.span.ended}},{key:"end",value:function(e,t){e&&this.setAttributes(e),this.span.endTime=t||he.now(this.usePerformance),this.span.ended=!0,this.spanProcessor.onEnd(this)}},{key:"export",value:function(){return this.span}}],t&&Ve(e.prototype,t),r&&Ve(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Je(e){return Je="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},Je(e)}function Ze(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}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(r),!0).forEach(function(t){Xe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Xe(e,t,r){return(t=$e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$e(n.key),n)}}function $e(e){var t=function(e,t){if("object"!=Je(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Je(t)?t:t+""}var Qe=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spanProcessor=r,this.tracing=t},t=[{key:"startSpan",value:function(e){var t,r,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tracing.contextManager.active(),u=this.tracing.getSpan(s),l=null==u?void 0:u.spanContext(),c=Se.gen(8),f=null;l?(o=l.traceId,f=l.traceState,i=l.spanId):o=Se.gen(16);var h={traceId:o,spanId:c,traceFlags:0,traceState:f},p={attributes:Ye(Ye({},(null===(t=this.tracing.resource)||void 0===t?void 0:t.attributes)||{}),(null===(r=a.resource)||void 0===r?void 0:r.attributes)||{})};return new qe({resource:p,scope:this.tracing.scope,session:null===(n=this.tracing.session)||void 0===n?void 0:n.session,context:s,spanContext:h,name:e,kind:0,parentSpanId:i,spanProcessor:this.spanProcessor,startTime:a.startTime,usePerformance:a.usePerformance})}}],t&&Ke(e.prototype,t),r&&Ke(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function et(e){return et="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},et(e)}function tt(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}function rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach(function(t){nt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function nt(e,t,r){return(t=it(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,it(n.key),n)}}function it(e){var t=function(e,t){if("object"!=et(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==et(t)?t:t+""}var at,st=(at="Rollbar Context Key SPAN",Symbol.for(at)),ut=function(){return e=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=r,this.options=n,this.window=t,this.window.sessionStorage&&(this.session=new Re(this,n)),this.createTracer()},t=[{key:"configure",value:function(e){this.options=e}},{key:"initSession",value:function(){this.session&&this.session.init()}},{key:"sessionId",get:function(){return this.session?this.session.session.id:null}},{key:"resource",get:function(){var e,t;return{attributes:rt(rt({},this.options.resource||{}),{},{"rollbar.environment":null!==(e=null===(t=this.options.payload)||void 0===t?void 0:t.environment)&&void 0!==e?e:this.options.environment})}}},{key:"scope",get:function(){return{name:"rollbar-browser-js",version:this.options.version}}},{key:"idGen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return Se.gen(e)}},{key:"createTracer",value:function(){this.contextManager=new le,this.exporter=new we(this.api,this.options),this.spanProcessor=new Be(this.exporter,this.options.tracing),this.tracer=new Qe(this,this.spanProcessor)}},{key:"getTracer",value:function(){return this.tracer}},{key:"addSpanTransform",value:function(e){this.spanProcessor.addTransform(e)}},{key:"getSpan",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.contextManager.active()).getValue(st)}},{key:"setSpan",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.contextManager.active(),t=arguments.length>1?arguments[1]:void 0;return e.setValue(st,t)}},{key:"startSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.contextManager.active();return this.tracer.startSpan(e,t,r)}},{key:"with",value:function(e,t,r){for(var n,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return(n=this.contextManager).with.apply(n,[e,t,r].concat(i))}},{key:"withSpan",value:function(e,t,r,n){var o=this.startSpan(e,t);return this.with(this.setSpan(this.contextManager.active(),o),r,n,o)}}],t&&ot(e.prototype,t),r&&ot(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||ft(e,t)||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.")}()}function ct(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ft(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function ft(e,t){if(e){if("string"==typeof e)return ht(e,t);var r={}.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)?ht(e,t):void 0}}function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function pt(e,t){return[e,b(e,t)]}function dt(e,t){var r=e.length;return r>2*t?e.slice(0,t).concat(e.slice(r-t)):e}function vt(e,t,r){r=void 0===r?30:r;var n,o=e.data.body;if(o.trace_chain){var i,a=ct(o.trace_chain);try{for(a.s();!(i=a.n()).done;){var s=i.value;n=dt(n=s.frames,r),s.frames=n}}catch(e){a.e(e)}finally{a.f()}}else o.trace&&(n=dt(n=o.trace.frames,r),o.trace.frames=n);return[e,b(e,t)]}function yt(e,t){return t&&t.length>e?t.slice(0,e-3).concat("..."):t}function mt(e,t,r){return t=L(t,function t(r,n,o){switch(s(n)){case"string":return yt(e,n);case"object":case"array":return L(n,t,o);default:return n}}),[t,b(t,r)]}function gt(e){return e.exception&&(delete e.exception.description,e.exception.message=yt(255,e.exception.message)),e.frames=dt(e.frames,1),e}function bt(e,t){var r=e.data.body;if(r.trace_chain){var n,o=r.trace_chain,i=ct(o.entries());try{for(i.s();!(n=i.n()).done;){var a=lt(n.value,2),s=a[0],u=a[1];o[s]=gt(u)}}catch(e){i.e(e)}finally{i.f()}}else r.trace&&(r.trace=gt(r.trace));return[e,b(e,t)]}function wt(e,t){return function(e){for(var t=0,r=e.length,n=0;n<r;n++){var o=e.charCodeAt(n);o<128?t+=1:o<2048?t+=2:o<65536&&(t+=3)}return t}(e)>t}var kt={truncate:function(e,t,r){r=void 0===r?524288:r;for(var n,o,i,a=[pt,vt,mt.bind(null,1024),mt.bind(null,512),mt.bind(null,256),bt];n=a.shift();)if(e=(o=n(e,t))[0],(i=o[1]).error||!wt(i.value,r))return i;return i},raw:pt,truncateFrames:vt,truncateStrings:mt,maybeTruncateValue:yt};function St(e){if(!a(e.context,"string")){var t=b(e.context);t.error?e.context="Error: could not serialize 'context'":e.context=t.value||"",e.context.length>255&&(e.context=e.context.substr(0,255))}return{data:e}}function Ct(e,t,r){var n=t.hostname,o=t.protocol,i=t.port,a=t.path,s=t.search,u=e.timeout,l=function(e){var t="undefined"!=typeof window&&window||"undefined"!=typeof self&&self,r=e.defaultTransport||"xhr";void 0===t.fetch&&(r="xhr");void 0===t.XMLHttpRequest&&(r="fetch");return r}(e),c=e.proxy;if(e.endpoint){var f=r.parse(e.endpoint);n=f.hostname,o=f.protocol,i=f.port,a=f.pathname,s=f.search}return{timeout:u,hostname:n,protocol:o,port:i,path:a,search:s,proxy:c,transport:l}}function It(e,t){var r=e.protocol||"https:",n=e.port||("http:"===r?80:"https:"===r?443:void 0),o=e.hostname,i=e.path,a=e.timeout,s=e.transport;return e.search&&(i+=e.search),e.proxy&&(i=r+"//"+o+i,o=e.proxy.host||e.proxy.hostname,n=e.proxy.port,r=e.proxy.protocol||r),{timeout:a,protocol:r,hostname:o,path:i,port:n,method:t,transport:s}}function Ot(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}function xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(r),!0).forEach(function(t){_t(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ot(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _t(e,t,r){return(t=Pt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Et(e){return Et="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},Et(e)}function At(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return Rt(l,"_invoke",function(r,n,o){var i,s,u,l=0,c=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,u=e,h.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!f&&l&&!o&&t<c.length;t++){var o,i=c[t],p=h.p,d=i[2];r>3?(o=d===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,h.v=n,h.n=i[1]):p<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,h.n=d,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,d),s=c,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:r.call(n,h))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Rt(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Rt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,Rt(f,"constructor",l),Rt(l,"constructor",u),u.displayName="GeneratorFunction",Rt(l,o,"GeneratorFunction"),Rt(f),Rt(f,o,"Generator"),Rt(f,n,function(){return this}),Rt(f,"toString",function(){return"[object Generator]"}),(At=function(){return{w:i,m:h}})()}function Rt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Rt=function(e,t,r,n){function i(t,r){Rt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Rt(e,t,r,n)}function Tt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Mt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pt(n.key),n)}}function Pt(e){var t=function(e,t){if("object"!=Et(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Et(t)?t:t+""}var jt={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443},Nt={hostname:"api.rollbar.com",path:"/api/1/session/",search:null,version:"1",protocol:"https:",port:443},Lt=function(){return e=function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.transport=r,this.url=n,this.truncation=o,this.accessToken=t.accessToken,this.transportOptions=Dt(t,n),this.OTLPTransportOptions=Ft(t,n)},t=[{key:"_postPromise",value:function(e){var t=this,r=e.accessToken,n=e.options,o=e.payload,i=e.headers;return new Promise(function(e,a){t.transport.post({accessToken:r,options:n,payload:o,headers:i,callback:function(t,r){return t?a(t):e(r)}})})}},{key:"postItem",value:function(e,t){var r=this,n=It(this.transportOptions,"POST"),o=St(e);setTimeout(function(){r.transport.post({accessToken:r.accessToken,options:n,payload:o,callback:t})},0)}},{key:"postSpans",value:(n=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Tt(i,n,o,a,s,"next",e)}function s(e){Tt(i,n,o,a,s,"throw",e)}a(void 0)})}}(At().m(function e(t){var r,n,o=arguments;return At().w(function(e){for(;;)if(0===e.n)return r=o.length>1&&void 0!==o[1]?o[1]:{},n=It(this.OTLPTransportOptions,"POST"),e.a(2,this._postPromise({accessToken:this.accessToken,options:n,payload:t,headers:r}))},e,this)})),function(e){return n.apply(this,arguments)})},{key:"buildJsonPayload",value:function(e,t){var r,n=St(e);return(r=this.truncation?this.truncation.truncate(n):b(n)).error?(t&&t(r.error),null):r.value}},{key:"postJsonPayload",value:function(e,t){var r=It(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,r,e,t)}},{key:"configure",value:function(e){var t=this.options;return this.options=P(t,e),this.transportOptions=Dt(this.options,this.url),this.OTLPTransportOptions=Ft(this.options,this.url),void 0!==this.options.accessToken&&(this.accessToken=this.options.accessToken),this}}],t&&Mt(e.prototype,t),r&&Mt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n}();function Dt(e,t){return Ct(e,jt,t)}function Ft(e,t){var r;return Ct(e=xt(xt({},e),{},{endpoint:null===(r=e.tracing)||void 0===r?void 0:r.endpoint}),Nt,t)}var Ut=Lt,Bt="3.1.0",Wt="api.rollbar.com/api/1/item/",zt="debug",Gt="debug",Vt="error",Ht=/(^|@)\S+:\d+/,qt=/^\s*at .*(\S+:\d+|\(native\))/m,Jt=/^(eval@)?(\[native code\])?$/;function Zt(e,t){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return function(e,t){return!e.stacktrace||e.message.includes("\n")&&e.message.split("\n").length>e.stacktrace.split("\n").length?function(e,t){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),o=[],i=2,a=n.length;i<a;i+=2){var s=r.exec(n[i]);s&&o.push({file:s[2],line:+s[1],raw:n[i]})}return Xt(o,t)}(e):e.stack?function(e,t){var r=Xt(e.stack.split("\n").filter(function(e){return!!e.match(Ht)&&!e.match(/^Error created at/)}),t);return r.map(function(e){var t,r=e.split("@"),n=Yt(r.pop()),o=r.shift()||"",i=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return o.match(/\(([^)]*)\)/)&&(t=o.replace(/^[^(]+\(([^)]*)\)$/,"$1")),{function:i,args:void 0===t||"[arguments not available]"===t?void 0:t.split(","),file:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:e}})}(e,t):function(e,t){for(var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),o=[],i=0,a=n.length;i<a;i+=2){var s=r.exec(n[i]);s&&o.push({function:s[3]||void 0,file:s[2],line:s[1]?+s[1]:void 0,raw:n[i]})}return Xt(o,t)}(e)}(e,t);if(e.stack&&e.stack.match(qt))return function(e,t){return Kt(e.stack,t)}(e,t);if(e.stack)return function(e,t){return $t(e.stack,t)}(e,t);if(null!=t&&t.allowEmpty)return[];throw new Error("Cannot parse given Error object")}function Yt(e){if(!e.includes(":"))return[e,void 0,void 0];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]}function Xt(e,t){return t&&null!=t.slice?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e}function Kt(e,t){return Xt(e.split("\n").filter(function(e){return!!e.match(qt)}),t).map(function(e){e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=t.match(/ (\(.+\)$)/);t=r?t.replace(r[0],""):t;var n=Yt(r?r[1]:t);return{function:r&&t||void 0,file:["eval","<anonymous>"].includes(n[0])?void 0:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:e}})}function $t(e,t){return Xt(e.split("\n").filter(function(e){return!e.match(Jt)}),t).map(function(e){if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.includes("@")||e.includes(":")){var t=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,r=e.match(t),n=r&&r[1]?r[1]:void 0,o=Yt(e.replace(t,""));return{function:n,file:o[0],line:o[1]?+o[1]:void 0,col:o[2]?+o[2]:void 0,raw:e}}return{function:e}})}function Qt(e){return e.map(function(e){return{functionName:e.function,args:e.args,fileName:e.file,lineNumber:e.line,columnNumber:e.col,source:e.raw}})}var er=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function tr(){return null}function rr(e){var t={};return t._stackFrame=e,t.url=e.fileName,t.line=e.lineNumber,t.func=e.functionName,t.column=e.columnNumber,t.args=e.args,t.context=null,t}function nr(e,t){return{stack:function(){var r,n=[];t=t||0;try{n=Qt(Zt(e,r))}catch(e){n=[]}for(var o=[],i=t;i<n.length;i++)o.push(new rr(n[i]));return o}(),message:e.message,name:or(e),rawStack:e.stack,rawException:e}}function or(e){var t=e.name&&e.name.length&&e.name,r=e.constructor.name&&e.constructor.name.length&&e.constructor.name;return t&&r?"Error"===t?r:t:t||r}var ir={guessFunctionName:function(){return"?"},guessErrorClass:function(e){if(!e||!e.match)return["Unknown error. There was no error message to display.",""];var t=e.match(er),r="(unknown)";return t&&(r=t[t.length-1],e=(e=e.replace((t[t.length-2]||"")+r+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[r,e]},gatherContext:tr,parse:function(e,t){var r=e;if(r.nested||r.cause){for(var n=[];r;)n.push(new nr(r,t)),r=r.nested||r.cause,t=0;return n[0].traceChain=n,n[0]}return new nr(r,t)},Stack:nr,Frame:rr};function ar(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return sr(e,t);var r={}.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)?sr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ur(e,t){var r=e.level,n=d[r]||0,o=t.reportLevel;return!(n<(d[o]||0))}function lr(e,t,r){if(!e)return!r;var n,o,i=e.frames;if(!i||0===i.length)return!r;for(var s=t.length,u=i.length,l=0;l<u;l++){if(!a(n=i[l].filename,"string"))return!r;for(var c=0;c<s;c++)if(o=t[c],new RegExp(o).test(n))return!0}return!1}function cr(e,t,r,n){var o,i,a=!1;"blocklist"===r&&(a=!0);try{if(o=a?t.hostBlockList:t.hostSafeList,i=A(e,"body.trace_chain")||[A(e,"body.trace")],!o||0===o.length)return!a;if(0===i.length||!i[0])return!a;for(var s=i.length,u=0;u<s;u++)if(lr(i[u],o,a))return!0}catch(e){a?t.hostBlockList=null:t.hostSafeList=null;var l=a?"hostBlockList":"hostSafeList";return n.error("Error while reading your configuration's "+l+" option. Removing custom "+l+".",e),!a}return!1}function fr(e){return function(t,r){var n,o,i,a,s,u;try{if(!(i=r.ignoredMessages)||0===i.length)return!0;if(u=function(e){var t=e.body,r=[];if(t.trace_chain){var n,o=ar(t.trace_chain);try{for(o.s();!(n=o.n()).done;){var i=n.value;r.push(A(i,"exception.message"))}}catch(e){o.e(e)}finally{o.f()}}t.trace&&r.push(A(t,"trace.exception.message"));t.message&&r.push(A(t,"message.body"));return r}(t),0===u.length)return!0;for(a=i.length,n=0;n<a;n++)for(s=new RegExp(i[n],"gi"),o=0;o<u.length;o++)if(s.test(u[o]))return!1}catch(t){r.ignoredMessages=null,e.error("Error while reading your configuration's ignoredMessages option. Removing custom ignoredMessages.")}return!0}}function hr(e){return hr="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},hr(e)}function pr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dr(n.key),n)}}function dr(e){var t=function(e,t){if("object"!=hr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hr(t)?t:t+""}var vr=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queue=t,this.options=r,this.transforms=[],this.diagnostic={}},(t=[{key:"configure",value:function(e){var t;null===(t=this.queue)||void 0===t||t.configure(e);var r=this.options;return this.options=P(r,e),this}},{key:"addTransform",value:function(e){return u(e)&&this.transforms.push(e),this}},{key:"log",value:function(e,t){var r=this;if(t=u(t)?t:function(){},!this.options.enabled)return t(new Error("Rollbar is not enabled"),null);this.queue.addPendingItem(e);var n=e.err;this._applyTransforms(e,function(o,i){if(o)return r.queue.removePendingItem(e),t(o,null);r.queue.addItem(i,t,n,e)})}},{key:"_applyTransforms",value:function(e,t){var r=-1,n=this.transforms.length,o=this.transforms,i=this.options,a=function(e,s){e?t(e,null):++r!==n?o[r](s,i,a):t(null,s)};a(null,e)}}])&&pr(e.prototype,t),r&&pr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function yr(e){return yr="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},yr(e)}function mr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gr(n.key),n)}}function gr(e){var t=function(e,t){if("object"!=yr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yr(t)?t:t+""}var br,wr,kr,Sr=function(){function e(t,r,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rateLimiter=t,this.api=r,this.logger=n,this.options=o,this.replay=i,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}return t=e,r=[{key:"configure",value:function(e){var t;null===(t=this.api)||void 0===t||t.configure(e);var r=this.options;return this.options=P(r,e),this}},{key:"addPredicate",value:function(e){return u(e)&&this.predicates.push(e),this}},{key:"addPendingItem",value:function(e){this.pendingItems.push(e)}},{key:"removePendingItem",value:function(e){var t=this.pendingItems.indexOf(e);-1!==t&&this.pendingItems.splice(t,1)}},{key:"addItem",value:function(e,t,r,n){var o=this;t&&u(t)||(t=function(){});var i=e.data,a=this._applyPredicates(i);if(a.stop)return this.removePendingItem(n),void t(a.err);if(this._maybeLog(i,r),this.removePendingItem(n),this.options.transmit){this.replay&&i.body&&(e.replayId=this.replay.capture(null,i.uuid,{type:"occurrence",level:e.level}),e.replayId&&E(e.data,[{key:"replay_id",value:e.replayId}])),this.pendingRequests.push(i);try{this._makeApiRequest(i,function(r,n,a){o._dequeuePendingRequest(i),e.replayId&&o.replay.sendOrDiscardReplay(e.replayId,r,n,a),t(r,n)})}catch(r){var s;this._dequeuePendingRequest(i),e.replayId&&(null===(s=this.replay)||void 0===s||s.discard(e.replayId)),t(r)}}else t(new Error("Transmit disabled"))}},{key:"wait",value:function(e){var t=this;u(e)&&(this.waitCallback=e,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval(function(){t._maybeCallWait()},500)))}},{key:"_applyPredicates",value:function(e){for(var t=null,r=0,n=this.predicates.length;r<n;r++)if(!(t=this.predicates[r](e,this.options))||void 0!==t.err)return{stop:!0,err:t.err};return{stop:!1,err:null}}},{key:"_makeApiRequest",value:function(e,t){var r=this,n=this.rateLimiter.shouldSend(e);n.shouldSend?this.api.postItem(e,function(n,o,i){n?r._maybeRetry(n,e,t):t(n,o,i)}):n.error?t(n.error):this.api.postItem(n.payload,t)}},{key:"_maybeRetry",value:function(t,r,n){var o=!1;if(this.options.retryInterval){for(var i=0,a=e.RETRIABLE_ERRORS.length;i<a;i++)if(t.code===e.RETRIABLE_ERRORS[i]){o=!0;break}o&&f(this.options.maxRetries)&&(r.retries=r.retries?r.retries+1:1,r.retries>this.options.maxRetries&&(o=!1))}o?this._retryApiRequest(r,n):n(t)}},{key:"_retryApiRequest",value:function(e,t){var r=this;this.retryQueue.push({item:e,callback:t}),this.retryHandle||(this.retryHandle=setInterval(function(){for(;r.retryQueue.length;){var e=r.retryQueue.shift();r._makeApiRequest(e.item,e.callback)}},this.options.retryInterval))}},{key:"_dequeuePendingRequest",value:function(e){var t=this.pendingRequests.indexOf(e);-1!==t&&(this.pendingRequests.splice(t,1),this._maybeCallWait())}},{key:"_maybeLog",value:function(e,t){if(this.logger&&this.options.verbose){var r=t||A(e,"body.trace.exception.message")||A(e,"body.trace_chain.0.exception.message");if(r)return void this.logger.error(r);(r=A(e,"body.message.body"))&&this.logger.log(r)}}},{key:"_maybeCallWait",value:function(){return!(!u(this.waitCallback)||0!==this.pendingItems.length||0!==this.pendingRequests.length||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),0))}}],r&&mr(t.prototype,r),n&&mr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();br=Sr,kr=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"],(wr=gr(wr="RETRIABLE_ERRORS"))in br?Object.defineProperty(br,wr,{value:kr,enumerable:!0,configurable:!0,writable:!0}):br[wr]=kr;var Cr=Sr;function Ir(e){return Ir="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},Ir(e)}function Or(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xr(n.key),n)}}function xr(e){var t=function(e,t){if("object"!=Ir(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ir(t)?t:t+""}var _r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startTime=Date.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(t)}return function(e,t,r){return t&&Or(e.prototype,t),r&&Or(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"configureGlobal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.startTime,n=t.maxItems,o=t.itemsPerMinute;void 0!==r&&(e.globalSettings.startTime=r),void 0!==n&&(e.globalSettings.maxItems=n),void 0!==o&&(e.globalSettings.itemsPerMinute=o)}},{key:"shouldSend",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=r-this.startTime;(n<0||n>=6e4)&&(this.startTime=r,this.perMinCounter=0);var o=e.globalSettings.maxItems,i=e.globalSettings.itemsPerMinute;if(Er(t,o,this.counter))return Ar(this.platform,this.platformOptions,"".concat(o," max items reached"),!1);if(Er(t,i,this.perMinCounter))return Ar(this.platform,this.platformOptions,"".concat(i," items per minute reached"),!1);this.counter+=1,this.perMinCounter+=1;var a=!Er(t,o,this.counter),s=a,u=a&&!Er(t,i,this.perMinCounter);return Ar(this.platform,this.platformOptions,null,u,o,i,s)}},{key:"setPlatformOptions",value:function(e,t){this.platform=e,this.platformOptions=t}}])}();function Er(e,t,r){return!e.ignoreRateLimit&&t>=1&&r>t}function Ar(e,t,r,n,o,i,a){var s=null,u=r?new Error(r):null;return u||n||(s=function(e,t,r,n,o){var i=t.environment||t.payload&&t.payload.environment,a=o?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.",s={body:{message:{body:a,extra:{maxItems:r,itemsPerMinute:n}}},language:"javascript",environment:i,notifier:{version:t.notifier&&t.notifier.version||t.version}};"browser"===e?(s.platform="browser",s.framework="browser-js",s.notifier.name="rollbar-browser-js"):"server"===e?(s.framework=t.framework||"node-js",s.notifier.name=t.notifier.name):"react-native"===e&&(s.framework=t.framework||"react-native",s.notifier.name=t.notifier.name);return s}(e,t,o,i,a)),{error:u,shouldSend:n,payload:s}}!function(e,t,r){(t=xr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(_r,"globalSettings",{startTime:Date.now(),maxItems:void 0,itemsPerMinute:void 0});var Rr=_r;function Tr(e,t,r,n,o,i,a){this.options=P(e),this.logger=r,Tr.rateLimiter.configureGlobal(this.options),Tr.rateLimiter.setPlatformOptions(a,this.options),this.api=t,this.queue=new Cr(Tr.rateLimiter,t,r,this.options,i),this.tracing=o;var s=this.options.tracer||null;Pr(s)?(this.tracer=s,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new vr(this.queue,this.options),this.telemeter=n,Mr(e),this.lastError=null,this.lastErrorHash="none"}function Mr(e){e.stackTraceLimit&&(Error.stackTraceLimit=e.stackTraceLimit)}function Pr(e){if(!e)return!1;if(!e.scope||"function"!=typeof e.scope)return!1;var t=e.scope();return!(!t||!t.active||"function"!=typeof t.active)}Tr.rateLimiter=new Rr({maxItems:0,itemsPerMinute:60}),Tr.prototype.global=function(e){return Tr.rateLimiter.configureGlobal(e),this},Tr.prototype.configure=function(e,t){var r=this.options,n={};t&&(n={payload:t}),this.options=P(r,e,n);var o=this.options.tracer||null;return Pr(o)?(this.tracer=o,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),Mr(e),this.global(this.options),Pr(e.tracer)&&(this.tracer=e.tracer),this},Tr.prototype.log=function(e){var t=this._defaultLogLevel();return this._log(t,e)},Tr.prototype.debug=function(e){this._log("debug",e)},Tr.prototype.info=function(e){this._log("info",e)},Tr.prototype.warn=function(e){this._log("warning",e)},Tr.prototype.warning=function(e){this._log("warning",e)},Tr.prototype.error=function(e){this._log("error",e)},Tr.prototype.critical=function(e){this._log("critical",e)},Tr.prototype.wait=function(e){this.queue.wait(e)},Tr.prototype.captureEvent=function(e,t,r){return this.telemeter&&this.telemeter.captureEvent(e,t,r)},Tr.prototype.captureDomContentLoaded=function(e){return this.telemeter&&this.telemeter.captureDomContentLoaded(e)},Tr.prototype.captureLoad=function(e){return this.telemeter&&this.telemeter.captureLoad(e)},Tr.prototype.buildJsonPayload=function(e){return this.api.buildJsonPayload(e)},Tr.prototype.sendJsonPayload=function(e){this.api.postJsonPayload(e)},Tr.prototype._log=function(e,t){var r;if(t.callback&&(r=t.callback,delete t.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(t)){if(r){var n=new Error("ignored identical item");n.item=t,r(n)}}else try{t.level=t.level||e,this._addItemAttributes(t),this._addTracingInfo(t);var o=this.telemeter;o&&(o._captureRollbarItem(t),t.telemetryEvents=o.copyEvents()||[]),this.notifier.log(t,r)}catch(e){r&&r(e),this.logger.error(e)}},Tr.prototype._addItemAttributes=function(e){var t,r,n=null===(t=this.tracing)||void 0===t?void 0:t.getSpan(),o=[{key:"session_id",value:function(e){var t=e.asyncLocalStorage;if(!t||"function"!=typeof t.getStore)return null;var r=t.getStore();return(null==r?void 0:r.sessionId)||null}(this)||(null===(r=this.tracing)||void 0===r?void 0:r.sessionId)},{key:"span_id",value:null==n?void 0:n.spanId},{key:"trace_id",value:null==n?void 0:n.traceId}];e._isUncaught&&o.push({key:"is_uncaught",value:"true"}),E(e.data,o),null==n||n.addEvent("rollbar.occurrence",[{key:"rollbar.occurrence.uuid",value:e.uuid}])},Tr.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},Tr.prototype._sameAsLastError=function(e){if(!e._isUncaught)return!1;var t=function(e){var t=e.message||"",r=(e.err||{}).stack||String(e.err);return t+"::"+r}(e);return this.lastErrorHash===t||(this.lastError=e.err,this.lastErrorHash=t,!1)},Tr.prototype._addTracingInfo=function(e){if(this.tracer){var t=this.tracer.scope().active();if(function(e){if(!e||!e.context||"function"!=typeof e.context)return!1;var t=e.context();if(!t||!t.toSpanId||!t.toTraceId||"function"!=typeof t.toSpanId||"function"!=typeof t.toTraceId)return!1;return!0}(t)){t.setTag("rollbar.error_uuid",e.uuid),t.setTag("rollbar.has_error",!0),t.setTag("error",!0),t.setTag("rollbar.item_url","https://rollbar.com/item/uuid/?uuid=".concat(e.uuid)),t.setTag("rollbar.occurrence_url","https://rollbar.com/occurrence/uuid/?uuid=".concat(e.uuid));var r=t.context().toSpanId(),n=t.context().toTraceId();e.custom?(e.custom.opentracing_span_id=r,e.custom.opentracing_trace_id=n):e.custom={opentracing_span_id:r,opentracing_trace_id:n}}}};var jr=Tr;function Nr(e,t,r){e._isUncaught&&(e.data._isUncaught=!0),e._originalArgs&&(e.data._originalArgs=e._originalArgs),r(null,e)}function Lr(e,t,r){var n=t.payload||{};n.body&&delete n.body,e.data=P(e.data,n),r(null,e)}function Dr(e,t,r){e.telemetryEvents&&R(e,"data.body.telemetry",e.telemetryEvents),r(null,e)}function Fr(e,t,r){if(e.message){var n="data.body.trace_chain.0",o=A(e,n);if(o||(o=A(e,n="data.body.trace")),o){if(!o.exception||!o.exception.description)return R(e,n+".exception.description",e.message),void r(null,e);R(e,n+".extra",P(A(e,n+".extra")||{},{message:e.message}))}r(null,e)}else r(null,e)}function Ur(e){return function(t,r,n){var o,i=P(t),s=null;try{u(r.transform)&&(s=r.transform(i.data,t))}catch(o){return r.transform=null,e.error("Error while calling custom transform() function. Removing custom transform().",o),void n(null,t)}l(o=s)&&a(o.then,"function")?s.then(function(e){e&&(i.data=e),n(null,i)},function(e){n(e,t)}):n(null,i)}}function Br(e,t,r){if(!t.sendConfig)return r(null,e);var n=A(e,"data.custom")||{};n._rollbarConfig=t,e.data.custom=n,r(null,e)}function Wr(e,t){u(e[t])&&(e[t]=e[t].toString())}function zr(e,t,r){var n=t._configuredOptions;Wr(n,"transform"),Wr(n,"checkIgnore"),Wr(n,"onSendCallback"),delete n.accessToken,e.data.notifier.configured_options=n,r(null,e)}function Gr(e,t,r){var n=P(e.notifier.client.notifier.diagnostic,e.diagnostic);if(A(e,"err._isAnonymous")&&(n.is_anonymous=!0),e._isUncaught&&(n.is_uncaught=e._isUncaught),e.err)try{n.raw_error={message:e.err.message,name:e.err.name,constructor_name:e.err.constructor&&e.err.constructor.name,filename:e.err.fileName,line:e.err.lineNumber,column:e.err.columnNumber,stack:e.err.stack}}catch(e){n.raw_error={failed:String(e)}}e.data.notifier.diagnostic=P(e.data.notifier.diagnostic,n),r(null,e)}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Hr=[].concat(function(e){return function(e){if(Array.isArray(e))return Vr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Vr(e,t);var r={}.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)?Vr(e,t):void 0}}(e)||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.")}()}(["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","secret_key","secretKey","secretToken"]),["cc-number","card number","cardnumber","cardnum","ccnum","ccnumber","cc num","creditcardnumber","credit card number","newcreditcardnumber","new credit card","creditcardno","credit card no","card#","card #","cc-csc","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"]),qr={scrubFields:Hr};function Jr(e,t){return!A(t,"plugins.jquery.ignoreAjaxErrors")||!A(e,"body.message.extra.isAjax")}function Zr(e,t,r){if(e.err&&"DOMException"===ir.Stack(e.err).name){var n=new Error;n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack,n.nested=e.err,e.err=n}r(null,e)}function Yr(e,t,r){if(e.data=e.data||{},e.err)try{e.stackInfo=e.err._savedStackTrace||ir.parse(e.err,e.skipFrames),t.addErrorContext&&function(e){var t=[],r=e.err;t.push(r);for(;r.nested||r.cause;)r=r.nested||r.cause,t.push(r);!function(e,t){var r=e.data.custom||{},o=!1;try{var i,a=n(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;c(s,"rollbarContext")&&(r=P(r,C(s.rollbarContext)),o=!0)}}catch(e){a.e(e)}finally{a.f()}o&&(e.data.custom=r)}catch(t){e.diagnostic.error_context="Failed: "+t.message}}(e,t)}(e)}catch(t){je.error("Error while parsing the error object.",t);try{e.message=e.err.message||e.err.description||e.message||String(e.err)}catch(t){e.message=String(e.err)||String(t)}delete e.err}r(null,e)}function Xr(e,t,r){e.message||e.stackInfo||e.custom||r(new Error("No message, stack info, or custom data"),null),r(null,e)}function Kr(e,t,r){var n=t.payload&&t.payload.environment||t.environment;e.data=P(e.data,{environment:n,level:e.level,endpoint:t.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:e.uuid,notifier:{name:"rollbar-browser-js",version:t.version},custom:e.custom}),r(null,e)}function $r(e,t,r){e.stackInfo?e.stackInfo.traceChain?function(e,t,r){for(var n=e.stackInfo.traceChain,o=[],i=n.length,a=0;a<i;a++){var s=tn(e,n[a],t);o.push(s)}R(e,"data.body",{trace_chain:o}),r(null,e)}(e,t,r):function(e,t,r){var n=en(e);if(n){R(e,"data.body",{trace:tn(e,e.stackInfo,t)}),r(null,e)}else{var o=e.stackInfo,i=ir.guessErrorClass(o.message),a=rn(o,i[0],t),s=i[1];e.message=a+": "+s,Qr(e,t,r)}}(e,t,r):Qr(e,t,r)}function Qr(e,t,r){var n=e.message,o=e.custom;n||(n="Item sent with null or missing arguments.");var i={body:n};o&&(i.extra=P(o)),R(e,"data.body",{message:i}),r(null,e)}function en(e){var t=((arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||e.stackInfo).stack;return t&&0===t.length&&e._unhandledStackInfo&&e._unhandledStackInfo.stack&&(t=e._unhandledStackInfo.stack),t}function tn(e,t,r){var n=e&&e.data.description,o=e&&e.custom,i=en(e,t),a=ir.guessErrorClass(t.message),s={exception:{class:rn(t,a[0],r),message:a[1]}};if(n&&(s.exception.description=n),i){var u,l,c,f,h,p,d,v;for(0===i.length&&(s.exception.stack=t.rawStack,s.exception.raw=String(t.rawException)),s.frames=[],d=0;d<i.length;++d)l={filename:(u=i[d]).url?y(u.url):"(unknown)",lineno:u.line||null,method:u.func&&"?"!==u.func?u.func:"[anonymous]",colno:u.column},r.sendFrameUrl&&(l.url=u.url),l.method&&l.method.endsWith&&l.method.endsWith("_rollbar_wrapped")||(c=f=h=null,(p=u.context?u.context.length:0)&&(v=Math.floor(p/2),f=u.context.slice(0,v),c=u.context[v],h=u.context.slice(v)),c&&(l.code=c),(f||h)&&(l.context={},f&&f.length&&(l.context.pre=f),h&&h.length&&(l.context.post=h)),u.args&&(l.args=u.args),s.frames.push(l));s.frames.reverse(),o&&(s.extra=P(o))}return s}function rn(e,t,r){return e.name?e.name:r.guessErrorClass?t:"(unknown)"}function nn(e){return nn="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},nn(e)}function on(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}function an(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=nn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=nn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sn=function(e){var t,r,n=e.accessToken,o=e.url,i=e.method,a=e.payload,s=e.headers,u=e.callback,l=e.timeout;f(l)&&(t=new AbortController,r=setTimeout(function(){t.abort()},l)),s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?on(Object(r),!0).forEach(function(t){an(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"Content-Type":"application/json","X-Rollbar-Access-Token":n,signal:t&&t.signal},s),fetch(o,{method:i,headers:s,body:a}).then(function(e){r&&clearTimeout(r);var t=e.headers,n=o.endsWith("/api/1/item/")?{"Rollbar-Replay-Enabled":t.get("Rollbar-Replay-Enabled"),"Rollbar-Replay-RateLimit-Remaining":t.get("Rollbar-Replay-RateLimit-Remaining"),"Rollbar-Replay-RateLimit-Reset":t.get("Rollbar-Replay-RateLimit-Reset")}:{},i=e.json();u(null,i,n)}).catch(function(e){je.error(e.message),u(e)})};function un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ln(e,t);var r={}.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)?ln(e,t):void 0}}(e,t)||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.")}()}function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function cn(e,t){var r=new Error(e);return r.code=t||"ENOTFOUND",r}var fn=function(e){var t,r=e.accessToken,n=e.url,o=e.method,i=e.payload,s=e.headers,u=e.callback,l=e.requestFactory,c=e.timeout;if(!(t=l?l():function(){var e,t,r=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=r.length;for(t=0;t<n;t++)try{e=r[t]();break}catch(e){}return e}()))return u(new Error("No way to send a request"));try{try{var h=function(){try{if(h&&4===t.readyState){h=void 0;var e=w(t.responseText);if(function(e){return e&&e.status&&200===e.status}(t)){var r=n.endsWith("/api/1/item/")?{"Rollbar-Replay-Enabled":t.getResponseHeader("Rollbar-Replay-Enabled"),"Rollbar-Replay-RateLimit-Remaining":t.getResponseHeader("Rollbar-Replay-RateLimit-Remaining"),"Rollbar-Replay-RateLimit-Reset":t.getResponseHeader("Rollbar-Replay-RateLimit-Reset")}:{};return void u(e.error,e.value,r)}if(function(e){return e&&a(e.status,"number")&&e.status>=400&&e.status<600}(t)){if(403===t.status){var o=e.value&&e.value.message;je.error(o)}u(new Error(String(t.status)))}else{u(cn("XHR response had no status code (likely connection failure)"))}}}catch(e){var i;i=e&&e.stack?e:new Error(e),u(i)}};if(t.open(o,n,!0),t.setRequestHeader){t.setRequestHeader("Content-Type","application/json"),t.setRequestHeader("X-Rollbar-Access-Token",r);for(var p=0,d=Object.entries(null!=s?s:{});p<d.length;p++){var v=un(d[p],2),y=v[0],m=v[1];t.setRequestHeader(y,m)}}f(c)&&(t.timeout=c),t.onreadystatechange=h,t.send(i)}catch(e){if("undefined"!=typeof XDomainRequest){if(!window||!window.location)return u(new Error("No window available during request, unknown environment"));"http:"===window.location.href.substring(0,5)&&"https"===n.substring(0,5)&&(n="http"+n.substring(5));var g=new XDomainRequest;g.onprogress=function(){},g.ontimeout=function(){u(cn("Request timed out","ETIMEDOUT"))},g.onerror=function(){u(new Error("Error during request"))},g.onload=function(){var e=w(g.responseText);u(e.error,e.value)},g.open(o,n,!0),g.send(i)}else u(new Error("Cannot find a method to transport a request"))}}catch(e){u(e)}};function hn(e){this.truncation=e}hn.prototype.get=function(e,t,r,n,o){n&&u(n)||(n=function(){}),function(e,t,r){(r=r||{}).access_token=e;var n,o=[];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&o.push([n,r[n]].join("="));var i="?"+o.sort().join("&");(t=t||{}).path=t.path||"";var a,s=t.path.indexOf("?"),u=t.path.indexOf("#");-1!==s&&(-1===u||u>s)?(a=t.path,t.path=a.substring(0,s)+i+"&"+a.substring(s+1)):-1!==u?(a=t.path,t.path=a.substring(0,u)+i+a.substring(u)):t.path=t.path+i}(e,t,r);var i=g(t);this._makeZoneRequest({accessToken:e,url:i,method:"GET",callback:n,requestFactory:o,timeout:t.timeout,transport:t.transport})},hn.prototype.post=function(e){var t,r=e.accessToken,n=e.options,o=e.payload,i=e.headers,a=e.callback,s=e.requestFactory;if(a&&u(a)||(a=function(){}),!o)return a(new Error("Cannot send empty request"));if((t=this.truncation&&o.body?this.truncation.truncate(o):b(o)).error)return a(t.error);var l=g(n);this._makeZoneRequest({accessToken:r,url:l,method:"POST",payload:t.value,headers:i,callback:a,requestFactory:s,timeout:n.timeout,transport:n.transport})},hn.prototype.postJsonPayload=function(e,t,r,n,o){n&&u(n)||(n=function(){});var i=g(t);this._makeZoneRequest({accessToken:e,url:i,method:"POST",payload:r,callback:n,requestFactory:o,timeout:t.timeout,transport:t.transport})},hn.prototype._makeZoneRequest=function(){var e=this,t="undefined"!=typeof window&&window||"undefined"!=typeof self&&self,r=t&&t.Zone&&t.Zone.root,n=Array.prototype.slice.call(arguments);r?r.run(function(){e._makeRequest.apply(void 0,n)}):this._makeRequest.apply(void 0,n)},hn.prototype._makeRequest=function(e){var t=e.payload,r=e.callback,n=e.transport;if("undefined"!=typeof RollbarProxy)return function(e,t){(new RollbarProxy).sendJsonPayload(e,function(e){},function(e){t(new Error(e))})}(t,r);"fetch"===n?sn(e):fn(e)};var pn,dn=hn;function vn(e){var t,r,n={protocol:null,auth:null,host:null,path:null,hash:null,href:e,hostname:null,port:null,pathname:null,search:null,query:null};if(-1!==(t=e.indexOf("//"))?(n.protocol=e.substring(0,t),r=t+2):r=0,-1!==(t=e.indexOf("@",r))&&(n.auth=e.substring(r,t),r=t+1),-1===(t=e.indexOf("/",r))){if(-1===(t=e.indexOf("?",r)))return-1===(t=e.indexOf("#",r))?n.host=e.substring(r):(n.host=e.substring(r,t),n.hash=e.substring(t)),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),n;n.host=e.substring(r,t),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=t}else n.host=e.substring(r,t),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=t;if(-1===(t=e.indexOf("#",r))?n.path=e.substring(r):(n.path=e.substring(r,t),n.hash=e.substring(t)),n.path){var o=n.path.split("?");n.pathname=o[0],n.query=o[1],n.search=n.query?"?"+n.query:null}return n}function yn(e){return yn="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},yn(e)}function mn(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}function gn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(r),!0).forEach(function(t){wn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function bn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kn(n.key),n)}}function wn(e,t,r){return(t=kn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kn(e){var t=function(e,t){if("object"!=yn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yn(t)?t:t+""}var Sn=null,Cn=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),je.init({logLevel:t.logLevel||"error"}),this.options=M(On,t,null,je),this.options._configuredOptions=t,this.components=this.components||{};var o=this.components.telemeter,i=this.components.instrumenter;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var a=this.components.truncation,s=this.components.tracing,l=this.components.replay,c=new dn(a),f=new Ut(this.options,c,r,a);if(s&&(this.tracing=new s(In(),f,this.options),this.tracing.initSession()),o&&(this.telemeter=new o(this.options,this.tracing)),l&&"undefined"!=typeof window){var h=this.options.replay;this.replay=new l({tracing:this.tracing,telemeter:this.telemeter,options:h}),h.enabled&&h.autoStart&&this.replay.recorder.start()}this.client=n||new jr(this.options,f,je,this.telemeter,this.tracing,this.replay,"browser");var p=In(),d="undefined"!=typeof document&&document;this.isChrome=p.chrome&&p.chrome.runtime,this.anonymousErrorsPending=0,function(e,t,r){e.addTransform(Zr).addTransform(Yr).addTransform(Xr).addTransform(Kr).addTransform(function(e){return function(t,r,n){var o={};e&&e.location&&(o.url=e.location.href,o.query_string=e.location.search);var i="$remote_ip";r.captureIp?!0!==r.captureIp&&(i+="_anonymize"):i=null,i&&(o.user_ip=i),Object.keys(o).length>0&&R(t,"data.request",o),n(null,t)}}(r)).addTransform(function(e){return function(t,r,n){if(!e)return n(null,t);var o=e.navigator||{},i=e.screen||{};R(t,"data.client",{runtime_ms:t.timestamp-e._rollbarStartTime,timestamp:Math.round(t.timestamp/1e3),javascript:{browser:o.userAgent,language:o.language,cookie_enabled:o.cookieEnabled,screen:{width:i.width,height:i.height}}}),n(null,t)}}(r)).addTransform(function(e){return function(t,r,n){if(!e||!e.navigator)return n(null,t);for(var o,i=[],a=e.navigator.plugins||[],s=0,u=a.length;s<u;++s)o=a[s],i.push({name:o.name,description:o.description});R(t,"data.client.javascript.plugins",i),n(null,t)}}(r)).addTransform($r).addTransform(Fr).addTransform(Dr).addTransform(Br).addTransform((n=t.scrub,function(e,t,r){if(n){var o=t.scrubFields||[],i=t.scrubPaths||[];e.data=n(e.data,o,i)}r(null,e)})).addTransform(Lr).addTransform(Ur(je)).addTransform(zr).addTransform(Gr).addTransform(Nr);var n}(this.client.notifier,this,p),function(e){e.addPredicate(ur).addPredicate(Jr).addPredicate(function(e){return function(t,r){var n=Boolean(t._isUncaught);delete t._isUncaught;var o=t._originalArgs;delete t._originalArgs;try{u(r.onSendCallback)&&r.onSendCallback(n,o,t)}catch(t){r.onSendCallback=null,e.error("Error while calling onSendCallback, removing",t)}try{if(u(r.checkIgnore)&&r.checkIgnore(n,o,t))return!1}catch(t){r.checkIgnore=null,e.error("Error while calling custom checkIgnore(), removing",t)}return!0}}(je)).addPredicate(function(e){return function(t,r){return!cr(t,r,"blocklist",e)}}(je)).addPredicate(function(e){return function(t,r){return cr(t,r,"safelist",e)}}(je)).addPredicate(fr(je))}(this.client.queue),this.setupUnhandledCapture(),i&&(this.instrumenter=new i(this.options,this.client.telemeter,this,p,d),this.instrumenter.instrument()),this.setSessionAttributesFromOptions(t),this.rollbar=this}return function(e,t,r){return t&&bn(e.prototype,t),r&&bn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"global",value:function(e){return this.client.global(e),this}},{key:"configure",value:function(e,t){var r,n,o;e.logLevel&&je.init({logLevel:e.logLevel}),this.setSessionAttributesFromOptions(e);var i=this.options,a={};return t&&(a={payload:t}),this.options=M(i,e,a,je),this.options._configuredOptions=M(i._configuredOptions,e,a),null===(r=this.tracing)||void 0===r||r.configure(this.options),null===(n=this.replay)||void 0===n||n.configure(this.options.replay),this.client.configure(this.options,t),null===(o=this.instrumenter)||void 0===o||o.configure(this.options),this.setupUnhandledCapture(),this}},{key:"lastError",value:function(){return this.client.lastError}},{key:"log",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.log(e),{uuid:t}}},{key:"debug",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.debug(e),{uuid:t}}},{key:"info",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.info(e),{uuid:t}}},{key:"warn",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.warn(e),{uuid:t}}},{key:"warning",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.warning(e),{uuid:t}}},{key:"error",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.error(e),{uuid:t}}},{key:"critical",value:function(){var e=this._createItem(arguments),t=e.uuid;return this.client.critical(e),{uuid:t}}},{key:"buildJsonPayload",value:function(e){return this.client.buildJsonPayload(e)}},{key:"sendJsonPayload",value:function(e){return this.client.sendJsonPayload(e)}},{key:"triggerDirectReplay",value:function(e){return this.triggerReplay(gn({type:"direct"},e))}},{key:"triggerReplay",value:function(e){return this.replay?this.replay.triggerReplay(e):null}},{key:"setupUnhandledCapture",value:function(){var e=In();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(!function(e,t,r){if(e){var n;if("function"==typeof t._rollbarOldOnError)n=t._rollbarOldOnError;else if(e.onerror){for(n=e.onerror;n._rollbarOldOnError;)n=n._rollbarOldOnError;t._rollbarOldOnError=n}t.handleAnonymousErrors();var o=function(){var r=Array.prototype.slice.call(arguments,0);!function(e,t,r,n){e._rollbarWrappedError&&(n[4]||(n[4]=e._rollbarWrappedError),n[5]||(n[5]=e._rollbarWrappedError._rollbarContext),e._rollbarWrappedError=null);var o=t.handleUncaughtException.apply(t,n);r&&r.apply(e,n),"anonymous"===o&&(t.anonymousErrorsPending+=1)}(e,t,n,r)};r&&(o._rollbarOldOnError=n),e.onerror=o}}(e,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(e,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(!function(e,t,r){if(e){"function"==typeof e._rollbarURH&&e._rollbarURH.belongsToShim&&e.removeEventListener("unhandledrejection",e._rollbarURH);var n=function(e){var r,n,o;try{r=e.reason}catch(e){r=void 0}try{n=e.promise}catch(e){n="[unhandledrejection] error getting `promise` from event"}try{o=e.detail,!r&&o&&(r=o.reason,n=o.promise)}catch(e){}r||(r="[unhandledrejection] error getting `reason` from event"),t&&t.handleUnhandledRejection&&t.handleUnhandledRejection(r,n)};n.belongsToShim=r,e._rollbarURH=n,e.addEventListener("unhandledrejection",n)}}(e,this),this.unhandledRejectionsInitialized=!0)}},{key:"handleUncaughtException",value:function(e,t,r,n,o,i){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&null===o&&""===t)return"anonymous";var a,s=k(e,t,r,n,o,"onerror","uncaught exception",ir);h(o)?(a=this._createItem([e,o,i]))._unhandledStackInfo=s:h(t)?(a=this._createItem([e,t,i]))._unhandledStackInfo=s:(a=this._createItem([e,i])).stackInfo=s,a.level=this.options.uncaughtErrorLevel,a._isUncaught=!0,this.client.log(a)}}},{key:"handleAnonymousErrors",value:function(){var e=this;if(this.options.inspectAnonymousErrors&&this.isChrome){try{Error.prepareStackTrace=function(t,r){if(e.options.inspectAnonymousErrors&&e.anonymousErrorsPending){if(e.anonymousErrorsPending-=1,!t)return;t._isAnonymous=!0,e.handleUncaughtException(t.message,null,null,null,t)}return t.stack}}catch(e){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",e)}}}},{key:"handleUnhandledRejection",value:function(e,t){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var r="unhandled rejection was null or undefined!";if(e)if(e.message)r=e.message;else{var n=b(e);n.value&&(r=n.value)}var o,i=e&&e._rollbarContext||t&&t._rollbarContext;h(e)?o=this._createItem([r,e,i]):(o=this._createItem([r,e,i])).stackInfo=k(r,"",0,0,null,"unhandledrejection","",ir),o.level=this.options.uncaughtErrorLevel,o._isUncaught=!0,o._originalArgs=o._originalArgs||[],o._originalArgs.push(t),this.client.log(o)}}},{key:"wrap",value:function(e,t,r){try{var n;if(n=u(t)?t:function(){return t||{}},!u(e))return e;if(e._isWrap)return e;if(!e._rollbar_wrapped)for(var o in e._rollbar_wrapped=function(){r&&u(r)&&r.apply(this,arguments);try{return e.apply(this,arguments)}catch(r){var t=r;throw t&&window._rollbarWrappedError!==t&&(a(t,"string")&&(t=new String(t)),t._rollbarContext=n()||{},t._rollbarContext._wrappedSource=e.toString(),window._rollbarWrappedError=t),t}},e._rollbar_wrapped._isWrap=!0,e)c(e,o)&&"_rollbar_wrapped"!==o&&(e._rollbar_wrapped[o]=e[o]);return e._rollbar_wrapped}catch(t){return e}}},{key:"captureEvent",value:function(){var e=function(e){for(var t,r,n,o,i=0,a=e.length;i<a;++i)switch(s(o=e[i])){case"string":!t&&_(O,o)?t=o:!n&&_(x,o)&&(n=o);break;case"object":r=o}return{type:t||"manual",metadata:r||{},level:n}}(arguments);return this.client.captureEvent(e.type,e.metadata,e.level)}},{key:"setSessionUser",value:function(e){var t;null!==(t=this.tracing)&&void 0!==t&&t.session&&this.tracing.session.setUser(e)}},{key:"setSessionAttributes",value:function(e){var t;null!==(t=this.tracing)&&void 0!==t&&t.session&&(e=gn({},e),this.tracing.session.setAttributes(e))}},{key:"setSessionAttributesFromOptions",value:function(e){var t,r,n,o,i,a=e.person||(null===(t=e.payload)||void 0===t?void 0:t.person);a&&this.setSessionUser(a);var s=(null===(r=e.client)||void 0===r||null===(r=r.javascript)||void 0===r?void 0:r.code_version)||e.codeVersion||e.code_version||(null===(n=e.payload)||void 0===n||null===(n=n.client)||void 0===n||null===(n=n.javascript)||void 0===n?void 0:n.code_version)||(null===(o=e.payload)||void 0===o?void 0:o.code_version)||(null===(i=e.payload)||void 0===i?void 0:i.codeVersion);this.setSessionAttributes({"rollbar.codeVersion":s,"rollbar.notifier.name":"rollbar-browser-js","rollbar.notifier.version":e.version})}},{key:"captureDomContentLoaded",value:function(e,t){return t||(t=new Date),this.client.captureDomContentLoaded(t)}},{key:"captureLoad",value:function(e,t){return t||(t=new Date),this.client.captureLoad(t)}},{key:"loadFull",value:function(){je.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")}},{key:"_createItem",value:function(e){return I(e,je,this)}}],[{key:"init",value:function(t,r){return Sn?Sn.global(t).configure(t):Sn=new e(t,r)}},{key:"setComponents",value:function(t){e.prototype.components=t}},{key:"callInstance",value:function(e,t){if(Sn)return Sn[e].apply(Sn,t);var r="Rollbar is not initialized";je.error(r);var n=function(e){for(var t=0,r=e.length;t<r;++t)if(u(e[t]))return e[t];return}(t);n&&n(new Error(r))}}])}();function In(){return"undefined"!=typeof window&&window||"undefined"!=typeof self&&self}pn=Cn,wn(Cn,"global",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("global",t)}),wn(Cn,"configure",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("configure",t)}),wn(Cn,"lastError",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("lastError",t)}),wn(Cn,"log",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("log",t)}),wn(Cn,"debug",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("debug",t)}),wn(Cn,"info",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("info",t)}),wn(Cn,"warn",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("warn",t)}),wn(Cn,"warning",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("warning",t)}),wn(Cn,"error",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("error",t)}),wn(Cn,"critical",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("critical",t)}),wn(Cn,"buildJsonPayload",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("buildJsonPayload",t)}),wn(Cn,"sendJsonPayload",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("sendJsonPayload",t)}),wn(Cn,"wrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("wrap",t)}),wn(Cn,"captureEvent",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pn.callInstance("captureEvent",t)});var On={environment:"unknown",version:Bt,scrubFields:qr.scrubFields,logLevel:zt,reportLevel:Gt,uncaughtErrorLevel:Vt,endpoint:Wt,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1,replay:{enabled:!1,autoStart:!0,triggerDefaults:{samplingRatio:1,preDuration:300,postDuration:5},triggers:[{type:"occurrence",level:["error","critical"]}],debug:{logErrors:!0,logEmits:!1},inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,maskInputOptions:{password:!0,email:!1,tel:!1,text:!1,color:!1,date:!1,"datetime-local":!1,month:!1,number:!1,range:!1,search:!1,time:!1,url:!1,week:!1},maskAllInputs:!1,blockClass:"rb-block",maskTextClass:"rb-mask",ignoreClass:"rb-ignore",slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}},tracing:{enabled:!1,endpoint:"api.rollbar.com/api/1/session/"}},xn=Cn,_n=["inputs"],En=["inputId"],An=["inputs"],Rn=["inputId"],Tn=["type"];function Mn(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Pn(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(oo(e)+" is not iterable")}function jn(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return Nn(l,"_invoke",function(r,n,o){var i,s,u,l=0,c=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,u=e,h.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!f&&l&&!o&&t<c.length;t++){var o,i=c[t],p=h.p,d=i[2];r>3?(o=d===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,h.v=n,h.n=i[1]):p<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,h.n=d,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,d),s=c,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:r.call(n,h))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Nn(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Nn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,Nn(f,"constructor",l),Nn(l,"constructor",u),u.displayName="GeneratorFunction",Nn(l,o,"GeneratorFunction"),Nn(f),Nn(f,o,"Generator"),Nn(f,n,function(){return this}),Nn(f,"toString",function(){return"[object Generator]"}),(jn=function(){return{w:i,m:h}})()}function Nn(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Nn=function(e,t,r,n){function i(t,r){Nn(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Nn(e,t,r,n)}function Ln(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Dn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Ln(i,n,o,a,s,"next",e)}function s(e){Ln(i,n,o,a,s,"throw",e)}a(void 0)})}}function Fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||$n(e,t)||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.")}()}function Un(e,t,r,n){var o=Bn(Xn(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function Bn(){return Bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Xn(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},Bn.apply(null,arguments)}function Wn(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}function zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(r),!0).forEach(function(t){Gn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Gn(e,t,r){return(t=no(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vn(e){return function(e){if(Array.isArray(e))return Qn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$n(e)||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.")}()}function Hn(e,t,r){return t=Xn(t),function(e,t){if(t&&("object"==oo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Zn()?Reflect.construct(t,r||[],Xn(e).constructor):t.apply(e,r))}function qn(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&&Yn(e,t)}function Jn(e){var t="function"==typeof Map?new Map:void 0;return Jn=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(Zn())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Yn(o,r.prototype),o}(e,arguments,Xn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Yn(r,e)},Jn(e)}function Zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zn=function(){return!!e})()}function Yn(e,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yn(e,t)}function Xn(e){return Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xn(e)}function Kn(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 n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function $n(e,t){if(e){if("string"==typeof e)return Qn(e,t);var r={}.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)?Qn(e,t):void 0}}function Qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function to(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,no(n.key),n)}}function ro(e,t,r){return t&&to(e.prototype,t),r&&to(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function no(e){var t=function(e,t){if("object"!=oo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oo(t)?t:t+""}function oo(e){return oo="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},oo(e)}var io,ao=Object.defineProperty,so=function(e,t,r){return function(e,t,r){return t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==oo(t)?t+"":t,r)},uo=Object.defineProperty,lo=function(e,t,r){return function(e,t,r){return t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==oo(t)?t+"":t,r)},co=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(co||{}),fo={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ho={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},po={};function vo(e){if(po[e])return po[e];var t=globalThis[e],r=t.prototype,n=e in fo?fo[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 ho?ho[e]:void 0,a=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&&a&&!globalThis.Zone)return po[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var u=s.contentWindow;if(!u)return t.prototype;var l=u[e].prototype;return document.body.removeChild(s),l?po[e]=l:r}catch(e){return r}}var yo={};function mo(e,t,r){var n,o="".concat(e,".").concat(String(r));if(yo[o])return yo[o].call(t);var i=vo(e),a=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return a?(yo[o]=a,a.call(t)):t[r]}var go={};function bo(e,t,r){var n="".concat(e,".").concat(String(r));if(go[n])return go[n].bind(t);var o=vo(e)[r];return"function"!=typeof o?t[r]:(go[n]=o,o.bind(t))}var wo={ownerDocument:function(e){return mo("Node",e,"ownerDocument")},childNodes:function(e){return mo("Node",e,"childNodes")},parentNode:function(e){return mo("Node",e,"parentNode")},parentElement:function(e){return mo("Node",e,"parentElement")},textContent:function(e){return mo("Node",e,"textContent")},contains:function(e,t){return bo("Node",e,"contains")(t)},getRootNode:function(e){return bo("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?mo("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?mo("Element",e,"shadowRoot"):null},querySelector:function(e,t){return mo("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return mo("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return vo("MutationObserver").constructor},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(){}}}};function ko(e){return e.nodeType===e.ELEMENT_NODE}function So(e){var t=e&&"host"in e&&"mode"in e&&wo.host(e)||null;return Boolean(t&&"shadowRoot"in t&&wo.shadowRoot(t)===e)}function Co(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Io(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);var n=Array.from(t,function(e){return Oo(e,r)}).join("");return(o=n).includes(" background-clip: text;")&&!o.includes(" -webkit-background-clip: text;")&&(o=o.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),o}catch(e){return null}var o}function Oo(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=Io(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer(".concat(e.layerName,")")),e.supportsText&&r.push("supports(".concat(e.supportsText,")")),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?Lo(r,e.styleSheet.href):r}var n,o=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,o=o.replace(n,"$1\\$2")),t?Lo(o,t):o}var xo=function(){return ro(function e(){eo(this,e),lo(this,"idNodeMap",new Map),lo(this,"nodeMetaMap",new WeakMap)},[{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}}])}();function _o(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,o=e.type,i=e.value,a=e.maskInputFn,s=i||"",u=o&&Eo(o);return(r[n.toLowerCase()]||u&&r[u])&&(s=a?a(s,t):"*".repeat(s.length)),s}function Eo(e){return e.toLowerCase()}var Ao="__rrweb_original__";function Ro(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Eo(t):null}function To(e,t){var r,n;try{n=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var o=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(r=null==o?void 0:o[1])&&void 0!==r?r:null}var Mo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Po=/^(?:[a-z+]+:)?\/\//i,jo=/^www\..*/i,No=/^(data:)([^,]*),(.*)/i;function Lo(e,t){return(e||"").replace(Mo,function(e,r,n,o,i,a){var s,u=n||i||a,l=r||o||"";if(!u)return e;if(Po.test(u)||jo.test(u))return"url(".concat(l).concat(u).concat(l,")");if(No.test(u))return"url(".concat(l).concat(u).concat(l,")");if("/"===u[0])return"url(".concat(l).concat((s=t,(s.indexOf("//")>-1?s.split("/").slice(0,3).join("/"):s.split("/")[0]).split("?")[0]+u)).concat(l,")");var c=t.split("/"),f=u.split("/");c.pop();var h,p=Kn(f);try{for(p.s();!(h=p.n()).done;){var d=h.value;"."!==d&&(".."===d?c.pop():c.push(d))}}catch(e){p.e(e)}finally{p.f()}return"url(".concat(l).concat(c.join("/")).concat(l,")")})}function Do(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Fo(e,t){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Array.from(t.childNodes),o=[],i=0;if(n.length>1&&e&&"string"==typeof e)for(var a=Do(e,r),s=a.length/e.length,u=1;u<n.length;u++)if(n[u].textContent&&"string"==typeof n[u].textContent){for(var l=Do(n[u].textContent,r),c=3;c<l.length&&(l[c].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,c),1));c++);for(;c<l.length;c++){var f=l.substring(0,c),h=a.split(f),p=-1;if(2===h.length)p=h[0].length;else if(h.length>2&&""===h[0]&&""!==n[u-1].textContent)p=a.indexOf(f,1);else if(1===h.length){if(f=f.substring(0,f.length-1),(h=a.split(f)).length<=1)return o.push(e),o;c=101}else c===l.length-1&&(p=a.indexOf(f));if(h.length>=2&&c>100){var d=n[u-1].textContent;if(d&&"string"==typeof d){var v=Do(d).length;p=a.indexOf(f,v)}-1===p&&(p=h[0].length)}if(-1!==p){for(var y=Math.floor(p/s);y>0&&y<e.length;){if((i+=1)>50*n.length)return o.push(e),o;var m=Do(e.substring(0,y),r);if(m.length===p){o.push(e.substring(0,y)),e=e.substring(y),a=a.substring(p);break}m.length<p?y+=Math.max(1,Math.floor((p-m.length)/s)):y-=Math.max(1,Math.floor((m.length-p)*s))}break}}}return o.push(e),o}(e,t).join("/* rr_split */")}var Uo,Bo,Wo=1,zo=new RegExp("[^a-z0-9-_:]");function Go(){return Wo++}var Vo=/^[^ \t\n\r\u000c]+/,Ho=/^[, \t\n\r\u000c]+/;var qo=new WeakMap;function Jo(e,t){return t&&""!==t.trim()?Yo(e,t):t}function Zo(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Yo(e,t){var r=qo.get(e);if(r||(r=e.createElement("a"),qo.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function Xo(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]||"background"===r&&["table","td","th"].includes(t)?Jo(e,n):"srcset"===r?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(Ho),!(r>=t.length);){var i=n(Vo);if(","===i.slice(-1))i=Jo(e,i.substring(0,i.length-1)),o.push(i);else{var a="";i=Jo(e,i);for(var s=!1;;){var u=t.charAt(r);if(""===u){o.push((i+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){r+=1,o.push((i+a).trim());break}"("===u&&(s=!0)}a+=u,r+=1}}}return o.join(", ")}(e,n):"style"===r?Lo(n,Yo(e)):"object"===t&&"data"===r?Jo(e,n):n:n}function Ko(e,t,r){return["video","audio"].includes(e)&&"autoplay"===t}function $o(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&$o(wo.parentNode(e),t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&$o(wo.parentNode(e),t,r)}function Qo(e,t,r,n){var o;if(ko(e)){if(o=e,!wo.childNodes(o).length)return!1}else{if(null===wo.parentElement(e))return!1;o=wo.parentElement(e)}try{if("string"==typeof t){if(n){if(o.closest(".".concat(t)))return!0}else if(o.classList.contains(t))return!0}else if($o(o,t,n))return!0;if(r)if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}catch(e){}return!1}function ei(e,t){var r=t.doc,n=t.mirror,o=t.blockClass,i=t.blockSelector,a=t.needsMask,s=t.inlineStylesheet,u=t.maskInputOptions,l=void 0===u?{}:u,c=t.maskTextFn,f=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,d=t.inlineImages,v=t.recordCanvas,y=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,b=t.cssCaptured,w=void 0!==b&&b,k=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:co.Document,childNodes:[],compatMode:e.compatMode}:{type:co.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:co.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,o=t.blockClass,i=t.blockSelector,a=t.inlineStylesheet,s=t.maskInputOptions,u=void 0===s?{}:s,l=t.maskInputFn,c=t.dataURLOptions,f=void 0===c?{}:c,h=t.inlineImages,p=t.recordCanvas,d=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,m=t.rootId,g=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,i),b=function(e){if(e instanceof HTMLFormElement)return"form";var t=Eo(e.tagName);return zo.test(t)?"div":t}(e),w={},k=e.attributes.length,S=0;S<k;S++){var C=e.attributes[S];Ko(b,C.name,C.value)||(w[C.name]=Xo(n,b,Eo(C.name),C.value))}if("link"===b&&a){var I=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),O=null;I&&(O=Io(I)),O&&(delete w.rel,delete w.href,w._cssText=O)}if("style"===b&&e.sheet){var x=Io(e.sheet);x&&(e.childNodes.length>1&&(x=Fo(x,e)),w._cssText=x)}if(["input","textarea","select"].includes(b)){var _=e.value,E=e.checked;"radio"!==w.type&&"checkbox"!==w.type&&"submit"!==w.type&&"button"!==w.type&&_?w.value=_o({element:e,type:Ro(e),tagName:b,value:_,maskInputOptions:u,maskInputFn:l}):E&&(w.checked=E)}"option"===b&&(e.selected&&!u.select?w.selected=!0:delete w.selected);"dialog"===b&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===b&&p)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var o=t.getImageData,i=Ao in o?o[Ao]: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})(e)||(w.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){var A=e.toDataURL(f.type,f.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,A!==R.toDataURL(f.type,f.quality)&&(w.rr_dataURL=A)}if("img"===b&&h){Uo||(Uo=n.createElement("canvas"),Bo=Uo.getContext("2d"));var T=e,M=T.currentSrc||T.getAttribute("src")||"<unknown-src>",P=T.crossOrigin,j=function(){T.removeEventListener("load",j);try{Uo.width=T.naturalWidth,Uo.height=T.naturalHeight,Bo.drawImage(T,0,0),w.rr_dataURL=Uo.toDataURL(f.type,f.quality)}catch(e){if("anonymous"!==T.crossOrigin)return T.crossOrigin="anonymous",void(T.complete&&0!==T.naturalWidth?j():T.addEventListener("load",j));console.warn("Cannot inline img src=".concat(M,"! Error: ").concat(e))}"anonymous"===T.crossOrigin&&(P?w.crossOrigin=P:T.removeAttribute("crossorigin"))};T.complete&&0!==T.naturalWidth?j():T.addEventListener("load",j)}if(["audio","video"].includes(b)){var N=w;N.rr_mediaState=e.paused?"paused":"played",N.rr_mediaCurrentTime=e.currentTime,N.rr_mediaPlaybackRate=e.playbackRate,N.rr_mediaMuted=e.muted,N.rr_mediaLoop=e.loop,N.rr_mediaVolume=e.volume}y||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(g){var L=e.getBoundingClientRect(),D=L.width,F=L.height;w={class:w.class,rr_width:"".concat(D,"px"),rr_height:"".concat(F,"px")}}"iframe"!==b||d(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(b)&&(r=!0)}catch(e){}return{type:co.Element,tagName:b,attributes:w,childNodes:[],isSVG:Zo(e)||void 0,needBlock:g,rootId:m,isCustom:r}}(e,{doc:r,blockClass:o,blockSelector:i,inlineStylesheet:s,maskInputOptions:l,maskInputFn:f,dataURLOptions:p,inlineImages:d,recordCanvas:v,keepIframeSrcFn:y,newlyAddedElement:g,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,o=t.rootId,i=t.cssCaptured,a=wo.parentNode(e),s=a&&a.tagName,u="",l="STYLE"===s||void 0,c="SCRIPT"===s||void 0;c?u="SCRIPT_PLACEHOLDER":i||(u=wo.textContent(e),l&&u&&(u=Lo(u,Yo(t.doc))));!l&&!c&&u&&r&&(u=n?n(u,wo.parentElement(e)):u.replace(/[\S]/g,"*"));return{type:co.Text,textContent:u||"",rootId:o}}(e,{doc:r,needsMask:a,maskTextFn:c,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:co.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:co.Comment,textContent:wo.textContent(e)||"",rootId:k};default:return!1}}function ti(e){return null==e?"":e.toLowerCase()}function ri(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function ni(e,t){var r=t.doc,n=t.mirror,o=t.blockClass,i=t.blockSelector,a=t.maskTextClass,s=t.maskTextSelector,u=t.skipChild,l=void 0!==u&&u,c=t.inlineStylesheet,f=void 0===c||c,h=t.maskInputOptions,p=void 0===h?{}:h,d=t.maskTextFn,v=t.maskInputFn,y=t.slimDOMOptions,m=t.dataURLOptions,g=void 0===m?{}:m,b=t.inlineImages,w=void 0!==b&&b,k=t.recordCanvas,S=void 0!==k&&k,C=t.onSerialize,I=t.onIframeLoad,O=t.iframeLoadTimeout,x=void 0===O?5e3:O,_=t.onStylesheetLoad,E=t.stylesheetLoadTimeout,A=void 0===E?5e3:E,R=t.keepIframeSrcFn,T=void 0===R?function(){return!1}:R,M=t.newlyAddedElement,P=void 0!==M&&M,j=t.cssCaptured,N=void 0!==j&&j,L=t.needsMask,D=t.preserveWhiteSpace,F=void 0===D||D;L||(L=Qo(e,a,s,void 0===L));var U,B=ei(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:L,inlineStylesheet:f,maskInputOptions:p,maskTextFn:d,maskInputFn:v,dataURLOptions:g,inlineImages:w,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:P,cssCaptured:N});if(!B)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===co.Comment)return!0;if(e.type===co.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===To(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ti(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ti(e.attributes.name)||"icon"===ti(e.attributes.rel)||"apple-touch-icon"===ti(e.attributes.rel)||"shortcut icon"===ti(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ti(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ti(e.attributes.property).match(/^(og|twitter|fb):/)||ti(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ti(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ti(e.attributes.name)||"googlebot"===ti(e.attributes.name)||"bingbot"===ti(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ti(e.attributes.name)||"generator"===ti(e.attributes.name)||"framework"===ti(e.attributes.name)||"publisher"===ti(e.attributes.name)||"progid"===ti(e.attributes.name)||ti(e.attributes.property).match(/^article:/)||ti(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ti(e.attributes.name)||"yandex-verification"===ti(e.attributes.name)||"csrf-token"===ti(e.attributes.name)||"p:domain_verify"===ti(e.attributes.name)||"verify-v1"===ti(e.attributes.name)||"verification"===ti(e.attributes.name)||"shopify-checkout-api-token"===ti(e.attributes.name)))return!0}}return!1}(B,y)||!F&&B.type===co.Text&&!B.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Go();var W=Object.assign(B,{id:U});if(n.add(e,W),-2===U)return null;C&&C(e);var z=!l;if(W.type===co.Element){z=z&&!W.needBlock,delete W.needBlock;var G=wo.shadowRoot(e);G&&Co(G)&&(W.isShadowHost=!0)}if((W.type===co.Document||W.type===co.Element)&&z){y.headWhitespace&&W.type===co.Element&&"head"===W.tagName&&(F=!1);var V={doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:L,maskTextClass:a,maskTextSelector:s,skipChild:l,inlineStylesheet:f,maskInputOptions:p,maskTextFn:d,maskInputFn:v,slimDOMOptions:y,dataURLOptions:g,inlineImages:w,recordCanvas:S,preserveWhiteSpace:F,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:_,stylesheetLoadTimeout:A,keepIframeSrcFn:T,cssCaptured:!1};if(W.type===co.Element&&"textarea"===W.tagName&&void 0!==W.attributes.value);else{W.type===co.Element&&void 0!==W.attributes._cssText&&"string"==typeof W.attributes._cssText&&(V.cssCaptured=!0);for(var H=0,q=Array.from(wo.childNodes(e));H<q.length;H++){var J=ni(q[H],V);J&&W.childNodes.push(J)}}var Z=null;if(ko(e)&&(Z=wo.shadowRoot(e)))for(var Y=0,X=Array.from(wo.childNodes(Z));Y<X.length;Y++){var K=ni(X[Y],V);K&&(Co(Z)&&(K.isShadow=!0),W.childNodes.push(K))}}var $=wo.parentNode(e);return $&&So($)&&Co($)&&(W.isShadow=!0),W.type===co.Element&&"iframe"===W.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 a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var s=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&I){var r=ni(t,{doc:t,mirror:n,blockClass:o,blockSelector:i,needsMask:L,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskTextFn:d,maskInputFn:v,slimDOMOptions:y,dataURLOptions:g,inlineImages:w,recordCanvas:S,preserveWhiteSpace:F,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:_,stylesheetLoadTimeout:A,keepIframeSrcFn:T});r&&I(e,r)}},x),W.type===co.Element&&"link"===W.tagName&&"string"==typeof W.attributes.rel&&("stylesheet"===W.attributes.rel||"preload"===W.attributes.rel&&"string"==typeof W.attributes.href&&"css"===To(W.attributes.href))&&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()})}}(e,function(){if(_){var t=ni(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:L,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskTextFn:d,maskInputFn:v,slimDOMOptions:y,dataURLOptions:g,inlineImages:w,recordCanvas:S,preserveWhiteSpace:F,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:_,stylesheetLoadTimeout:A,keepIframeSrcFn:T});t&&_(e,t)}},A),W}function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ii(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 ai={exports:{}},si=String,ui=function(){return{isColorSupported:!1,reset:si,bold:si,dim:si,italic:si,underline:si,inverse:si,hidden:si,strikethrough:si,black:si,red:si,green:si,yellow:si,blue:si,magenta:si,cyan:si,white:si,gray:si,bgBlack:si,bgRed:si,bgGreen:si,bgYellow:si,bgBlue:si,bgMagenta:si,bgCyan:si,bgWhite:si}};ai.exports=ui(),ai.exports.createColors=ui;var li=ai.exports,ci=ii(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),fi=li,hi=ci,pi=function(e){function t(e,r,n,o,i,a){var s;return eo(this,t),(s=Hn(this,t,[e])).name="CssSyntaxError",s.reason=e,i&&(s.file=i),o&&(s.source=o),a&&(s.plugin=a),void 0!==r&&void 0!==n&&("number"==typeof r?(s.line=r,s.column=n):(s.line=r.line,s.column=r.column,s.endLine=n.line,s.endColumn=n.column)),s.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return qn(t,e),ro(t,[{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=fi.isColorSupported),hi&&e&&(r=hi(r));var n,o,i=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),u=String(s).length;if(e){var l=fi.createColors(!0),c=l.bold,f=l.gray,h=l.red;n=function(e){return c(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(a,s).map(function(e,r){var i=a+1+r,s=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var l=o(s.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(s)+e+"\n "+l+n("^")}return" "+o(s)+e}).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}])}(Jn(Error)),di=pi;pi.default=pi;var vi={};vi.isClean=Symbol("isClean"),vi.my=Symbol("my");var yi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var mi=function(){return ro(function e(t){eo(this,e),this.builder=t},[{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 a=0;a<o;a++)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 yi[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 a,s="raw"+((a=r)[0].toUpperCase()+a.slice(1));return this[s]?n=this[s](i,e):i.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=yi[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)}}])}(),gi=mi;mi.default=mi;var bi=gi;function wi(e,t){new bi(t).stringify(e)}var ki=wi;wi.default=wi;var Si=vi.isClean,Ci=vi.my,Ii=di,Oi=gi,xi=ki;function _i(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=oo(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map(function(e){return _i(e,r)}):("object"===i&&null!==o&&(o=_i(o)),r[n]=o)}return r}var Ei=function(){return ro(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in eo(this,e),this.raws={},this[Si]=!1,this[Ci]=!0,t)if("nodes"===r){this.nodes=[];var n,o=Kn(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]},[{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=_i(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 Ii(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[Si]){this[Si]=!1;for(var e=this;e=e.parent;)e[Si]=!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 Oi).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,a=n;i<a.length;i++){var s=a[i];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}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 a=this[i];if(Array.isArray(a))r[i]=a.map(function(e){return"object"===oo(e)&&e.toJSON?e.toJSON(null,t):e});else if("object"===oo(a)&&a.toJSON)r[i]=a.toJSON(null,t);else if("source"===i){var s=t.get(a.input);null==s&&(s=o,t.set(a.input,o),o++),r[i]={end:a.end,inputId:s,start:a.start}}else r[i]=a}return n&&(r.inputs=Vn(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]:xi;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}}])}(),Ai=Ei;Ei.default=Ei;var Ri=function(e){function t(e){var r;return eo(this,t),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=zn(zn({},e),{},{value:String(e.value)})),(r=Hn(this,t,[e])).type="decl",r}return qn(t,e),ro(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}])}(Ai),Ti=Ri;Ri.default=Ri;var Mi=function(){for(var e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},Pi=ci.SourceMapConsumer,ji=ci.SourceMapGenerator,Ni=ci.existsSync,Li=ci.readFileSync,Di=ci.dirname,Fi=ci.join;var Ui=function(){return ro(function e(t,r){if(eo(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=Di(this.mapFile)),o&&(this.text=o)}},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new Pi(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),Buffer?Buffer.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"===oo(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=Di(e),Ni(e))return this.mapFile=e,Li(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 Pi)return ji.fromSourceMap(t).toString();if(t instanceof ji)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=Fi(Di(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)}}])}(),Bi=Ui;Ui.default=Ui;var Wi=ci.SourceMapConsumer,zi=ci.SourceMapGenerator,Gi=ci.fileURLToPath,Vi=ci.pathToFileURL,Hi=ci.isAbsolute,qi=ci.resolve,Ji=Mi,Zi=ci,Yi=di,Xi=Bi,Ki=Symbol("fromOffsetCache"),$i=Boolean(Wi&&zi),Qi=Boolean(qi&&Hi),ea=function(){return ro(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(eo(this,e),null==t||"object"===oo(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&&(!Qi||/^\w+:\/\//.test(r.from)||Hi(r.from)?this.file=r.from:this.file=qi(r.from)),Qi&&$i){var n=new Xi(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 "+Ji(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,r){var n,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===oo(t)){var s=t,u=r;if("number"==typeof s.offset){var l=this.fromOffset(s.offset);t=l.line,r=l.col}else t=s.line,r=s.column;if("number"==typeof u.offset){var c=this.fromOffset(u.offset);o=c.line,i=c.col}else o=u.line,i=u.column}else if(!r){var f=this.fromOffset(t);t=f.line,r=f.col}var h=this.origin(t,r,o,i);return(n=h?new Yi(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,a.plugin):new Yi(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,a.plugin)).input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(Vi&&(n.input.url=Vi(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[Ki])t=this[Ki];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[Ki]=t}var a=0;if(e>=t[t.length-1])a=t.length-1;else for(var s,u=t.length-2;a<u;)if(e<t[s=a+(u-a>>1)])u=s-1;else{if(!(e>=t[s+1])){a=s;break}a=s+1}return{col:e-t[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:qi(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,a=this.map.consumer(),s=a.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof r&&(o=a.originalPositionFor({column:n,line:r})),i=Hi(s.source)?Vi(s.source):new URL(s.source,this.map.consumer().sourceRoot||Vi(this.map.mapFile));var u={column:s.column,endColumn:o&&o.column,endLine:o&&o.line,line:s.line,url:i.toString()};if("file:"===i.protocol){if(!Gi)throw new Error("file: protocol is not available in this PostCSS build");u.file=Gi(i)}var l=a.sourceContentFor(s.source);return l&&(u.source=l),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=zn({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}])}(),ta=ea;ea.default=ea,Zi&&Zi.registerInput&&Zi.registerInput(ea);var ra=ci.SourceMapConsumer,na=ci.SourceMapGenerator,oa=ci.dirname,ia=ci.relative,aa=ci.resolve,sa=ci.sep,ua=ci.pathToFileURL,la=ta,ca=Boolean(ra&&na),fa=Boolean(oa&&aa&&ia&&sa),ha=function(){return ro(function e(t,r,n,o){eo(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},[{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=Kn(this.previous());try{for(t.s();!(e=t.n()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),o=r.root||oa(r.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new ra(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(),fa&&ca&&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=na.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new na({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 na({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,u,l){if(e.css+=s,u&&"end"!==l&&(a.generated.line=n,a.generated.column=o-1,u.source&&u.source.start?(a.source=e.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,e.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(t=s.match(/\n/g))?(n+=t.length,r=s.lastIndexOf("\n"),o=s.length-r):o+=s.length,u&&"start"!==l){var c=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===c.last&&!c.raws.semicolon||(u.source&&u.source.end?(a.source=e.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=n,a.generated.column=o-2,e.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=o-1,e.map.addMapping(a)))}})}},{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?oa(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=oa(aa(r,this.mapOpts.annotation)));var n=ia(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 la(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 Buffer?Buffer.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(ua){var r=ua(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;"\\"===sa&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}])}(),pa=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[e])).type="comment",r}return qn(t,e),ro(t)}(Ai),da=pa;pa.default=pa;var va,ya,ma,ga,ba=vi.isClean,wa=vi.my,ka=Ti,Sa=da;function Ca(e){return e.map(function(e){return e.nodes&&(e.nodes=Ca(e.nodes)),delete e.source,e})}function Ia(e){if(e[ba]=!1,e.proxyOf.nodes){var t,r=Kn(e.proxyOf.nodes);try{for(r.s();!(t=r.n()).done;){Ia(t.value)}}catch(e){r.e(e)}finally{r.f()}}}var Oa=function(e){function t(){return eo(this,t),Hn(this,t,arguments)}return qn(t,e),ro(t,[{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,a=o[n],s=Kn(this.normalize(a,this.last));try{for(s.s();!(i=s.n()).done;){var u=i.value;this.proxyOf.nodes.push(u)}}catch(e){s.e(e)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Un(t,"cleanRaws",this,3)([e]),this.nodes){var r,n=Kn(this.nodes);try{for(n.s();!(r=n.n()).done;){r.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,Vn(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,a=Kn(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}}catch(e){a.e(e)}finally{a.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,a,s=Kn(o);try{for(s.s();!(i=s.n()).done;){var u=i.value;this.proxyOf.nodes.splice(r,0,u)}}catch(e){s.e(e)}finally{s.f()}for(var l in this.indexes)r<=(a=this.indexes[l])&&(this.indexes[l]=a+o.length);return this.markDirty(),this}},{key:"normalize",value:function(e,r){var n=this;if("string"==typeof e)e=Ca(va(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var o,i=Kn(e=e.slice(0));try{for(i.s();!(o=i.n()).done;){var a=o.value;a.parent&&a.parent.removeChild(a,"ignore")}}catch(e){i.e(e)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var s,u=Kn(e=e.nodes.slice(0));try{for(u.s();!(s=u.n()).done;){var l=s.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 ka(e)]}else if(e.selector)e=[new ya(e)];else if(e.name)e=[new ma(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Sa(e)]}var c=e.map(function(e){return e[wa]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ba]&&Ia(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return c}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=Kn(t=t.reverse());try{for(o.s();!(n=o.n()).done;){var i,a=n.value,s=this.normalize(a,this.first,"prepend").reverse(),u=Kn(s);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 c in this.indexes)this.indexes[c]=this.indexes[c]+s.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=Kn(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]}}])}(Ai);Oa.registerParse=function(e){va=e},Oa.registerRule=function(e){ya=e},Oa.registerAtRule=function(e){ma=e},Oa.registerRoot=function(e){ga=e};var xa=Oa;Oa.default=Oa,Oa.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ma.prototype):"rule"===e.type?Object.setPrototypeOf(e,ya.prototype):"decl"===e.type?Object.setPrototypeOf(e,ka.prototype):"comment"===e.type?Object.setPrototypeOf(e,Sa.prototype):"root"===e.type&&Object.setPrototypeOf(e,ga.prototype),e[wa]=!0,e.nodes&&e.nodes.forEach(function(e){Oa.rebuild(e)})};var _a,Ea,Aa=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[zn({type:"document"},e)])).nodes||(r.nodes=[]),r}return qn(t,e),ro(t,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _a(new Ea,this,e).stringify()}}])}(xa);Aa.registerLazyResult=function(e){_a=e},Aa.registerProcessor=function(e){Ea=e};var Ra=Aa;Aa.default=Aa;var Ta=function(){return ro(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(eo(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]},[{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}}])}(),Ma=Ta;Ta.default=Ta;var Pa=Ma,ja=function(){return ro(function e(t,r,n){eo(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0},[{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 Pa(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}}])}(),Na=ja;ja.default=ja;var La="'".charCodeAt(0),Da='"'.charCodeAt(0),Fa="\\".charCodeAt(0),Ua="/".charCodeAt(0),Ba="\n".charCodeAt(0),Wa=" ".charCodeAt(0),za="\f".charCodeAt(0),Ga="\t".charCodeAt(0),Va="\r".charCodeAt(0),Ha="[".charCodeAt(0),qa="]".charCodeAt(0),Ja="(".charCodeAt(0),Za=")".charCodeAt(0),Ya="{".charCodeAt(0),Xa="}".charCodeAt(0),Ka=";".charCodeAt(0),$a="*".charCodeAt(0),Qa=":".charCodeAt(0),es="@".charCodeAt(0),ts=/[\t\n\f\r "#'()/;[\\\]{}]/g,rs=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ns=/.[\r\n"'(/\\]/,os=/[\da-f]/i,is=xa,as=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[e])).type="atrule",r}return qn(t,e),ro(t,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Un(t,"append",this,3)(r)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Un(t,"prepend",this,3)(r)}}])}(is),ss=as;as.default=as,is.registerAtRule(as);var us,ls,cs=xa,fs=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[e])).type="root",r.nodes||(r.nodes=[]),r}return qn(t,e),ro(t,[{key:"normalize",value:function(e,r,n){var o=Un(t,"normalize",this,3)([e]);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var i,a=Kn(o);try{for(a.s();!(i=a.n()).done;){i.value.raws.before=r.raws.before}}catch(e){a.e(e)}finally{a.f()}}return o}},{key:"removeChild",value:function(e,r){var n=this.index(e);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),Un(t,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new us(new ls,this,e).stringify()}}])}(cs);fs.registerLazyResult=function(e){us=e},fs.registerProcessor=function(e){ls=e};var hs=fs;fs.default=fs,cs.registerRoot(fs);var ps={comma:function(e){return ps.split(e,[","],!0)},space:function(e){return ps.split(e,[" ","\n","\t"])},split:function(e,t,r){var n,o=[],i="",a=!1,s=0,u=!1,l="",c=!1,f=Kn(e);try{for(f.s();!(n=f.n()).done;){var h=n.value;c?c=!1:"\\"===h?c=!0:u?h===l&&(u=!1):'"'===h||"'"===h?(u=!0,l=h):"("===h?s+=1:")"===h?s>0&&(s-=1):0===s&&t.includes(h)&&(a=!0),a?(""!==i&&o.push(i.trim()),i="",a=!1):i+=h}}catch(e){f.e(e)}finally{f.f()}return(r||""!==i)&&o.push(i.trim()),o}},ds=ps;ps.default=ps;var vs=xa,ys=ds,ms=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[e])).type="rule",r.nodes||(r.nodes=[]),r}return qn(t,e),ro(t,[{key:"selectors",get:function(){return ys.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)}}])}(vs),gs=ms;ms.default=ms,vs.registerRule(ms);var bs=Ti,ws=function(e){var t,r,n,o,i,a,s,u,l,c,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,y=[],m=[];function g(t){throw e.error("Unclosed "+t,v)}return{back:function(e){m.push(e)},endOfFile:function(){return 0===m.length&&v>=d},nextToken:function(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case Ba:case Wa:case Ga:case Va:case za:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===Wa||t===Ba||t===Ga||t===Va||t===za);c=["space",h.slice(v,r)],v=r-1;break;case Ha:case qa:case Ya:case Xa:case Qa:case Ka:case Za:var b=String.fromCharCode(t);c=[b,b,v];break;case Ja:if(u=y.length?y.pop()[1]:"",l=h.charCodeAt(v+1),"url"===u&&l!==La&&l!==Da&&l!==Wa&&l!==Ba&&l!==Ga&&l!==za&&l!==Va){r=v;do{if(a=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}g("bracket")}for(s=r;h.charCodeAt(s-1)===Fa;)s-=1,a=!a}while(a);c=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||ns.test(o)?c=["(","(",v]:(c=["brackets",o,v,r],v=r);break;case La:case Da:n=t===La?"'":'"',r=v;do{if(a=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}g("string")}for(s=r;h.charCodeAt(s-1)===Fa;)s-=1,a=!a}while(a);c=["string",h.slice(v,r+1),v,r],v=r;break;case es:ts.lastIndex=v+1,ts.test(h),r=0===ts.lastIndex?h.length-1:ts.lastIndex-2,c=["at-word",h.slice(v,r+1),v,r],v=r;break;case Fa:for(r=v,i=!0;h.charCodeAt(r+1)===Fa;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==Ua&&t!==Wa&&t!==Ba&&t!==Ga&&t!==Va&&t!==za&&(r+=1,os.test(h.charAt(r)))){for(;os.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Wa&&(r+=1)}c=["word",h.slice(v,r+1),v,r],v=r;break;default:t===Ua&&h.charCodeAt(v+1)===$a?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:g("comment")),c=["comment",h.slice(v,r+1),v,r],v=r):(rs.lastIndex=v+1,rs.test(h),r=0===rs.lastIndex?h.length-1:rs.lastIndex-2,c=["word",h.slice(v,r+1),v,r],y.push(c),v=r)}return v++,c}},position:function(){return v}}},ks=da,Ss=ss,Cs=hs,Is=gs,Os={empty:!0,space:!0};var xs=xa,_s=function(){return ro(function e(t){eo(this,e),this.input=t,this.root=new Cs,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,r,n,o=new Ss;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,a=!1,s=[],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){a=!0;break}if("}"===t){if(s.length>0){for(r=s[n=s.length-1];r&&"space"===r[0];)r=s[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(o.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(o,"params",s),i&&(e=s[s.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=""),a&&(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,a=Kn(e.entries());try{for(a.s();!(o=a.n()).done;){var s=Fn(o.value,2),u=s[0];if("("===(r=(t=s[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){a.e(e)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new ks;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=ws(this.input)}},{key:"decl",value:function(e,t){var r=new bs;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 a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.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 l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var c=e.slice(0),f="",h=u;h>0;h--){var p=c[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=c.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=c)}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+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.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 Is;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=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(r=u[0],s.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(a&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(s,a);break}if("{"===r)return void this.rule(s);if("}"===r){this.tokenizer.back(s.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(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{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,a,s,u=r.length,l="",c=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(s=r[f-1]?r[f-1][0]:"empty",a=r[f+1]?r[f+1][0]:"empty",Os[s]||Os[a]||","===l.slice(-1)?c=!1:l+=o[1]):l+=o[1]:c=!1;if(!c){var h=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:h,value:l}}e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new Is;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})}}])}(),Es=ta;function As(e,t){var r=new Es(e,t),n=new _s(r);try{n.parse()}catch(e){throw e}return n.root}var Rs=As;As.default=As,xs.registerParse(As);var Ts=vi.isClean,Ms=vi.my,Ps=ha,js=ki,Ns=xa,Ls=Ra,Ds=Na,Fs=Rs,Us=hs,Bs={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ws={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},zs={Once:!0,postcssPlugin:!0,prepare:!0};function Gs(e){return"object"===oo(e)&&"function"==typeof e.then}function Vs(e){var t=!1,r=Bs[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 Hs(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Vs(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function qs(e){return e[Ts]=!1,e.nodes&&e.nodes.forEach(function(e){return qs(e)}),e}var Js={},Zs=function(){return ro(function e(t,r,n){var o,i=this;if(eo(this,e),this.stringified=!1,this.processed=!1,"object"!==oo(r)||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof Ds)o=qs(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var a=Fs;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[Ms]&&Ns.rebuild(o)}else o=qs(r);this.result=new Ds(t,o,n),this.helpers=zn(zn({},Js),{},{postcss:Js,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===oo(e)&&e.prepare?zn(zn({},e),e.prepare(i.result)):e})},[{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=Kn(this.plugins);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("object"===oo(o))for(var i in o){if(!Ws[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(!zs[i])if("object"===oo(o[i]))for(var a in o[i])r(o,"*"===a?i:i+"-"+a.toLowerCase(),o[i][a]);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:(e=Dn(jn().m(function e(){var t,r,n,o,i,a,s,u,l,c,f,h,p,d=this;return jn().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(!(t<this.plugins.length)){e.n=6;break}if(r=this.plugins[t],!Gs(n=this.runOnRoot(r))){e.n=5;break}return e.p=2,e.n=3,n;case 3:e.n=5;break;case 4:throw e.p=4,f=e.v,this.handleError(f);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}o=this.result.root;case 7:if(o[Ts]){e.n=14;break}o[Ts]=!0,i=[Hs(o)];case 8:if(!(i.length>0)){e.n=13;break}if(!Gs(a=this.visitTick(i))){e.n=12;break}return e.p=9,e.n=10,a;case 10:e.n=12;break;case 11:throw e.p=11,h=e.v,s=i[i.length-1].node,this.handleError(h,s);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}u=Kn(this.listeners.OnceExit),e.p=15,c=jn().m(function e(){var t,r,n,i,a;return jn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=Fn(l.value,2),r=t[0],n=t[1],d.result.lastPlugin=r,e.p=1,"document"!==o.type){e.n=3;break}return i=o.nodes.map(function(e){return n(e,d.helpers)}),e.n=2,Promise.all(i);case 2:e.n=4;break;case 3:return e.n=4,n(o,d.helpers);case 4:e.n=6;break;case 5:throw e.p=5,a=e.v,d.handleError(a);case 6:return e.a(2)}},e,null,[[1,5]])}),u.s();case 16:if((l=u.n()).done){e.n=18;break}return e.d(Pn(c()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,p=e.v,u.e(p);case 20:return e.p=20,u.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return e.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===oo(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 Gs(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=js;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ps(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=Kn(this.plugins);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(Gs(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[Ts];)n[Ts]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type){var o,i=Kn(n.nodes);try{for(i.s();!(o=i.n()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}}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=Kn(e);try{for(n.s();!(r=n.n()).done;){var o=Fn(r.value,2),i=o[0],a=o[1];this.result.lastPlugin=i;var s=void 0;try{s=a(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Gs(s))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=Fn(n[t.visitorIndex],2),i=o[0],a=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return a(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var s,u=t.iterator;s=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!s[Ts])return s[Ts]=!0,void e.push(Hs(s));t.iterator=0,delete r.indexes[u]}for(var l=t.events;t.eventIndex<l.length;){var c=l[t.eventIndex];if(t.eventIndex+=1,0===c)return void(r.nodes&&r.nodes.length&&(r[Ts]=!0,t.iterator=r.getIterator()));if(this.listeners[c])return void(t.visitors=this.listeners[c])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var t=this;e[Ts]=!0;var r,n=Kn(Vs(e));try{for(n.s();!(r=n.n()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[Ts]||t.walkSync(e)});else{var i=this.listeners[o];if(i&&this.visitSync(i,e.toProxy()))return}}}catch(e){n.e(e)}finally{n.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:Symbol.toStringTag,get:function(){return"LazyResult"}}]);var e}();Zs.registerPostcss=function(e){Js=e};var Ys=Zs;Zs.default=Zs,Us.registerLazyResult(Zs),Ls.registerLazyResult(Zs);var Xs=ha,Ks=ki,$s=Rs,Qs=Na,eu=function(){return ro(function e(t,r,n){var o;eo(this,e),r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=n,this._map=void 0;var i=Ks;this.result=new Qs(this._processor,o,this._opts),this.result.css=r;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var s=new Xs(i,o,this._opts,r);if(s.isMap()){var u=Fn(s.generate(),2),l=u[0],c=u[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css},[{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=$s;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}])}(),tu=eu;eu.default=eu;var ru=tu,nu=Ys,ou=Ra,iu=hs,au=function(){return ro(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];eo(this,e),this.version="8.4.38",this.plugins=this.normalize(t)},[{key:"normalize",value:function(e){var t,r=[],n=Kn(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"===oo(o)&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if("object"===oo(o)&&o.postcssPlugin)r.push(o);else if("function"==typeof o)r.push(o);else{if("object"!==oo(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 nu(this,e,t):new ru(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}])}(),su=au;au.default=au,iu.registerProcessor(au),ou.registerProcessor(au);var uu=Ti,lu=Bi,cu=da,fu=ss,hu=ta,pu=hs,du=gs;function vu(e,t){if(Array.isArray(e))return e.map(function(e){return vu(e)});var r=e.inputs,n=Mn(e,_n);if(r){t=[];var o,i=Kn(r);try{for(i.s();!(o=i.n()).done;){var a=zn(zn({},o.value),{},{__proto__:hu.prototype});a.map&&(a.map=zn(zn({},a.map),{},{__proto__:lu.prototype})),t.push(a)}}catch(e){i.e(e)}finally{i.f()}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return vu(e,t)})),n.source){var s=n.source,u=s.inputId,l=Mn(s,En);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new pu(n);if("decl"===n.type)return new uu(n);if("rule"===n.type)return new du(n);if("comment"===n.type)return new cu(n);if("atrule"===n.type)return new fu(n);throw new Error("Unknown node type: "+e.type)}var yu=vu;vu.default=vu;var mu=di,gu=Ti,bu=Ys,wu=xa,ku=su,Su=ki,Cu=yu,Iu=Ra,Ou=Ma,xu=da,_u=ss,Eu=Na,Au=ta,Ru=Rs,Tu=ds,Mu=gs,Pu=hs,ju=Ai;function Nu(){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 ku(t)}Nu.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"),process.env.LANG&&process.env.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 ku).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return Nu([o(r)]).process(e,t)},o},Nu.stringify=Su,Nu.parse=Ru,Nu.fromJSON=Cu,Nu.list=Tu,Nu.comment=function(e){return new xu(e)},Nu.atRule=function(e){return new _u(e)},Nu.decl=function(e){return new gu(e)},Nu.rule=function(e){return new Mu(e)},Nu.root=function(e){return new Pu(e)},Nu.document=function(e){return new Iu(e)},Nu.CssSyntaxError=mu,Nu.Declaration=gu,Nu.Container=wu,Nu.Processor=ku,Nu.Document=Iu,Nu.Comment=xu,Nu.Warning=Ou,Nu.AtRule=_u,Nu.Result=Eu,Nu.Input=Au,Nu.Rule=Mu,Nu.Root=Pu,Nu.Node=ju,bu.registerPostcss(Nu);var Lu=Nu;Nu.default=Nu;var Du=oi(Lu);Du.stringify,Du.fromJSON,Du.plugin,Du.parse,Du.list,Du.document,Du.comment,Du.atRule,Du.rule,Du.decl,Du.root,Du.CssSyntaxError,Du.Declaration,Du.Container,Du.Processor,Du.Document,Du.Comment,Du.Warning,Du.AtRule,Du.Result,Du.Input,Du.Rule,Du.Root,Du.Node;var Fu=Object.defineProperty,Uu=function(e,t,r){return function(e,t,r){return t in e?Fu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==oo(t)?t+"":t,r)};function Bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wu(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 zu={exports:{}},Gu=String,Vu=function(){return{isColorSupported:!1,reset:Gu,bold:Gu,dim:Gu,italic:Gu,underline:Gu,inverse:Gu,hidden:Gu,strikethrough:Gu,black:Gu,red:Gu,green:Gu,yellow:Gu,blue:Gu,magenta:Gu,cyan:Gu,white:Gu,gray:Gu,bgBlack:Gu,bgRed:Gu,bgGreen:Gu,bgYellow:Gu,bgBlue:Gu,bgMagenta:Gu,bgCyan:Gu,bgWhite:Gu}};zu.exports=Vu(),zu.exports.createColors=Vu;var Hu=zu.exports,qu=Wu(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ju=Hu,Zu=qu,Yu=function(e){function t(e,r,n,o,i,a){var s;return eo(this,t),(s=Hn(this,t,[e])).name="CssSyntaxError",s.reason=e,i&&(s.file=i),o&&(s.source=o),a&&(s.plugin=a),void 0!==r&&void 0!==n&&("number"==typeof r?(s.line=r,s.column=n):(s.line=r.line,s.column=r.column,s.endLine=n.line,s.endColumn=n.column)),s.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return qn(t,e),ro(t,[{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=Ju.isColorSupported),Zu&&e&&(r=Zu(r));var n,o,i=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),u=String(s).length;if(e){var l=Ju.createColors(!0),c=l.bold,f=l.gray,h=l.red;n=function(e){return c(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(a,s).map(function(e,r){var i=a+1+r,s=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var l=o(s.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(s)+e+"\n "+l+n("^")}return" "+o(s)+e}).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}])}(Jn(Error)),Xu=Yu;Yu.default=Yu;var Ku={};Ku.isClean=Symbol("isClean"),Ku.my=Symbol("my");var $u={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Qu=function(){return ro(function e(t){eo(this,e),this.builder=t},[{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 a=0;a<o;a++)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 $u[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 a,s="raw"+((a=r)[0].toUpperCase()+a.slice(1));return this[s]?n=this[s](i,e):i.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=$u[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)}}])}(),el=Qu;Qu.default=Qu;var tl=el;function rl(e,t){new tl(t).stringify(e)}var nl=rl;rl.default=rl;var ol=Ku.isClean,il=Ku.my,al=Xu,sl=el,ul=nl;function ll(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=oo(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map(function(e){return ll(e,r)}):("object"===i&&null!==o&&(o=ll(o)),r[n]=o)}return r}var cl=function(){return ro(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in eo(this,e),this.raws={},this[ol]=!1,this[il]=!0,t)if("nodes"===r){this.nodes=[];var n,o=Kn(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]},[{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=ll(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 al(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[ol]){this[ol]=!1;for(var e=this;e=e.parent;)e[ol]=!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 sl).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,a=n;i<a.length;i++){var s=a[i];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}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 a=this[i];if(Array.isArray(a))r[i]=a.map(function(e){return"object"===oo(e)&&e.toJSON?e.toJSON(null,t):e});else if("object"===oo(a)&&a.toJSON)r[i]=a.toJSON(null,t);else if("source"===i){var s=t.get(a.input);null==s&&(s=o,t.set(a.input,o),o++),r[i]={end:a.end,inputId:s,start:a.start}}else r[i]=a}return n&&(r.inputs=Vn(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]:ul;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}}])}(),fl=cl;cl.default=cl;var hl=function(e){function t(e){var r;return eo(this,t),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=zn(zn({},e),{},{value:String(e.value)})),(r=Hn(this,t,[e])).type="decl",r}return qn(t,e),ro(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}])}(fl),pl=hl;hl.default=hl;var dl=function(){for(var e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},vl=qu.SourceMapConsumer,yl=qu.SourceMapGenerator,ml=qu.existsSync,gl=qu.readFileSync,bl=qu.dirname,wl=qu.join;var kl=function(){return ro(function e(t,r){if(eo(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=bl(this.mapFile)),o&&(this.text=o)}},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new vl(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),Buffer?Buffer.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"===oo(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=bl(e),ml(e))return this.mapFile=e,gl(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 vl)return yl.fromSourceMap(t).toString();if(t instanceof yl)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=wl(bl(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)}}])}(),Sl=kl;kl.default=kl;var Cl=qu.SourceMapConsumer,Il=qu.SourceMapGenerator,Ol=qu.fileURLToPath,xl=qu.pathToFileURL,_l=qu.isAbsolute,El=qu.resolve,Al=dl,Rl=qu,Tl=Xu,Ml=Sl,Pl=Symbol("fromOffsetCache"),jl=Boolean(Cl&&Il),Nl=Boolean(El&&_l),Ll=function(){return ro(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(eo(this,e),null==t||"object"===oo(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&&(!Nl||/^\w+:\/\//.test(r.from)||_l(r.from)?this.file=r.from:this.file=El(r.from)),Nl&&jl){var n=new Ml(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 "+Al(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,r){var n,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===oo(t)){var s=t,u=r;if("number"==typeof s.offset){var l=this.fromOffset(s.offset);t=l.line,r=l.col}else t=s.line,r=s.column;if("number"==typeof u.offset){var c=this.fromOffset(u.offset);o=c.line,i=c.col}else o=u.line,i=u.column}else if(!r){var f=this.fromOffset(t);t=f.line,r=f.col}var h=this.origin(t,r,o,i);return(n=h?new Tl(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,a.plugin):new Tl(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,a.plugin)).input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(xl&&(n.input.url=xl(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[Pl])t=this[Pl];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[Pl]=t}var a=0;if(e>=t[t.length-1])a=t.length-1;else for(var s,u=t.length-2;a<u;)if(e<t[s=a+(u-a>>1)])u=s-1;else{if(!(e>=t[s+1])){a=s;break}a=s+1}return{col:e-t[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:El(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,a=this.map.consumer(),s=a.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof r&&(o=a.originalPositionFor({column:n,line:r})),i=_l(s.source)?xl(s.source):new URL(s.source,this.map.consumer().sourceRoot||xl(this.map.mapFile));var u={column:s.column,endColumn:o&&o.column,endLine:o&&o.line,line:s.line,url:i.toString()};if("file:"===i.protocol){if(!Ol)throw new Error("file: protocol is not available in this PostCSS build");u.file=Ol(i)}var l=a.sourceContentFor(s.source);return l&&(u.source=l),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=zn({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}])}(),Dl=Ll;Ll.default=Ll,Rl&&Rl.registerInput&&Rl.registerInput(Ll);var Fl=qu.SourceMapConsumer,Ul=qu.SourceMapGenerator,Bl=qu.dirname,Wl=qu.relative,zl=qu.resolve,Gl=qu.sep,Vl=qu.pathToFileURL,Hl=Dl,ql=Boolean(Fl&&Ul),Jl=Boolean(Bl&&zl&&Wl&&Gl),Zl=function(){return ro(function e(t,r,n,o){eo(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},[{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=Kn(this.previous());try{for(t.s();!(e=t.n()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),o=r.root||Bl(r.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Fl(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(),Jl&&ql&&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=Ul.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ul({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 Ul({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,u,l){if(e.css+=s,u&&"end"!==l&&(a.generated.line=n,a.generated.column=o-1,u.source&&u.source.start?(a.source=e.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,e.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(t=s.match(/\n/g))?(n+=t.length,r=s.lastIndexOf("\n"),o=s.length-r):o+=s.length,u&&"start"!==l){var c=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===c.last&&!c.raws.semicolon||(u.source&&u.source.end?(a.source=e.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=n,a.generated.column=o-2,e.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=o-1,e.map.addMapping(a)))}})}},{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?Bl(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Bl(zl(r,this.mapOpts.annotation)));var n=Wl(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 Hl(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 Buffer?Buffer.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(Vl){var r=Vl(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;"\\"===Gl&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}])}(),Yl=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[e])).type="comment",r}return qn(t,e),ro(t)}(fl),Xl=Yl;Yl.default=Yl;var Kl,$l,Ql,ec,tc=Ku.isClean,rc=Ku.my,nc=pl,oc=Xl;function ic(e){return e.map(function(e){return e.nodes&&(e.nodes=ic(e.nodes)),delete e.source,e})}function ac(e){if(e[tc]=!1,e.proxyOf.nodes){var t,r=Kn(e.proxyOf.nodes);try{for(r.s();!(t=r.n()).done;){ac(t.value)}}catch(e){r.e(e)}finally{r.f()}}}var sc=function(e){function t(){return eo(this,t),Hn(this,t,arguments)}return qn(t,e),ro(t,[{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,a=o[n],s=Kn(this.normalize(a,this.last));try{for(s.s();!(i=s.n()).done;){var u=i.value;this.proxyOf.nodes.push(u)}}catch(e){s.e(e)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Un(t,"cleanRaws",this,3)([e]),this.nodes){var r,n=Kn(this.nodes);try{for(n.s();!(r=n.n()).done;){r.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,Vn(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,a=Kn(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}}catch(e){a.e(e)}finally{a.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,a,s=Kn(o);try{for(s.s();!(i=s.n()).done;){var u=i.value;this.proxyOf.nodes.splice(r,0,u)}}catch(e){s.e(e)}finally{s.f()}for(var l in this.indexes)r<=(a=this.indexes[l])&&(this.indexes[l]=a+o.length);return this.markDirty(),this}},{key:"normalize",value:function(e,r){var n=this;if("string"==typeof e)e=ic(Kl(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var o,i=Kn(e=e.slice(0));try{for(i.s();!(o=i.n()).done;){var a=o.value;a.parent&&a.parent.removeChild(a,"ignore")}}catch(e){i.e(e)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var s,u=Kn(e=e.nodes.slice(0));try{for(u.s();!(s=u.n()).done;){var l=s.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 nc(e)]}else if(e.selector)e=[new $l(e)];else if(e.name)e=[new Ql(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new oc(e)]}var c=e.map(function(e){return e[rc]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[tc]&&ac(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return c}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=Kn(t=t.reverse());try{for(o.s();!(n=o.n()).done;){var i,a=n.value,s=this.normalize(a,this.first,"prepend").reverse(),u=Kn(s);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 c in this.indexes)this.indexes[c]=this.indexes[c]+s.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=Kn(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]}}])}(fl);sc.registerParse=function(e){Kl=e},sc.registerRule=function(e){$l=e},sc.registerAtRule=function(e){Ql=e},sc.registerRoot=function(e){ec=e};var uc=sc;sc.default=sc,sc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Ql.prototype):"rule"===e.type?Object.setPrototypeOf(e,$l.prototype):"decl"===e.type?Object.setPrototypeOf(e,nc.prototype):"comment"===e.type?Object.setPrototypeOf(e,oc.prototype):"root"===e.type&&Object.setPrototypeOf(e,ec.prototype),e[rc]=!0,e.nodes&&e.nodes.forEach(function(e){sc.rebuild(e)})};var lc,cc,fc=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[zn({type:"document"},e)])).nodes||(r.nodes=[]),r}return qn(t,e),ro(t,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new lc(new cc,this,e).stringify()}}])}(uc);fc.registerLazyResult=function(e){lc=e},fc.registerProcessor=function(e){cc=e};var hc=fc;fc.default=fc;var pc=function(){return ro(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(eo(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]},[{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}}])}(),dc=pc;pc.default=pc;var vc=dc,yc=function(){return ro(function e(t,r,n){eo(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0},[{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 vc(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}}])}(),mc=yc;yc.default=yc;var gc="'".charCodeAt(0),bc='"'.charCodeAt(0),wc="\\".charCodeAt(0),kc="/".charCodeAt(0),Sc="\n".charCodeAt(0),Cc=" ".charCodeAt(0),Ic="\f".charCodeAt(0),Oc="\t".charCodeAt(0),xc="\r".charCodeAt(0),_c="[".charCodeAt(0),Ec="]".charCodeAt(0),Ac="(".charCodeAt(0),Rc=")".charCodeAt(0),Tc="{".charCodeAt(0),Mc="}".charCodeAt(0),Pc=";".charCodeAt(0),jc="*".charCodeAt(0),Nc=":".charCodeAt(0),Lc="@".charCodeAt(0),Dc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Uc=/.[\r\n"'(/\\]/,Bc=/[\da-f]/i,Wc=uc,zc=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[e])).type="atrule",r}return qn(t,e),ro(t,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Un(t,"append",this,3)(r)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Un(t,"prepend",this,3)(r)}}])}(Wc),Gc=zc;zc.default=zc,Wc.registerAtRule(zc);var Vc,Hc,qc=uc,Jc=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[e])).type="root",r.nodes||(r.nodes=[]),r}return qn(t,e),ro(t,[{key:"normalize",value:function(e,r,n){var o=Un(t,"normalize",this,3)([e]);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var i,a=Kn(o);try{for(a.s();!(i=a.n()).done;){i.value.raws.before=r.raws.before}}catch(e){a.e(e)}finally{a.f()}}return o}},{key:"removeChild",value:function(e,r){var n=this.index(e);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),Un(t,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Vc(new Hc,this,e).stringify()}}])}(qc);Jc.registerLazyResult=function(e){Vc=e},Jc.registerProcessor=function(e){Hc=e};var Zc=Jc;Jc.default=Jc,qc.registerRoot(Jc);var Yc={comma:function(e){return Yc.split(e,[","],!0)},space:function(e){return Yc.split(e,[" ","\n","\t"])},split:function(e,t,r){var n,o=[],i="",a=!1,s=0,u=!1,l="",c=!1,f=Kn(e);try{for(f.s();!(n=f.n()).done;){var h=n.value;c?c=!1:"\\"===h?c=!0:u?h===l&&(u=!1):'"'===h||"'"===h?(u=!0,l=h):"("===h?s+=1:")"===h?s>0&&(s-=1):0===s&&t.includes(h)&&(a=!0),a?(""!==i&&o.push(i.trim()),i="",a=!1):i+=h}}catch(e){f.e(e)}finally{f.f()}return(r||""!==i)&&o.push(i.trim()),o}},Xc=Yc;Yc.default=Yc;var Kc=uc,$c=Xc,Qc=function(e){function t(e){var r;return eo(this,t),(r=Hn(this,t,[e])).type="rule",r.nodes||(r.nodes=[]),r}return qn(t,e),ro(t,[{key:"selectors",get:function(){return $c.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)}}])}(Kc),ef=Qc;Qc.default=Qc,Kc.registerRule(Qc);var tf=pl,rf=function(e){var t,r,n,o,i,a,s,u,l,c,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,y=[],m=[];function g(t){throw e.error("Unclosed "+t,v)}return{back:function(e){m.push(e)},endOfFile:function(){return 0===m.length&&v>=d},nextToken:function(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case Sc:case Cc:case Oc:case xc:case Ic:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===Cc||t===Sc||t===Oc||t===xc||t===Ic);c=["space",h.slice(v,r)],v=r-1;break;case _c:case Ec:case Tc:case Mc:case Nc:case Pc:case Rc:var b=String.fromCharCode(t);c=[b,b,v];break;case Ac:if(u=y.length?y.pop()[1]:"",l=h.charCodeAt(v+1),"url"===u&&l!==gc&&l!==bc&&l!==Cc&&l!==Sc&&l!==Oc&&l!==Ic&&l!==xc){r=v;do{if(a=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}g("bracket")}for(s=r;h.charCodeAt(s-1)===wc;)s-=1,a=!a}while(a);c=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||Uc.test(o)?c=["(","(",v]:(c=["brackets",o,v,r],v=r);break;case gc:case bc:n=t===gc?"'":'"',r=v;do{if(a=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}g("string")}for(s=r;h.charCodeAt(s-1)===wc;)s-=1,a=!a}while(a);c=["string",h.slice(v,r+1),v,r],v=r;break;case Lc:Dc.lastIndex=v+1,Dc.test(h),r=0===Dc.lastIndex?h.length-1:Dc.lastIndex-2,c=["at-word",h.slice(v,r+1),v,r],v=r;break;case wc:for(r=v,i=!0;h.charCodeAt(r+1)===wc;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==kc&&t!==Cc&&t!==Sc&&t!==Oc&&t!==xc&&t!==Ic&&(r+=1,Bc.test(h.charAt(r)))){for(;Bc.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Cc&&(r+=1)}c=["word",h.slice(v,r+1),v,r],v=r;break;default:t===kc&&h.charCodeAt(v+1)===jc?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:g("comment")),c=["comment",h.slice(v,r+1),v,r],v=r):(Fc.lastIndex=v+1,Fc.test(h),r=0===Fc.lastIndex?h.length-1:Fc.lastIndex-2,c=["word",h.slice(v,r+1),v,r],y.push(c),v=r)}return v++,c}},position:function(){return v}}},nf=Xl,of=Gc,af=Zc,sf=ef,uf={empty:!0,space:!0};var lf=uc,cf=function(){return ro(function e(t){eo(this,e),this.input=t,this.root=new af,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,r,n,o=new of;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,a=!1,s=[],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){a=!0;break}if("}"===t){if(s.length>0){for(r=s[n=s.length-1];r&&"space"===r[0];)r=s[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(o.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(o,"params",s),i&&(e=s[s.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=""),a&&(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,a=Kn(e.entries());try{for(a.s();!(o=a.n()).done;){var s=Fn(o.value,2),u=s[0];if("("===(r=(t=s[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){a.e(e)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new nf;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=rf(this.input)}},{key:"decl",value:function(e,t){var r=new tf;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 a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.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 l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var c=e.slice(0),f="",h=u;h>0;h--){var p=c[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=c.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=c)}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+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.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 sf;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=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(r=u[0],s.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(a&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(s,a);break}if("{"===r)return void this.rule(s);if("}"===r){this.tokenizer.back(s.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(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{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,a,s,u=r.length,l="",c=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(s=r[f-1]?r[f-1][0]:"empty",a=r[f+1]?r[f+1][0]:"empty",uf[s]||uf[a]||","===l.slice(-1)?c=!1:l+=o[1]):l+=o[1]:c=!1;if(!c){var h=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:h,value:l}}e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new sf;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})}}])}(),ff=Dl;function hf(e,t){var r=new ff(e,t),n=new cf(r);try{n.parse()}catch(e){throw e}return n.root}var pf=hf;hf.default=hf,lf.registerParse(hf);var df=Ku.isClean,vf=Ku.my,yf=Zl,mf=nl,gf=uc,bf=hc,wf=mc,kf=pf,Sf=Zc,Cf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},If={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},Of={Once:!0,postcssPlugin:!0,prepare:!0};function xf(e){return"object"===oo(e)&&"function"==typeof e.then}function _f(e){var t=!1,r=Cf[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 Ef(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:_f(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Af(e){return e[df]=!1,e.nodes&&e.nodes.forEach(function(e){return Af(e)}),e}var Rf={},Tf=function(){return ro(function e(t,r,n){var o,i=this;if(eo(this,e),this.stringified=!1,this.processed=!1,"object"!==oo(r)||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof wf)o=Af(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var a=kf;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[vf]&&gf.rebuild(o)}else o=Af(r);this.result=new wf(t,o,n),this.helpers=zn(zn({},Rf),{},{postcss:Rf,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===oo(e)&&e.prepare?zn(zn({},e),e.prepare(i.result)):e})},[{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=Kn(this.plugins);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("object"===oo(o))for(var i in o){if(!If[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(!Of[i])if("object"===oo(o[i]))for(var a in o[i])r(o,"*"===a?i:i+"-"+a.toLowerCase(),o[i][a]);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:(e=Dn(jn().m(function e(){var t,r,n,o,i,a,s,u,l,c,f,h,p,d=this;return jn().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(!(t<this.plugins.length)){e.n=6;break}if(r=this.plugins[t],!xf(n=this.runOnRoot(r))){e.n=5;break}return e.p=2,e.n=3,n;case 3:e.n=5;break;case 4:throw e.p=4,f=e.v,this.handleError(f);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}o=this.result.root;case 7:if(o[df]){e.n=14;break}o[df]=!0,i=[Ef(o)];case 8:if(!(i.length>0)){e.n=13;break}if(!xf(a=this.visitTick(i))){e.n=12;break}return e.p=9,e.n=10,a;case 10:e.n=12;break;case 11:throw e.p=11,h=e.v,s=i[i.length-1].node,this.handleError(h,s);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}u=Kn(this.listeners.OnceExit),e.p=15,c=jn().m(function e(){var t,r,n,i,a;return jn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=Fn(l.value,2),r=t[0],n=t[1],d.result.lastPlugin=r,e.p=1,"document"!==o.type){e.n=3;break}return i=o.nodes.map(function(e){return n(e,d.helpers)}),e.n=2,Promise.all(i);case 2:e.n=4;break;case 3:return e.n=4,n(o,d.helpers);case 4:e.n=6;break;case 5:throw e.p=5,a=e.v,d.handleError(a);case 6:return e.a(2)}},e,null,[[1,5]])}),u.s();case 16:if((l=u.n()).done){e.n=18;break}return e.d(Pn(c()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,p=e.v,u.e(p);case 20:return e.p=20,u.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return e.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===oo(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 xf(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=mf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new yf(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=Kn(this.plugins);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(xf(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[df];)n[df]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type){var o,i=Kn(n.nodes);try{for(i.s();!(o=i.n()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}}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=Kn(e);try{for(n.s();!(r=n.n()).done;){var o=Fn(r.value,2),i=o[0],a=o[1];this.result.lastPlugin=i;var s=void 0;try{s=a(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(xf(s))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=Fn(n[t.visitorIndex],2),i=o[0],a=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return a(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var s,u=t.iterator;s=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!s[df])return s[df]=!0,void e.push(Ef(s));t.iterator=0,delete r.indexes[u]}for(var l=t.events;t.eventIndex<l.length;){var c=l[t.eventIndex];if(t.eventIndex+=1,0===c)return void(r.nodes&&r.nodes.length&&(r[df]=!0,t.iterator=r.getIterator()));if(this.listeners[c])return void(t.visitors=this.listeners[c])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var t=this;e[df]=!0;var r,n=Kn(_f(e));try{for(n.s();!(r=n.n()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[df]||t.walkSync(e)});else{var i=this.listeners[o];if(i&&this.visitSync(i,e.toProxy()))return}}}catch(e){n.e(e)}finally{n.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:Symbol.toStringTag,get:function(){return"LazyResult"}}]);var e}();Tf.registerPostcss=function(e){Rf=e};var Mf=Tf;Tf.default=Tf,Sf.registerLazyResult(Tf),bf.registerLazyResult(Tf);var Pf=Zl,jf=nl,Nf=pf,Lf=mc,Df=function(){return ro(function e(t,r,n){var o;eo(this,e),r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=n,this._map=void 0;var i=jf;this.result=new Lf(this._processor,o,this._opts),this.result.css=r;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var s=new Pf(i,o,this._opts,r);if(s.isMap()){var u=Fn(s.generate(),2),l=u[0],c=u[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css},[{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=Nf;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}])}(),Ff=Df;Df.default=Df;var Uf=Ff,Bf=Mf,Wf=hc,zf=Zc,Gf=function(){return ro(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];eo(this,e),this.version="8.4.38",this.plugins=this.normalize(t)},[{key:"normalize",value:function(e){var t,r=[],n=Kn(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"===oo(o)&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if("object"===oo(o)&&o.postcssPlugin)r.push(o);else if("function"==typeof o)r.push(o);else{if("object"!==oo(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 Bf(this,e,t):new Uf(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}])}(),Vf=Gf;Gf.default=Gf,zf.registerProcessor(Gf),Wf.registerProcessor(Gf);var Hf=pl,qf=Sl,Jf=Xl,Zf=Gc,Yf=Dl,Xf=Zc,Kf=ef;function $f(e,t){if(Array.isArray(e))return e.map(function(e){return $f(e)});var r=e.inputs,n=Mn(e,An);if(r){t=[];var o,i=Kn(r);try{for(i.s();!(o=i.n()).done;){var a=zn(zn({},o.value),{},{__proto__:Yf.prototype});a.map&&(a.map=zn(zn({},a.map),{},{__proto__:qf.prototype})),t.push(a)}}catch(e){i.e(e)}finally{i.f()}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return $f(e,t)})),n.source){var s=n.source,u=s.inputId,l=Mn(s,Rn);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Xf(n);if("decl"===n.type)return new Hf(n);if("rule"===n.type)return new Kf(n);if("comment"===n.type)return new Jf(n);if("atrule"===n.type)return new Zf(n);throw new Error("Unknown node type: "+e.type)}var Qf=$f;$f.default=$f;var eh=Xu,th=pl,rh=Mf,nh=uc,oh=Vf,ih=nl,ah=Qf,sh=hc,uh=dc,lh=Xl,ch=Gc,fh=mc,hh=Dl,ph=pf,dh=Xc,vh=ef,yh=Zc,mh=fl;function gh(){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 oh(t)}gh.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"),process.env.LANG&&process.env.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 oh).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return gh([o(r)]).process(e,t)},o},gh.stringify=ih,gh.parse=ph,gh.fromJSON=ah,gh.list=dh,gh.comment=function(e){return new lh(e)},gh.atRule=function(e){return new ch(e)},gh.decl=function(e){return new th(e)},gh.rule=function(e){return new vh(e)},gh.root=function(e){return new yh(e)},gh.document=function(e){return new sh(e)},gh.CssSyntaxError=eh,gh.Declaration=th,gh.Container=nh,gh.Processor=oh,gh.Document=sh,gh.Comment=lh,gh.Warning=uh,gh.AtRule=ch,gh.Result=fh,gh.Input=hh,gh.Rule=vh,gh.Root=yh,gh.Node=mh,rh.registerPostcss(gh);var bh=gh;gh.default=gh;var wh=Bu(bh);wh.stringify,wh.fromJSON,wh.plugin,wh.parse,wh.list,wh.document,wh.comment,wh.atRule,wh.rule,wh.decl,wh.root,wh.CssSyntaxError,wh.Declaration,wh.Container,wh.Processor,wh.Document,wh.Comment,wh.Warning,wh.AtRule,wh.Result,wh.Input,wh.Rule,wh.Root,wh.Node;var kh=function(){function e(){eo(this,e),Uu(this,"parentElement",null),Uu(this,"parentNode",null),Uu(this,"ownerDocument"),Uu(this,"firstChild",null),Uu(this,"lastChild",null),Uu(this,"previousSibling",null),Uu(this,"nextSibling",null),Uu(this,"ELEMENT_NODE",1),Uu(this,"TEXT_NODE",3),Uu(this,"nodeType"),Uu(this,"nodeName"),Uu(this,"RRNodeType")}return ro(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"}}])}(),Sh={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ch={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ih={};function Oh(e){if(Ih[e])return Ih[e];var t=globalThis[e],r=t.prototype,n=e in Sh?Sh[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 Ch?Ch[e]:void 0,a=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&&a&&!globalThis.Zone)return Ih[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var u=s.contentWindow;if(!u)return t.prototype;var l=u[e].prototype;return document.body.removeChild(s),l?Ih[e]=l:r}catch(e){return r}}var xh={};function _h(e,t,r){var n,o="".concat(e,".").concat(String(r));if(xh[o])return xh[o].call(t);var i=Oh(e),a=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return a?(xh[o]=a,a.call(t)):t[r]}var Eh={};function Ah(e,t,r){var n="".concat(e,".").concat(String(r));if(Eh[n])return Eh[n].bind(t);var o=Oh(e)[r];return"function"!=typeof o?t[r]:(Eh[n]=o,o.bind(t))}function Rh(){return Oh("MutationObserver").constructor}function Th(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(){}}}var Mh={ownerDocument:function(e){return _h("Node",e,"ownerDocument")},childNodes:function(e){return _h("Node",e,"childNodes")},parentNode:function(e){return _h("Node",e,"parentNode")},parentElement:function(e){return _h("Node",e,"parentElement")},textContent:function(e){return _h("Node",e,"textContent")},contains:function(e,t){return Ah("Node",e,"contains")(t)},getRootNode:function(e){return Ah("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?_h("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?_h("Element",e,"shadowRoot"):null},querySelector:function(e,t){return _h("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return _h("Element",e,"querySelectorAll")(t)},mutationObserver:Rh,patch:Th};function Ph(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 jh="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.",Nh={map:{},getId:function(){return console.error(jh),-1},getNode:function(){return console.error(jh),null},removeNodeFromMap:function(){console.error(jh)},has:function(){return console.error(jh),!1},reset:function(){console.error(jh)}};function Lh(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=Date.now();o||!1!==r.leading||(o=u);var l=t-(u-o),c=this;l<=0||l>t?(n&&(clearTimeout(n),n=null),o=u,e.apply(c,a)):n||!1===r.trailing||(n=setTimeout(function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(c,a)},l))}}function Dh(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 Dh(e,t,i||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Nh=new Proxy(Nh,{get:function(e,t,r){return"map"===t&&console.error(jh),Reflect.get(e,t,r)}}));var Fh=Date.now;function Uh(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=Mh.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=Mh.parentElement(i.body))?void 0:n.scrollTop)||(null==(o=null==i?void 0:i.body)?void 0:o.scrollTop)||0}}function Bh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Wh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function zh(e){return e?e.nodeType===e.ELEMENT_NODE?e:Mh.parentElement(e):null}function Gh(e,t,r,n){if(!e)return!1;var o=zh(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($o(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}function Vh(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function Hh(e,t){if(So(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Mh.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Hh(n,t))}function qh(e){return Boolean(e.changedTouches)}function Jh(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Zh(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Yh(e){return!!e&&(e instanceof kh&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Mh.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Fh=function(){return(new Date).getTime()});var Xh=function(){return ro(function e(){eo(this,e),so(this,"id",1),so(this,"styleIDMap",new WeakMap),so(this,"idStyleMap",new Map)},[{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++}}])}();function Kh(e){var t,r=null;return"getRootNode"in e&&(null==(t=Mh.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Mh.host(Mh.getRootNode(e))&&(r=Mh.host(Mh.getRootNode(e))),r}function $h(e){var t=Mh.ownerDocument(e);if(!t)return!1;var r=function(e){for(var t,r=e;t=Kh(r);)r=t;return r}(e);return Mh.contains(t,r)}function Qh(e){var t=Mh.ownerDocument(e);return!!t&&(Mh.contains(t,e)||$h(e))}var ep=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}(ep||{}),tp=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(tp||{}),rp=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}(rp||{}),np=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(np||{}),op=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(op||{}),ip=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(ip||{}),ap=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(ap||{});function sp(e){return"__ln"in e}var up,lp=function(){return ro(function e(){eo(this,e),so(this,"length",0),so(this,"head",null),so(this,"tail",null)},[{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&&sp(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&&sp(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}},{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.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}])}(),cp=function(e,t){return"".concat(e,"@").concat(t)},fp=function(){return ro(function e(){var t=this;eo(this,e),so(this,"frozen",!1),so(this,"locked",!1),so(this,"texts",[]),so(this,"attributes",[]),so(this,"attributeMap",new WeakMap),so(this,"removes",[]),so(this,"mapRemoves",[]),so(this,"movedMap",{}),so(this,"addedSet",new Set),so(this,"movedSet",new Set),so(this,"droppedSet",new Set),so(this,"removesSubTreeCache",new Set),so(this,"mutationCb"),so(this,"blockClass"),so(this,"blockSelector"),so(this,"maskTextClass"),so(this,"maskTextSelector"),so(this,"inlineStylesheet"),so(this,"maskInputOptions"),so(this,"maskTextFn"),so(this,"maskInputFn"),so(this,"keepIframeSrcFn"),so(this,"recordCanvas"),so(this,"inlineImages"),so(this,"slimDOMOptions"),so(this,"dataURLOptions"),so(this,"doc"),so(this,"mirror"),so(this,"iframeManager"),so(this,"stylesheetManager"),so(this,"shadowDomManager"),so(this,"canvasManager"),so(this,"processedNodeManager"),so(this,"unattachedDoc"),so(this,"processMutations",function(e){e.forEach(t.processMutation),t.emit()}),so(this,"emit",function(){if(!t.frozen&&!t.locked){for(var e=[],r=new Set,n=new lp,o=function(e){for(var r=e,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&t.mirror.getId(r);return n},i=function(i){var a=Mh.parentNode(i);if(a&&Qh(i)){var s=!1;if(i.nodeType===Node.TEXT_NODE){var u=a.tagName;if("TEXTAREA"===u)return;"STYLE"===u&&t.addedSet.has(a)&&(s=!0)}var l=So(a)?t.mirror.getId(Kh(i)):t.mirror.getId(a),c=o(i);if(-1===l||-1===c)return n.addNode(i);var f=ni(i,{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){Jh(e,t.mirror)&&t.iframeManager.addIframe(e),Zh(e,t.mirror)&&t.stylesheetManager.trackLinkElement(e),Yh(i)&&t.shadowDomManager.addShadowRoot(Mh.shadowRoot(i),t.doc)},onIframeLoad:function(e,r){t.iframeManager.attachIframe(e,r),t.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,r){t.stylesheetManager.attachLinkElement(e,r)},cssCaptured:s});f&&(e.push({parentId:l,nextId:c,node:f}),r.add(f.id))}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());var a,s=Kn(t.movedSet);try{for(s.s();!(a=s.n()).done;){var u=a.value;pp(t.removesSubTreeCache,u,t.mirror)&&!t.movedSet.has(Mh.parentNode(u))||i(u)}}catch(e){s.e(e)}finally{s.f()}var l,c=Kn(t.addedSet);try{for(c.s();!(l=c.n()).done;){var f=l.value;dp(t.droppedSet,f)||pp(t.removesSubTreeCache,f,t.mirror)?dp(t.movedSet,f)?i(f):t.droppedSet.add(f):i(f)}}catch(e){c.e(e)}finally{c.f()}for(var h=null;n.length;){var p=null;if(h){var d=t.mirror.getId(Mh.parentNode(h.value)),v=o(h.value);-1!==d&&-1!==v&&(p=h)}if(!p)for(var y=n.tail;y;){var m=y;if(y=y.previous,m){var g=t.mirror.getId(Mh.parentNode(m.value));if(-1===o(m.value))continue;if(-1!==g){p=m;break}var b=m.value,w=Mh.parentNode(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=Mh.host(w);if(-1!==t.mirror.getId(k)){p=m;break}}}}if(!p){for(;n.head;)n.removeNode(n.head.value);break}h=p.previous,n.removeNode(p.value),i(p.value)}var S={texts:t.texts.map(function(e){var r=e.node,n=Mh.parentNode(r);return n&&"TEXTAREA"===n.tagName&&t.genTextAreaValueMutation(n),{id:t.mirror.getId(r),value:e.value}}).filter(function(e){return!r.has(e.id)}).filter(function(e){return t.mirror.has(e.id)}),attributes:t.attributes.map(function(e){var r=e.attributes;if("string"==typeof r.style){var n=JSON.stringify(e.styleDiff),o=JSON.stringify(e._unchangedStyles);n.length<r.style.length&&(n+o).split("var(").length===r.style.split("var(").length&&(r.style=e.styleDiff)}return{id:t.mirror.getId(e.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(e){return t.mirror.has(e.id)}),removes:t.removes,adds:e};(S.texts.length||S.attributes.length||S.removes.length||S.adds.length)&&(t.texts=[],t.attributes=[],t.attributeMap=new WeakMap,t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.removesSubTreeCache=new Set,t.movedMap={},t.mutationCb(S))}}),so(this,"genTextAreaValueMutation",function(e){var r=t.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(r),t.attributeMap.set(e,r));var n=Array.from(Mh.childNodes(e),function(e){return Mh.textContent(e)||""}).join("");r.attributes.value=_o({element:e,maskInputOptions:t.maskInputOptions,tagName:e.tagName,type:Ro(e),value:n,maskInputFn:t.maskInputFn})}),so(this,"processMutation",function(e){if(!Vh(e.target,t.mirror,t.slimDOMOptions))switch(e.type){case"characterData":var r=Mh.textContent(e.target);Gh(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue||t.texts.push({value:Qo(e.target,t.maskTextClass,t.maskTextSelector,!0)&&r?t.maskTextFn?t.maskTextFn(r,zh(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break;case"attributes":var n=e.target,o=e.attributeName,i=e.target.getAttribute(o);if("value"===o){var a=Ro(n);i=_o({element:n,maskInputOptions:t.maskInputOptions,tagName:n.tagName,type:a,value:i,maskInputFn:t.maskInputFn})}if(Gh(e.target,t.blockClass,t.blockSelector,!1)||i===e.oldValue)return;var s=t.attributeMap.get(e.target);if("IFRAME"===n.tagName&&"src"===o&&!t.keepIframeSrcFn(i)){if(n.contentDocument)return;o="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(s),t.attributeMap.set(e.target,s)),"type"===o&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Ko(n.tagName,o))if(s.attributes[o]=Xo(t.doc,Eo(n.tagName),Eo(o),i),"style"===o){if(!t.unattachedDoc)try{t.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){t.unattachedDoc=t.doc}var u=t.unattachedDoc.createElement("span");e.oldValue&&u.setAttribute("style",e.oldValue);for(var l=0,c=Array.from(n.style);l<c.length;l++){var f=c[l],h=n.style.getPropertyValue(f),p=n.style.getPropertyPriority(f);h!==u.style.getPropertyValue(f)||p!==u.style.getPropertyPriority(f)?s.styleDiff[f]=""===p?h:[h,p]:s._unchangedStyles[f]=[h,p]}for(var d=0,v=Array.from(u.style);d<v.length;d++){var y=v[d];""===n.style.getPropertyValue(y)&&(s.styleDiff[y]=!1)}}else"open"===o&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break;case"childList":if(Gh(e.target,t.blockClass,t.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void t.genTextAreaValueMutation(e.target);e.addedNodes.forEach(function(r){return t.genAdds(r,e.target)}),e.removedNodes.forEach(function(r){var n=t.mirror.getId(r),o=So(e.target)?t.mirror.getId(Mh.host(e.target)):t.mirror.getId(e.target);Gh(e.target,t.blockClass,t.blockSelector,!1)||Vh(r,t.mirror,t.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,t.mirror)||(t.addedSet.has(r)?(hp(t.addedSet,r),t.droppedSet.add(r)):t.addedSet.has(e.target)&&-1===n||Hh(e.target,t.mirror)||(t.movedSet.has(r)&&t.movedMap[cp(n,o)]?hp(t.movedSet,r):(t.removes.push({parentId:o,id:n,isShadow:!(!So(e.target)||!Co(e.target))||void 0}),function(e,t){var r=[e];for(;r.length;){var n=r.pop();t.has(n)||(t.add(n),Mh.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,t.removesSubTreeCache))),t.mapRemoves.push(r))})}}),so(this,"genAdds",function(e,r){if(!t.processedNodeManager.inOtherBuffer(e,t)&&!t.addedSet.has(e)&&!t.movedSet.has(e)){if(t.mirror.hasNode(e)){if(Vh(e,t.mirror,t.slimDOMOptions))return;t.movedSet.add(e);var n=null;r&&t.mirror.hasNode(r)&&(n=t.mirror.getId(r)),n&&-1!==n&&(t.movedMap[cp(t.mirror.getId(e),n)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);Gh(e,t.blockClass,t.blockSelector,!1)||(Mh.childNodes(e).forEach(function(e){return t.genAdds(e)}),Yh(e)&&Mh.childNodes(Mh.shadowRoot(e)).forEach(function(r){t.processedNodeManager.add(r,t),t.genAdds(r,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","processedNodeManager"].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()}}])}();function hp(e,t){e.delete(t),Mh.childNodes(t).forEach(function(t){return hp(e,t)})}function pp(e,t,r){return 0!==e.size&&function(e,t){var r=Mh.parentNode(t);return!!r&&e.has(r)}(e,t)}function dp(e,t){return 0!==e.size&&vp(e,t)}function vp(e,t){var r=Mh.parentNode(t);return!!r&&(!!e.has(r)||vp(e,r))}var yp=function(e){if(!up)return e;return function(){try{return e.apply(void 0,arguments)}catch(e){if(up&&!0===up(e))return;throw e}}},mp=[];function gp(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function bp(e,t){var r=new fp;mp.push(r),r.init(e);var n=new(Rh())(yp(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function wp(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[],l=null;return Object.keys(rp).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]}).forEach(function(e){var a=Eo(e),s=function(e){return function(r){var a=gp(r);if(!Gh(a,o,i,!0)){var s=null,u=e;if("pointerType"in r){switch(r.pointerType){case"mouse":s=np.Mouse;break;case"touch":s=np.Touch;break;case"pen":s=np.Pen}s===np.Touch?rp[e]===rp.MouseDown?u="TouchStart":rp[e]===rp.MouseUp&&(u="TouchEnd"):np.Pen}else qh(r)&&(s=np.Touch);null!==s?(l=s,(u.startsWith("Touch")&&s===np.Touch||u.startsWith("Mouse")&&s===np.Mouse)&&(s=null)):rp[e]===rp.Click&&(s=l,l=null);var c=qh(r)?r.changedTouches[0]:r;if(c){var f=n.getId(a),h=c.clientX,p=c.clientY;yp(t)(zn({type:rp[u],id:f,x:h,y:p},null!==s&&{pointerType:s}))}}}}(e);if(window.PointerEvent)switch(rp[e]){case rp.MouseDown:case rp.MouseUp:a=a.replace("mouse","pointer");break;case rp.TouchStart:case rp.TouchEnd:return}u.push(Ph(a,s,r))}),yp(function(){u.forEach(function(e){return e()})})}function kp(e){var t=e.scrollCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,a=e.sampling,s=yp(Lh(yp(function(e){var a=gp(e);if(a&&!Gh(a,o,i,!0)){var s=n.getId(a);if(a===r&&r.defaultView){var u=Uh(r.defaultView);t({id:s,x:u.left,y:u.top})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),a.scroll||100));return Ph("scroll",s,r)}var Sp=["INPUT","TEXTAREA","SELECT"],Cp=new WeakMap;function Ip(e){return function(e,t){if(Ep("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Ep("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Ep("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Ep("CSSConditionRule")&&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 Op(e,t,r){var n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function xp(e,t){var r,n,o,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(Mh.host(t));var u="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(o=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:o.ShadowRoot,l=(null==u?void 0:u.prototype)?Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&u&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(e){}return r}}),yp(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):function(){}}function _p(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,o=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,u=e.mediaInteractionCb,l=e.styleSheetRuleCb,c=e.styleDeclarationCb,f=e.canvasMutationCb,h=e.fontCb,p=e.selectionCb,d=e.customElementCb;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),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.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),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),c.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)},e.customElementCb=function(){t.customElement&&t.customElement.apply(t,arguments),d.apply(void 0,arguments)}}(e,r),e.recordDOM&&(t=bp(e,e.doc));var o,i,a,s,u,l,c,f,h,p,d,v,y,m,g=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,o=e.mirror;if(!1===r.mousemove)return function(){};var i,a="number"==typeof r.mousemove?r.mousemove:50,s="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,u=[],l=Lh(yp(function(e){var r=Date.now()-i;t(u.map(function(e){return e.timeOffset-=r,e}),e),u=[],i=null}),s),c=yp(Lh(yp(function(e){var t=gp(e),r=qh(e)?e.changedTouches[0]:e,n=r.clientX,a=r.clientY;i||(i=Fh()),u.push({x:n,y:a,id:o.getId(t),timeOffset:Fh()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?tp.Drag:e instanceof MouseEvent?tp.MouseMove:tp.TouchMove)}),a,{trailing:!1})),f=[Ph("mousemove",c,n),Ph("touchmove",c,n),Ph("drag",c,n)];return yp(function(){f.forEach(function(e){return e()})})}(e),b=wp(e),w=kp(e),k=(o={win:n},i=e.viewportResizeCb,a=o.win,s=-1,u=-1,Ph("resize",yp(Lh(yp(function(){var e=Bh(),t=Wh();s===e&&u===t||(i({width:Number(t),height:Number(e)}),s=e,u=t)}),200)),a)),S=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.ignoreSelector,u=e.maskInputOptions,l=e.maskInputFn,c=e.sampling,f=e.userTriggeredOnInput;function h(e){var t=gp(e),n=e.isTrusted,c=t&&t.tagName;if(t&&"OPTION"===c&&(t=Mh.parentElement(t)),t&&c&&!(Sp.indexOf(c)<0)&&!Gh(t,o,i,!0)&&!(t.classList.contains(a)||s&&t.matches(s))){var h=t.value,d=!1,v=Ro(t)||"";"radio"===v||"checkbox"===v?d=t.checked:(u[c.toLowerCase()]||u[v])&&(h=_o({element:t,maskInputOptions:u,tagName:c,type:v,value:h,maskInputFn:l})),p(t,f?{text:h,isChecked:d,userTriggered:n}:{text:h,isChecked:d});var y=t.name;"radio"===v&&y&&d&&r.querySelectorAll('input[type="radio"][name="'.concat(y,'"]')).forEach(function(e){if(e!==t){var r=e.value;p(e,f?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function p(e,r){var o=Cp.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Cp.set(e,r);var i=n.getId(e);yp(t)(zn(zn({},r),{},{id:i}))}}var d=("last"===c.input?["change"]:["input","change"]).map(function(e){return Ph(e,yp(h),r)}),v=r.defaultView;if(!v)return function(){d.forEach(function(e){return e()})};var y=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),m=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&d.push.apply(d,Vn(m.map(function(e){return Dh(e[0],e[1],{set:function(){yp(h)({target:this,isTrusted:!1})}},!1,v)}))),yp(function(){d.forEach(function(e){return e()})})}(e),C=(c=(l=e).mediaInteractionCb,f=l.blockClass,h=l.blockSelector,p=l.mirror,d=l.sampling,v=l.doc,y=yp(function(e){return Lh(yp(function(t){var r=gp(t);if(r&&!Gh(r,f,h,!0)){var n=r.currentTime,o=r.volume,i=r.muted,a=r.playbackRate,s=r.loop;c({type:e,id:p.getId(r),currentTime:n,volume:o,muted:i,playbackRate:a,loop:s})}}),d.media||500)}),m=[Ph("play",y(ip.Play),v),Ph("pause",y(ip.Pause),v),Ph("seeked",y(ip.Seeked),v),Ph("volumechange",y(ip.VolumeChange),v),Ph("ratechange",y(ip.RateChange),v)],yp(function(){m.forEach(function(e){return e()})})),I=function(){},O=function(){},x=function(){},_=function(){};e.recordDOM&&(I=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,o=e.stylesheetManager,i=t.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:yp(function(e,t,i){var a=Fn(i,2),s=a[0],u=a[1],l=Op(t,n,o.styleMirror),c=l.id,f=l.styleId;return(c&&-1!==c||f&&-1!==f)&&r({id:c,styleId:f,adds:[{rule:s,index:u}]}),e.apply(t,i)})}),i.CSSStyleSheet.prototype.addRule=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.cssRules.length,n="".concat(e," { ").concat(t," }");return i.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var s,u,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(l,{apply:yp(function(e,t,i){var a=Fn(i,1)[0],s=Op(t,n,o.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,removes:[{index:a}]}),e.apply(t,i)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:yp(function(e,t,i){var a=Fn(i,1)[0],s=Op(t,n,o.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,replace:a}),e.apply(t,i)})})),i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:yp(function(e,t,i){var a=Fn(i,1)[0],s=Op(t,n,o.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,replaceSync:a}),e.apply(t,i)})}));var c={};Ap("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(Ap("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),Ap("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),Ap("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));var f={};return Object.entries(c).forEach(function(e){var t=Fn(e,2),i=t[0],a=t[1];f[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(f[i].insertRule,{apply:yp(function(e,t,i){var a=Fn(i,2),s=a[0],u=a[1],l=Op(t.parentStyleSheet,n,o.styleMirror),c=l.id,f=l.styleId;return(c&&-1!==c||f&&-1!==f)&&r({id:c,styleId:f,adds:[{rule:s,index:[].concat(Vn(Ip(t)),[u||0])}]}),e.apply(t,i)})}),a.prototype.deleteRule=new Proxy(f[i].deleteRule,{apply:yp(function(e,t,i){var a=Fn(i,1)[0],s=Op(t.parentStyleSheet,n,o.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,removes:[{index:[].concat(Vn(Ip(t)),[a])}]}),e.apply(t,i)})})}),yp(function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEach(function(e){var t=Fn(e,2),r=t[0],n=t[1];n.prototype.insertRule=f[r].insertRule,n.prototype.deleteRule=f[r].deleteRule})})}(e,{win:n}),O=xp(e,e.doc),x=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,o=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:yp(function(e,t,a){var u,l=Fn(a,3),c=l[0],f=l[1],h=l[2];if(o.has(c))return s.apply(t,[c,f,h]);var p=Op(null==(u=t.parentRule)?void 0:u.parentStyleSheet,n,i.styleMirror),d=p.id,v=p.styleId;return(d&&-1!==d||v&&-1!==v)&&r({id:d,styleId:v,set:{property:c,value:f,priority:h},index:Ip(t.parentRule)}),e.apply(t,a)})});var u=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:yp(function(e,t,a){var s,l=Fn(a,1)[0];if(o.has(l))return u.apply(t,[l]);var c=Op(null==(s=t.parentRule)?void 0:s.parentStyleSheet,n,i.styleMirror),f=c.id,h=c.styleId;return(f&&-1!==f||h&&-1!==h)&&r({id:f,styleId:h,remove:{property:l},index:Ip(t.parentRule)}),e.apply(t,a)})}),yp(function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=u})}(e,{win:n}),e.collectFonts&&(_=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var o=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,r){var n=new a(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 s=Th(r.fonts,"add",function(e){return function(r){return setTimeout(yp(function(){var e=i.get(r);e&&(t(e),i.delete(r))}),0),e.apply(this,[r])}});return o.push(function(){n.FontFace=a}),o.push(s),yp(function(){o.forEach(function(e){return e()})})}(e)));var E,A=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,o=e.blockSelector,i=e.selectionCb,a=!0,s=yp(function(){var e=t.getSelection();if(!(!e||a&&(null==e?void 0:e.isCollapsed))){a=e.isCollapsed||!1;for(var s=[],u=e.rangeCount||0,l=0;l<u;l++){var c=e.getRangeAt(l),f=c.startContainer,h=c.startOffset,p=c.endContainer,d=c.endOffset;Gh(f,n,o,!0)||Gh(p,n,o,!0)||s.push({start:r.getId(f),startOffset:h,end:r.getId(p),endOffset:d})}i({ranges:s})}});return s(),Ph("selectionchange",s)}(e),R=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Th(n.customElements,"define",function(e){return function(t,n,o){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for ".concat(t))}return e.apply(this,[t,n,o])}}):function(){}}(e),T=[],M=Kn(e.plugins);try{for(M.s();!(E=M.n()).done;){var P=E.value;T.push(P.observer(P.callback,n,P.options))}}catch(e){M.e(e)}finally{M.f()}return yp(function(){mp.forEach(function(e){return e.reset()}),null==t||t.disconnect(),g(),b(),w(),k(),S(),C(),I(),O(),x(),_(),A(),R(),T.forEach(function(e){return e()})})}function Ep(e){return void 0!==window[e]}function Ap(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Rp=function(){return ro(function e(t){eo(this,e),so(this,"iframeIdToRemoteIdMap",new WeakMap),so(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t},[{key:"getId",value:function(e,t,r,n){var o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}},{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}}])}(),Tp=function(){return ro(function e(t){eo(this,e),so(this,"iframes",new WeakMap),so(this,"crossOriginIframeMap",new WeakMap),so(this,"crossOriginIframeMirror",new Rp(Go)),so(this,"crossOriginIframeStyleMirror"),so(this,"crossOriginIframeRootIdMap",new WeakMap),so(this,"mirror"),so(this,"mutationCb"),so(this,"wrappedEmit"),so(this,"loadListener"),so(this,"stylesheetManager"),so(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Rp(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))},[{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,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}}},{key:"transformCrossOriginEvent",value:function(e,t){var r,n=this;switch(t.type){case ep.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var o=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,o),this.patchRootIdOnNode(t.data.node,o),{timestamp:t.timestamp,type:ep.IncrementalSnapshot,data:{source:tp.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case ep.Meta:case ep.Load:case ep.DomContentLoaded:return!1;case ep.Plugin:return t;case ep.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ep.IncrementalSnapshot:switch(t.data.source){case tp.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case tp.Drag:case tp.TouchMove:case tp.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case tp.ViewportResize:return!1;case tp.MediaInteraction:case tp.MouseInteraction:case tp.Scroll:case tp.CanvasMutation:case tp.Input:return this.replaceIds(t.data,e,["id"]),t;case tp.StyleSheetRule:case tp.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case tp.Font:return t;case tp.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case tp.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1}},{key:"replace",value:function(e,t,r,n){var o,i=Kn(n);try{for(i.s();!(o=i.n()).done;){var a=o.value;(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]))}}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","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})}},{key:"patchRootIdOnNode",value:function(e,t){var r=this;e.type===ap.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})}}])}(),Mp=function(){return ro(function e(t){eo(this,e),so(this,"shadowDoms",new WeakSet),so(this,"mutationCb"),so(this,"scrollCb"),so(this,"bypassOptions"),so(this,"mirror"),so(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()},[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var r=this;if(Co(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=bp(zn(zn({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(kp(zn(zn({},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(Mh.host(e))),r.restoreHandlers.push(xp({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}}},{key:"observeAttachShadow",value:function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}},{key:"patchAttachShadow",value:function(e,t){var r=this;this.restoreHandlers.push(Th(e.prototype,"attachShadow",function(e){return function(n){var o=e.call(this,n),i=Mh.shadowRoot(this);return i&&Qh(this)&&r.addShadowRoot(i,t),o}}))}},{key:"reset",value:function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}])}(),Pp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jp="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Np=0;Np<64;Np++)jp[Pp.charCodeAt(Np)]=Np;var Lp=new Map;var Dp=function(e,t,r){if(e&&(Bp(e,t)||"object"===oo(e))){var n=function(e,t){var r=Lp.get(e);return r||(r=new Map,Lp.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 Fp(e,t,r){if(e instanceof Array)return e.map(function(e){return Fp(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)return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=Pp[r[t]>>2],o+=Pp[(3&r[t])<<4|r[t+1]>>4],o+=Pp[(15&r[t+1])<<2|r[t+2]>>6],o+=Pp[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)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Fp(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:[Fp(e.data,t,r),e.width,e.height]}:Bp(e,t)||"object"===oo(e)?{rr_type:e.constructor.name,index:Dp(e,t,r)}:e}var Up=function(e,t,r){return e.map(function(e){return Fp(e,t,r)})},Bp=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 Wp(e,t,r,n){var o=[];try{var i=Th(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(!Gh(this,t,r,!0)){var u=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(a[0]&&"object"===oo(a[0])){var l=a[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o].concat(a))}});o.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){o.forEach(function(e){return e()})}}function zp(e,t,r,n,o,i){var a,s=[],u=Kn(Object.getOwnPropertyNames(e));try{var l=function(){var u=a.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))return 0;try{if("function"!=typeof e[u])return 0;var l=Th(e,u,function(e){return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=e.apply(this,s);if(Dp(c,i,this),"tagName"in this.canvas&&!Gh(this.canvas,n,o,!0)){var f=Up(s,i,this),h={type:t,property:u,args:f};r(this.canvas,h)}return c}});s.push(l)}catch(n){var c=Dh(e,u,{set:function(e){r(this.canvas,{type:t,property:u,args:[e],setter:!0})}});s.push(c)}};for(u.s();!(a=u.n()).done;)l()}catch(e){u.e(e)}finally{u.f()}return s}var Gp,Vp="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Hp="undefined"!=typeof window&&window.Blob&&new Blob([(Gp=Vp,Uint8Array.from(atob(Gp),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function qp(e){var t;try{if(!(t=Hp&&(window.URL||window.webkitURL).createObjectURL(Hp)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+Vp,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Jp,Zp,Yp,Xp=function(){return ro(function e(t){var r=this;eo(this,e),so(this,"pendingCanvasMutations",new Map),so(this,"rafStamps",{latestId:0,invokeId:null}),so(this,"mirror"),so(this,"mutationCb"),so(this,"resetObservers"),so(this,"frozen",!1),so(this,"locked",!1),so(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,a=t.blockClass,s=t.blockSelector,u=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&"all"===o&&this.initCanvasMutationObserver(i,a,s),u&&"number"==typeof o&&this.initCanvasFPSObserver(o,i,a,s,{dataURLOptions:l})},[{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,t,r,n,o){var i=this,a=Wp(t,r,n,!0),s=new Map,u=new qp;u.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,o=r.type,a=r.width,u=r.height;i.mutationCb({id:t,type:op["2D"],commands:[{property:"clearRect",args:[0,0,a,u]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:o}]},0,0]}]})}};var l,c=1e3/e,f=0,h=function(e){var a;f&&e-f<c?l=requestAnimationFrame(h):(f=e,(a=[],t.document.querySelectorAll("canvas").forEach(function(e){Gh(e,r,n,!0)||a.push(e)}),a).forEach(function(){var e=Dn(jn().m(function e(t){var r,n,a,l;return jn().w(function(e){for(;;)switch(e.n){case 0:if(n=i.mirror.getId(t),!s.get(n)){e.n=1;break}return e.a(2);case 1:if(0!==t.width&&0!==t.height){e.n=2;break}return e.a(2);case 2:return s.set(n,!0),["webgl","webgl2"].includes(t.__context)&&(a=t.getContext(t.__context),!1===(null==(r=null==a?void 0:a.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&a.clear(a.COLOR_BUFFER_BIT)),e.n=3,createImageBitmap(t);case 3:l=e.v,u.postMessage({id:n,bitmap:l,width:t.width,height:t.height,dataURLOptions:o.dataURLOptions},[l]);case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),l=requestAnimationFrame(h))};l=requestAnimationFrame(h),this.resetObservers=function(){a(),cancelAnimationFrame(l)}}},{key:"initCanvasMutationObserver",value:function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Wp(e,t,r,!1),o=function(e,t,r,n){var o,i=[],a=Kn(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));try{var s=function(){var a=o.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])return 1;var s=Th(t.CanvasRenderingContext2D.prototype,a,function(o){return function(){for(var i=this,s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];return Gh(this.canvas,r,n,!0)||setTimeout(function(){var r=Up(u,t,i);e(i.canvas,{type:op["2D"],property:a,args:r})},0),o.apply(this,u)}});i.push(s)}catch(r){var u=Dh(t.CanvasRenderingContext2D.prototype,a,{set:function(t){e(this.canvas,{type:op["2D"],property:a,args:[t],setter:!0})}});i.push(u)}};for(a.s();!(o=a.n()).done;)s()}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){var o=[];return o.push.apply(o,Vn(zp(t.WebGLRenderingContext.prototype,op.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&o.push.apply(o,Vn(zp(t.WebGL2RenderingContext.prototype,op.WebGL2,e,r,n,t))),function(){o.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);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,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};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){e.type;return Mn(e,Tn)}),o=r[0].type;this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}}}])}(),Kp=function(){return ro(function e(t){eo(this,e),so(this,"trackedLinkElements",new WeakSet),so(this,"mutationCb"),so(this,"adoptedStyleSheetCb"),so(this,"styleMirror",new Xh),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb},[{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){var r=this;if(0!==e.length){var n,o={id:t,styleIds:[]},i=[],a=Kn(e);try{var s=function(){var e,t=n.value;r.styleMirror.has(t)?e=r.styleMirror.getId(t):(e=r.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,function(e,r){return{rule:Oo(e,t.href),index:r}})})),o.styleIds.push(e)};for(a.s();!(n=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}i.length>0&&(o.styles=i),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}])}(),$p=function(){return ro(function e(){eo(this,e),so(this,"nodeMap",new WeakMap),so(this,"active",!1)},[{key:"inOtherBuffer",value:function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})}},{key:"add",value:function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"destroy",value:function(){}}])}(),Qp=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var ed=document.createElement("iframe");document.body.appendChild(ed),Array.from=(null==(io=ed.contentWindow)?void 0:io.Array.from)||Array.from,document.body.removeChild(ed)}}catch(e){console.debug("Unable to override Array.from",e)}var td,rd,nd=new xo;function od(){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,a=e.blockSelector,s=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,c=e.ignoreSelector,f=void 0===c?null:c,h=e.maskTextClass,p=void 0===h?"rr-mask":h,d=e.maskTextSelector,v=void 0===d?null:d,y=e.inlineStylesheet,m=void 0===y||y,g=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,k=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,O=e.sampling,x=void 0===O?{}:O,_=e.dataURLOptions,E=void 0===_?{}:_,A=e.mousemoveWait,R=e.recordDOM,T=void 0===R||R,M=e.recordCanvas,P=void 0!==M&&M,j=e.recordCrossOriginIframes,N=void 0!==j&&j,L=e.recordAfter,D=void 0===L?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":L,F=e.userTriggeredOnInput,U=void 0!==F&&F,B=e.collectFonts,W=void 0!==B&&B,z=e.inlineImages,G=void 0!==z&&z,V=e.plugins,H=e.keepIframeSrcFn,q=void 0===H?function(){return!1}:H,J=e.ignoreCSSAttributes,Z=void 0===J?new Set([]):J,Y=e.errorHandler;up=Y;var X=!N||window.parent===window,K=!1;if(!X)try{window.parent.document&&(K=!1)}catch(e){K=!0}if(X&&!t)throw new Error("emit function is required");if(!X&&!K)return function(){};void 0!==A&&void 0===x.mousemove&&(x.mousemove=A),nd.reset();var $,Q=!0===g?{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!==b?b:{password:!0},ee=ri(w);!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)}();var te=0,re=function(e){var t,r=Kn(V||[]);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&&!K&&(e=I(e)),e};Jp=function(e,o){var i,a=e;if(a.timestamp=Fh(),!(null==(i=mp[0])?void 0:i.isFrozen())||a.type===ep.FullSnapshot||a.type===ep.IncrementalSnapshot&&a.data.source===tp.Mutation||mp.forEach(function(e){return e.unfreeze()}),X)null==t||t(re(a),o);else if(K){var s={type:"rrweb",event:re(a),origin:window.location.origin,isCheckout:o};window.parent.postMessage(s,"*")}if(a.type===ep.FullSnapshot)$=a,te=0;else if(a.type===ep.IncrementalSnapshot){if(a.data.source===tp.Mutation&&a.data.isAttachIframe)return;te++;var u=n&&te>=n,l=r&&a.timestamp-$.timestamp>r;(u||l)&&Zp(!0)}};var ne,oe=function(e){Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.Mutation},e)})},ie=function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.Scroll},e)})},ae=function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.CanvasMutation},e)})},se=new Kp({mutationCb:oe,adoptedStyleSheetCb:function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.AdoptedStyleSheet},e)})}}),ue=new Tp({mirror:nd,mutationCb:oe,stylesheetManager:se,recordCrossOriginIframes:N,wrappedEmit:Jp}),le=Kn(V||[]);try{for(le.s();!(ne=le.n()).done;){var ce=ne.value;ce.getMirror&&ce.getMirror({nodeMirror:nd,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(e){le.e(e)}finally{le.f()}var fe=new $p;Yp=new Xp({recordCanvas:P,mutationCb:ae,win:window,blockClass:i,blockSelector:s,mirror:nd,sampling:x.canvas,dataURLOptions:E});var he=new Mp({mutationCb:oe,scrollCb:ie,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:p,maskTextSelector:v,inlineStylesheet:m,maskInputOptions:Q,dataURLOptions:E,maskTextFn:S,maskInputFn:k,recordCanvas:P,inlineImages:G,sampling:x,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:se,canvasManager:Yp,keepIframeSrcFn:q,processedNodeManager:fe},mirror:nd});Zp=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(T){Jp({type:ep.Meta,data:{href:window.location.href,width:Wh(),height:Bh()}},e),se.reset(),he.init(),mp.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,o=void 0===n?new xo:n,i=r.blockClass,a=void 0===i?"rr-block":i,s=r.blockSelector,u=void 0===s?null:s,l=r.maskTextClass,c=void 0===l?"rr-mask":l,f=r.maskTextSelector,h=void 0===f?null:f,p=r.inlineStylesheet,d=void 0===p||p,v=r.inlineImages,y=void 0!==v&&v,m=r.recordCanvas,g=void 0!==m&&m,b=r.maskAllInputs,w=void 0!==b&&b,k=r.maskTextFn,S=r.maskInputFn,C=r.slimDOM,I=void 0!==C&&C,O=r.dataURLOptions,x=r.preserveWhiteSpace,_=r.onSerialize,E=r.onIframeLoad,A=r.iframeLoadTimeout,R=r.onStylesheetLoad,T=r.stylesheetLoadTimeout,M=r.keepIframeSrcFn,P=void 0===M?function(){return!1}:M;return ni(e,{doc:e,mirror:o,blockClass:a,blockSelector:u,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===w?{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===w?{password:!0}:w,maskTextFn:k,maskInputFn:S,slimDOMOptions:ri(I),dataURLOptions:O,inlineImages:y,recordCanvas:g,preserveWhiteSpace:x,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:T,keepIframeSrcFn:P,newlyAddedElement:!1})}(document,{mirror:nd,blockClass:i,blockSelector:s,maskTextClass:p,maskTextSelector:v,inlineStylesheet:m,maskAllInputs:Q,maskTextFn:S,maskInputFn:k,slimDOM:ee,dataURLOptions:E,recordCanvas:P,inlineImages:G,onSerialize:function(e){Jh(e,nd)&&ue.addIframe(e),Zh(e,nd)&&se.trackLinkElement(e),Yh(e)&&he.addShadowRoot(Mh.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),he.observeAttachShadow(e)},onStylesheetLoad:function(e,t){se.attachLinkElement(e,t)},keepIframeSrcFn:q});if(!t)return console.warn("Failed to snapshot the document");Jp({type:ep.FullSnapshot,data:{node:t,initialOffset:Uh(window)}},e),mp.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&se.adoptStyleSheets(document.adoptedStyleSheets,nd.getId(document))}};try{var pe=[],de=function(e){var t;return yp(_p)({mutationCb:oe,mousemoveCb:function(e,t){return Jp({type:ep.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.MouseInteraction},e)})},scrollCb:ie,viewportResizeCb:function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.ViewportResize},e)})},inputCb:function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.Input},e)})},mediaInteractionCb:function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.StyleDeclaration},e)})},canvasMutationCb:ae,fontCb:function(e){return Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.Font},e)})},selectionCb:function(e){Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.Selection},e)})},customElementCb:function(e){Jp({type:ep.IncrementalSnapshot,data:zn({source:tp.CustomElement},e)})},blockClass:i,ignoreClass:l,ignoreSelector:f,maskTextClass:p,maskTextSelector:v,maskInputOptions:Q,inlineStylesheet:m,sampling:x,recordDOM:T,recordCanvas:P,inlineImages:G,userTriggeredOnInput:U,collectFonts:W,doc:e,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:q,blockSelector:s,slimDOMOptions:ee,dataURLOptions:E,mirror:nd,iframeManager:ue,stylesheetManager:se,shadowDomManager:he,processedNodeManager:fe,canvasManager:Yp,ignoreCSSAttributes:Z,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Jp({type:ep.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},C)};ue.addLoadListener(function(e){try{pe.push(de(e.contentDocument))}catch(e){console.warn(e)}});var ve=function(){Zp(),pe.push(de(document)),Qp=!0};return["interactive","complete"].includes(document.readyState)?ve():(pe.push(Ph("DOMContentLoaded",function(){Jp({type:ep.DomContentLoaded,data:{}}),"DOMContentLoaded"===D&&ve()})),pe.push(Ph("load",function(){Jp({type:ep.Load,data:{}}),"load"===D&&ve()},window))),function(){pe.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),fe.destroy(),Qp=!1,up=void 0}}catch(e){console.warn(e)}}od.addCustomEvent=function(e,t){if(!Qp)throw new Error("please add custom event after start recording");Jp({type:ep.Custom,data:{tag:e,payload:t}})},od.freezePage=function(){mp.forEach(function(e){return e.freeze()})},od.takeFullSnapshot=function(e){if(!Qp)throw new Error("please take full snapshot after start recording");Zp(e)},od.mirror=nd,(rd=td||(td={}))[rd.NotStarted=0]="NotStarted",rd[rd.Running=1]="Running",rd[rd.Stopped=2]="Stopped";var id=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}(id||{});function ad(e){return ad="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},ad(e)}function sd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ld(n.key),n)}}function ud(e,t,r){return(t=ld(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ld(e){var t=function(e,t){if("object"!=ad(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ad(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ad(t)?t:t+""}var cd=function(){return function(e,t,r){return t&&sd(e.prototype,t),r&&sd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r=t.getIntervalMs,n=t.forceCheckout,o=t.marginMs,i=void 0===o?1e3:o,a=t.now,s=void 0===a?function(){return Date.now()}:a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ud(this,"_getIntervalMs",void 0),ud(this,"_forceCheckout",void 0),ud(this,"_marginMs",void 0),ud(this,"_now",void 0),ud(this,"_timerId",null),ud(this,"_lastCheckoutAt",null),ud(this,"_running",!1),this._getIntervalMs=r,this._forceCheckout=n,this._marginMs=i,this._now=s},[{key:"start",value:function(){this._running||(this._running=!0,this._lastCheckoutAt=this._now(),this._arm())}},{key:"stop",value:function(){this._running&&(this._running=!1,this._lastCheckoutAt=null,this._clearTimer())}},{key:"notify",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._now();this._running&&(this._lastCheckoutAt=e,this._arm())}},{key:"_arm",value:function(){var e=this;if(this._clearTimer(),this._running){var t=this._getIntervalMs()+this._marginMs;this._timerId=setTimeout(function(){return e._maybeForceCheckout()},t)}}},{key:"_maybeForceCheckout",value:function(){var e;if(this._running){var t=this._getIntervalMs(),r=null!==(e=this._lastCheckoutAt)&&void 0!==e?e:this._now();if(this._now()-r<t)this._arm();else{try{this._forceCheckout()}catch(e){je.error("Replay: Forced checkout failed",e)}this._lastCheckoutAt=this._now(),this._arm()}}}},{key:"_clearTimer",value:function(){this._timerId&&(clearTimeout(this._timerId),this._timerId=null)}}])}(),fd=["enabled","autoStart","maxPreDuration","debug","emit","checkoutEveryNms"];function hd(e){return hd="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},hd(e)}function pd(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return dd(e,t);var r={}.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)?dd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function dd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vd(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}function yd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(r),!0).forEach(function(t){gd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function md(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bd(n.key),n)}}function gd(e,t,r){return(t=bd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bd(e){var t=function(e,t){if("object"!=hd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hd(t)?t:t+""}var wd=function(){function e(){var t,r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gd(this,"_options",void 0),gd(this,"_rrwebOptions",void 0),gd(this,"_isReady",!1),gd(this,"_stopFn",null),gd(this,"_recordFn",void 0),gd(this,"_checkoutWatchdog",void 0),gd(this,"_buffers",[[],[]]),gd(this,"_currentSlot",0),this.options=n,this._recordFn=n.recordFn||od,!u(null===(t=this._recordFn)||void 0===t?void 0:t.takeFullSnapshot))throw new Error("Recorder requires a valid rrweb record function");this._checkoutWatchdog=new cd({getIntervalMs:function(){return r.checkoutEveryNms()},forceCheckout:function(){return r._recordFn.takeFullSnapshot(!0)}})}return function(e,t,r){return t&&md(e.prototype,t),r&&md(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"_previousSlot",get:function(){return 1^this._currentSlot}},{key:"isRecording",get:function(){return null!==this._stopFn}},{key:"isReady",get:function(){return this._isReady}},{key:"options",get:function(){return this._options},set:function(e){this.configure(e)}},{key:"configure",value:function(e){var t=e.enabled,r=e.autoStart,n=e.maxPreDuration,o=e.debug,i=(e.emit,e.checkoutEveryNms,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,fd));this._options={enabled:t,autoStart:r,maxPreDuration:n,debug:o},this._rrwebOptions=i,this.isRecording&&!1===e.enabled&&this.stop()}},{key:"checkoutEveryNms",value:function(){return 1e3*(this.options.maxPreDuration||10)/2}},{key:"bufferCursor",value:function(){return{slot:this._currentSlot,offset:this._buffers[this._currentSlot].length-1}}},{key:"exportRecordingSpan",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=o?this._collectEventsFromCursor(o):this._collectAll();if(0===i.length)throw new Error("Replay recording has no events");var a=e.startSpan("rrweb-replay-recording",{});a.setAttributes(yd(yd({},null!==(t=null===(r=e.session)||void 0===r?void 0:r.attributes)&&void 0!==t?t:{}),n));var s=i.reduce(function(e,t){return t.timestamp<e.timestamp?t:e});a.span.startTime=he.fromMillis(s.timestamp);var u,l=pd(i);try{for(l.s();!(u=l.n()).done;){var c=u.value;a.addEvent("rrweb-replay-events",{eventType:c.type,json:JSON.stringify(c.data)},he.fromMillis(c.timestamp))}}catch(e){l.e(e)}finally{l.f()}a.end()}},{key:"start",value:function(){var t=this;if(!this.isRecording&&!1!==this.options.enabled)return this.clear(),this._stopFn=this._recordFn(yd({emit:function(r,n){var o;t._isReady||r.type!==id.FullSnapshot||(t._isReady=!0),null!==(o=t.options.debug)&&void 0!==o&&o.logEmits&&e._logEvent(r,n),n&&r.type===id.Meta&&(t._currentSlot=t._previousSlot,t._buffers[t._currentSlot]=[],t._checkoutWatchdog.notify(r.timestamp)),t._buffers[t._currentSlot].push(r)},checkoutEveryNms:this.checkoutEveryNms(),errorHandler:function(e){var r;return null!==(r=t.options.debug)&&void 0!==r&&r.logErrors&&je.error("Error during replay recording",e),!0}},this._rrwebOptions)),this._checkoutWatchdog.start(),this}},{key:"stop",value:function(){if(this.isRecording)return this._stopFn(),this._stopFn=null,this._isReady=!1,this._checkoutWatchdog.stop(),this}},{key:"clear",value:function(){this._buffers=[[],[]],this._currentSlot=0,this._isReady=!1,this._checkoutWatchdog.stop()}},{key:"_collectAll",value:function(){var t=this._buffers[this._previousSlot],r=this._buffers[this._currentSlot],n=t.concat(r);return n.length>0&&n.push(e._replayEndEvent()),n}},{key:"_collectEventsFromCursor",value:function(t){var r,n,o=this._currentSlot,i=null!==(r=this._buffers[t.slot])&&void 0!==r?r:[],a=this._buffers[o],s=i.slice(Math.max(0,t.offset+1)),u=t.slot===o?[]:a,l=s.concat(u);return null!==(n=this.options.debug)&&void 0!==n&&n.logErrors&&t.slot!==o&&0===s.length&&je.warn("Captured lead buffer cleared by multiple checkouts"),l.length>0&&l.push(e._replayEndEvent()),l}}],[{key:"_replayEndEvent",value:function(){return{type:id.Custom,timestamp:Date.now(),data:{tag:"replay.end",payload:{}}}}},{key:"_logEvent",value:function(e,t){je.log("Recorder: ".concat(t?"checkout":""," event\n"),function(e){var t=new WeakSet;return JSON.stringify(e,function(e,r){if("object"===hd(r)&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}(e))}}])}();function kd(e){return kd="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},kd(e)}function Sd(e){return function(e){if(Array.isArray(e))return Id(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cd(e)||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.")}()}function Cd(e,t){if(e){if("string"==typeof e)return Id(e,t);var r={}.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)?Id(e,t):void 0}}function Id(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Od(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}function xd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(r),!0).forEach(function(t){Ed(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Od(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ad(n.key),n)}}function Ed(e,t,r){return(t=Ad(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ad(e){var t=function(e,t){if("object"!=kd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=kd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kd(t)?t:t+""}var Rd=function(){return function(e,t,r){return t&&_d(e.prototype,t),r&&_d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ed(this,"maxAdjustedCount",Math.pow(2,56)),this.configure(t),this.predicates={occurrence:[this.isLevelMatching.bind(this),this.isPredicateFnMatching.bind(this),this.isSampled.bind(this)],navigation:[this.isPathMatching.bind(this),this.isPredicateFnMatching.bind(this),this.isSampled.bind(this)],direct:[this.isTagMatching.bind(this),this.isPredicateFnMatching.bind(this),this.isSampled.bind(this)]}},[{key:"configure",value:function(e){this.config=e||{},this.triggers=this._triggersWithDefaults(e),this.maxPreDuration=this._maxPreDuration()}},{key:"_triggersWithDefaults",value:function(e){return((null==e?void 0:e.triggers)||[]).map(function(t){return xd(xd({},e.triggerDefaults),t)})}},{key:"_maxPreDuration",value:function(){return this.triggers?Math.max.apply(Math,Sd(this.triggers.map(function(e){return e.preDuration||0})).concat([0])):0}},{key:"shouldCaptureForTriggerContext",value:function(e){var t,r=this.predicates[e.type],n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Cd(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(this.triggers);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(o.type===e.type&&this.isEnabledForTrigger(o,r,e))return o}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"isEnabledForTrigger",value:function(e,t,r){return!t.find(function(t){return!t(e,r)})}},{key:"isLevelMatching",value:function(e,t){return!(e.level&&!e.level.includes(t.level))}},{key:"isPathMatching",value:function(e,t){var r=t.path,n=e.pathMatch;if(!n)return!0;if(!r)return!1;if("string"==typeof n){if(r.includes(n))return!0}else if(r.match(n))return!0;return!1}},{key:"isTagMatching",value:function(e,t){var r;return!e.tags||!(null===(r=t.tags)||void 0===r||!r.some(function(t){return e.tags.includes(t)}))}},{key:"isPredicateFnMatching",value:function(e,t){return"function"!=typeof e.predicateFn||e.predicateFn(e,t)}},{key:"isSampled",value:function(e,t){var r,n=null!==(r=e.samplingRatio)&&void 0!==r?r:1;return 1===n||t.replayId.slice(-14)>=(this.maxAdjustedCount*(1-n)).toString(16).padStart(14,"0")}}])}();function Td(e){return Td="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},Td(e)}function Md(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Pd(e,t);var r={}.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)?Pd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Pd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jd(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return Nd(l,"_invoke",function(r,n,o){var i,s,u,l=0,c=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,u=e,h.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!f&&l&&!o&&t<c.length;t++){var o,i=c[t],p=h.p,d=i[2];r>3?(o=d===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,h.v=n,h.n=i[1]):p<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,h.n=d,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,d),s=c,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:r.call(n,h))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Nd(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Nd(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,Nd(f,"constructor",l),Nd(l,"constructor",u),u.displayName="GeneratorFunction",Nd(l,o,"GeneratorFunction"),Nd(f),Nd(f,o,"Generator"),Nd(f,n,function(){return this}),Nd(f,"toString",function(){return"[object Generator]"}),(jd=function(){return{w:i,m:h}})()}function Nd(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Nd=function(e,t,r,n){function i(t,r){Nd(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Nd(e,t,r,n)}function Ld(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Dd(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Ld(i,n,o,a,s,"next",e)}function s(e){Ld(i,n,o,a,s,"throw",e)}a(void 0)})}}function Fd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bd(n.key),n)}}function Ud(e,t,r){return(t=Bd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bd(e){var t=function(e,t){if("object"!=Td(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Td(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Td(t)?t:t+""}var Wd=function(){return function(e,t,r){return t&&Fd(e.prototype,t),r&&Fd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r=t.recorder,n=t.tracing,o=t.telemeter,i=t.shouldSend,a=t.onComplete;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ud(this,"_recorder",void 0),Ud(this,"_tracing",void 0),Ud(this,"_telemeter",void 0),Ud(this,"_pending",new Map),Ud(this,"_shouldSend",void 0),Ud(this,"_onComplete",void 0),this._recorder=r,this._tracing=n,this._telemeter=o,this._shouldSend=i,this._onComplete=a},[{key:"schedule",value:function(e,t,r){var n=this,o=Date.now(),i=o+1e3*r,a=this._recorder.checkoutEveryNms(),s=this._recorder.bufferCursor(),u=setInterval(function(){n._export(e)},a),l=setTimeout(function(){n._finalExport(e)},1e3*r);this._pending.set(e,{intervalId:u,endTimerId:l,startTime:o,endAt:i,postDuration:r,occurrenceUuid:t,cursor:s,chunkQueue:[],sending:!1,aborted:!1,finished:!1})}},{key:"_export",value:(r=Dd(jd().m(function e(t){var r,n,o,i,a,s;return jd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!(!(n=this._pending.get(t))||n.aborted||n.finished||Date.now()>=n.endAt)){e.n=1;break}return e.a(2);case 1:o=n.cursor,i=this._recorder.bufferCursor(),e.p=2,this._recorder.exportRecordingSpan(this._tracing,{"rollbar.replay.id":t,"rollbar.occurrence.uuid":n.occurrenceUuid},o),e.n=4;break;case 3:return e.p=3,s=e.v,je.debug("Error exporting leading chunk (tick):",s),e.a(2);case 4:return null===(r=this._telemeter)||void 0===r||r.exportTelemetrySpan({"rollbar.replay.id":t}),a=this._tracing.exporter.toPayload(),n.chunkQueue.push({payload:a,cursor:o}),n.cursor=i,e.n=5,this.sendIfReady(t);case 5:return e.a(2)}},e,this,[[2,3]])})),function(e){return r.apply(this,arguments)})},{key:"_finalExport",value:(t=Dd(jd().m(function e(t){var r,n,o,i,a,s;return jd().w(function(e){for(;;)switch(e.n){case 0:if((r=this._pending.get(t))&&!r.aborted){e.n=1;break}return e.a(2);case 1:r.intervalId&&clearInterval(r.intervalId),r.endTimerId&&clearTimeout(r.endTimerId),r.finished=!0,n=r.cursor,o=this._recorder.bufferCursor();try{this._recorder.exportRecordingSpan(this._tracing,{"rollbar.replay.id":t,"rollbar.occurrence.uuid":r.occurrenceUuid},n),null===(i=this._telemeter)||void 0===i||i.exportTelemetrySpan({"rollbar.replay.id":t}),a=this._tracing.exporter.toPayload(),r.chunkQueue.push({payload:a,cursor:n}),r.cursor=o}catch(e){je.debug("Error exporting leading chunk (final):",e)}if(r.sending||0!==r.chunkQueue.length){e.n=2;break}return this._pending.delete(t),null===(s=this._onComplete)||void 0===s||s.call(this,t),e.a(2);case 2:return e.n=3,this.sendIfReady(t);case 3:return e.a(2)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"sendIfReady",value:(e=Dd(jd().m(function e(t){var r,n,o,i,a,s,u,l;return jd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=this._pendingContextIfReady(t)){e.n=1;break}return e.a(2);case 1:if(!r.finished||r.sending||0!==r.chunkQueue.length){e.n=2;break}return this._pending.delete(t),null===(n=this._onComplete)||void 0===n||n.call(this,t),e.a(2);case 2:r.sending=!0,o=Md(r.chunkQueue),e.p=3,o.s();case 4:if((i=o.n()).done){e.n=10;break}if(a=i.value,!r.aborted){e.n=5;break}return e.a(3,10);case 5:if(this._shouldSend(t)){e.n=6;break}throw je.error("Coordination check failed during chunk send"),this.discard(t),new Error("Coordination check failed during chunk send");case 6:return e.p=6,e.n=7,this._tracing.exporter.post(a.payload,{"X-Rollbar-Replay-Id":t});case 7:e.n=9;break;case 8:throw e.p=8,u=e.v,je.error("Failed to send leading replay:",u),this.discard(t),u;case 9:e.n=4;break;case 10:e.n=12;break;case 11:e.p=11,l=e.v,o.e(l);case 12:return e.p=12,o.f(),e.f(12);case 13:r.sending=!1,r.chunkQueue=[],r.finished&&(this._pending.delete(t),null===(s=this._onComplete)||void 0===s||s.call(this,t));case 14:return e.a(2)}},e,this,[[6,8],[3,11,12,13]])})),function(t){return e.apply(this,arguments)})},{key:"discard",value:function(e){var t,r=this._pending.get(e);r&&(r.aborted=!0,r.intervalId&&clearInterval(r.intervalId),r.endTimerId&&clearTimeout(r.endTimerId),r.chunkQueue=[],this._pending.delete(e),null===(t=this._onComplete)||void 0===t||t.call(this,e))}},{key:"_pendingContextIfReady",value:function(e){var t=this._pending.get(e);return t&&!t.aborted&&!t.sending&&t.chunkQueue.length>0&&this._shouldSend(e)?t:null}}]);var e,t,r}();function zd(e){return zd="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},zd(e)}function Gd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!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)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vd(e,t);var r={}.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)?Vd(e,t):void 0}}(e,t)||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.")}()}function Vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Hd(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return qd(l,"_invoke",function(r,n,o){var i,s,u,l=0,c=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,u=e,h.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!f&&l&&!o&&t<c.length;t++){var o,i=c[t],p=h.p,d=i[2];r>3?(o=d===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,h.v=n,h.n=i[1]):p<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,h.n=d,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,d),s=c,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:r.call(n,h))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(qd(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,qd(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,qd(f,"constructor",l),qd(l,"constructor",u),u.displayName="GeneratorFunction",qd(l,o,"GeneratorFunction"),qd(f),qd(f,o,"Generator"),qd(f,n,function(){return this}),qd(f,"toString",function(){return"[object Generator]"}),(Hd=function(){return{w:i,m:h}})()}function qd(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}qd=function(e,t,r,n){function i(t,r){qd(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},qd(e,t,r,n)}function Jd(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Zd(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Jd(i,n,o,a,s,"next",e)}function s(e){Jd(i,n,o,a,s,"throw",e)}a(void 0)})}}function Yd(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}function Xd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(r),!0).forEach(function(t){$d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Kd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qd(n.key),n)}}function $d(e,t,r){return(t=Qd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qd(e){var t=function(e,t){if("object"!=zd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zd(t)?t:t+""}var ev=Object.freeze({PENDING:"pending",SENT:"sent",FAILED:"failed",SKIPPED:"skipped"}),tv=function(){function e(t){var r=t.tracing,n=t.telemeter,o=t.options;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),$d(this,"_map",void 0),$d(this,"_options",void 0),$d(this,"_recorder",void 0),$d(this,"_tracing",void 0),$d(this,"_telemeter",void 0),$d(this,"_scheduledCapture",void 0),$d(this,"_trailingStatus",void 0),!r)throw new TypeError("Expected 'tracing' to be provided");this._map=new Map,this._options=o,this._predicates=new Rd(o),this._recorder=new wd(Xd(Xd({},o),{},{maxPreDuration:this._predicates.maxPreDuration})),this._tracing=r,this._telemeter=n,this._trailingStatus=new Map,this._scheduledCapture=new Wd({recorder:this._recorder,tracing:this._tracing,telemeter:this._telemeter,shouldSend:this._shouldSendScheduled.bind(this),onComplete:this._onScheduledComplete.bind(this)}),this._tracing.addSpanTransform(this.uuidsTransform.bind(this))}return function(e,t,r){return t&&Kd(e.prototype,t),r&&Kd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"_onScheduledComplete",value:function(e){this._trailingStatus.delete(e)}},{key:"_shouldSendScheduled",value:function(e){var t=this._trailingStatus.get(e);return t===ev.SENT||t===ev.SKIPPED}},{key:"configure",value:function(e){this._options=e,this._predicates.configure(e),this._recorder.configure(Xd(Xd({},e),{},{maxPreDuration:this._predicates.maxPreDuration}))}},{key:"_exportSpansAndAddTracingPayload",value:(o=Zd(Hd().m(function e(t,r,n,o){var i,a,s,u;return Hd().w(function(e){for(;;)switch(e.p=e.n){case 0:e.p=0,this._recorder.exportRecordingSpan(this._tracing,{"rollbar.replay.id":t,"rollbar.occurrence.uuid":r,"rollbar.replay.trigger.type":n.type,"rollbar.replay.trigger.context":JSON.stringify(o),"rollbar.replay.trigger":JSON.stringify(n),"rollbar.replay.url.full":v(window.location.href),"rollbar.replay.options":JSON.stringify(this._options||{})}),e.n=2;break;case 1:return e.p=1,u=e.v,je.debug("Error exporting recording span:",u),e.a(2);case 2:null===(i=this._telemeter)||void 0===i||i.exportTelemetrySpan({"rollbar.replay.id":t}),a=this._tracing.exporter.toPayload(),this._map.set(t,a),(s=(null==n?void 0:n.postDuration)||0)>0&&(this._scheduledCapture.schedule(t,r,s),this._trailingStatus.set(t,ev.PENDING));case 3:return e.a(2)}},e,this,[[0,1]])})),function(e,t,r,n){return o.apply(this,arguments)})},{key:"capture",value:function(e,t,r){if(!this._recorder.isReady)return je.warn("Replay.capture: Recorder is not ready, cannot export replay"),null;e=e||Se.gen(8);var n=this._predicates.shouldCaptureForTriggerContext(Xd(Xd({},r),{},{replayId:e}));return n?(this._exportSpansAndAddTracingPayload(e,t,n,r),e):null}},{key:"triggerReplay",value:(n=Zd(Hd().m(function e(t){var r,n,o,i;return Hd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=Se.gen(8),n=this._predicates.shouldCaptureForTriggerContext(Xd(Xd({},t),{},{replayId:r}))){e.n=1;break}return e.a(2,null);case 1:if(!this._recorder.isReady){e.n=3;break}return e.n=2,this._exportSpansAndAddTracingPayload(r,null,n,t);case 2:e.n=4;break;case 3:this._trailingStatus.set(r,ev.SKIPPED),(i=(null===(o=this._recorder.options)||void 0===o?void 0:o.postDuration)||0)>0&&this._scheduledCapture.schedule(r,null,i);case 4:return e.p=4,e.n=5,this.send(r);case 5:e.n=7;break;case 6:return e.p=6,e.v,this.discard(r),e.a(2,null);case 7:return e.a(2,r)}},e,this,[[4,6]])})),function(e){return n.apply(this,arguments)})},{key:"sendOrDiscardReplay",value:(r=Zd(Hd().m(function t(r,n,o,i){var a;return Hd().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!e._canSendReplay(n,o,i)){t.n=5;break}return t.p=1,t.n=2,this.send(r);case 2:t.n=4;break;case 3:t.p=3,a=t.v,je.error("Failed to send replay:",a),this.discard(r);case 4:t.n=6;break;case 5:this.discard(r);case 6:return t.a(2)}},t,this,[[1,3]])})),function(e,t,n,o){return r.apply(this,arguments)})},{key:"send",value:(t=Zd(Hd().m(function e(t){var r;return Hd().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}throw Error("Replay.send: No replayId provided");case 1:if(this._map.has(t)){e.n=2;break}throw Error("Replay.send: No replay found for id: ".concat(t));case 2:if(r=this._map.get(t),this._map.delete(t),!(!r||Array.isArray(r)&&0===r.length||r.resourceSpans&&0===r.resourceSpans.length)){e.n=3;break}throw Error("Replay.send: No payload found for id: ".concat(t));case 3:return e.n=4,this._tracing.exporter.post(r,{"X-Rollbar-Replay-Id":t});case 4:return this._trailingStatus.set(t,ev.SENT),e.n=5,this._scheduledCapture.sendIfReady(t);case 5:return e.a(2)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"discard",value:function(e){return e?(this._trailingStatus.set(e,ev.FAILED),this._scheduledCapture.discard(e),this._map.has(e)?(this._map.delete(e),this._trailingStatus.delete(e),!0):(je.error("Replay.discard: No replay found for replayId: ".concat(e)),!1)):(je.error("Replay.discard: No replayId provided"),!1)}},{key:"uuidsTransform",value:function(e){var t=he.toMillis(e.startTime),r=this._telemeter.queue.filter(function(e){return e.timestamp_ms>=t&&e.uuid}),n=r.map(function(e){return e.uuid});e.attributes["rollbar.occurrence.uuids"]=JSON.stringify(n)}},{key:"getSpans",value:function(e){var t;return null!==(t=this._map.get(e))&&void 0!==t?t:null}},{key:"setSpans",value:function(e,t){this._map.set(e,t)}},{key:"clear",value:function(){this._map.clear()}},{key:"size",get:function(){return this._map.size}},{key:"recorder",get:function(){return this._recorder}}],[{key:"_canSendReplay",value:function(e,t,r){if(!r)return!1;var n=!e&&0===(null==t?void 0:t.err),o=Object.fromEntries(Object.entries(r).map(function(e){var t=Gd(e,2),r=t[0],n=t[1];return[r.toLowerCase(),String(n).trim()]})),i="true"===o["rollbar-replay-enabled"]&&"0"!==o["rollbar-replay-ratelimit-remaining"];return n&&i}}]);var t,r,n,o}();function rv(e){return"string"!=typeof e&&(e=String(e)),e.toLowerCase()}function nv(e){this.map={},e instanceof nv?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}nv.prototype.append=function(e,t){e=rv(e),t=function(e){return"string"!=typeof e&&(e=String(e)),e}(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},nv.prototype.get=function(e){return e=rv(e),this.has(e)?this.map[e]:null},nv.prototype.has=function(e){return c(this.map,rv(e))},nv.prototype.forEach=function(e,t){for(var r in this.map)c(this.map,r)&&e.call(t,this.map[r],r,this)},nv.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),function(e){return{next:function(){var t=e.shift();return{done:void 0===t,value:t}}}}(e)};var ov=function(e){return"undefined"==typeof Headers?new nv(e):new Headers(e)};var iv=function(e,t,r,n,o){var i=e[t];e[t]=r(i),n&&n[o].push([e,t,i])};function av(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return sv(e,t);var r={}.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)?sv(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function sv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function uv(e){return function(e){for(var t,r,n=[],o=0,i=e.length-1;i>=0;i--){if(t=lv(e[i]),r=o+3*n.length+t.length,i<e.length-1&&r>=83){n.unshift("...");break}n.unshift(t),o+=t.length}return n.join(" > ")}(function(e){for(var t,r=[],n=0;e&&n<5&&(t=cv(e))&&"html"!==t.tagName;n++)r.unshift(t),e=e.parentNode;return r}(e))}function lv(e){if(!e||!e.tagName)return"";var t=[e.tagName];e.id&&t.push("#"+e.id),e.classes&&t.push("."+e.classes.join("."));var r,n=av(e.attributes);try{for(n.s();!(r=n.n()).done;){var o=r.value;t.push("["+o.key+'="'+o.value+'"]')}}catch(e){n.e(e)}finally{n.f()}return t.join("")}function cv(e){if(!e||!e.tagName)return null;var t,r={};r.tagName=e.tagName.toLowerCase(),e.id&&(r.id=e.id),(t=e.className)&&"string"==typeof t&&(r.classes=t.split(/\s+/));r.attributes=[];for(var n=0,o=["type","name","title","alt"];n<o.length;n++){var i=o[n],a=e.getAttribute(i);a&&r.attributes.push({key:i,value:a})}return r}function fv(e){return fv="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},fv(e)}function hv(e){return function(e){if(Array.isArray(e))return mv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yv(e)||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.")}()}function pv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dv(n.key),n)}}function dv(e){var t=function(e,t){if("object"!=fv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fv(t)?t:t+""}function vv(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yv(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function yv(e,t){if(e){if("string"==typeof e)return mv(e,t);var r={}.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)?mv(e,t):void 0}}function mv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var gv={network:!0,networkResponseHeaders:!1,networkResponseBody:!1,networkRequestHeaders:!1,networkRequestBody:!1,networkErrorOnHttp5xx:!1,networkErrorOnHttp4xx:!1,networkErrorOnHttp0:!1,log:!0,dom:!0,navigation:!0,connectivity:!0,contentSecurityPolicy:!0,errorOnContentSecurityPolicy:!1};function bv(e,t){for(var r;e[t].length;)(r=e[t].shift())[0][r[1]]=r[2]}function wv(e){var t,r=[],n=vv(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;r.push(new RegExp(o,"i"))}}catch(e){n.e(e)}finally{n.f()}return function(e){var t=function(e){if(!e||!e.attributes)return null;var t,r=vv(e.attributes);try{for(r.s();!(t=r.n()).done;){var n=t.value;if("name"===n.key)return n.value}}catch(e){r.e(e)}finally{r.f()}return null}(e);if(!t)return!1;for(var n=0,o=r;n<o.length;n++){if(o[n].test(t))return!0}return!1}}var kv=function(){return function(e,t,r){return t&&pv(e.prototype,t),r&&pv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,r){(t=dv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"deinstrumentConnectivity",function(){this.removeListeners("connectivity")}),this.options=t;var s=t.autoInstrument;!1===t.enabled||!1===s?this.autoInstrument={}:(a(s,"object")||(s=gv),this.autoInstrument=P(gv,s)),this.configureScrubbing(),this.telemeter=r,this.rollbar=n,this.diagnostic=n.client.notifier.diagnostic,this._window=o||{},this._document=i||{},this.replacements={network:[],log:[],navigation:[],connectivity:[]},this.eventRemovers={dom:[],connectivity:[],contentsecuritypolicy:[]},this._location=this._window.location,this._lastHref=this._location&&this._location.href},[{key:"configureScrubbing",value:function(){var e,t,r,n,o,i,a,s,u,l,c=this.options;this.scrubTelemetryInputs=Boolean(null!==(e=c.scrubTelemetryInputs)&&void 0!==e?e:null===(t=c.replay)||void 0===t?void 0:t.maskAllInputs),this.telemetryScrubber=c.telemetryScrubber,this.defaultValueScrubber=wv(c.scrubFields),this.maskInputFn=null===(r=c.replay)||void 0===r?void 0:r.maskInputFn,this.maskInputOptions=(null===(n=c.replay)||void 0===n?void 0:n.maskInputOptions)||{},this.scrubClasses=[null===(o=c.replay)||void 0===o?void 0:o.blockClass,null===(i=c.replay)||void 0===i?void 0:i.ignoreClass,null===(a=c.replay)||void 0===a?void 0:a.maskTextClass].filter(Boolean),this.scrubSelectors=[null===(s=c.replay)||void 0===s?void 0:s.blockSelector,null===(u=c.replay)||void 0===u?void 0:u.ignoreSelector,null===(l=c.replay)||void 0===l?void 0:l.maskTextSelector].filter(Boolean)}},{key:"configure",value:function(e){this.options=P(this.options,e);var t=e.autoInstrument,r=P(this.autoInstrument);!1===e.enabled||!1===t?this.autoInstrument={}:(a(t,"object")||(t=gv),this.autoInstrument=P(gv,t)),this.configureScrubbing(),this.instrument(r)}},{key:"instrument",value:function(e){!this.autoInstrument.network||e&&e.network?!this.autoInstrument.network&&e&&e.network&&this.deinstrumentNetwork():this.instrumentNetwork(),!this.autoInstrument.log||e&&e.log?!this.autoInstrument.log&&e&&e.log&&this.deinstrumentConsole():this.instrumentConsole(),!this.autoInstrument.dom||e&&e.dom?!this.autoInstrument.dom&&e&&e.dom&&this.deinstrumentDom():this.instrumentDom(),!this.autoInstrument.navigation||e&&e.navigation?!this.autoInstrument.navigation&&e&&e.navigation&&this.deinstrumentNavigation():this.instrumentNavigation(),!this.autoInstrument.connectivity||e&&e.connectivity?!this.autoInstrument.connectivity&&e&&e.connectivity&&this.deinstrumentConnectivity():this.instrumentConnectivity(),!this.autoInstrument.contentSecurityPolicy||e&&e.contentSecurityPolicy?!this.autoInstrument.contentSecurityPolicy&&e&&e.contentSecurityPolicy&&this.deinstrumentContentSecurityPolicy():this.instrumentContentSecurityPolicy()}},{key:"deinstrumentNetwork",value:function(){bv(this.replacements,"network")}},{key:"instrumentNetwork",value:function(){var e=this;function t(t,r){t in r&&u(r[t])&&iv(r,t,function(t){return e.rollbar.wrap(t)})}if("XMLHttpRequest"in this._window){var r=this._window.XMLHttpRequest.prototype;iv(r,"open",function(e){return function(t,r){var n=Sv(r);return(a(r,"string")||n)&&(r=n?r.toString():r,this.__rollbar_xhr?(this.__rollbar_xhr.method=t,this.__rollbar_xhr.url=r,this.__rollbar_xhr.status_code=null,this.__rollbar_xhr.start_time_ms=T(),this.__rollbar_xhr.end_time_ms=null):this.__rollbar_xhr={method:t,url:r,status_code:null,start_time_ms:T(),end_time_ms:null}),e.apply(this,arguments)}},this.replacements,"network"),iv(r,"setRequestHeader",function(t){return function(r,n){return this.__rollbar_xhr||(this.__rollbar_xhr={}),a(r,"string")&&a(n,"string")&&(e.autoInstrument.networkRequestHeaders&&(this.__rollbar_xhr.request_headers||(this.__rollbar_xhr.request_headers={}),this.__rollbar_xhr.request_headers[r]=n),"content-type"===r.toLowerCase()&&(this.__rollbar_xhr.request_content_type=n)),t.apply(this,arguments)}},this.replacements,"network"),iv(r,"send",function(r){return function(n){var o,i,a=this,s=null===(o=e.rollbar)||void 0===o?void 0:o.tracing;if(j(e.options,s,null===(i=a.__rollbar_xhr)||void 0===i?void 0:i.url))try{a.setRequestHeader("baggage","rollbar.session.id=".concat(s.sessionId))}catch(e){}function l(){if(a.__rollbar_xhr&&(null===a.__rollbar_xhr.status_code&&(a.__rollbar_xhr.status_code=0,e.autoInstrument.networkRequestBody&&(a.__rollbar_xhr.request=n),a.__rollbar_event=e.captureNetwork(a.__rollbar_xhr,"xhr",void 0)),a.readyState<2&&(a.__rollbar_xhr.start_time_ms=T()),a.readyState>3)){var t=T();a.__rollbar_xhr.end_time_ms=t;var r=null;if(a.__rollbar_xhr.response_content_type=a.getResponseHeader("Content-Type"),e.autoInstrument.networkResponseHeaders){var o=e.autoInstrument.networkResponseHeaders;r={};try{var i;if(!0===o){var s=a.getAllResponseHeaders();if(s){var u,l,c,f=vv(s.trim().split(/[\r\n]+/));try{for(f.s();!(c=f.n()).done;){i=(u=c.value.split(": ")).shift(),l=u.join(": "),r[i]=l}}catch(e){f.e(e)}finally{f.f()}}}else{var h,p=vv(o);try{for(p.s();!(h=p.n()).done;){var d=h.value;r[d]=a.getResponseHeader(d)}}catch(e){p.e(e)}finally{p.f()}}}catch(e){}}var v=null;if(e.autoInstrument.networkResponseBody)try{v=a.responseText}catch(e){}var y=null;(v||r)&&(y={},v&&(e.isJsonContentType(a.__rollbar_xhr.response_content_type)?y.body=e.scrubJson(v):y.body=v),r&&(y.headers=r)),y&&(a.__rollbar_xhr.response=y);try{var m=a.status;m=1223===m?204:m,a.__rollbar_xhr.status_code=m,e.addOtelNetworkResponse(a.__rollbar_event,t,m),a.__rollbar_event.level=e.telemeter.levelFromStatus(m),e.errorOnHttpStatus(a.__rollbar_xhr)}catch(e){}}}return t("onload",a),t("onerror",a),t("onprogress",a),"onreadystatechange"in a&&u(a.onreadystatechange)?iv(a,"onreadystatechange",function(t){return e.rollbar.wrap(t,void 0,l)}):a.onreadystatechange=l,a.__rollbar_xhr&&e.trackHttpErrors()&&(a.__rollbar_xhr.stack=(new Error).stack),r.apply(this,arguments)}},this.replacements,"network")}"fetch"in this._window&&iv(this._window,"fetch",function(t){return function(r,n){var o,i,s=Array.prototype.slice.call(arguments),u=s[0],l="GET",c=Sv(u);a(u,"string")||c?i=c?u.toString():u:u&&(i=u.url,u.method&&(l=u.method)),s[1]&&s[1].method&&(l=s[1].method);var f=null===(o=e.rollbar)||void 0===o?void 0:o.tracing;j(e.options,f,i)&&N(s,{baggage:"rollbar.session.id=".concat(f.sessionId)});var h={method:l,url:i,status_code:null,start_time_ms:T(),end_time_ms:null};if(s[1]&&s[1].headers){var p=ov(s[1].headers);h.request_content_type=p.get("Content-Type"),e.autoInstrument.networkRequestHeaders&&(h.request_headers=e.fetchHeaders(p,e.autoInstrument.networkRequestHeaders))}e.autoInstrument.networkRequestBody&&(s[1]&&s[1].body?h.request=s[1].body:s[0]&&!a(s[0],"string")&&s[0].body&&(h.request=s[0].body));var d=e.captureNetwork(h,"fetch",void 0);return e.trackHttpErrors()&&(h.stack=(new Error).stack),t.apply(this,s).then(function(t){var r=T();h.end_time_ms=r,h.status_code=t.status,e.addOtelNetworkResponse(d,r,t.status),h.response_content_type=t.headers.get("Content-Type");var n=null;e.autoInstrument.networkResponseHeaders&&(n=e.fetchHeaders(t.headers,e.autoInstrument.networkResponseHeaders));var o=null;return e.autoInstrument.networkResponseBody&&"function"==typeof t.text&&(o=t.clone().text()),(n||o)&&(h.response={},o&&("function"==typeof o.then?o.then(function(t){t&&e.isJsonContentType(h.response_content_type)?h.response.body=e.scrubJson(t):h.response.body=t}):h.response.body=o),n&&(h.response.headers=n)),e.errorOnHttpStatus(h),t})}},this.replacements,"network")}},{key:"captureNetwork",value:function(e,t,r){return e.request&&this.isJsonContentType(e.request_content_type)&&(e.request=this.scrubJson(e.request)),this.telemeter.captureNetwork(e,t,r)}},{key:"isJsonContentType",value:function(e){return!!(e&&a(e,"string")&&e.toLowerCase().includes("json"))}},{key:"addOtelNetworkResponse",value:function(e,t,r){e.otelAttributes&&(e.otelAttributes["response.timeUnixNano"]=(1e6*t).toString(),e.otelAttributes.statusCode=r)}},{key:"scrubJson",value:function(e){return JSON.stringify(z(JSON.parse(e),this.options.scrubFields))}},{key:"fetchHeaders",value:function(e,t){var r={};try{if(!0===t){if("function"==typeof e.entries)for(var n=e.entries(),o=n.next();!o.done;)r[o.value[0]]=o.value[1],o=n.next()}else{var i,a=vv(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;r[s]=e.get(s)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){}return r}},{key:"trackHttpErrors",value:function(){return this.autoInstrument.networkErrorOnHttp5xx||this.autoInstrument.networkErrorOnHttp4xx||this.autoInstrument.networkErrorOnHttp0}},{key:"errorOnHttpStatus",value:function(e){var t=e.status_code;if(t>=500&&this.autoInstrument.networkErrorOnHttp5xx||t>=400&&this.autoInstrument.networkErrorOnHttp4xx||0===t&&this.autoInstrument.networkErrorOnHttp0){var r=new Error("HTTP request failed with Status "+t);r.stack=e.stack,this.rollbar.error(r,{skipFrames:1})}}},{key:"deinstrumentConsole",value:function(){for(var e;this.replacements.log.length;)e=this.replacements.log.shift(),this._window.console[e[0]]=e[1]}},{key:"instrumentConsole",value:function(){var e;if(null!==(e=this._window)&&void 0!==e&&null!==(e=e.console)&&void 0!==e&&e.log){var t=this,r=this._window.console;try{for(var n=0,o=["debug","info","warn","error","log"];n<o.length;n++){i(o[n])}}catch(e){this.diagnostic.instrumentConsole={error:e.message}}}function i(e){var n=r[e],o=r,i="warn"===e?"warning":e;r[e]=function(){var e=Array.prototype.slice.call(arguments),r=function(e){var t,r,n,o=[];for(t=0,r=e.length;t<r;++t){switch(s(n=e[t])){case"object":(n=(n=b(n)).error||n.value).length>500&&(n=n.substr(0,497)+"...");break;case"null":n="null";break;case"undefined":n="undefined";break;case"symbol":n=n.toString()}o.push(n)}return o.join(" ")}(e);t.telemeter.captureLog(r,i,null,T()),n&&Function.prototype.apply.call(n,o,e)},t.replacements.log.push([e,n])}}},{key:"deinstrumentDom",value:function(){this.removeListeners("dom")}},{key:"instrumentDom",value:function(){var e=this;this.addListener("dom",this._window,["click","dblclick","contextmenu"],function(t){return e.handleEvent("click",t)}),this.addListener("dom",this._window,["dragstart","dragend","dragenter","dragleave","drop"],function(t){return e.handleEvent("dragdrop",t)}),this.addListener("dom",this._window,["blur","focus"],function(t){return e.handleEvent("focus",t)}),this.addListener("dom",this._window,["submit","invalid"],function(t){return e.handleEvent("form",t)}),this.addListener("dom",this._window,["input","change"],function(t){return e.handleEvent("input",t)}),this.addListener("dom",this._window,["resize"],function(t){return e.handleEvent("resize",t)}),this.addListener("dom",this._document,["DOMContentLoaded"],function(t){return e.handleEvent("contentLoaded",t)})}},{key:"handleEvent",value:function(e,t){try{return{click:this.handleClick,dragdrop:this.handleDrag,focus:this.handleFocus,form:this.handleForm,input:this.handleInput,resize:this.handleResize,contentLoaded:this.handleContentLoaded}[e].call(this,t)}catch(r){je.log("".concat(e," handler error"),t,r,r.stack)}}},{key:"handleContentLoaded",value:function(e){this.rollbar.triggerReplay({type:"navigation",path:new URL(this._location.href).pathname})}},{key:"handleClick",value:function(e){var t,r=null===(t=e.target)||void 0===t?void 0:t.tagName.toLowerCase();["input","select","textarea"].includes(r)||this.telemeter.captureClick({type:e.type,isSynthetic:!e.isTrusted,element:uv(e.target),timestamp:T()})}},{key:"handleFocus",value:function(e){var t,r=e.type,n=null!==(t=e.target)&&void 0!==t&&t.window?"window":uv(e.target);this.telemeter.captureFocus({type:r,isSynthetic:!e.isTrusted,element:n,timestamp:T()})}},{key:"handleForm",value:function(e){}},{key:"handleResize",value:function(e){var t=window.screen.width/window.innerWidth;this.telemeter.captureResize({type:e.type,isSynthetic:!e.isTrusted,width:window.innerWidth,height:window.innerHeight,textZoomRatio:t,timestamp:T()})}},{key:"handleDrag",value:function(e){var t,r,n,o,i,a,s=e.type;if("drop"===s){t=[],r=[];var u,l=vv([].concat(hv(e.dataTransfer.files),hv(e.dataTransfer.items)));try{for(l.s();!(u=l.n()).done;){var c=u.value;c.kind&&c.type&&(t.push(c.kind),r.push(c.type))}}catch(e){l.e(e)}finally{l.f()}}["drop","dragstart"].includes(s)&&(n=null===(i=e.dataTransfer)||void 0===i?void 0:i.dropEffect,o=null===(a=e.dataTransfer)||void 0===a?void 0:a.effectAllowed);this.telemeter.captureDragDrop({type:s,isSynthetic:!e.isTrusted,element:uv(e.target),dropEffect:n,effectAllowed:o,kinds:JSON.stringify(t),mediaTypes:JSON.stringify(r),timestamp:T()})}},{key:"scrubInputValue",value:function(e,t,r,n){var o="******";if("password"===n)return o;if(this.scrubTelemetryInputs)return o;var i=cv(t);if(this.telemetryScrubber){if(this.telemetryScrubber(i))return o}else if(this.defaultValueScrubber(i))return o;return function(e,t,r){try{var n,o=av(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;if("string"==typeof i){if(e.classList.contains(i))return!0}else{var a,s=av(e.classList);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(i.test(u))return!0}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){o.e(e)}finally{o.f()}var l,c=av(r);try{for(c.s();!(l=c.n()).done;){var f=l.value;if(e.matches(f))return!0}}catch(e){c.e(e)}finally{c.f()}}catch(e){}return!1}(t,this.scrubClasses,this.scrubSelectors)?o:this.maskInputOptions[r.toLowerCase()]||this.maskInputOptions[n]?this.maskInputFn?this.maskInputFn(e,t):o:e}},{key:"handleInput",value:function(e){var t,r,n,o,i=e.type,a=null===(t=e.target)||void 0===t?void 0:t.tagName.toLowerCase(),s=null===(r=e.target)||void 0===r?void 0:r.value,u=(null===(n=e.target)||void 0===n||null===(n=n.attributes)||void 0===n||null===(n=n.type)||void 0===n?void 0:n.value)||(null===(o=e.target)||void 0===o?void 0:o.type);switch(void 0!==s&&(s=this.scrubInputValue(s,e.target,a,u)),i){case"input":if(["radio","checkbox"].includes(u))return;["select","textarea"].includes(a)&&(u=a);break;case"change":if(!["radio","checkbox"].includes(u))return;var l;if("checkbox"===u)s=null===(l=e.target)||void 0===l?void 0:l.checked}this.telemeter.captureInput({type:u,isSynthetic:!e.isTrusted,element:uv(e.target),value:s,timestamp:T()})}},{key:"deinstrumentNavigation",value:function(){var e=this._window.chrome;!(e&&e.app&&e.app.runtime)&&this._window.history&&this._window.history.pushState&&bv(this.replacements,"navigation")}},{key:"instrumentNavigation",value:function(){var e=this._window.chrome;if(!(e&&e.app&&e.app.runtime)&&this._window.history&&this._window.history.pushState){var t=this;iv(this._window,"onpopstate",function(e){return function(){var r=t._location.href;t.handleUrlChange(t._lastHref,r),e&&e.apply(this,arguments)}},this.replacements,"navigation"),iv(this._window.history,"pushState",function(e){return function(){var r=arguments.length>2?arguments[2]:void 0;return r&&t.handleUrlChange(t._lastHref,String(r)),e.apply(this,arguments)}},this.replacements,"navigation")}}},{key:"handleUrlChange",value:function(e,t){var r=vn(this._location.href),n=vn(t),o=vn(e);this._lastHref=t,r.protocol===n.protocol&&r.host===n.host&&(t=n.path+(n.hash||"")),r.protocol===o.protocol&&r.host===o.host&&(e=o.path+(o.hash||"")),this.telemeter.captureNavigation(e,t,null,T()),this.rollbar.triggerReplay({type:"navigation",path:t})}},{key:"instrumentConnectivity",value:function(){var e=this;this.addListener("connectivity",this._window,["online","offline"],function(t){return e.handleConnectivity(t)})}},{key:"handleConnectivity",value:function(e){var t=e.type;this.telemeter.captureConnectivityChange({type:t,isSynthetic:!e.isTrusted,timestamp:T()})}},{key:"handleCspEvent",value:function(e){var t="Security Policy Violation: blockedURI: "+e.blockedURI+", violatedDirective: "+e.violatedDirective+", effectiveDirective: "+e.effectiveDirective+", ";e.sourceFile&&(t+="location: "+e.sourceFile+", line: "+e.lineNumber+", col: "+e.columnNumber+", "),t+="originalPolicy: "+e.originalPolicy,this.telemeter.captureLog(t,"error",null,T()),this.handleCspError(t)}},{key:"handleCspError",value:function(e){this.autoInstrument.errorOnContentSecurityPolicy&&this.rollbar.error(e)}},{key:"deinstrumentContentSecurityPolicy",value:function(){this.removeListeners("contentsecuritypolicy")}},{key:"instrumentContentSecurityPolicy",value:function(){if("addEventListener"in this._document){var e=this.handleCspEvent.bind(this);this.addListener("contentsecuritypolicy",this._document,["securitypolicyviolation"],e)}}},{key:"addListener",value:function(e,t,r,n){var o=this;if(t.addEventListener){var i,a=vv(r);try{var s=function(){var r=i.value,a={capture:!0,passive:!0};t.addEventListener(r,n,a,!0),o.eventRemovers[e].push(function(){t.removeEventListener(r,n,a)})};for(a.s();!(i=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}}}},{key:"removeListeners",value:function(e){for(;this.eventRemovers[e].length;)this.eventRemovers[e].shift()()}}])}();function Sv(e){return"undefined"!=typeof URL&&e instanceof URL}var Cv=kv;function Iv(e,t,r){if(c(t,"addEventListener")){for(var n=t.addEventListener;n._rollbarOldAdd&&n.belongsToShim;)n=n._rollbarOldAdd;var o=function(t,r,o){n.call(this,t,e.wrap(r),o)};o._rollbarOldAdd=n,o.belongsToShim=r,t.addEventListener=o;for(var i=t.removeEventListener;i._rollbarOldRemove&&i.belongsToShim;)i=i._rollbarOldRemove;var a=function(e,t,r){i.call(this,e,t&&t._rollbar_wrapped||t,r)};a._rollbarOldRemove=i,a.belongsToShim=r,t.removeEventListener=a}}var Ov=function(e,t,r){if(e){var n,o,i="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(n=0;n<i.length;++n)e[o=i[n]]&&e[o].prototype&&Iv(t,e[o].prototype,r)}};xn.setComponents({telemeter:ee,instrumenter:Cv,wrapGlobals:Ov,scrub:z,truncation:kt,tracing:ut,replay:tv});var xv=xn;"undefined"==typeof window||window._rollbarStartTime||(window._rollbarStartTime=(new Date).getTime());var _v=xv;return t=t.default}()});
|
|
3
3
|
//# sourceMappingURL=rollbar.replay.noconflict.umd.min.js.map
|