@paydock/client-sdk 1.127.0 → 1.128.2
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/README.md +1136 -3960
- package/bundles/index.cjs +292 -85
- package/bundles/index.cjs.d.ts +48 -3
- package/bundles/index.mjs +292 -85
- package/bundles/index.mjs.d.ts +48 -3
- package/bundles/types/checkout/checkout.d.ts +4 -4
- package/bundles/types/checkout/checkout.d.ts.map +1 -1
- package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -1
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +2 -0
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/components/trigger.d.ts +2 -0
- package/bundles/types/components/trigger.d.ts.map +1 -1
- package/bundles/types/index-cba.d.ts +11 -11
- package/bundles/types/index-cba.d.ts.map +1 -1
- package/bundles/types/index.d.ts +11 -11
- package/bundles/types/index.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +24 -2
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/index.d.ts +7 -1
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +10 -2
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +15 -4
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts +2 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/services/performance.service.d.ts +32 -0
- package/bundles/types/secure-remote-commerce/services/performance.service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index.d.ts +6 -6
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/index.d.ts +3 -3
- package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +5 -5
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +1 -1
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +4 -4
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -1
- package/bundles/types/widget/multi-widget.d.ts +8 -0
- package/bundles/types/widget/multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +292 -85
- package/bundles/widget.umd.js.d.ts +48 -3
- package/bundles/widget.umd.js.min.d.ts +48 -3
- package/bundles/widget.umd.min.js +1 -1
- package/docs/api-checkout-button.md +0 -370
- package/docs/api-widget.md +1 -2110
- package/docs/checkout-examples.md +2 -127
- package/docs/click-to-pay-examples.md +109 -0
- package/docs/click-to-pay.md +31 -1
- package/docs/license.md +1 -1
- package/docs/wallet-buttons-examples.md +3 -134
- package/docs/wallet-buttons.md +10 -10
- package/docs/wallet-cba-buttons-examples.md +1 -1
- package/package.json +1 -1
- package/slate.md +114 -524
- package/docs/api-vault-display.md +0 -94
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).paydock={})}(this,(function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function n(e,t,n){return t=u(t),function(e,t){if(t&&("object"==typeof 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,h()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,C(i.key),i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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 o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function a(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c.apply(null,arguments)}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},l.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(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&&f(e,t)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(){p=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof C?t:C,s=Object.create(o.prototype),a=new I(i||[]);return r(s,"_invoke",{value:M(e,n,a)}),s}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",m="executing",v="completed",g={};function C(){}function y(){}function b(){}var E={};l(E,s,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&i.call(_,s)&&(E=_);var k=b.prototype=C.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(r,o,s,a){var c=d(e[r],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(u).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function M(t,n,i){var r=h;return function(o,s){if(r===m)throw Error("Generator is already running");if(r===v){if("throw"===o)throw s;return{value:e,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var c=A(a,i);if(c){if(c===g)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=m;var l=d(t,n,i);if("normal"===l.type){if(r=i.done?v:f,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=v,i.method="throw",i.arg=l.arg)}}}function A(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,r(k,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(T.prototype),l(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new T(u(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},S(k),l(k,c,"Generator"),l(k,s,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=R,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:R(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}(e,t)||b(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 v(e,t,n,i){var r=l(u(e.prototype),t,n);return"function"==typeof r?function(e){return r.apply(n,e)}:r}function g(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 C(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function y(e){return y="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},y(e)}function b(e,n){if(e){if("string"==typeof e)return t(e,n);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}function E(e){var t="function"==typeof Map?new Map:void 0;return E=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,n)}function n(){return function(e,t,n){if(h())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&f(r,n.prototype),r}(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},E(e)}var w=function(){return o((function e(){i(this,e)}),null,[{key:"isFacebook",value:function(){return-1!==navigator.userAgent.indexOf("FBSN/iOS")&&-1!==navigator.userAgent.indexOf("AppleWebKit")&&-1!==navigator.userAgent.indexOf("(KHTML, like Gecko)")}},{key:"isInstagram",value:function(){return-1!==navigator.userAgent.indexOf("iOS")&&-1!==navigator.userAgent.indexOf("Instagram")&&-1!==navigator.userAgent.indexOf("(KHTML, like Gecko)")}},{key:"isSupportPopUp",value:function(){return!this.isFacebook()&&!this.isInstagram()}},{key:"getLanguage",value:function(){return window.navigator.language||""}},{key:"getTimezoneOffset",value:function(){return(new Date).getTimezoneOffset()}},{key:"getBrowserName",value:function(){var e=navigator.userAgent;return e.indexOf("Firefox")>-1?"Mozilla Firefox":e.indexOf("Opera")>-1?"Opera":e.indexOf("Trident")>-1?"Microsoft Internet Explorer":e.indexOf("Edge")>-1?"Microsoft Edge":e.indexOf("Chrome")>-1?"Google Chrome or Chromium":e.indexOf("Safari")>-1?"Apple Safari":"unknown"}},{key:"isJavaEnabled",value:function(){return navigator.javaEnabled()}},{key:"getColorDepth",value:function(){return screen.colorDepth}},{key:"getScreenHeight",value:function(){return screen.height}},{key:"getScreenWidth",value:function(){return screen.width}},{key:"getBrowserInfo",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?{name:"IE",version:(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""}:"Chrome"===n[1]&&null!=(e=t.match(/\bOPR|Edge\/(\d+)/))?{name:"Opera",version:e[1]}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),{name:n[0],version:n[1]})}}])}(),_="/v1/charges/3ds",k=function(){return o((function e(t){i(this,e),this.api=t}),[{key:"preAuth",value:function(e,t){return"function"==typeof t?this.api.getClient("POST",_).send(c(c({},e),{_3ds:c(c({},e._3ds),{browser_details:{name:w.getBrowserName(),java_enabled:w.isJavaEnabled().toString(),language:w.getLanguage(),screen_height:w.getScreenHeight().toString(),screen_width:w.getScreenWidth().toString(),time_zone:w.getTimezoneOffset().toString(),color_depth:w.getColorDepth().toString()}})}),(function(e){t(e)})):this.api.getClientPromise("POST",_).send(c(c({},e),{_3ds:c(c({},e._3ds),{browser_details:{name:w.getBrowserName(),java_enabled:w.isJavaEnabled().toString(),language:w.getLanguage(),screen_height:w.getScreenHeight().toString(),screen_width:w.getScreenWidth().toString(),time_zone:w.getTimezoneOffset().toString(),color_depth:w.getColorDepth().toString()}})}))}}])}(),S="sandbox",T="sandbox-kovena",M="sandbox-demo-kovena",A="production",N="staging",O="staging_1",I="staging_2",R="staging_3",x="staging_4",P="staging_5",L="staging_6",D="staging_7",U="staging_8",F="staging_9",H="staging_10",j="staging_11",B="staging_12",z="staging_13",W="staging_14",V="staging_15",G=[{env:S,url:"https://widget-sandbox."},{env:T,url:"https://widget-sandbox."},{env:"sandbox-demo",url:"https://widget-sandbox-demo."},{env:M,url:"https://widget-sandbox-demo."},{env:A,url:"https://widget."},{env:N,url:"https://widsta."},{env:O,url:"https://widsta-1."},{env:I,url:"https://widsta-2."},{env:R,url:"https://widsta-3."},{env:x,url:"https://widsta-4."},{env:P,url:"https://widsta-5."},{env:L,url:"https://widsta-6."},{env:D,url:"https://widsta-7."},{env:U,url:"https://widsta-8."},{env:F,url:"https://widsta-9."},{env:H,url:"https://widsta-10."},{env:j,url:"https://widsta-11."},{env:B,url:"https://widsta-12."},{env:z,url:"https://widsta-13."},{env:W,url:"https://widsta-14."},{env:V,url:"https://widsta-15."}],q=[{env:S,url:"https://api-sandbox."},{env:A,url:"https://api."},{env:N,url:"https://apista."},{env:O,url:"https://apista-1."},{env:I,url:"https://apista-2."},{env:R,url:"https://apista-3."},{env:x,url:"https://apista-4."},{env:P,url:"https://apista-5."},{env:L,url:"https://apista-6."},{env:D,url:"https://apista-7."},{env:U,url:"https://apista-8."},{env:F,url:"https://apista-9."},{env:H,url:"https://apista-10."},{env:j,url:"https://apista-11."},{env:B,url:"https://apista-12."},{env:z,url:"https://apista-13."},{env:W,url:"https://apista-14."},{env:V,url:"https://apista-15."}],Y=[T,M],K="^([a-zA-Z0-9](?:(?:[a-zA-Z0-9-.]*(?!-)\\.(?![-.]))*[a-zA-Z0-9]+)?)$",X=S,$="paydock.com",J="kovena.com",Z=function(){return o((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;i(this,e),this.environmentConfigurations=t,this.setEnv(n)}),[{key:"setEnv",value:function(e,t){this.validateAlias(t),this.validateEnvironmentId(e),this.environmentId=e,t?this.alias=t:Y.includes(this.environmentId)?this.alias=J:this.alias=$}},{key:"getEnv",value:function(){return this.environmentId}},{key:"getConf",value:function(){for(var e in this.environmentConfigurations)if(Object.hasOwn(this.environmentConfigurations,e)&&this.environmentConfigurations[e].env===this.getEnv())return{url:-1!==this.environmentConfigurations[e].url.indexOf("localhost")?this.environmentConfigurations[e].url:this.environmentConfigurations[e].url+this.alias,env:this.environmentConfigurations[e].env};throw new Error("Env could not obtain configuration. Unknown environmentId.")}},{key:"validateAlias",value:function(e){if(void 0!==e){if("string"!=typeof e)throw new TypeError("Env expects parameter 'alias' to be of type 'string' or 'undefined'.");if(!e.match(K))throw new Error("Env received malformed alias: ".concat(e,". Ensure it satisfies the regex: '").concat(K,"'."))}}},{key:"validateEnvironmentId",value:function(e){for(var t in this.environmentConfigurations)if(Object.hasOwn(this.environmentConfigurations,t)&&this.environmentConfigurations[t].env===e)return;throw new TypeError("Env received unknown environmentId: ".concat(e))}}])}(),Q=function(){function e(){i(this,e)}return o(e,null,[{key:"version",get:function(){return e._version.trim()||null}}])}();Q.type="client",Q.headerKeys=Object.freeze({version:"x-sdk-version",type:"x-sdk-type"}),Q._version="v1.127.0";var ee=function(e,t){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ee(e,t)};function te(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ee(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ne(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function ie(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))}function re(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function se(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function ae(e){return"function"==typeof e}function ce(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var le=ce((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function ue(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var de=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,i,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=re(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(ae(c))try{c()}catch(e){r=e instanceof le?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=re(l),d=u.next();!d.done;d=u.next()){var h=d.value;try{fe(h)}catch(e){r=null!=r?r:[],e instanceof le?r=se(se([],oe(r)),oe(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}if(r)throw new le(r)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)fe(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ue(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&ue(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),he=de.EMPTY;function pe(e){return e instanceof de||e&&"closed"in e&&ae(e.remove)&&ae(e.add)&&ae(e.unsubscribe)}function fe(e){ae(e)?e():e.unsubscribe()}var me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ve={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,se([e,t],oe(n)))},clearTimeout:function(e){var t=ve.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ge(){}function Ce(e){e()}var ye=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,pe(t)&&t.add(n)):n.destination=Se,n}return te(t,e),t.create=function(e,t,n){return new _e(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(de),be=Function.prototype.bind;function Ee(e,t){return be.call(e,t)}var we=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ke(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ke(e)}else ke(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ke(e)}},e}(),_e=function(e){function t(t,n,i){var r,o,s=e.call(this)||this;ae(t)||!t?r={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=i?i:void 0}:s&&me.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},r={next:t.next&&Ee(t.next,o),error:t.error&&Ee(t.error,o),complete:t.complete&&Ee(t.complete,o)}):r=t;return s.destination=new we(r),s}return te(t,e),t}(ye);function ke(e){var t;t=e,ve.setTimeout((function(){throw t}))}var Se={closed:!0,next:ge,error:function(e){throw e},complete:ge},Te="function"==typeof Symbol&&Symbol.observable||"@@observable";function Me(e){return e}var Ae=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i,r=this,o=(i=e)&&i instanceof ye||function(e){return e&&ae(e.next)&&ae(e.error)&&ae(e.complete)}(i)&&pe(i)?e:new _e(e,t,n);return Ce((function(){var e=r,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?r._subscribe(o):r._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Ne(t))((function(t,i){var r=new _e({next:function(t){try{e(t)}catch(e){i(e),r.unsubscribe()}},error:i,complete:t});n.subscribe(r)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Te]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Me:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ne(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}();function Ne(e){var t;return null!==(t=null!=e?e:me.Promise)&&void 0!==t?t:Promise}var Oe=ce((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ie=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return te(t,e),t.prototype.lift=function(e){var t=new Re(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Oe},t.prototype.next=function(e){var t=this;Ce((function(){var n,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var r=re(t.currentObservers),o=r.next();!o.done;o=r.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Ce((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ce((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,i=n.hasError,r=n.isStopped,o=n.observers;return i||r?he:(this.currentObservers=null,o.push(e),new de((function(){t.currentObservers=null,ue(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,i=t.thrownError,r=t.isStopped;n?e.error(i):r&&e.complete()},t.prototype.asObservable=function(){var e=new Ae;return e.source=this,e},t.create=function(e,t){return new Re(e,t)},t}(Ae),Re=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return te(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:he},t}(Ie),xe=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return te(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,i=e._value;if(t)throw n;return this._throwIfClosed(),i},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Ie),Pe="x-access-token",Le="x-user-public-key",De=function(){function e(){i(this,e)}return o(e,null,[{key:"validateJWT",value:function(e){if(!e)return null;var t=m(e.split("."),3),n=t[0],i=t[1],r=t[2];if(!n||!i||!r)return null;if(2+n.length+i.length+r.length!==e.length)return null;try{return{head:JSON.parse(atob(n)),body:JSON.parse(atob(i)),signature:r}}catch(e){return null}}},{key:"extractData",value:function(e){try{return JSON.parse(atob(e.meta))}catch(e){return null}}},{key:"extractMeta",value:function(e){try{return JSON.parse(atob(e.meta)).meta}catch(e){return null}}},{key:"extractEnv",value:function(e){try{return JSON.parse(atob(e.meta)).env}catch(e){return null}}},{key:"validateJWTWhitelistedDomains",value:function(e){var t;try{if(!e.meta)return!0;var n=this.extractData(e);return!n||(!(null===(t=n.whitelist_domains)||void 0===t?void 0:t.length)||n.whitelist_domains.includes(window.location.hostname))}catch(e){return!0}}},{key:"getAccessHeaderNameByToken",value:function(t){return e.validateJWT(t)?Pe:Le}},{key:"isJwt",value:function(e){return/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/.test(e)}}])}(),Ue=function(){function e(t){i(this,e),this.request=t}return o(e,[{key:"inner",value:function(){return this.request}},{key:"setHeader",value:function(e,t){return this.request.setRequestHeader(e,t),this}},{key:"setAccessToken",value:function(e){return this.setHeader("x-access-token",e)}},{key:"setPublicKey",value:function(e){return this.setHeader("x-user-public-key",e)}},{key:"setContentTypeJson",value:function(){return this.setHeader("Content-Type","application/json; charset=UTF-8")}},{key:"setSdkVersion",value:function(){return Q.version&&(this.setHeader(Q.headerKeys.version,Q.version),this.setHeader(Q.headerKeys.type,Q.type)),this}}],[{key:"create",value:function(t,n){var i=new XMLHttpRequest;return i.open(t,n,!0),new e(i)}}])}();function Fe(){return Math.floor(performance.now())}const He="undefined"!=typeof window&&!!window.document,je="undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),Be=He?window:"undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),ze="complete"===Be?.document?.readyState,We=Boolean("hidden"===Be?.document?.visibilityState),Ve=""+Be?.location,Ge=/iPad|iPhone|iPod/.test(Be.navigator?.userAgent),qe=Ge&&"undefined"==typeof SharedWorker;(()=>{const e=Be.navigator?.userAgent?.match(/Firefox[/\s](\d+\.\d+)/);Array.isArray(e)&&e.length>=2&&e[1]})();const Ye=Boolean(He&&window.document.documentMode),Ke=!!Be.navigator?.sendBeacon,Xe=Date.now()-Fe(),$e="bam.nr-data.net",Je="bam.nr-data.net";function Ze(){return Be.NREUM||(Be.NREUM={}),void 0===Be.newrelic&&(Be.newrelic=Be.NREUM),Be.NREUM}function Qe(){let e=Ze();return e.o||(e.o={ST:Be.setTimeout,SI:Be.setImmediate,CT:Be.clearTimeout,XHR:Be.XMLHttpRequest,REQ:Be.Request,EV:Be.Event,PR:Be.Promise,MO:Be.MutationObserver,FETCH:Be.fetch}),e}function et(e){let t=Ze();return t.initializedAgents?.[e]}function tt(){return function(){let e=Ze();const t=e.info||{};e.info={beacon:$e,errorBeacon:Je,...t}}(),function(){let e=Ze();const t=e.init||{};e.init={...t}}(),Qe(),function(){let e=Ze();const t=e.loader_config||{};e.loader_config={...t}}(),Ze()}var nt=Object.prototype.hasOwnProperty;function it(e,t,n){if(nt.call(e,t))return e[t];var i=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}function rt(e,t){"function"==typeof console.warn&&(console.warn("New Relic: ".concat(e)),t&&console.warn(t))}function ot(e,t){try{if(!e||"object"!=typeof e)return rt("Setting a Configurable requires an object as input");if(!t||"object"!=typeof t)return rt("Setting a Configurable requires a model to set its initial properties");const n=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),i=0===Object.keys(n).length?e:n;for(let r in i)if(void 0!==e[r])try{if(null===e[r]){n[r]=null;continue}Array.isArray(e[r])&&Array.isArray(t[r])?n[r]=Array.from(new Set([...e[r],...t[r]])):"object"==typeof e[r]&&"object"==typeof t[r]?n[r]=ot(e[r],t[r]):n[r]=e[r]}catch(e){rt("An error occurred while setting a property of a Configurable",e)}return n}catch(e){rt("An error occured while setting a Configurable",e)}}const st={beacon:$e,errorBeacon:Je,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},at={};function ct(e){if(!e)throw new Error("All info objects require an agent identifier!");if(!at[e])throw new Error("Info for ".concat(e," was never set"));return at[e]}function lt(e,t){if(!e)throw new Error("All info objects require an agent identifier!");at[e]=ot(t,st);const n=et(e);n&&(n.info=at[e])}const ut=e=>{if(!e||"string"!=typeof e)return!1;try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0},dt=144e5,ht=18e5,pt="session-started",ft="session-pause",mt="session-reset",vt="session-resume",gt="session-update",Ct="same-tab",yt="cross-tab",bt=0,Et=1,wt=2,_t="[data-nr-mask]",kt={},St="All configuration objects require an agent identifier!";function Tt(e){if(!e)throw new Error(St);if(!kt[e])throw new Error("Configuration for ".concat(e," was never set"));return kt[e]}function Mt(e,t){if(!e)throw new Error(St);kt[e]=ot(t,(()=>{const e={mask_selector:"*",block_selector:"[data-nr-block]",mask_input_options:{color:!1,date:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:!1,search:!1,tel:!1,text:!1,time:!1,url:!1,week:!1,textarea:!1,select:!1,password:!0}};return{feature_flags:[],proxy:{assets:void 0,beacon:void 0},privacy:{cookies_enabled:!0},ajax:{deny_list:void 0,block_internal:!0,enabled:!0,harvestTimeSeconds:10,autoStart:!0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},session:{expiresMs:dt,inactiveMs:ht},ssl:void 0,obfuscate:void 0,jserrors:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},metrics:{enabled:!0,autoStart:!0},page_action:{enabled:!0,harvestTimeSeconds:30,autoStart:!0},page_view_event:{enabled:!0,autoStart:!0},page_view_timing:{enabled:!0,harvestTimeSeconds:30,long_task:!1,autoStart:!0},session_trace:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},harvest:{tooManyRequestsDelay:60},session_replay:{autoStart:!0,enabled:!1,harvestTimeSeconds:60,preload:!1,sampling_rate:10,error_sampling_rate:100,collect_fonts:!1,inline_images:!1,inline_stylesheet:!0,mask_all_inputs:!0,get mask_text_selector(){return e.mask_selector},set mask_text_selector(t){ut(t)?e.mask_selector="".concat(t,",").concat(_t):""===t||null===t?e.mask_selector=_t:rt("An invalid session_replay.mask_selector was provided. '*' will be used.",t)},get block_class(){return"nr-block"},get ignore_class(){return"nr-ignore"},get mask_text_class(){return"nr-mask"},get block_selector(){return e.block_selector},set block_selector(t){ut(t)?e.block_selector+=",".concat(t):""!==t&&rt("An invalid session_replay.block_selector was provided and will not be used",t)},get mask_input_options(){return e.mask_input_options},set mask_input_options(t){t&&"object"==typeof t?e.mask_input_options={...t,password:!0}:rt("An invalid session_replay.mask_input_option was provided and will not be used",t)}},spa:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},soft_navigations:{enabled:!0,harvestTimeSeconds:10,autoStart:!0}}})());const n=et(e);n&&(n.init=kt[e])}function At(e,t){if(!e)throw new Error(St);var n=Tt(e);if(n){for(var i=t.split("."),r=0;r<i.length-1;r++)if("object"!=typeof(n=n[i[r]]))return;n=n[i[i.length-1]]}return n}const Nt={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},Ot={};function It(e){if(!e)throw new Error("All loader-config objects require an agent identifier!");if(!Ot[e])throw new Error("LoaderConfig for ".concat(e," was never set"));return Ot[e]}const Rt=Qe().o,xt="1.260.1",Pt={buildEnv:"NPM",distMethod:"NPM",version:xt,originTime:Xe},Lt={customTransaction:void 0,disabled:!1,isolatedBacklog:!1,loaderType:void 0,maxBytes:3e4,onerror:void 0,origin:""+Be.location,ptid:void 0,releaseIds:{},appMetadata:{},session:void 0,denyList:void 0,harvestCount:0,timeKeeper:void 0},Dt={};function Ut(e){if(!e)throw new Error("All runtime objects require an agent identifier!");if(!Dt[e])throw new Error("Runtime for ".concat(e," was never set"));return Dt[e]}function Ft(e){return function(e){try{const t=ct(e);return!!t.licenseKey&&!!t.errorBeacon&&!!t.applicationID}catch(e){return!1}}(e)}class Ht{constructor(e){this.contextId=e}}function jt(e,t){return e?15&e[t]:16*Math.random()|0}function Bt(){const e=Be?.crypto||Be?.msCrypto;let t,n=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(30))),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("").map((e=>"x"===e?jt(t,n++).toString(16):"y"===e?(3&jt()|8).toString(16):e)).join("")}function zt(e){const t=Be?.crypto||Be?.msCrypto;let n,i=0;t&&t.getRandomValues&&(n=t.getRandomValues(new Uint8Array(e)));const r=[];for(var o=0;o<e;o++)r.push(jt(n,i++).toString(16));return r.join("")}const Wt=Bt(),Vt="nr@context:".concat(Wt),Gt=function e(t,n){var i={},r={},o={},s=!1;try{s=16===n.length&&Ut(n).isolatedBacklog}catch(e){}var a={on:l,addEventListener:l,removeEventListener:function(e,t){var n=i[e];if(!n)return;for(var r=0;r<n.length;r++)n[r]===t&&n.splice(r,1)},emit:function(e,n,i,o,s){!1!==s&&(s=!0);if(Gt.aborted&&!o)return;t&&s&&t.emit(e,n,i);for(var l=c(i),d=u(e),p=d.length,f=0;f<p;f++)d[f].apply(l,n);var m=h()[r[e]];m&&m.push([a,e,n,l]);return l},get:d,listeners:u,context:c,buffer:function(e,t){const n=h();if(t=t||"feature",a.aborted)return;Object.entries(e||{}).forEach((e=>{let[i,o]=e;r[o]=t,t in n||(n[t]=[])}))},abort:function(){a._aborted=!0,Object.keys(a.backlog).forEach((e=>{delete a.backlog[e]}))},isBuffering:function(e){return!!h()[r[e]]},debugId:n,backlog:s?{}:t&&"object"==typeof t.backlog?t.backlog:{},isolatedBacklog:s};return Object.defineProperty(a,"aborted",{get:()=>{let e=a._aborted||!1;return e||(t&&(e=t.aborted),e)}}),a;function c(e){return e&&e instanceof Ht?e:e?it(e,Vt,(()=>new Ht(Vt))):new Ht(Vt)}function l(e,t){i[e]=u(e).concat(t)}function u(e){return i[e]||[]}function d(t){return o[t]=o[t]||e(a,t)}function h(){return a.backlog}}(void 0,"globalEE"),qt=Ze();qt.ee||(qt.ee=Gt);var Yt=Gt.get("handle");function Kt(e,t,n,i,r){r?(r.buffer([e],i),r.emit(e,t,n)):(Yt.buffer([e],i),Yt.emit(e,t,n))}const Xt=(e,t)=>Object.entries(e||{}).map((e=>{let[n,i]=e;return t(n,i)}));Jt.on=Zt;var $t=Jt.handlers={};function Jt(e,t,n,i){Zt(i||Yt,$t,e,t,n)}function Zt(e,t,n,i,r){r||(r="feature"),e||(e=Yt);var o=t[r]=t[r]||{};(o[n]=o[n]||[]).push([e,i])}const Qt={ajax:"ajax",jserrors:"jserrors",metrics:"metrics",pageAction:"page_action",pageViewEvent:"page_view_event",pageViewTiming:"page_view_timing",sessionReplay:"session_replay",sessionTrace:"session_trace",softNav:"soft_navigations",spa:"spa"},en={[Qt.pageViewEvent]:1,[Qt.pageViewTiming]:2,[Qt.metrics]:3,[Qt.jserrors]:4,[Qt.ajax]:5,[Qt.sessionTrace]:6,[Qt.pageAction]:7,[Qt.spa]:8,[Qt.softNav]:9,[Qt.sessionReplay]:10},tn={};function nn(e,t){const n={staged:!1,priority:en[t]||0};on(e),tn[e].get(t)||tn[e].set(t,n)}function rn(e,t){on(e),tn[e].get(t)&&tn[e].delete(t),tn[e].size&&an(e)}function on(e){if(!e)throw new Error("agentIdentifier required");tn[e]||(tn[e]=new Map)}function sn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"feature",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(on(e),!e||!tn[e].get(t)||n)return cn(e,t);tn[e].get(t).staged=!0,an(e)}function an(e){const t=Array.from(tn[e]);t.every((e=>{let[t,n]=e;return n.staged}))&&(t.sort(((e,t)=>e[1].priority-t[1].priority)),t.forEach((t=>{let[n]=t;tn[e].delete(n),cn(e,n)})))}function cn(e,t){const n=e?Gt.get(e):Gt,i=Jt.handlers;if(n.backlog&&i){var r=n.backlog[t],o=i[t];if(o){for(var s=0;r&&s<r.length;++s)ln(r[s],o);Xt(o,(function(e,t){Xt(t,(function(t,n){n[0].on(e,n[1])}))}))}n.isolatedBacklog||delete i[t],n.backlog[t]=null,n.emit("drain-"+t,[])}}function ln(e,t){var n=e[1];Xt(t[n],(function(t,n){var i=e[0];if(n[0]===i){var r=n[1],o=e[3],s=e[2];r.apply(o,s)}}))}class un{constructor(e,t,n){this.agentIdentifier=e,this.aggregator=t,this.ee=Gt.get(e),this.featureName=n,this.blocked=!1}}let dn=!1,hn=!1;try{const e={get passive(){return dn=!0,!1},get signal(){return hn=!0,!1}};Be.addEventListener("test",null,e),Be.removeEventListener("test",null,e)}catch(e){}function pn(e,t){return dn||hn?{capture:!!e,passive:dn,signal:t}:!!e}function fn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;window.addEventListener(e,t,pn(n,i))}function mn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;document.addEventListener(e,t,pn(n,i))}function vn(){return"undefined"==typeof document||"complete"===document.readyState}function gn(e,t){if(vn())return e();fn("load",e,t)}const Cn=e=>He&&!0===At(e,"privacy.cookies_enabled");function yn(e,t){return!!function(e){return!!Rt.MO&&Cn(e)&&!0===At(e,"session_trace.enabled")}(e)&&(!!t?.isNew||!!t?.state.sessionReplayMode)}function bn(e,t){const n=t.correctAbsoluteTimestamp(e);return{originalTimestamp:e,correctedTimestamp:n,timestampDiff:e-n,originTime:Xe,correctedOriginTime:t.correctedOriginTime,originTimeDiff:Math.floor(Xe-t.correctedOriginTime)}}function En(e){var t=this;let n=!1;return function(){if(!n){n=!0;for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];e.apply(t,r)}}}class wn extends un{constructor(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];super(e,t,n),this.auto=i,this.abortHandler=void 0,this.featAggregate=void 0,this.onAggregateImported=void 0,!1===At(this.agentIdentifier,"".concat(this.featureName,".autoStart"))&&(this.auto=!1),this.auto?nn(e,n):this.ee.on("manual-start-all",En((()=>{nn(this.agentIdentifier,this.featureName),this.auto=!0,this.importAggregator()})))}importAggregator(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.featAggregate||!this.auto)return;this.onAggregateImported=new Promise((t=>{e=t}));const n=async()=>{let n;try{if(Cn(this.agentIdentifier)){const{setupAgentSession:e}=await Promise.resolve().then((function(){return Zc}));n=e(this.agentIdentifier)}}catch(e){rt("A problem occurred when starting up session manager. This page will not start or extend any session.",e),this.featureName===Qt.sessionReplay&&this.abortHandler?.()}try{if(!this.#e(this.featureName,n))return sn(this.agentIdentifier,this.featureName),void e(!1);const{lazyFeatureLoader:i}=await Promise.resolve().then((function(){return Qc})),{Aggregate:r}=await i(this.featureName,"aggregate");this.featAggregate=new r(this.agentIdentifier,this.aggregator,t),e(!0)}catch(t){rt("Downloading and initializing ".concat(this.featureName," failed..."),t),this.abortHandler?.(),sn(this.agentIdentifier,this.featureName,!0),e(!1),this.ee&&this.ee.abort()}};He?gn((()=>n()),!0):n()}#e(e,t){return e!==Qt.sessionReplay||yn(this.agentIdentifier,t)}}const _n=Qt.jserrors,kn=Qt.sessionReplay,Sn="recordReplay",Tn="pauseReplay",Mn="replayRunning",An="errorDuringReplay",Nn=2,On=4,In={[wt]:15e3,[Et]:3e5,[bt]:0},Rn={message:"Session was reset",sm:"Reset"},xn={message:"Recorder failed to import",sm:"Import"},Pn={message:"429: Too Many Requests",sm:"Too-Many"},Ln={message:"Payload was too large",sm:"Too-Big"},Dn={message:"Session Entity was set to OFF on another tab",sm:"Cross-Tab"},Un={message:"Session Replay is not allowed and will not be started",sm:"Entitlement"},Fn="api";function Hn(e){try{return JSON.stringify(e,(()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}})())}catch(e){try{Gt.emit("internal-error",[e])}catch(e){}}}class jn{constructor(e,t,n,i,r){this.name="UncaughtError",this.message="string"==typeof e?e:Hn(e),this.sourceURL=t,this.line=n,this.column=i,this.__newrelic=r}}function Bn(e){return Vn(e)?e:new jn(void 0!==e?.message?e.message:e,e?.filename||e?.sourceURL,e?.lineno||e?.line,e?.colno||e?.col,e?.__newrelic)}function zn(e){let t="Unhandled Promise Rejection";if(Vn(e?.reason))try{return e.reason.message=t+": "+e.reason.message,Bn(e.reason)}catch(t){return Bn(e.reason)}if(void 0===e.reason)return Bn(t);const n=Bn(e.reason);return n.message=t+": "+n?.message,n}function Wn(e){if(e.error instanceof SyntaxError&&!/:\d+$/.test(e.error.stack?.trim())){const t=new jn(e.message,e.filename,e.lineno,e.colno,e.error.__newrelic);return t.name=SyntaxError.name,t}return Vn(e.error)?e.error:Bn(e)}function Vn(e){return e instanceof Error&&!!e.stack}let Gn=class extends wn{static featureName=_n;#t=!1;constructor(e,t){super(e,t,_n,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);try{this.removeOnAbort=new AbortController}catch(e){}this.ee.on("internal-error",(e=>{this.abortHandler&&Kt("ierr",[Bn(e),Fe(),!0,{},this.#t],void 0,this.featureName,this.ee)})),this.ee.on(Mn,(e=>{this.#t=e})),Be.addEventListener("unhandledrejection",(e=>{this.abortHandler&&Kt("err",[zn(e),Fe(),!1,{unhandledPromiseRejection:1},this.#t],void 0,this.featureName,this.ee)}),pn(!1,this.removeOnAbort?.signal)),Be.addEventListener("error",(e=>{this.abortHandler&&Kt("err",[Wn(e),Fe(),!1,{},this.#t],void 0,this.featureName,this.ee)}),pn(!1,this.removeOnAbort?.signal)),this.abortHandler=this.#n,this.importAggregator()}#n(){this.removeOnAbort?.abort(),this.abortHandler=void 0}};const qn=Qt.pageViewEvent;let Yn=class extends wn{static featureName=qn;constructor(e,t){super(e,t,qn,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),this.importAggregator()}};const Kn=Object.values(Qt);function Xn(e){const t={};return Kn.forEach((n=>{t[n]=function(e,t){return!0===At(t,"".concat(e,".enabled"))}(n,e)})),t}const $n=Qt.metrics,Jn="storeSupportabilityMetrics",Zn="storeEventMetrics",Qn=["setErrorHandler","finished","addToTrace","addRelease","addPageAction","setCurrentRouteName","setPageViewName","setCustomAttribute","interaction","noticeError","setUserId","setApplicationVersion","start",Sn,Tn],ei=["setErrorHandler","finished","addToTrace","addRelease"];function ti(){const e=tt();Qn.forEach((t=>{e[t]=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];let o=[];return Object.values(e.initializedAgents).forEach((e=>{e.exposed&&e.api[t]&&o.push(e.api[t](...i))})),o.length>1?o:o[0]}(t,...i)}}))}const ni={};const ii=new Set,ri={};function oi(e,t){const n=Gt.get(t);ri[t]??={},e&&"object"==typeof e&&(ii.has(t)||(n.emit("rumresp",[e]),ri[t]=e,ii.add(t),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{Be.dispatchEvent(new CustomEvent("newrelic",{detail:e}))}catch(e){}}({loaded:!0})))}let si=!1;function ai(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,{init:r,info:o,loader_config:s,runtime:a={loaderType:n},exposed:c=!0}=t;const l=tt();o||(r=l.init,o=l.info,s=l.loader_config),Mt(e.agentIdentifier,r||{}),function(e,t){if(!e)throw new Error("All loader-config objects require an agent identifier!");Ot[e]=ot(t,Nt);const n=et(e);n&&(n.loader_config=Ot[e])}(e.agentIdentifier,s||{}),o.jsAttributes??={},je&&(o.jsAttributes.isWorker=!0),lt(e.agentIdentifier,o);const u=Tt(e.agentIdentifier),d=[o.beacon,o.errorBeacon];var h,p;si||(u.proxy.assets&&(u.proxy.assets,d.push(u.proxy.assets)),u.proxy.beacon&&d.push(u.proxy.beacon),ti(),h="activatedFeatures",p=ri,Ze()[h]=p,e.runSoftNavOverSpa&&=!0===u.soft_navigations.enabled&&u.feature_flags.includes("soft_nav")),a.denyList=[...u.ajax.deny_list||[],...u.ajax.block_internal?d:[]],a.ptid=e.agentIdentifier,function(e,t){if(!e)throw new Error("All runtime objects require an agent identifier!");Dt[e]={...ot(t,Lt),...Pt};const n=et(e);n&&(n.runtime=Dt[e])}(e.agentIdentifier,a),void 0===e.api&&(e.api=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t||nn(e,"api");const i={};var r=Gt.get(e),o=r.get("tracer");ni[e]=bt,r.on(Mn,(t=>{ni[e]=t}));var s="api-",a=s+"ixn-";function c(t,n,i,r){const o=ct(e);return null===n?delete o.jsAttributes[t]:lt(e,{...o,jsAttributes:{...o.jsAttributes,[t]:n}}),d(s,i,!0,r||null===n?"session":void 0)(t,n)}function l(){}ei.forEach((e=>{i[e]=d(s,e,!0,"api")})),i.addPageAction=d(s,"addPageAction",!0,Qt.pageAction),i.setPageViewName=function(t,n){if("string"==typeof t)return"/"!==t.charAt(0)&&(t="/"+t),Ut(e).customTransaction=(n||"http://custom.transaction")+t,d(s,"setPageViewName",!0)()},i.setCustomAttribute=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"==typeof e){if(["string","number","boolean"].includes(typeof t)||null===t)return c(e,t,"setCustomAttribute",n);rt("Failed to execute setCustomAttribute.\nNon-null value must be a string, number or boolean type, but a type of <".concat(typeof t,"> was provided."))}else rt("Failed to execute setCustomAttribute.\nName must be a string type, but a type of <".concat(typeof e,"> was provided."))},i.setUserId=function(e){if("string"==typeof e||null===e)return c("enduser.id",e,"setUserId",!0);rt("Failed to execute setUserId.\nNon-null value must be a string type, but a type of <".concat(typeof e,"> was provided."))},i.setApplicationVersion=function(e){if("string"==typeof e||null===e)return c("application.version",e,"setApplicationVersion",!1);rt("Failed to execute setApplicationVersion. Expected <String | null>, but got <".concat(typeof e,">."))},i.start=()=>{try{Kt(Jn,["API/start/called"],void 0,Qt.metrics,r),r.emit("manual-start-all")}catch(e){rt("An unexpected issue occurred",e)}},i[Sn]=function(){Kt(Jn,["API/recordReplay/called"],void 0,Qt.metrics,r),Kt(Sn,[],void 0,Qt.sessionReplay,r)},i[Tn]=function(){Kt(Jn,["API/pauseReplay/called"],void 0,Qt.metrics,r),Kt(Tn,[],void 0,Qt.sessionReplay,r)},i.interaction=function(e){return(new l).get("object"==typeof e?e:{})};const u=l.prototype={createTracer:function(e,t){var i={},s=this,c="function"==typeof t;return Kt(Jn,["API/createTracer/called"],void 0,Qt.metrics,r),n||Kt(a+"tracer",[Fe(),e,i],s,Qt.spa,r),function(){if(o.emit((c?"":"no-")+"fn-start",[Fe(),s,c],i),c)try{return t.apply(this,arguments)}catch(e){const t="string"==typeof e?new Error(e):e;throw o.emit("fn-err",[arguments,this,t],i),t}finally{o.emit("fn-end",[Fe()],i)}}}};function d(e,t,n,i){return function(){return Kt(Jn,["API/"+t+"/called"],void 0,Qt.metrics,r),i&&Kt(e+t,[Fe(),...arguments],n?null:this,i,r),n?void 0:this}}function h(){Promise.resolve().then((function(){return el})).then((t=>{let{setAPI:n}=t;n(e),sn(e,"api")})).catch((e=>{rt("Downloading runtime APIs failed...",e),r.abort()}))}return["actionText","setName","setAttribute","save","ignore","onEnd","getContext","end","get"].forEach((e=>{u[e]=d(a,e,void 0,n?Qt.softNav:Qt.spa)})),i.setCurrentRouteName=n?d(a,"routeName",void 0,Qt.softNav):d(s,"routeName",!0,Qt.spa),i.noticeError=function(t,n){"string"==typeof t&&(t=new Error(t)),Kt(Jn,["API/noticeError/called"],void 0,Qt.metrics,r),Kt("err",[t,Fe(),!1,n,!!ni[e]],void 0,Qt.jserrors,r)},He?gn((()=>h()),!0):h(),i}(e.agentIdentifier,i,e.runSoftNavOverSpa)),void 0===e.exposed&&(e.exposed=c),si=!0}const ci={agentIdentifier:"",ee:void 0};class li{constructor(e){try{if("object"!=typeof e)return rt("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,ci),Object.entries(e).forEach((e=>{let[t,n]=e;Object.keys(ci).includes(t)&&(this.sharedContext[t]=n)}))}catch(e){rt("An error occurred while setting SharedContext",e)}}}class ui extends li{constructor(e){super(e),this.aggregatedData={}}store(e,t,n,i,r){var o=this.getBucket(e,t,n,r);return o.metrics=function(e,t){t||(t={count:0});return t.count+=1,Xt(e,(function(e,n){t[e]=di(n,t[e])})),t}(i,o.metrics),o}merge(e,t,n,i,r){var o=this.getBucket(e,t,i,r);if(o.metrics){var s=o.metrics;s.count+=n.count,Xt(n,(function(e,t){if("count"!==e){var i=s[e],r=n[e];r&&!r.c?s[e]=di(r.t,i):s[e]=function(e,t){if(!t)return e;t.c||(t=hi(t.t));return t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t}(r,s[e])}}))}else o.metrics=n}storeMetric(e,t,n,i){var r=this.getBucket(e,t,n);return r.stats=di(i,r.stats),r}getBucket(e,t,n,i){this.aggregatedData[e]||(this.aggregatedData[e]={});var r=this.aggregatedData[e][t];return r||(r=this.aggregatedData[e][t]={params:n||{}},i&&(r.custom=i)),r}get(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}take(e){for(var t={},n="",i=!1,r=0;r<e.length;r++)t[n=e[r]]=Object.values(this.aggregatedData[n]||{}),t[n].length&&(i=!0),delete this.aggregatedData[n];return i?t:null}}function di(e,t){return null==e?function(e){e?e.c++:e={c:1};return e}(t):t?(t.c||(t=hi(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function hi(e){return{t:e,min:e,max:e,sos:e*e,c:1}}class pi{agentIdentifier;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt(16);this.agentIdentifier=e,this.ee=Gt.get(e)}#i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if("function"==typeof this.api?.[e])return this.api[e](...n);rt("Call to agent api ".concat(e," failed. The API is not currently initialized."))}addPageAction(e,t){return this.#i("addPageAction",e,t)}setPageViewName(e,t){return this.#i("setPageViewName",e,t)}setCustomAttribute(e,t,n){return this.#i("setCustomAttribute",e,t,n)}noticeError(e,t){return this.#i("noticeError",e,t)}setUserId(e){return this.#i("setUserId",e)}setApplicationVersion(e){return this.#i("setApplicationVersion",e)}setErrorHandler(e){return this.#i("setErrorHandler",e)}finished(e){return this.#i("finished",e)}addRelease(e,t){return this.#i("addRelease",e,t)}start(e){return this.#i("start",e)}recordReplay(){return this.#i(Sn)}pauseReplay(){return this.#i(Tn)}addToTrace(e){return this.#i("addToTrace",e)}setCurrentRouteName(e){return this.#i("setCurrentRouteName",e)}interaction(){return this.#i("interaction")}}const fi=[Qt.jserrors,Qt.pageAction,Qt.metrics];class mi extends pi{constructor(e,t){super(t),this.sharedAggregator=new ui({agentIdentifier:this.agentIdentifier}),this.features={},function(e,t){let n=Ze();n.initializedAgents??={},t.initializedAt={ms:Fe(),date:new Date},n.initializedAgents[e]=t}(this.agentIdentifier,this),ai(this,{...e,runtime:{isolatedBacklog:!0}},e.loaderType||"micro-agent"),Object.assign(this,this.api),this.start=e=>this.run(e),this.run(fi.filter((e=>At(this.agentIdentifier,"".concat(e,".autoStart")))))}get config(){return{info:ct(this.agentIdentifier),init:Tt(this.agentIdentifier),loader_config:It(this.agentIdentifier),runtime:Ut(this.agentIdentifier)}}run(e){try{const t=fi;if(void 0===e)e=t;else{if((e=Array.isArray(e)&&e.length?e:[e]).some((e=>!t.includes(e))))return rt("Invalid feature name supplied. Acceptable feature names are: ".concat(t));e.includes(Qt.pageViewEvent)||e.push(Qt.pageViewEvent)}}catch(e){rt("An unexpected issue occurred",e)}try{const t=Xn(this.agentIdentifier);try{this.features.page_view_event=new Yn(this.agentIdentifier,this.sharedAggregator)}catch(e){rt("Something prevented the agent from instrumenting.",e)}return gn((()=>{fi.forEach((n=>{t[n]&&e.includes(n)&&Promise.resolve().then((function(){return Qc})).then((e=>{let{lazyFeatureLoader:t}=e;return t(n,"aggregate")})).then((e=>{let{Aggregate:t}=e;this.features[n]=new t(this.agentIdentifier,this.sharedAggregator)})).catch((e=>rt("Something prevented the agent from being downloaded.",e)))}))})),!0}catch(e){return rt("Failed to initialize instrument classes.",e),!1}}}const vi=Qt.pageAction;class gi extends wn{static featureName=vi;constructor(e,t){super(e,t,vi,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),this.importAggregator()}}function Ci(){var e,t,n=(e="bam.nr-data.net",t={enabled:"true",accountId:"",agentId:"",applicationId:"",licenseKey:"",trustKey:""},{browserAgent:{available:Object.values(t).every(Boolean),options:{info:{applicationID:t.applicationId,licenseKey:t.licenseKey,beacon:e,errorBeacon:e,sa:1},init:{distributed_tracing:{autoStart:!1,enabled:!1},jserrors:{autoStart:!0,enabled:!0},metrics:{autoStart:!1,enabled:!1},page_action:{autoStart:!0,enabled:!0},page_view_event:{autoStart:!0,enabled:!0},page_view_timing:{autoStart:!1,enabled:!1},session_replay:{autoStart:!1,enabled:!1},session_trace:{autoStart:!1,enabled:!1},spa:{autoStart:!1,enabled:!1},ajax:c(c({},{autoStart:!1,enabled:!1}),{deny_list:[e,"undefined"==typeof window?void 0:window.location.host].filter(Boolean)}),privacy:{cookies_enabled:!1}},loaderConfig:{accountID:t.accountId,agentID:t.agentId,applicationID:t.applicationId,licenseKey:t.licenseKey,trustKey:t.trustKey}}}}).browserAgent;return{available:n.available,options:n.options}}var yi=function(e){function t(e){var r;return i(this,t),(r=n(this,t,[e])).call=function(e){if(r.isAvailable()){for(var n,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];(n=t.agent)[e].apply(n,o)}},r}return d(t,e),o(t,[{key:"isAvailable",value:function(){return t.available}}],[{key:"instance",get:function(){if(!t.initialized){var e=Ci(),n=e.available,i=e.options;t.available=n,n&&(t.agent=new t(i),t.agent.start([Gn.featureName,gi.featureName,Yn.featureName])),t.initialized=!0}return t.agent}}])}(mi),bi=function(){return o((function e(){i(this,e),this.agent=yi.instance}),[{key:"createAction",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie(this,void 0,void 0,p().mark((function e(){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=this.agent).call.apply(n,["addPageAction"].concat(t));case 1:case"end":return e.stop()}}),e,this)})))}}])}();new bi;var Ei,wi=function(){return o((function e(){i(this,e),this.agent=yi.instance}),[{key:"createError",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie(this,void 0,void 0,p().mark((function e(){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=this.agent).call.apply(n,["noticeError"].concat(t));case 1:case"end":return e.stop()}}),e,this)})))}}])}(),_i=new wi,ki=function(){return o((function e(){i(this,e),this.agent=yi.instance}),[{key:"createEvent",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie(this,void 0,void 0,p().mark((function e(){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=this.agent).call.apply(n,["addPageAction"].concat(t));case 1:case"end":return e.stop()}}),e,this)})))}}])}();new ki,function(e){e[e.PUBLIC_KEY=0]="PUBLIC_KEY",e[e.TOKEN=1]="TOKEN"}(Ei||(Ei={}));var Si,Ti,Mi,Ai=function(){function e(t,n){i(this,e),this.reportEvent=function(e,t){e.createEvent(t)},this.reportError=function(e,t,n){e.createError(t,n)},this.auth=t,this.authType=n||this.setAuthType(),this.env=new Z(q)}return o(e,[{key:"setEnv",value:function(e,t){return this.env.setEnv(e,t),this}},{key:"requestObservable",value:function(e,t,n){var i=this;return new Ae((function(r){i.makeRequest(r,e,i.env.getConf().url+t,i.auth,n)}))}},{key:"makeRequest",value:function(e,t,n,i,r){var o=this,s=new XMLHttpRequest;s.open(t,n,!0),s.setRequestHeader("Content-Type","application/json; charset=UTF-8"),s.setRequestHeader("x-access-token",i),s.onload=this.onRequestLoad(e,s),s.onerror=function(s){return o.onRequestError(s,e,t,n,i,r)},s.send(r)}},{key:"onRequestLoad",value:function(e,t){return function(){var n=JSON.parse(t.responseText);e.next(n.resource.data),e.complete()}}},{key:"onRequestError",value:function(e,t,n,i,r,o){var s=this;return function(){console.error("ApiBase: longPoll error",{responseText:e.target.responseText,responseURL:e.target.responseURL}),403!==e.target.status&&s.makeRequest(t,n,i,r,o)}}},{key:"setAuthType",value:function(){return this.authType=De.validateJWT(this.auth)?Ei.TOKEN:Ei.PUBLIC_KEY,this.authType}},{key:"getClient",value:function(e,t){var n=this,i=this.newApiRequest(e,t);return{config:i,send:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){};i.onload=function(){return n.parser({text:i.responseText,status:i.status},t,(function(e){n.reportError(_i,e,c(c({},n.ctx),{classMethod:"getClient",description:"Send unsuccessful."})),r(e)}))},i.send(JSON.stringify(e))}}}},{key:"getClientPromise",value:function(e,t){var n=this,i=this.newApiRequest(e,t);return{config:i,send:function(e){return new Promise((function(t,n){i.onload=function(){return t({text:i.responseText,status:i.status})},i.send(JSON.stringify(e))})).then((function(e){return n.parserPromise(e)})).catch((function(e){throw n.reportError(_i,e,c(c({},n.ctx),{classMethod:"getClientPromise",description:"Send unsuccessful."})),e}))}}}},{key:"parser",value:function(e,t,n){var i=e.text,r=e.status;try{var o=JSON.parse(i);if(r>=200&&r<300||302===r)return t(o.resource.data);n(o.error||{message:"unknown error"})}catch(e){this.reportError(_i,e,c(c({},this.ctx),{classMethod:"parser",description:"Unable to parse response body to json."}))}}},{key:"parserPromise",value:function(e){var t=e.text,n=e.status;try{var i=JSON.parse(t);return n>=200&&n<300||302===n?Promise.resolve(i.resource.data):Promise.reject(i.error||{message:"unknown error"})}catch(e){return this.reportError(_i,e,c(c({},this.ctx),{classMethod:"parserPromise",description:"Unable to parse response body to json."})),Promise.reject(e)}}},{key:"newApiRequest",value:function(e,t){var n=Ue.create(e,this.env.getConf().url+t).setContentTypeJson().setSdkVersion();switch(this.authType){case Ei.PUBLIC_KEY:n.setPublicKey(this.auth);break;case Ei.TOKEN:n.setAccessToken(this.auth)}return n.inner()}},{key:"ctx",get:function(){return{sdkVersion:Q.version,className:e.name,environment:this.env.getEnv()}}}])}(),Ni=function(e){function t(e){var r;return i(this,t),(r=n(this,t,[e])).publicKey=r.auth,r}return d(t,e),o(t,[{key:"getBrowserDetails",value:function(){return{name:w.getBrowserName(),java_enabled:w.isJavaEnabled().toString(),language:w.getLanguage(),screen_height:w.getScreenHeight().toString(),screen_width:w.getScreenWidth().toString(),time_zone:w.getTimezoneOffset().toString(),color_depth:w.getColorDepth().toString()}}},{key:"charge",value:function(){return new k(this)}}])}(Ai),Oi=function(){return o((function e(){i(this,e)}),null,[{key:"extendSearchParams",value:function(e,t,n){return e.replace(new RegExp("([?&]"+t+"(?=[=&#]|$)[^#&]*|(?=#|$))"),"&"+t+"="+encodeURIComponent(n)).replace(/^([^?&]+)&/,"$1?")}},{key:"serialize",value:function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}}])}(),Ii=function(){return o((function e(){i(this,e)}),null,[{key:"generate",value:function(){if("undefined"!=typeof window&&void 0!==window.crypto&&void 0!==window.crypto.getRandomValues){var e=new Uint16Array(8);return window.crypto.getRandomValues(e),this.hash(e[0])+this.hash(e[1])+"-"+this.hash(e[2])+"-"+this.hash(e[3])+"-"+this.hash(e[4])+"-"+this.hash(e[5])+this.hash(e[6])+this.hash(e[7])}return this.random()+this.random()+"-"+this.random()+"-"+this.random()+"-"+this.random()+"-"+this.random()+this.random()+this.random()}},{key:"hash",value:function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t}},{key:"random",value:function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}}])}(),Ri="/wallet/flypay",xi="/images/coles-pay-logo.png",Pi=function(){return o((function e(t){i(this,e),this.params={},this.widgetId=Ii.generate(),this.linkResource=t,this.env=new Z(G),this.setParams({widget_id:this.widgetId})}),[{key:"getNetUrl",value:function(){return this.env.getConf().url+this.linkResource}},{key:"getUrl",value:function(){var e=this.getNetUrl(),t=this.getParams();for(var n in t)t.hasOwnProperty(n)&&(e=Oi.extendSearchParams(e,n,t[n]));return e}},{key:"setParams",value:function(e){this.params=c({},this.params,e)}},{key:"concatParams",value:function(e){for(var t in e)e.hasOwnProperty(t)&&e[t].length&&("string"!=typeof this.params[t]&&(this.params[t]=""),this.params[t].length?this.params[t]+=","+e[t]:this.params[t]+=e[t])}},{key:"getParams",value:function(){return this.params}},{key:"setEnv",value:function(e,t){this.env.setEnv(e,t)}},{key:"getEnv",value:function(){return this.env.getEnv()}},{key:"getBaseUrl",value:function(){return this.env.getConf().url}}])}(),Li=function(){return o((function e(){i(this,e)}),null,[{key:"insertToInput",value:function(e,t,n){if(void 0!==n[t]){var i=document.querySelector(e);i&&(i.value=n[t])}}},{key:"subscribe",value:function(e,t,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent("on".concat(e),n)}}])}(),Di=function(){return o((function e(t){i(this,e),this.selector=t}),[{key:"isExist",value:function(){return!!this.getElement()}},{key:"getStyles",value:function(e){if(this.isExist()){var t=this.getElement().getAttribute("widget-style");if(!t)return{};var n=t.split(";");return void 0===n||n.length?this.convertConfigs(n,e):{}}}},{key:"on",value:function(e,t){this.isExist()&&Li.subscribe(e,this.getElement(),t)}},{key:"getAttr",value:function(e){if(this.isExist()){var t=this.getElement(),n=[];for(var i in e)if(e.hasOwnProperty(i)){var r=e[i].replace(/_/g,"-"),o=t.getAttribute(r);o&&n.push("".concat(e[i],":").concat(o))}return void 0===n||n.length?this.convertConfigs(n,e):{}}}},{key:"getElement",value:function(){return document.querySelector(this.selector)}},{key:"getSelector",value:function(){return this.selector}},{key:"convertConfigs",value:function(e,t){var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i].split(":"),o=r[0].replace(/-/g,"_").trim();-1!==t.indexOf(o)&&(n[o]=r[1].trim())}return n}}])}(),Ui=function(){return o((function e(t){i(this,e),this.container=t}),[{key:"load",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(this.container.isExist()&&!this.isExist()){var i=document.createElement("iframe");i.setAttribute("src",e),t.title&&(i.title=t.title),n&&i.classList.add(n),this.container.getElement().appendChild(i)}}},{key:"loadFromHtml",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(this.container.isExist()&&!this.isExist()){var i=document.createElement("iframe");i.setAttribute("height","100%"),i.setAttribute("width","100%"),n&&i.classList.add(n),t.title&&(i.title=t.title);this.container.getElement().appendChild(i);var r=this.getElement().contentDocument;r.open(),r.write("<html><head><style>html, body {margin: 0;} iframe {border: 0; width: 100%}</style><title></title></head><body>{{content}}</body></html>".replace("{{content}}",e)),r.close()}}},{key:"remove",value:function(){if(this.container.isExist()&&this.isExist()){var e=this.getElement();this.container.getElement().removeChild(e)}}},{key:"show",value:function(){this.isExist()&&(this.setStyle("visibility","visible"),this.setStyle("display","block"))}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isExist()&&(e?this.setStyle("visibility","hidden"):this.setStyle("display","none"))}},{key:"isExist",value:function(){return!!this.getElement()}},{key:"getElement",value:function(){return this.container.isExist()?this.container.getElement().querySelector("iframe"):null}},{key:"setStyle",value:function(e,t){this.getElement().style[e]=t}},{key:"setIframeHeight",value:function(e,t,n){e.style.height=t.body.querySelector(n).scrollHeight+"px"}},{key:"setStyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])}}])}(),Fi={AFTER_LOAD:"afterLoad",SUBMIT:"submit",FINISH:"finish",VALIDATION_ERROR:"validationError",SYSTEM_ERROR:"systemError",ERROR:"error",CHECKOUT_SUCCESS:"checkoutSuccess",CHECKOUT_READY:"checkoutReady",CHECKOUT_ERROR:"checkoutError",CHECKOUT_COMPLETED:"checkoutCompleted",CHECKOUT_POPUP_OPEN:"checkoutPopupOpen",CHECKOUT_POPUP_CLOSE:"checkoutPopupClose",RECOGNITION_TOKEN_REQUESTED:"recognitionTokenRequested",RECOGNITION_TOKEN_DROPPED:"recognitionTokenDropped",VALIDATION:"validation",SELECT:"select",UNSELECT:"unselect",NEXT:"next",PREV:"prev",META_CHANGE:"metaChange",RESIZE:"resize",CHARGE_AUTH_SUCCESS:"chargeAuthSuccess",CHARGE_AUTH_REJECT:"chargeAuthReject",CHARGE_AUTH_CANCELLED:"chargeAuthCancelled",ADDITIONAL_DATA_SUCCESS:"additionalDataCollectSuccess",ADDITIONAL_DATA_REJECT:"additionalDataCollectReject",CHARGE_AUTH:"chargeAuth",DISPATCH_SUCCESS:"dispatchSuccess",DISPATCH_ERROR:"dispatchError"},Hi=function(){return o((function e(t){var n=this;i(this,e),this.listeners=[],t&&Li.subscribe("message",t,(function(e){var t;try{t=JSON.parse(e.data)}catch(e){}t&&n.emit(t)}))}),[{key:"emit",value:function(e){for(var t in this.listeners)this.listeners[t].event===e.event&&e.widget_id===this.listeners[t].widget_id&&this.listeners[t].listener.apply(this,[e])}},{key:"on",value:function(e,t,n){for(var i in Fi)Fi.hasOwnProperty(i)&&e===Fi[i]&&this.listeners.push({event:e,listener:n,widget_id:t})}},{key:"clear",value:function(){this.listeners=[]}},{key:"subscribe",value:function(e,t){e.addEventListener?e.addEventListener("message",t):e.attachEvent("onmessage",t)}}])}(),ji={visibility:"hidden",border:"0",width:"0",height:"0"};!function(e){e.SUCCESS="success",e.ERROR="error",e.PENDING="pending"}(Si||(Si={})),function(e){e.SUCCESS="success",e.PENDING="pending",e.ERROR="error"}(Ti||(Ti={})),function(e){e.FINISHED="MethodFinished",e.SKIPPED="MethodSkipped",e.READY="ResultReady",e.TIMEOUT="AuthTimedOut",e.INVALID="invalid_event"}(Mi||(Mi={}));var Bi,zi="chargeAuthSuccess",Wi="chargeAuthReject",Vi="chargeAuthDecoupled",Gi="chargeAuthChallenge",qi="chargeAuthInfo",Yi="error",Ki=function(){return o((function e(t,n,r){i(this,e),this.container=t,this.api=n,this.eventEmitter=r,this.resultRead=!1,this.iFrameEvent=new Hi(window)}),[{key:"load",value:function(e,t){var n=e.initialization_url,i=e.secondary_url,r=e.charge_3ds_id;try{this.setupIFrameEvents(r),this.initializeIFrames(n,i,t)}catch(e){this.eventEmitter.emit(Yi,this.parseError(e,r))}}},{key:"initializeIFrames",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this.container.getElement();if(r){var o=document.createElement("div");if(o.setAttribute("id","paydock_authorization_iframe"),r.appendChild(o),this.browserAndChallengeContainer=new Di("#paydock_authorization_iframe"),this.iFrameAuthorization=new Ui(this.browserAndChallengeContainer),this.iFrameAuthorization.load(e,{title:n}),t){var s=document.createElement("div");s.setAttribute("id","paydock_secondary_iframe"),r.appendChild(s),this.monitoringContainer=new Di("#paydock_secondary_iframe"),this.iFrameSecondaryUrl=new Ui(this.monitoringContainer),this.iFrameSecondaryUrl.load(t,{title:n})}else this.iFrameSecondaryUrl=void 0;this.hideIframes(i)}}},{key:"hideIframes",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];for(var n in ji)ji.hasOwnProperty(n)&&(t&&this.iFrameAuthorization.setStyle(n,ji[n]),null===(e=this.iFrameSecondaryUrl)||void 0===e||e.setStyle(n,ji[n]))}},{key:"setupIFrameEvents",value:function(e){var t=this;this.iFrameEvent.on(Fi.CHARGE_AUTH,e,(function(e){e.status===Mi.SKIPPED||e.status===Mi.FINISHED?(e.info&&t.eventEmitter.emit(qi,{info:e.info}),t.performAuthentication(e)):e.status!==Mi.TIMEOUT&&e.status!==Mi.INVALID||t.eventEmitter.emit(Wi,t.parseHandleResponse({status:e.status},e.charge_3ds_id))})),this.iFrameEvent.on(Fi.CHARGE_AUTH_SUCCESS,e,(function(e){t.processResult(e.charge_3ds_id)}))}},{key:"parseResultData",value:function(e,t){return{status:e.status,charge_3ds_id:t}}},{key:"parseHandleResponse",value:function(e,t){var n=e.status,i=e.result;return{status:n,charge_3ds_id:t,result:{description:null==i?void 0:i.description}}}},{key:"parseError",value:function(e,t){return{charge_3ds_id:t,error:e}}},{key:"processResult",value:function(e){var t=this;this.resultRead||(this.resultRead=!0,this.api.charge().standalone3dsHandle().then((function(n){var i;t.iFrameAuthorization.remove(),null===(i=t.iFrameSecondaryUrl)||void 0===i||i.remove(),n.status===Si.SUCCESS?t.eventEmitter.emit(zi,t.parseResultData(n,e)):t.eventEmitter.emit(Wi,t.parseResultData(n,e))}),(function(n){t.eventEmitter.emit(Yi,t.parseError(n,e))})))}},{key:"externalAPI",value:function(e,t){var n=Ue.create(e,t).inner();return new Promise((function(e,t){n.onload=function(){try{var i=JSON.parse(n.responseText);e(i)}catch(e){t(e)}},n.send()}))}},{key:"doPolling",value:function(e,t){var n=this;this.externalAPI("GET",e).then((function(i){if(i.event&&"AuthResultNotReady"!==i.event){if("AuthResultReady"!==i.event)throw new Error("Event not supported");n.processResult(t)}else setTimeout((function(){n.doPolling(e,t)}),2e3)})).catch((function(e){return n.eventEmitter.emit(Yi,n.parseError(e,t))}))}},{key:"performAuthentication",value:function(e){var t,n=this,i=e.charge_3ds_id;this.iFrameAuthorization.remove(),null===(t=this.iFrameSecondaryUrl)||void 0===t||t.remove(),this.api.charge().standalone3dsProcess({charge_3ds_id:i}).then((function(e){var t,r;if(e.status===Ti.SUCCESS)n.eventEmitter.emit(zi,n.parseHandleResponse(e,i));else{if(e.status!==Ti.PENDING)return n.eventEmitter.emit(Wi,n.parseHandleResponse(e,i));(null===(t=null==e?void 0:e.result)||void 0===t?void 0:t.challenge)?(n.eventEmitter.emit(Gi,n.parseHandleResponse(e,i)),n.initializeIFrames(e.result.challenge_url,void 0,"Authentication Challenge",!1),e.result.secondary_url&&n.doPolling(e.result.secondary_url,i)):(null===(r=null==e?void 0:e.result)||void 0===r?void 0:r.decoupled_challenge)&&(n.eventEmitter.emit(Vi,n.parseHandleResponse(e,i)),e.result.secondary_url&&n.doPolling(e.result.secondary_url,i))}}),(function(e){n.eventEmitter.emit(Yi,n.parseError(e,i))}))}}])}(),Xi=function(){return o((function e(t){i(this,e),this.api=t}),[{key:"walletCapture",value:function(e){return this.api.getClientPromise("POST","/v1/charges/wallet/capture").send(e)}},{key:"walletCallback",value:function(e){return this.api.getClientPromise("POST","/v1/charges/wallet/callback").send(e)}},{key:"standalone3dsProcess",value:function(e){return this.api.getClientPromise("POST","/v1/charges/standalone-3ds/process").send(e)}},{key:"standalone3dsHandle",value:function(){return this.api.getClientPromise("GET","/v1/charges/standalone-3ds/handle").send(void 0)}}])}(),$i=function(){return o((function e(t){i(this,e),this.api=t}),[{key:"getWalletConfig",value:function(e){var t="/v1/gateways/:gateway_id/wallet-config".replace(":gateway_id",e);return this.api.getClientPromise("GET",t).send(void 0)}}])}(),Ji=function(){return o((function e(t){i(this,e),this.api=t}),[{key:"getConfig",value:function(e){var t="/v1/services/:service_id/config".replace(":service_id",e);return this.api.getClientPromise("GET",t).send(void 0)}}])}();!function(e){e.VISA_SRC="VisaSRC",e.MASTERCARD_SRC="ClickToPay"}(Bi||(Bi={}));var Zi,Qi=function(){return o((function e(t){i(this,e),this.api=t,this.getInstructionLink=function(){return"".concat("/v1/checkouts/instruction","?time=").concat((new Date).getTime())}}),[{key:"instructions",value:function(){return this.api.requestObservable("GET",this.getInstructionLink(),{})}},{key:"callback",value:function(e){return this.api.getClientPromise("POST","/v1/checkouts/callback").send(e)}},{key:"status",value:function(e){return this.api.getClientPromise("GET","".concat("/v1/checkouts","/").concat(e)).send("")}}])}(),er=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"charge",value:function(){return new Xi(this)}},{key:"service",value:function(){return new Ji(this)}},{key:"checkout",value:function(){return new Qi(this)}},{key:"gateway",value:function(){return new $i(this)}}])}(Ai),tr="GPayments",nr=function(){return o((function e(t,n){i(this,e),this.env=X,this.container=t,this.eventEmitter=n}),[{key:"load",value:function(e,t){var n=De.validateJWT(e);if(!n)throw new Error("Invalid charge token");var i=De.extractData(n.body),r=new er(e,Ei.TOKEN);if(r.setEnv(this.env,this.alias),i.service_type===tr)new Ki(this.container,r,this.eventEmitter).load(i,t.title)}},{key:"setEnv",value:function(e,t){this.env=e,this.alias=t}}])}(),ir=function(){return o((function e(){i(this,e),this.events={}}),[{key:"emit",value:function(e,t){var n=this.events[e];n&&n.forEach((function(e){e.call(null,t)}))}},{key:"emitWithResult",value:function(e,t){var n=this,i=this.events[e];if(i){var r=i.map((function(e){return ie(n,void 0,void 0,p().mark((function n(){return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",e.call(null,t));case 1:case"end":return n.stop()}}),n)})))}));return Promise.all(r)}return Promise.resolve([])}},{key:"subscribe",value:function(e,t){var n=this;return this.events[e]||(this.events[e]=[]),this.events[e].push(t),function(){n.events[e]=n.events[e].filter((function(e){return t!==e}))}}}])}();!function(e){e.HTML="html",e.URL="url",e.STANDALONE_3DS="standalone_3ds"}(Zi||(Zi={}));var rr,or,sr=function(){return o((function e(t,n){i(this,e),this.configs=[],this.link=new Pi("/3ds/webhook"),this.token=e.extractToken(n),this.link.setParams({ref_id:this.token.charge_3ds_id}),this.container=new Di(t),this.iFrame=new Ui(this.container),this.eventEmitter=new ir,this.standalone3dsService=new nr(this.container,this.eventEmitter),this.event=new Hi(window)}),[{key:"load",value:function(){this.token.format===Zi.HTML?this.iFrame.loadFromHtml(this.token.content,{title:"3d secure authentication"},"threeDSecure-iframe"):this.token.format===Zi.URL?this.iFrame.load(this.token.content,{title:"3d secure authentication"},"threeDSecure-iframe"):this.token.format===Zi.STANDALONE_3DS?this.standalone3dsService.load(this.token.content,{title:"3d secure authentication"}):console.error("Token contain unsupported payload")}},{key:"setEnv",value:function(e,t){for(var n in this.link.setEnv(e,t),this.standalone3dsService.setEnv(e,t),this.configs)this.configs.hasOwnProperty(n)&&this.configs[n].setEnv(e,t)}},{key:"getEnv",value:function(){return this.link.getEnv()}},{key:"on",value:function(e,t){var n=this;return this.token.format===Zi.STANDALONE_3DS?"function"==typeof t?this.eventEmitter.subscribe(e,t):new Promise((function(t){return n.eventEmitter.subscribe(e,(function(e){return t(e)}))})):"function"==typeof t?this.event.on(e,this.link.getParams().ref_id,t):new Promise((function(t){return n.event.on(e,n.link.getParams().ref_id,(function(e){return t(e)}))}))}},{key:"hide",value:function(e){this.iFrame.hide(e)}},{key:"show",value:function(){this.iFrame.show()}},{key:"reload",value:function(){this.iFrame.remove(),this.load()}}],[{key:"extractToken",value:function(e){return JSON.parse(window.atob(e))}}])}(),ar={CLICK:"click",POPUP_REDIRECT:"popupRedirect",REDIRECT:"redirect",ERROR:"error",REFERRED:"referred",DECLINED:"declined",CANCELLED:"cancelled",ACCEPTED:"accepted",FINISH:"finish",CLOSE:"close"};!function(e){e.CONTEXTUAL="contextual",e.REDIRECT="redirect"}(rr||(rr={})),function(e){e.ZIPMONEY="Zipmoney",e.PAYPAL="PaypalClassic",e.AFTERPAY="Afterpay"}(or||(or={}));var cr,lr,ur="[Paydock:CheckoutButton]",dr={CARD:"card",BANK_ACCOUNT:"bank_account",CHECKOUT:"checkout"},hr={CARD_NAME:"card_name",CARD_NUMBER:"card_number",EXPIRE_MONTH:"expire_month",EXPIRE_YEAR:"expire_year",CARD_CCV:"card_ccv",CARD_PIN:"card_pin",ACCOUNT_NAME:"account_name",ACCOUNT_BSB:"account_bsb",ACCOUNT_NUMBER:"account_number",ACCOUNT_ROUTING:"account_routing",ACCOUNT_HOLDER_TYPE:"account_holder_type",ACCOUNT_BANK_NAME:"account_bank_name",ACCOUNT_TYPE:"account_type",FIRST_NAME:"first_name",LAST_NAME:"last_name",EMAIL:"email",PHONE:"phone",PHONE2:"phone2",ADDRESS_LINE1:"address_line1",ADDRESS_LINE2:"address_line2",ADDRESS_STATE:"address_state",ADDRESS_COUNTRY:"address_country",ADDRESS_CITY:"address_city",ADDRESS_POSTCODE:"address_postcode",ADDRESS_COMPANY:"address_company"},pr={BACKGROUND_COLOR:"background_color",BACKGROUND_ACTIVE_COLOR:"background_active_color",TEXT_COLOR:"text_color",BORDER_COLOR:"border_color",ICON_SIZE:"icon_size",BUTTON_COLOR:"button_color",ERROR_COLOR:"error_color",SUCCESS_COLOR:"success_color",FONT_SIZE:"font_size",FONT_FAMILY:"font_family"},fr={TITLE:"title",TITLE_H1:"title_h1",TITLE_H2:"title_h2",TITLE_H3:"title_h3",TITLE_H4:"title_h4",TITLE_H5:"title_h5",TITLE_H6:"title_h6",FINISH:"finish_text",TITLE_DESCRIPTION:"title_description",SUBMIT_BUTTON:"submit_button",SUBMIT_BUTTON_PROCESSING:"submit_button_processing"},mr={SUBMIT_BUTTON:"submit_button",TABS:"tabs"},vr={AMEX:"amex",AUSBC:"ausbc",DINERS:"diners",DISCOVER:"discover",JAPCB:"japcb",LASER:"laser",MASTERCARD:"mastercard",SOLO:"solo",VISA:"visa",VISA_WHITE:"visa_white",EFTPOS:"eftpos",EFTPOS_WHITE:"eftpos_white"},gr=[].concat(["brand_name","cart_border_color","reference","email","hdr_img","logo_img","pay_flow_color","first_name","last_name","address_line","address_line2","address_city","address_state","address_postcode","address_country","phone","hide_shipping_address"],["first_name","last_name","phone","tokenize","email","gender","date_of_birth","charge","statistics","hide_shipping_address"],["amount","currency","email","first_name","last_name","address_line","address_line2","address_city","address_state","address_postcode","address_country","phone"],["customer_storage_number","tokenise_algorithm"]);!function(e){e.STRIPE="Stripe",e.FLYPAY="Flypay",e.FLYPAY_V2="FlypayV2",e.PAYPAL="Paypal",e.MASTERCARD="MasterCard",e.AFTERPAY="Afterpay"}(cr||(cr={})),function(e){e.GOOGLE="google",e.APPLE="apple",e.FLYPAY="flypay",e.FLYPAY_V2="flypayV2",e.PAYPAL="paypal",e.AFTERPAY="afterpay"}(lr||(lr={}));var Cr,yr=function(){return o((function e(){i(this,e),this.env=new Z(q)}),[{key:"setEnv",value:function(e,t){this.env.setEnv(e,t)}},{key:"getEnv",value:function(){return this.env.getEnv()}},{key:"getUrl",value:function(){return this.env.getConf().url+this.getLink()}},{key:"create",value:function(e,t,n,i){var r=this,o=Ue.create("POST",this.getUrl()).setHeader(De.getAccessHeaderNameByToken(e),e).setContentTypeJson().setSdkVersion().inner();o.onload=function(){r.parser(o.responseText,o.status,n,i)},o.send(JSON.stringify(t))}},{key:"get",value:function(e,t,n){var i=this,r=Ue.create("GET",this.getUrl()).setHeader(De.getAccessHeaderNameByToken(e),e).setContentTypeJson().setSdkVersion().inner();r.onload=function(){i.parser(r.responseText,r.status,t,n)},r.send()}},{key:"parser",value:function(e,t,n,i){var r={};try{r=JSON.parse(e)}catch(e){}return t>=200&&t<300||302===t?n(r.resource.data,t):i(r.error||{message:"unknown error"},t)}}])}(),br=function(e){function t(e,r,o){var s;return i(this,t),(s=n(this,t)).body={gateway_id:e,meta:{},success_redirect_url:r,error_redirect_url:o,redirect_url:r},s}return d(t,e),o(t,[{key:"getLink",value:function(){return"/v1/payment_sources/external_checkout"}},{key:"setDescriptions",value:function(e){this.body.description=e}},{key:"setMeta",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(-1!==gr.indexOf(t)?this.body.meta[t]=e[t]:console.warn("ExternalCheckout::setMeta: unsupported meta key ".concat(t)))}},{key:"getConfigs",value:function(){return this.body}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){};this.create(e,this.getConfigs(),(function(e,n){t(e)}),(function(e,t){void 0===e.message?n("".concat(t,": unknown error"),"unknown_error"):n(e.message,e.code)}))}}])}(yr),Er=function(e){function t(e){var r;return i(this,t),(r=n(this,t)).token=e,r}return d(t,e),o(t,[{key:"getLink",value:function(){return"/v1/payment_sources/external_checkout/:token".replace(":token",this.token)}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){};this.get(e,(function(e,n){t(e)}),(function(e,t){void 0===e.message?n("".concat(t,": unknown error")):n(e.message)}))}}])}(yr),wr='\n <div class="cs-loader">\n <div class="cs-loader-inner">\n <label>\t●</label>\n <label>\t●</label>\n <label>\t●</label>\n <label>\t●</label>\n <label>\t●</label>\n <label>\t●</label>\n </div>\n </div>\n',_r="\n <style> \n .cs-loader {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n \n .cs-loader-inner {\n transform: translateY(-50%);\n top: 50%;\n position: absolute;\n width: calc(100% - 200px);\n color: #8e8d8c;\n padding: 0 100px;\n text-align: center;\n }\n \n \n .cs-loader-inner label {\n font-size: 20px;\n opacity: 0;\n display:inline-block;\n }\n \n @keyframes lol {\n 0% {\n opacity: 0;\n transform: translateX(-300px);\n }\n 33% {\n opacity: 1;\n transform: translateX(0px);\n }\n 66% {\n opacity: 1;\n transform: translateX(0px);\n }\n 100% {\n opacity: 0;\n transform: translateX(300px);\n }\n }\n \n @-webkit-keyframes lol {\n 0% {\n opacity: 0;\n -webkit-transform: translateX(-300px);\n }\n 33% {\n opacity: 1;\n -webkit-transform: translateX(0px);\n }\n 66% {\n opacity: 1;\n -webkit-transform: translateX(0px);\n }\n 100% {\n opacity: 0;\n -webkit-transform: translateX(300px);\n -moz-transform: translateX(300px);\n }\n }\n \n .cs-loader-inner label:nth-child(6) {\n -webkit-animation: lol 3s infinite ease-in-out;\n -moz-animation: lol 3s infinite ease-in-out;\n animation: lol 3s infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(5) {\n -webkit-animation: lol 3s 100ms infinite ease-in-out;\n -moz-animation: lol 3s 100ms infinite ease-in-out;\n animation: lol 3s 100ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(4) {\n -webkit-animation: lol 3s 200ms infinite ease-in-out;\n -moz-animation: lol 3s 200ms infinite ease-in-out;\n animation: lol 3s 200ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(3) {\n -webkit-animation: lol 3s 300ms infinite ease-in-out;\n -moz-animation: lol 3s 300ms infinite ease-in-out;\n animation: lol 3s 300ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(2) {\n -webkit-animation: lol 3s 400ms infinite ease-in-out;\n -moz-animation: lol 3s 400ms infinite ease-in-out;\n animation: lol 3s 400ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(1) {\n -webkit-animation: lol 3s 500ms infinite ease-in-out;\n -moz-animation: lol 3s 500ms infinite ease-in-out;\n animation: lol 3s 500ms infinite ease-in-out;\n }\n </style>\n",kr="close",Sr="focus",Tr=function(){return o((function e(){i(this,e),this.description="Don't see the secure checkout browser? We'll help you re-launch the window to complete your purchase",this.title="Checkout",this.overlay=null,this.style=null,this.showControl=!0,this.showLoader=!0,this.eventEmitter=new ir}),[{key:"initControl",value:function(){if(!this.isInit()&&this.showControl){if(!w.isSupportPopUp())return this.createLoader();this.createTemplate(),this.createStyles(),this.eventHandler()}}},{key:"initLoader",value:function(){!this.isInit()&&this.showLoader&&(this.createStyles(),this.createLoader())}},{key:"eventHandler",value:function(){var e=this,t=document.querySelector("[data-close]"),n=document.querySelector("[data-continue]");t&&Li.subscribe("click",t,(function(){return e.eventEmitter.emit(kr,{})})),n&&Li.subscribe("click",n,(function(){return e.eventEmitter.emit(Sr,{})}))}},{key:"clear",value:function(){(this.style||this.overlay)&&(this.style.parentNode.removeChild(this.style),this.overlay.parentNode.removeChild(this.overlay),this.style=null,this.overlay=null)}},{key:"createLoader",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0];this.overlay=document.createElement("div"),this.overlay.classList.add("checkout-overlay"),this.overlay.setAttribute("checkout-overlay"," "),this.overlay.innerHTML=_r+wr,t.appendChild(this.overlay),setTimeout((function(){e.isInit()&&e.overlay.classList.add("display")}),5)}},{key:"createTemplate",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0],n=String('\n <div class="checkout-container">\n <strong class="checkout-title" data-title>{{title}}</strong>\n <p data-description>{{description}}</p>\n <a href="#" data-continue>Continue</a>\n <a href="#" data-close>Close</a>\n </div>\n');n=(n=n.replace("{{description}}",this.description)).replace("{{title}}",this.title),this.overlay=document.createElement("div"),this.overlay.classList.add("checkout-overlay"),this.overlay.setAttribute("checkout-overlay"," "),this.overlay.innerHTML=n,t.appendChild(this.overlay),setTimeout((function(){e.isInit()&&e.overlay.classList.add("display")}),5)}},{key:"createStyles",value:function(){var e=document.head||document.getElementsByTagName("head")[0],t=String("\n .hide-continue-button [data-continue] {\n display: none;\n }\n\n .checkout-overlay .cs-loader-inner {\n color: #ddd;\n }\n\n .checkout-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0,0,0, 0.5);\n text-align: center;\n color: #fff;\n opacity: 0;\n }\n .checkout-overlay.display {\n opacity: 1;\n transition: opacity 0.7s ease-out;\n }\n .checkout-overlay a { color: #00f; }\n .checkout-container {\n position: absolute;\n top: 50%;\n left: 0;\n width: 100%;\n margin-top: -{{width}}px;\n }\n .checkout-title {\n font-size: 24px;\n display: block;\n text-transform: uppercase;\n }\n [data-close] {\n position: fixed;\n right: 32px;\n top: 32px;\n width: 32px;\n height: 32px;\n opacity: 0.3;\n overflow: hidden;\n text-indent: -9999px;\n }\n [data-close]:hover { opacity: 1; }\n [data-close]:before, [data-close]:after {\n position: absolute;\n left: 15px;\n content: ' ';\n height: 33px;\n width: 2px;\n background-color: #00f;\n }\n [data-close]:before { transform: rotate(45deg); }\n [data-close]:after { transform: rotate(-45deg); }\n"),n=document.querySelector(".checkout-container");t=t.replace("{{width}}",n?String(n.offsetHeight/2):"0"),this.style=document.createElement("style"),this.style.type="text/css",this.style.appendChild(document.createTextNode(t)),e.appendChild(this.style)}},{key:"setBackdropDescription",value:function(e){this.description=e}},{key:"setBackdropTitle",value:function(e){this.title=e}},{key:"onTrigger",value:function(e,t){this.eventEmitter.subscribe(e,t)}},{key:"isInit",value:function(){return!(!this.overlay||!this.style)}},{key:"hideContinueControl",value:function(){this.isInit()&&this.overlay.classList.add("hide-continue-button")}},{key:"turnOffControl",value:function(){this.showControl=!1}},{key:"turnOffLoader",value:function(){this.showLoader=!1}}])}(),Mr=function(){return o((function e(){i(this,e),this.widgetEnv=new Z(G)}),[{key:"error",value:function(e,t,n){n(!0)}},{key:"setEnv",value:function(e,t){this.widgetEnv.setEnv(e,t)}}])}();function Ar(){return function(e){function t(){var e;i(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=n(this,t,[].concat(o))).background=new Tr,e.background.onTrigger(Sr,(function(){return e.continue()})),e.background.onTrigger(kr,(function(){return e.stop()})),e}return d(t,e),o(t,[{key:"continue",value:function(){}},{key:"stop",value:function(){}},{key:"error",value:function(e,t,n){n(!0)}},{key:"setSuspendedRedirectUri",value:function(e){this.suspendedRedirectUri=e}},{key:"setBackgroundTitle",value:function(e){this.background.setBackdropTitle(e)}},{key:"setBackgroundDescription",value:function(e){this.background.setBackdropDescription(e)}},{key:"turnOffBackdrop",value:function(){this.background.turnOffControl(),this.background.turnOffLoader()}}])}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr)}!function(e){e.SUCCESS="success",e.DECLINED="declined",e.CLOSE="close",e.REFERRED="referred",e.ERROR="error"}(Cr||(Cr={}));var Nr="paydock-dispatcher",Or=function(){return o((function e(t){i(this,e),this.messageSource=t,this.env=new Z(G)}),[{key:"restartDispatcher",value:function(){var e=document.getElementById(Nr);e&&e.parentNode&&e.parentNode.removeChild(e);var t=document.createElement("iframe");t.setAttribute("src",this.env.getConf().url+"/dispatcher"),t.id=Nr,t.style.display="none",document.body.appendChild(t)}},{key:"on",value:function(e,t){var n=this;Li.subscribe("message",window,(function(i){var r=null;try{r=JSON.parse(i.data)}catch(e){}r&&r.message_source===n.messageSource&&r.event===e&&t(r)}))}},{key:"setEnv",value:function(e,t){this.env.setEnv(e,t),this.restartDispatcher()}}])}(),Ir="close",Rr=function(){return o((function e(){i(this,e),this.configs={width:500,height:500,scrollbars:!0,resizable:!0,top:0,left:0},this.eventEmitter=new ir}),[{key:"isExist",value:function(){return!(!this.getElement()||this.getElement().closed)}},{key:"getElement",value:function(){return this.window}},{key:"init",value:function(){var e=this;if(!w.isSupportPopUp())return this.window=window;var t=this.getConfigs();this.window=window.open("about:blank","_blank","noopener=false,width=".concat(t.width,",height=").concat(t.height,",top=").concat(t.top,",left=").concat(t.left,",scrollbars=").concat(t.scrollbars?"yes":"no",",resizable=").concat(t.resizable?"yes":"no")),this.showLoader();var n=setInterval((function(){e.isExist()||(clearInterval(n),e.eventEmitter.emit(Ir,{}))}),200)}},{key:"redirect",value:function(e){this.isExist()&&(this.window.location.href=e)}},{key:"close",value:function(){this.isExist()&&this.getElement().close&&(this.getElement().close(),this.window=null)}},{key:"focus",value:function(){this.isExist()&&this.getElement().focus&&this.getElement().focus()}},{key:"setConfigs",value:function(e){this.configs=c(this.configs,e)}},{key:"getNetConfigs",value:function(){return c({},this.configs)}},{key:"getConfigs",value:function(){var e=this.getNetConfigs();return e.left=window.screenX+(window.screen.width/2-e.width/2),e.top=window.screenY+(window.screen.height/2-e.height/2),e}},{key:"onClose",value:function(e){this.eventEmitter.subscribe(Ir,e)}},{key:"initError",value:function(e){this.getElement().document.write("."),(this.getElement().document.body||this.getElement().document.getElementsByTagName("body")[0]).innerHTML="<style>\n .error-wrapper {\n color: #ff0000;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n }\n </style>"+'<div class="error-wrapper"><div>{{error}}</div></div>'.replace("{{error}}",e)}},{key:"showLoader",value:function(){this.getElement().document.write(".");var e=this.getElement().document.body||this.getElement().document.getElementsByTagName("body")[0];if(e.innerHTML=_r+wr,this.env===N&&this.env===O&&this.env===I&&this.env===R&&this.env===x&&this.env===P&&this.env===L&&this.env===D&&this.env===U&&this.env===F&&this.env===H&&this.env===j&&this.env===B&&this.env===z&&this.env===W&&this.env===V){var t=0;Li.subscribe("click",e,(function(){5===++t&&(e.innerHTML='\n <style>\n html{width: 100%;height: 100%;}\n body{margin: 0px;padding: 0px;background-color: #111;}\n \n .eye{\n width: 20px; height: 8px;\n background-color: #eee;\n border-radius:0px 0px 20px 20px;\n position: relative;\n top: 40px;\n left: 10px;\n box-shadow: 40px 0px 0px 0px #eee; \n }\n \n .head{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden; \n position: relative;\n margin: -250px auto;\n width: 80px; height: 80px;\n background-color: #111;\n border-radius:50px;\n box-shadow: inset -4px 2px 0px 0px #eee;\n -webkit-animation:node 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out;\n -moz-animation:node 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out;\n animation:node 1.5s infinite alternate;\n animation-timing-function:ease-out;\n }\n .body{ \n position: relative;\n margin: 90px auto;\n width: 140px; height: 120px;\n background-color: #111;\n border-radius: 50px/25px ;\n box-shadow: inset -5px 2px 0px 0px #eee;\n -webkit-animation:node2 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out; \n -moz-animation:node2 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out; \n animation:node2 1.5s infinite alternate;\n animation-timing-function:ease-out; \n }\n \n @keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n @-moz-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @-moz-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n @-webkit-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @-webkit-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n \n \n .circ{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n margin: 60px auto;\n width: 180px; height: 180px;\n background-color: #111;\n border-radius: 0px 0px 50px 50px;\n position: relative;\n z-index: -1; \n left: 0%;\n top: 20%;\n overflow: hidden;\n }\n \n .hands{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n margin-top: 140px;\n width: 120px;height: 120px;\n position: absolute;\n background-color: #111;\n border-radius:20px;\n box-shadow:-1px -4px 0px 0px #eee;\n transform:rotate(45deg);\n -webkit-transform:rotate(45deg);\n -mox-transform:rotate(45deg);\n top:75%;left: 16%;\n z-index: 1;\n -webkit-animation:node2 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out;\n -moz-animation:node2 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out;\n animation:node2 1.5s infinite alternate;\n animation-timing-function:ease-out;\n }\n \n .load{ position: absolute;\n width: 100px; height: 20px;\n margin: -10px auto;\n -webkit-font-smoothing: antialiased;\n -moz-font-smoothing: antialiased;\n font-smoothing: antialiased;\n font-family: \'Julius Sans One\', sans-serif;\n font-size:30px;\n font-weight:400;\n color:#eee;\n left: 10%;\n top: 5%;\n }\n </style>\n\n <div class="circ">\n <div class="load">A little patience ...</div>\n <div class="hands"></div>\n <div class="body"></div>\n <div class="head">\n <div class="eye"></div>\n </div>\n </div>\n')}))}}},{key:"setEnv",value:function(e){this.env=e}}])}(),xr=function(e){function t(e){var r;return i(this,t),(r=n(this,t)).publicKey=e,r.checkout=null,r.dispatcher=new Or("checkout.paydock"),setTimeout((function(){return r.dispatcher.restartDispatcher()}),200),r.popup=new Rr,r}return d(t,e),o(t,[{key:"run",value:function(){this.isRunning()||(this.popup.init(),this.background.initControl())}},{key:"isRunning",value:function(){return this.popup.isExist()}},{key:"next",value:function(e){this.checkout=e,w.isSupportPopUp()||window.localStorage.setItem("paydock_checkout_token",JSON.stringify(this.checkout)),this.popup.redirect(this.checkout.link)}},{key:"continue",value:function(){this.popup.focus()}},{key:"stop",value:function(){this.popup.close()}},{key:"onStop",value:function(e){var t=this;this.popup.onClose((function(){t.background.clear(),t.checkout=null,e()}))}},{key:"onCheckout",value:function(e,t){var n=this;this.dispatcher.on(e,(function(e){if(n.checkout&&n.checkout.reference_id===e.reference_id)n.background.clear(),t(n.checkout,e);else if(!w.isSupportPopUp()){var i=window.localStorage.getItem("paydock_checkout_token");if(!i)return;var r=JSON.parse(i);r&&r.reference_id===e.reference_id&&(window.localStorage.removeItem("paydock_checkout_token"),n.checkout=r,n.background.clear(),t(n.checkout,e))}}))}},{key:"setEnv",value:function(e,n){v(t,"setEnv",this)([e,n]),this.dispatcher.setEnv(e,n),this.popup.setEnv(e)}}])}(Ar());function Pr(e){return"run"in e}function Lr(e){return"setRedirectUrl"in e}var Dr,Ur=function(e){function t(){var e;return i(this,t),(e=n(this,t)).apiEnv=new Z(q),e}return d(t,e),o(t,[{key:"setEnv",value:function(e,n){v(t,"setEnv",this)([e,n]),this.apiEnv.setEnv(e,n)}}])}(Mr);!function(e){e.APPROVED="approved",e.DECLINED="declined",e.CANCELLED="cancelled",e.REFERRED="referred"}(Dr||(Dr={}));var Fr,Hr=function(e){function t(){var e;return i(this,t),(e=n(this,t)).runs=!1,e.widgetId=Ii.generate(),e.checkoutTab=null,e.eventEmitter=new ir,e.event=new Hi(window),e}return d(t,e),o(t,[{key:"run",value:function(){this.runs=!0,this.background.initLoader(),this.checkoutTab=window.open(this.getLoadingUrl(),"_blank"),this.checkInterval=this.setCloseTabInterval(),this.setCompleteCheckoutListener()}},{key:"isRunning",value:function(){return this.runs}},{key:"next",value:function(e){var t;this.checkout=e,null===(t=this.checkoutTab)||void 0===t||t.location.replace(e.link)}},{key:"getSuccessRedirectUri",value:function(){var e=this.widgetEnv.getConf().url,t=String("/checkout/zipmoney/suspended"),n=new URL(t,e);return n.searchParams.set("widgetId",this.widgetId),n.searchParams.set("domain",window.location.origin),n.toString()}},{key:"getErrorRedirectUri",value:function(){return this.getSuccessRedirectUri()}},{key:"stop",value:function(){v(t,"stop",this)([]),this.runs=!1;var e=document.querySelector(".zipmoney-overlay");e&&e.remove(),this.checkoutTab&&!this.checkoutTab.closed&&(clearInterval(this.checkInterval),this.checkoutTab.close()),this.eventEmitter.emit(Cr.CLOSE)}},{key:"onStop",value:function(e){var t=this;this.eventEmitter.subscribe(Cr.CLOSE,(function(){t.background.clear(),e()}))}},{key:"onCheckout",value:function(e,t){var n=this;this.eventEmitter.subscribe(e,(function(){t(n.checkout)}))}},{key:"eventHandler",value:function(e){switch(this.runs=!1,this.background.clear(),e.state){case Dr.APPROVED:this.eventEmitter.emit(Cr.CLOSE),this.eventEmitter.emit(Cr.SUCCESS);break;case Dr.DECLINED:this.eventEmitter.emit(Cr.CLOSE),this.eventEmitter.emit(Cr.DECLINED);break;case Dr.CANCELLED:this.eventEmitter.emit(Cr.CLOSE);break;case Dr.REFERRED:this.eventEmitter.emit(Cr.CLOSE),this.eventEmitter.emit(Cr.REFERRED);break;default:console.warn("".concat("[CheckoutButton:Zipmoney]"," Unknown gateway status."))}}},{key:"setCloseTabInterval",value:function(){var e=this,t=setInterval((function(){var n;(null===(n=e.checkoutTab)||void 0===n?void 0:n.closed)&&(clearInterval(t),e.event.clear(),e.stop())}),500);return t}},{key:"setCompleteCheckoutListener",value:function(){var e=this;this.event.on(Fi.FINISH,this.widgetId,(function(t){e.event.clear(),clearInterval(e.checkInterval),e.checkoutTab&&!e.checkoutTab.closed&&e.checkoutTab.close(),e.eventHandler(t)}))}},{key:"getLoadingUrl",value:function(){var e=this.widgetEnv.getConf().url,t=String("/checkout/zipmoney/loading");return new URL(t,e).toString()}}])}(Ar(Ur)),jr="[Paydock:StorageDispatcher]";!function(e){e.WIDGET_SESSION="widget-session"}(Fr||(Fr={}));var Br,zr=function(){return o((function e(t){i(this,e),this.messageSource=t,this.defaultPayload={destination:"widget.paydock"},this.env=new Z(G),this.defaultPayload.source=t,this.iframeEvent=new Hi(window)}),[{key:"create",value:function(e){this.onLoadCallback=e,this.dispatcherFrame&&this.destroy(),this.widgetId=Ii.generate(),this.setupIframeEventListeners();var t=document.createElement("iframe");return t.setAttribute("src",this.env.getConf().url+"/storage-dispatcher"+"?widgetId=".concat(this.widgetId)),t.setAttribute("id","pd-storage-dispatcher"),t.style.display="none",document.body.appendChild(t),this.dispatcherFrame=t,console.info("".concat(jr," initialized.")),t}},{key:"destroy",value:function(){this.dispatcherFrame&&this.dispatcherFrame.parentNode&&this.dispatcherFrame.parentNode.removeChild(this.dispatcherFrame),this.iframeEvent.clear(),this.widgetId=void 0,this.dispatcherFrame=void 0}},{key:"push",value:function(e,t){var n;if(this.pushCallbacks=t,this.dispatcherFrame){var i=c(c({},this.defaultPayload),e);null===(n=this.dispatcherFrame.contentWindow)||void 0===n||n.postMessage(i,this.env.getConf().url)}else console.error("".concat(jr," dispatcher is not initialized."))}},{key:"setEnv",value:function(e,t){this.env.setEnv(e,t),this.create(this.onLoadCallback)}},{key:"setupIframeEventListeners",value:function(){var e=this;this.widgetId&&(this.iframeEvent.on(Fi.AFTER_LOAD,this.widgetId,(function(t){var n;null===(n=e.onLoadCallback)||void 0===n||n.call(e)})),this.iframeEvent.on(Fi.DISPATCH_SUCCESS,this.widgetId,(function(t){var n,i;null===(i=null===(n=e.pushCallbacks)||void 0===n?void 0:n.onSuccess)||void 0===i||i.call(n)})),this.iframeEvent.on(Fi.DISPATCH_ERROR,this.widgetId,(function(t){var n,i;null===(i=null===(n=e.pushCallbacks)||void 0===n?void 0:n.onError)||void 0===i||i.call(n)})))}}])}(),Wr=function(e){function t(){var e;return i(this,t),(e=n(this,t)).storageDispatcher=new zr("zipmoney.checkout.paydock"),e}return d(t,e),o(t,[{key:"getProxyRedirectUrl",value:function(){return this.widgetEnv.getConf().url+"/checkout/zipmoney/response"}},{key:"next",value:function(e,t){var n=this;this.storageDispatcher.create((function(){var i={merchant_redirect_url:n.getRedirectUrl(),checkout_token:e.token,public_key:t.public_key,gateway_id:t.gateway_id};n.storageDispatcher.push({intent:Fr.WIDGET_SESSION,data:i},{onSuccess:function(){window.location.href=e.link},onError:function(){console.error("Error initializing Zip Checkout")}})}))}},{key:"getSuccessRedirectUri",value:function(){return this.getProxyRedirectUrl()}},{key:"getErrorRedirectUri",value:function(){return this.getProxyRedirectUrl()}},{key:"setEnv",value:function(e,n){v(t,"setEnv",this)([e,n]),this.storageDispatcher.setEnv(e,n)}}])}(function(){return function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"setRedirectUrl",value:function(e){this.merchantRedirectUrl=e}},{key:"getRedirectUrl",value:function(){return this.merchantRedirectUrl}},{key:"error",value:function(e,t,n){n(!1)}}])}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr)}(Ur)),Vr=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"getSuccessRedirectUri",value:function(){return this.widgetEnv.getConf().url+Oi.extendSearchParams("/checkout/success","merchant",encodeURIComponent(window.location.href))}},{key:"getErrorRedirectUri",value:function(){return this.widgetEnv.getConf().url+Oi.extendSearchParams("/checkout/error","merchant",encodeURIComponent(window.location.href))}}])}(xr);!function(e){e.CLOSE="CANCELLED"}(Br||(Br={}));var Gr=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"getSuccessRedirectUri",value:function(){return this.widgetEnv.getConf().url+"/checkout/afterpay/merchant/{{merchant}}/success".replace("{{merchant}}",encodeURIComponent(window.btoa(window.location.href)))}},{key:"getErrorRedirectUri",value:function(){return this.widgetEnv.getConf().url+"/checkout/afterpay/merchant/{{merchant}}/error".replace("{{merchant}}",encodeURIComponent(window.btoa(window.location.href)))}},{key:"next",value:function(e,t){this.checkout=e,w.isSupportPopUp()||window.localStorage.setItem("paydock_checkout_token",JSON.stringify(this.checkout)),this.popup.redirect(this.getRedirectUrl(this.checkout,t))}},{key:"onCheckout",value:function(e,n){v(t,"onCheckout",this)([e,function(e,t){if(!(null==t?void 0:t.status))return n(e);var i=t.status,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(t,["status"]);i===Br.CLOSE?n(e,c(c({},r),{isCloseEvent:!0})):n(e,r)}])}},{key:"error",value:function(e,t,n){return!t||t&&"invalid_amount"!==t?n(!0):(this.popup.initError(e),n(!1))}},{key:"run",value:function(){this.isRunning()||(this.popup.setConfigs({width:420,height:715}),this.popup.init(),this.background.initControl())}},{key:"getRedirectUrl",value:function(e,t){return this.widgetEnv.getConf().url+"/checkout/afterpay/init?"+Oi.serialize(c(c({},t),{token:e.reference_id,env:"live"===e.mode?"live":"test"}))}}])}(xr),qr={EXTERNAL_CHECKOUT_TOKEN:"external_checkout_token",CHECKOUT_TOKEN:"checkout_token",BANK_ACCOUNT:"bank_account",CARD:"card"},Yr=function(e){function t(e,r){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qr.CARD;switch(i(this,t),(o=n(this,t)).body={gateway_id:e,type:s},s){case qr.CARD:case qr.BANK_ACCOUNT:delete r.gateway_id,delete r.type,delete r.checkout_token,o.body=c(o.body,r);break;case qr.CHECKOUT_TOKEN:case qr.EXTERNAL_CHECKOUT_TOKEN:o.body.checkout_token=r;break;default:throw new Error("Unsupported type of PaymentSourceToken")}return o}return d(t,e),o(t,[{key:"getLink",value:function(){return"/v1/payment_sources/tokens"}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){};this.create(e,this.getConfigs(),(function(e,n){return t(e)}),(function(e,t){void 0===e.message?n("unknown error"):n(e.message)}))}},{key:"getConfigs",value:function(){return this.body}}])}(yr),Kr=function(){return o((function e(t,n,r,o){var s=this;i(this,e),this.background=t,this.runner=n,this.eventEmitter=r,this.params=o,this.runner.onStop((function(){s.eventEmitter.emit(ar.CLOSE)}))}),[{key:"init",value:function(e){var t=this;this.setEnv(e),this.runner.onCheckout(Cr.SUCCESS,(function(e){t.eventEmitter.emit(ar.ACCEPTED,{}),t.background.initLoader(),t.runner.stop(),t.checkToken(e.token,(function(){t.createOneTimeToken(e.token)}))})),this.runner.onCheckout(Cr.ERROR,(function(e,n){(null==n?void 0:n.isCloseEvent)||(t.eventEmitter.emit(ar.ERROR),console.error("".concat(ur," Error from checkout server."))),t.runner.stop()})),this.runner.onCheckout(Cr.REFERRED,(function(){t.eventEmitter.emit(ar.REFERRED),t.runner.stop()})),this.runner.onCheckout(Cr.DECLINED,(function(){t.eventEmitter.emit(ar.DECLINED),t.runner.stop()})),this.eventEmitter.subscribe(ar.ERROR,(function(){t.runner.stop()})),this.eventEmitter.subscribe(ar.FINISH,(function(e){t.background.clear()}))}},{key:"setEnv",value:function(e){this.env=e}},{key:"checkToken",value:function(e,t){var n=this,i=new Er(e);i.setEnv(this.env),i.send(this.params.accessToken,(function(e){n.details=e,t()}),(function(){n.eventEmitter.emit(ar.ERROR,{}),console.error("".concat(ur," Error during creating payment source token."))}))}},{key:"createOneTimeToken",value:function(e){var t=this,n=new Yr(this.params.gatewayId,e,qr.CHECKOUT_TOKEN);n.setEnv(this.env),n.send(this.params.accessToken,(function(e){t.eventEmitter.emit(ar.FINISH,{payment_source_token:e,checkout_email:t.details.checkout_email,checkout_holder:t.details.checkout_holder,gateway_type:t.details.gateway_type})}),(function(){t.eventEmitter.emit(ar.ERROR,{}),console.error("".concat(ur," Error during creating payment source token."))}))}}])}(),Xr=function(){return o((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:or.PAYPAL,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:rr.CONTEXTUAL;i(this,e),this.accessToken=n,this.gatewayId=r,this.gatewayType=o,this.mode=s,this.window=window,this.meta={},this.env=X,this.eventEmitter=new ir,this.container=new Di(t),this.initCheckout(this.container),this.chooseRunner(o,s)}),[{key:"chooseRunner",value:function(e,t){var n=this.getRunnerByMode(e,t);this.runner=new n(this.accessToken),Pr(this.runner)?(this.background=new Tr,this.checkoutHandler=new Kr(this.background,this.runner,this.eventEmitter,{accessToken:this.accessToken,gatewayId:this.gatewayId}),this.checkoutHandler.init(this.env)):(this.background=void 0,this.checkoutHandler=void 0)}},{key:"buildAdditionalParams",value:function(){return{}}},{key:"initCheckout",value:function(e){var t=this;e.on("click",(function(e){if(Pr(t.runner)){if(t.runner.isRunning())return;t.runner.run()}else if(Lr(t.runner)&&!t.runner.getRedirectUrl())throw Error("".concat(ur," The merchant redirect URL should is required in the '").concat(t.mode,"' mode."));t.eventEmitter.emit(ar.CLICK);var n=new br(t.gatewayId,t.runner.getSuccessRedirectUri(),t.runner.getErrorRedirectUri());n.setMeta(t.meta),n.setEnv(t.env),n.send(t.accessToken,(function(e){var n=Pr(t.runner)?ar.POPUP_REDIRECT:ar.REDIRECT;t.eventEmitter.emit(n),t.runner.next(e,t.buildAdditionalParams())}),(function(e,n){console.error("".concat(ur," ").concat(e)),t.eventEmitter.emit(ar.ERROR,{error:e,code:n}),t.runner.error(e,n,(function(e){e&&t.close()}))}))}))}},{key:"on",value:function(e,t){this.eventEmitter.subscribe(e,t)}},{key:"close",value:function(){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.stop()}},{key:"onFinishInsert",value:function(e,t){this.on(ar.FINISH,(function(n){Li.insertToInput(e,t,n)}))}},{key:"setMeta",value:function(e){this.meta=c(this.meta,e)}},{key:"setBackdropDescription",value:function(e){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.setBackgroundDescription(e)}},{key:"setBackdropTitle",value:function(e){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.setBackgroundTitle(e)}},{key:"setSuspendedRedirectUri",value:function(e){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.setSuspendedRedirectUri(e)}},{key:"setRedirectUrl",value:function(e){this.assertMethodSupport(this.runner,rr.REDIRECT)&&this.runner.setRedirectUrl(e)}},{key:"getSuccessRedirectUri",value:function(){return this.runner.getSuccessRedirectUri()}},{key:"turnOffBackdrop",value:function(){this.turnOffControlBackdrop(),this.turnOffLoaderBackdrop()}},{key:"turnOffControlBackdrop",value:function(){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.turnOffBackdrop()}},{key:"turnOffLoaderBackdrop",value:function(){var e;null===(e=this.background)||void 0===e||e.turnOffLoader()}},{key:"setEnv",value:function(e,t){var n;this.env=e,this.alias=t,null===(n=this.checkoutHandler)||void 0===n||n.setEnv(e),this.runner.setEnv(e,t)}},{key:"getEnv",value:function(){return this.env}},{key:"getRunnerByMode",value:function(e,t){if(e===or.PAYPAL){if(t===rr.REDIRECT)throw Error("".concat(ur," Gateway '").concat(e,"' do not support '").concat(t,"' mode"));return Vr}if(e===or.AFTERPAY){if(t===rr.REDIRECT)throw Error("".concat(ur," Gateway '").concat(e,"' do not support '").concat(t,"' mode"));return Gr}if(e===or.ZIPMONEY)return t===rr.CONTEXTUAL?Hr:Wr;throw Error("".concat(ur," Unsupported gateway."))}},{key:"assertMethodSupport",value:function(e,t){var n="".concat(ur," The method is not supported in the '").concat(t,"' mode.");switch(t){case rr.CONTEXTUAL:if(Pr(e))return!0;console.warn(n);break;case rr.REDIRECT:if(Lr(e))return!0;console.warn(n)}return!1}}])}(),$r=function(e){function t(e,r){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rr.CONTEXTUAL;return i(this,t),(o=n(this,t,[e,r,s,or.ZIPMONEY,a])).publicKey=r,o.gatewayId=s,o.mode=a,o}return d(t,e),o(t,[{key:"setSuspendedRedirectUri",value:function(e){v(t,"setSuspendedRedirectUri",this)([e])}},{key:"setRedirectUrl",value:function(e){Pr(this.runner)&&(v(t,"chooseRunner",this)([or.ZIPMONEY,rr.REDIRECT]),v(t,"setEnv",this)([this.env,this.alias])),v(t,"setRedirectUrl",this)([e])}},{key:"buildAdditionalParams",value:function(){return c(c({},v(t,"buildAdditionalParams",this)([])),{public_key:this.publicKey,gateway_id:this.gatewayId})}}])}(Xr),Jr=function(e){function t(e,r){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";return i(this,t),(o=n(this,t,[e,r,s,or.AFTERPAY])).accessToken=r,o.gatewayId=s,o.showETP=!1,o}return d(t,e),o(t,[{key:"showEnhancedTrackingProtectionPopup",value:function(e){var t=w.getBrowserInfo(),n=t.name,i=t.version;e&&"Firefox"===n&&+i>=100&&(this.showETP=!0)}},{key:"buildAdditionalParams",value:function(){var e=v(t,"buildAdditionalParams",this)([]);return this.showETP&&(e.show_etp=!0),e}}])}(Xr),Zr=function(e){function t(e,r){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";return i(this,t),(o=n(this,t,[e,r,s,or.PAYPAL])).publicKey=r,o.gatewayId=s,o}return d(t,e),o(t)}(Xr),Qr=["live","test"];function eo(e){return Qr.includes(e)}var to={FORTER:"forter"},no={NAMESPACE:"fraudPrevention",TYPES:{FINGERPRINT_TOKEN_ERROR:"fingerprint-token-error",FINTERPRINT_TOKEN_READY:"fingerprint-token-ready"},PROVIDERS:to},io=o((function e(){i(this,e)})),ro=function(e){function t(e){var r;if(i(this,t),(r=n(this,t)).accessToken=e,"string"!=typeof e)throw new TypeError("AccessTokenStrategy expects parameter 'accessToken' to be of type string.");return r}return d(t,e),o(t,[{key:"apply",value:function(e){e.setAccessToken(this.accessToken)}}])}(io),oo=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"apply",value:function(e){}}])}(io),so=function(e){function t(e){var r;if(i(this,t),(r=n(this,t)).publicKey=e,"string"!=typeof e)throw new TypeError("AccessTokenStrategy expects parameter 'publicKey' to be of type string.");return r}return d(t,e),o(t,[{key:"apply",value:function(e){e.setPublicKey(this.publicKey)}}])}(io);function ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null==e||"object"!==y(e))return e;if(t.has(e))return t.get(e);if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e)){var n=[];return t.set(e,n),n.push.apply(n,g(e.map((function(e){return ao(e,t)})))),n}if(e instanceof Map){var i=new Map;return t.set(e,i),e.forEach((function(e,n){i.set(ao(n,t),ao(e,t))})),i}if(e instanceof Set){var r=new Set;t.set(e,r);var o,a=s(e);try{for(a.s();!(o=a.n()).done;){var c=o.value;r.add(ao(c,t))}}catch(e){a.e(e)}finally{a.f()}return r}var l={},u=Object.keys(e);t.set(e,l);for(var d=0,h=u;d<h.length;d++){var p=h[d];l[p]=ao(e[p],t)}return l}var co=function(e){return[null,e]},lo=function(e){return[e,null]},uo=function(){function e(){i(this,e),this.reportError=function(e,t,n){e.createError(t,n)},this.baseUrl="",this.headers={}}return o(e,[{key:"setAccessToken",value:function(e){return this.headers["x-access-token"]=e,this}},{key:"setBaseUrl",value:function(e){return this.baseUrl=e,this}},{key:"setBody",value:function(e){if("symbol"===y(e)||"function"==typeof e||void 0===e)throw new TypeError("HttpFetcher setBody: expected parameter 'body' to be serializable.");return this.body=e,this}},{key:"setContentTypeJson",value:function(){return this.headers["Content-Type"]="application/json; charset=UTF-8",this}},{key:"setContentTypeText",value:function(){return this.headers["Content-Type"]="text/plain; charset=UTF-8",this}},{key:"setHeaders",value:function(e){return c(this.headers,e),this}},{key:"setPublicKey",value:function(e){return this.headers["x-user-public-key"]=e,this}},{key:"setSdkVersion",value:function(){return Q.version&&(this.headers[Q.headerKeys.version]=Q.version,this.headers[Q.headerKeys.type]=Q.type),this}},{key:"execute",value:function(t,n){return ie(this,void 0,void 0,p().mark((function i(){var r,o,s,a;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r="".concat(this.baseUrl).concat(n),i.prev=1,i.next=4,fetch(r,{method:t,body:this.body?JSON.stringify(this.body):void 0,headers:this.headers});case 4:if(o=i.sent,!(o.headers.get("Content-Type")||"").includes("text/plain")){i.next=11;break}return i.next=9,o.text();case 9:return s=i.sent,i.abrupt("return",lo({statusCode:o.status,body:s}));case 11:return i.next=13,o.json();case 13:if(a=i.sent,o.ok){i.next=16;break}return i.abrupt("return",co({statusCode:o.status,body:a}));case 16:if(!("error"in a)||null===a.error){i.next=18;break}return i.abrupt("return",co({statusCode:o.status,body:a}));case 18:return i.abrupt("return",lo({statusCode:o.status,body:a}));case 21:throw i.prev=21,i.t0=i.catch(1),this.reportError(_i,i.t0,{sdkVersion:Q.version,className:e.name,classMethod:"send",environment:this.baseUrl}),i.t0;case 25:case"end":return i.stop()}}),i,this,[[1,21]])})))}},{key:"value",value:function(){return{baseUrl:this.baseUrl,headers:ao(this.headers),body:ao(this.body)}}}])}(),ho=function(){return o((function e(t){i(this,e),this.authorizationStrategyReference=t.authorizationStrategy,this.environment=t.environment}),[{key:"createFetcher",value:function(){var e=this.environment.getConf().url,t=(new uo).setBaseUrl(e).setContentTypeJson().setSdkVersion();return this.authorizationStrategyValue.apply(t),t}},{key:"authorizationStrategyValue",get:function(){return"function"==typeof this.authorizationStrategyReference?this.authorizationStrategyReference():this.authorizationStrategyReference}}])}(),po="ftr:tokenReady",fo=function(){return o((function e(t){i(this,e),this.cookieToken=null,this.validateCsp(t.csp),this.validateMode(t.mode),this.validateSiteId(t.siteId),this.config=t}),[{key:"token",get:function(){return this.cookieToken}},{key:"init",value:function(){return this.subscribeSdkEvents(),this.injectScript(),this}},{key:"emit",value:function(e){var t=new CustomEvent(no.NAMESPACE,{detail:e});document.dispatchEvent(t)}},{key:"emitFingerprintTokenWrongTypeError",value:function(){this.emit({type:no.TYPES.FINGERPRINT_TOKEN_ERROR,provider:no.PROVIDERS.FORTER,payload:{code:"unexpected_token_type",message:"Forter JavaScript SDK created a fingerprint token but it was not of the expected string type. Please contact our support team if the issue persists."}})}},{key:"emitFingerprintTokenReady",value:function(){this.emit({type:no.TYPES.FINTERPRINT_TOKEN_READY,provider:no.PROVIDERS.FORTER,payload:{token:this.cookieToken}})}},{key:"getScriptContent",value:function(){return'\n(function () {\n var merchantConfig = {\n csp: %CSP%\n };\n\n var siteId = "%SITE_ID%";\n\n function t(t,e){for(var n=t.split(""),r=0;r<n.length;++r)n[r]=String.fromCharCode(n[r].charCodeAt(0)+e);return n.join("")}function e(e){return t(e,-_).replace(/%SN%/g,siteId)}function n(t){try{if("number"==typeof t&&window.location&&window.location.pathname){for(var e=window.location.pathname.split("/"),n=[],r=0;r<=Math.min(e.length-1,Math.abs(t));r++)n.push(e[r]);return n.join("/")||"/"}}catch(t){}return"/"}function r(t){try{Q.ex=t,o()&&-1===Q.ex.indexOf(X.uB)&&(Q.ex+=X.uB),i()&&-1===Q.ex.indexOf(X.uBr)&&(Q.ex+=X.uBr),a()&&-1===Q.ex.indexOf(X.nIL)&&(Q.ex+=X.nIL),window.ftr__snp_cwc||(Q.ex+=X.s),B(Q)}catch(t){}}function o(){var t="no"+"op"+"fn",e="g"+"a",n="n"+"ame";return window[e]&&window[e][n]===t}function i(){return!(!navigator.brave||"function"!=typeof navigator.brave.isBrave)}function a(){return document.currentScript&&document.currentScript.src}function c(t,e){function n(o){try{o.blockedURI===t&&(e(),document.removeEventListener(r,n))}catch(t){document.removeEventListener(r,n)}}var r="securitypolicyviolation";document.addEventListener(r,n),setTimeout(function(){document.removeEventListener(r,n)},2*60*1e3)}function u(t,e,n,r){var o=!1;t="https://"+t,c(t,function(){r(!0),o=!0});var i=document.createElement("script");i.onerror=function(){if(!o)try{r(!1),o=!0}catch(t){}},i.onload=n,i.type="text/javascript",i.id="ftr__script",i.async=!0,i.src=t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a)}function f(){tt(X.uDF),setTimeout(w,N,X.uDF)}function s(t,e,n,r){var o=!1,i=new XMLHttpRequest;if(c("https:"+t,function(){n(new Error("CSP Violation"),!0),o=!0}),"//"===t.slice(0,2)&&(t="https:"+t),"withCredentials"in i)i.open("GET",t,!0);else{if("undefined"==typeof XDomainRequest)return;i=new XDomainRequest,i.open("GET",t)}Object.keys(r).forEach(function(t){i.setRequestHeader(t,r[t])}),i.onload=function(){"function"==typeof e&&e(i)},i.onerror=function(t){if("function"==typeof n&&!o)try{n(t,!1),o=!0}catch(t){}},i.onprogress=function(){},i.ontimeout=function(){"function"==typeof n&&n("tim"+"eo"+"ut",!1)},setTimeout(function(){i.send()},0)}function d(t,siteId,e){function n(t){var e=t.toString(16);return e.length%2?"0"+e:e}function r(t){if(t<=0)return"";for(var e="0123456789abcdef",n="",r=0;r<t;r++)n+=e[Math.floor(Math.random()*e.length)];return n}function o(t){for(var e="",r=0;r<t.length;r++)e+=n(t.charCodeAt(r));return e}function i(t){for(var e=t.split(""),n=0;n<e.length;++n)e[n]=String.fromCharCode(255^e[n].charCodeAt(0));return e.join("")}e=e?"1":"0";var a=[];return a.push(t),a.push(siteId),a.push(e),function(t){var e=40,n="";return t.length<e/2&&(n=","+r(e/2-t.length-1)),o(i(t+n))}(a.join(","))}function h(){function t(){F&&(tt(X.dUAL),setTimeout(w,N,X.dUAL))}function e(t,e){r(e?X.uAS+X.uF+X.cP:X.uAS+X.uF),F="F"+"T"+"R"+"A"+"U",setTimeout(w,N,X.uAS)}window.ftr__fdad(t,e)}function l(){function t(){F&&setTimeout(w,N,X.uDAD)}function e(t,e){r(e?X.uDS+X.uF+X.cP:X.uDS+X.uF),F="F"+"T"+"R"+"A"+"U",setTimeout(w,N,X.uDS)}window.ftr__radd(t,e)}function w(t){try{var e;switch(t){case X.uFP:e=O;break;case X.uDF:e=M;break;default:e=F}if(!e)return;var n=function(){try{et(),r(t+X.uS)}catch(t){}},o=function(e){try{et(),Q.td=1*new Date-Q.ts,r(e?t+X.uF+X.cP:t+X.uF),t===X.uFP&&f(),t===X.uDF&&(I?l():h()),t!==X.uAS&&t!==X.dUAL||I||l(),t!==X.uDS&&t!==X.uDAD||I&&h()}catch(t){r(X.eUoe)}};if(e==="F"+"T"+"R"+"A"+"U")return void o();u(e,void 0,n,o)}catch(e){r(t+X.eTlu)}}var g="22ge:t7mj8unkn;1forxgiurqw1qhw2vwdwxv",v="fort",p="erTo",m="ken",_=3;window.ftr__config={m:merchantConfig,s:"24",si:siteId};var y=!1,U=!1,T=v+p+m,x=400*24*60,A=10,S={write:function(t,e,r,o){void 0===o&&(o=!0);var i=0;window.ftr__config&&window.ftr__config.m&&window.ftr__config.m.ckDepth&&(i=window.ftr__config.m.ckDepth);var a,c,u=n(i);if(r?(a=new Date,a.setTime(a.getTime()+60*r*1e3),c="; expires="+a.toGMTString()):c="",!o)return void(document.cookie=escape(t)+"="+escape(e)+c+"; path="+u);for(var f=1,s=document.domain.split("."),d=A,h=!0;h&&s.length>=f&&d>0;){var l=s.slice(-f).join(".");document.cookie=escape(t)+"="+escape(e)+c+"; path="+u+"; domain="+l;var w=S.read(t);null!=w&&w==e||(l="."+l,document.cookie=escape(t)+"="+escape(e)+c+"; path="+u+"; domain="+l),h=-1===document.cookie.indexOf(t+"="+e),f++,d--}},read:function(t){var e=null;try{for(var n=escape(t)+"=",r=document.cookie.split(";"),o=32,i=0;i<r.length;i++){for(var a=r[i];a.charCodeAt(0)===o;)a=a.substring(1,a.length);0===a.indexOf(n)&&(e=unescape(a.substring(n.length,a.length)))}}finally{return e}}},D=window.ftr__config.s;D+="ck";var L=function(t){var e=!1,n=null,r=function(){try{if(!n||!e)return;n.remove&&"function"==typeof n.remove?n.remove():document.head.removeChild(n),e=!1}catch(t){}};document.head&&(!function(){n=document.createElement("link"),n.setAttribute("rel","pre"+"con"+"nect"),n.setAttribute("cros"+"sori"+"gin","anonymous"),n.onload=r,n.onerror=r,n.setAttribute("href",t),document.head.appendChild(n),e=!0}(),setTimeout(r,3e3))},E=e(g||"22ge:t7mj8unkn;1forxgiurqw1qhw2vwdwxv"),C=t("[0Uhtxhvw0LG",-_),R=t("[0Fruuhodwlrq0LG",-_),P=t("Li0Qrqh0Pdwfk",-_),k=e("dss1vlwhshuirupdqfhwhvw1qhw"),q=e("2241414142gqv0txhu|"),F,b="fgq71iruwhu1frp",M=e("(VQ(1"+b+"2vq2(VQ(2vfulsw1mv"),V=e("(VQ(1"+b+"2vqV2(VQ(2vfulsw1mv"),O;window.ftr__config&&window.ftr__config.m&&window.ftr__config.m.fpi&&(O=window.ftr__config.m.fpi+e("2vq2(VQ(2vfulsw1mv"));var I=!1,N=10;window.ftr__startScriptLoad=1*new Date;var j=function(t){var e="ft"+"r:tok"+"enR"+"eady";window.ftr__tt&&clearTimeout(window.ftr__tt),window.ftr__tt=setTimeout(function(){try{delete window.ftr__tt,t+="_tt";var n=document.createEvent("Event");n.initEvent(e,!1,!1),n.detail=t,document.dispatchEvent(n)}catch(t){}},1e3)},B=function(t){var e=function(t){return t||""},n=e(t.id)+"_"+e(t.ts)+"_"+e(t.td)+"_"+e(t.ex)+"_"+e(D),r=x;!isNaN(window.ftr__config.m.ckTTL)&&window.ftr__config.m.ckTTL&&(r=window.ftr__config.m.ckTTL),S.write(T,n,r,!0),j(n),window.ftr__gt=n},G=function(){var t=S.read(T)||"",e=t.split("_"),n=function(t){return e[t]||void 0};return{id:n(0),ts:n(1),td:n(2),ex:n(3),vr:n(4)}},H=function(){for(var t={},e="fgu",n=[],r=0;r<256;r++)n[r]=(r<16?"0":"")+r.toString(16);var o=function(t,e,r,o,i){var a=i?"-":"";return n[255&t]+n[t>>8&255]+n[t>>16&255]+n[t>>24&255]+a+n[255&e]+n[e>>8&255]+a+n[e>>16&15|64]+n[e>>24&255]+a+n[63&r|128]+n[r>>8&255]+a+n[r>>16&255]+n[r>>24&255]+n[255&o]+n[o>>8&255]+n[o>>16&255]+n[o>>24&255]},i=function(){if(window.Uint32Array&&window.crypto&&window.crypto.getRandomValues){var t=new window.Uint32Array(4);return window.crypto.getRandomValues(t),{d0:t[0],d1:t[1],d2:t[2],d3:t[3]}}return{d0:4294967296*Math.random()>>>0,d1:4294967296*Math.random()>>>0,d2:4294967296*Math.random()>>>0,d3:4294967296*Math.random()>>>0}},a=function(){var t="",e=function(t,e){for(var n="",r=t;r>0;--r)n+=e.charAt(1e3*Math.random()%e.length);return n};return t+=e(2,"0123456789"),t+=e(1,"123456789"),t+=e(8,"0123456789")};return t.safeGenerateNoDash=function(){try{var t=i();return o(t.d0,t.d1,t.d2,t.d3,!1)}catch(t){try{return e+a()}catch(t){}}},t.isValidNumericalToken=function(t){return t&&t.toString().length<=11&&t.length>=9&&parseInt(t,10).toString().length<=11&&parseInt(t,10).toString().length>=9},t.isValidUUIDToken=function(t){return t&&32===t.toString().length&&/^[a-z0-9]+$/.test(t)},t.isValidFGUToken=function(t){return 0==t.indexOf(e)&&t.length>=12},t}(),X={uDF:"UDF",dUAL:"dUAL",uAS:"UAS",uDS:"UDS",uDAD:"UDAD",uFP:"UFP",mLd:"1",eTlu:"2",eUoe:"3",uS:"4",uF:"9",tmos:["T5","T10","T15","T30","T60"],tmosSecs:[5,10,15,30,60],bIR:"43",uB:"u",uBr:"b",cP:"c",nIL:"i",s:"s"};try{var Q=G();try{Q.id&&(H.isValidNumericalToken(Q.id)||H.isValidUUIDToken(Q.id)||H.isValidFGUToken(Q.id))?window.ftr__ncd=!1:(Q.id=H.safeGenerateNoDash(),window.ftr__ncd=!0),Q.ts=window.ftr__startScriptLoad,B(Q),window.ftr__snp_cwc=!!S.read(T),window.ftr__snp_cwc||(M=V);for(var $="for"+"ter"+".co"+"m",z="ht"+"tps://c"+"dn9."+$,J="ht"+"tps://"+Q.id+"-"+siteId+".cd"+"n."+$,K="http"+"s://cd"+"n3."+$,W=[z,J,K],Y=0;Y<W.length;Y++)L(W[Y]);var Z=new Array(X.tmosSecs.length),tt=function(t){for(var e=0;e<X.tmosSecs.length;e++)Z[e]=setTimeout(r,1e3*X.tmosSecs[e],t+X.tmos[e])},et=function(){for(var t=0;t<X.tmosSecs.length;t++)clearTimeout(Z[t])};window.ftr__fdad=function(e,n){if(!y){y=!0;var r={};r[P]=d(window.ftr__config.s,siteId,window.ftr__config.m.csp),s(E,function(n){try{var r=n.getAllResponseHeaders().toLowerCase();if(r.indexOf(R.toLowerCase())>=0){var o=n.getResponseHeader(R);window.ftr__altd2=t(atob(o),-_-1)}if(r.indexOf(C.toLowerCase())<0)return;var i=n.getResponseHeader(C),a=t(atob(i),-_-1);if(a){var c=a.split(":");if(c&&2===c.length){for(var u=c[0],f=c[1],s="",d=0,h=0;d<20;++d)s+=d%3>0&&h<12?siteId.charAt(h++):Q.id.charAt(d);var l=f.split(",");if(l.length>1){var w=l[0],g=l[1];F=u+"/"+w+"."+s+"."+g}}}e()}catch(t){}},function(t,e){n&&n(t,e)},r)}},window.ftr__radd=function(t,e){function n(e){try{var n=e.response,r=function(t){function e(t,o,i){try{if(i>=n)return{name:"",nextOffsetToProcess:o,error:"Max pointer dereference depth exceeded"};for(var a=[],c=o,u=t.getUint8(c),f=0;f<r;){if(f++,192==(192&u)){var s=(63&u)<<8|t.getUint8(c+1),d=e(t,s,i+1);if(d.error)return d;var h=d.name;return a.push(h),{name:a.join("."),nextOffsetToProcess:c+2}}if(!(u>0)){if(0!==u)return{name:"",nextOffsetToProcess:c,error:"Unexpected length at the end of name: "+u.toString()};return{name:a.join("."),nextOffsetToProcess:c+1}}for(var l="",w=1;w<=u;w++)l+=String.fromCharCode(t.getUint8(c+w));a.push(l),c+=u+1,u=t.getUint8(c)}return{name:"",nextOffsetToProcess:c,error:"Max iterations exceeded"}}catch(t){return{name:"",nextOffsetToProcess:o,error:"Unexpected error while parsing response: "+t.toString()}}}for(var n=4,r=100,o=16,i=new DataView(t),a=i.getUint16(0),c=i.getUint16(2),u=i.getUint16(4),f=i.getUint16(6),s=i.getUint16(8),d=i.getUint16(10),h=12,l=[],w=0;w<u;w++){var g=e(i,h,0);if(g.error)throw new Error(g.error);if(h=g.nextOffsetToProcess,!Number.isInteger(h))throw new Error("invalid returned offset");var v=g.name,p=i.getUint16(h);h+=2;var m=i.getUint16(h);h+=2,l.push({qname:v,qtype:p,qclass:m})}for(var _=[],w=0;w<f;w++){var g=e(i,h,0);if(g.error)throw new Error(g.error);if(h=g.nextOffsetToProcess,!Number.isInteger(h))throw new Error("invalid returned offset");var y=g.name,U=i.getUint16(h);if(U!==o)throw new Error("Unexpected record type: "+U.toString());h+=2;var T=i.getUint16(h);h+=2;var x=i.getUint32(h);h+=4;var A=i.getUint16(h);h+=2;for(var S="",D=h,L=0;D<h+A&&L<r;){L++;var E=i.getUint8(D);D+=1;S+=(new TextDecoder).decode(t.slice(D,D+E)),D+=E}if(L>=r)throw new Error("Max iterations exceeded while reading TXT data");h+=A,_.push({name:y,type:U,class:T,ttl:x,data:S})}return{transactionId:a,flags:c,questionCount:u,answerCount:f,authorityCount:s,additionalCount:d,questions:l,answers:_}}(n);if(!r)throw new Error("Error parsing DNS response");if(!("answers"in r))throw new Error("Unexpected response");var o=r.answers;if(0===o.length)throw new Error("No answers found");var i=o[0].data;if(i=i.replace(/^"(.*)"$/,"$1"),decodedVal=function(t){var e=40,n=32,r=126;try{for(var o=atob(t),i="",a=0;a<o.length;a++)i+=function(t){var o=t.charCodeAt(0),i=o-e;return i<n&&(i=r-(n-i)+1),String.fromCharCode(i)}(o[a]);return atob(i)}catch(t){return}}(i),!decodedVal)throw new Error("failed to decode the value");var a=function(t){var e="_"+"D"+"L"+"M"+"_",n=t.split(e);if(!(n.length<2)){var r=n[0],o=n[1];if(!(r.split(".").length-1<1))return{jURL:r,eURL:o}}}(decodedVal);if(!a)throw new Error("failed to parse the value");var c=a.jURL,u=a.eURL;F=function(t){for(var e="",n=0,r=0;n<20;++n)e+=n%3>0&&r<12?siteId.charAt(r++):Q.id.charAt(n);return t.replace("/PRM1","").replace("/PRM2","/main.").replace("/PRM3",e).replace("/PRM4",".js")}(c),window.ftr__altd3=u,t()}catch(t){}}function r(t,n){e&&e(t,n)}if(!U){window.ftr__config.m.dr==="N"+"D"+"R"&&e(new Error("N"+"D"+"R"),!1),q&&k||e(new Error("D"+"P"+"P"),!1),U=!0;try{var o=function(t){for(var e=new Uint8Array([0,0]),n=new Uint8Array([1,0]),r=new Uint8Array([0,1]),o=new Uint8Array([0,0]),i=new Uint8Array([0,0]),a=new Uint8Array([0,0]),c=t.split("."),u=[],f=0;f<c.length;f++){var s=c[f];u.push(s.length);for(var d=0;d<s.length;d++)u.push(s.charCodeAt(d))}u.push(0);var h=16,l=new Uint8Array([0,h]),w=new Uint8Array([0,1]),g=new Uint8Array(e.length+n.length+r.length+o.length+i.length+a.length+u.length+l.length+w.length);return g.set(e,0),g.set(n,e.length),g.set(r,e.length+n.length),g.set(o,e.length+n.length+r.length),g.set(i,e.length+n.length+r.length+o.length),g.set(a,e.length+n.length+r.length+o.length+i.length),g.set(u,e.length+n.length+r.length+o.length+i.length+a.length),g.set(l,e.length+n.length+r.length+o.length+i.length+a.length+u.length),g.set(w,e.length+n.length+r.length+o.length+i.length+a.length+u.length+l.length),g}(k);!function(t,e,n,r,o){var i=!1,a=new XMLHttpRequest;if(c("https:"+t,function(){o(new Error("CSP Violation"),!0),i=!0}),"//"===t.slice(0,2)&&(t="https:"+t),"withCredentials"in a)a.open("POST",t,!0);else{if("undefined"==typeof XDomainRequest)return;a=new XDomainRequest,a.open("POST",t)}a.responseType="arraybuffer",a.setRequestHeader("Content-Type",e),a.onload=function(){"function"==typeof r&&r(a)},a.onerror=function(t){if("function"==typeof o&&!i)try{o(t,!1),i=!0}catch(t){}},a.onprogress=function(){},a.ontimeout=function(){"function"==typeof o&&o("tim"+"eo"+"ut",!1)},setTimeout(function(){a.send(n)},0)}(q,"application/dns-message",o,n,r)}catch(t){e(t,!1)}}};var nt=O?X.uFP:X.uDF;tt(nt),setTimeout(w,N,nt)}catch(t){r(X.mLd)}}catch(t){}}\n)();\n'.replace("%CSP%",String(this.config.csp)).replace("%SITE_ID%",this.config.siteId)}},{key:"injectScript",value:function(){var e=document.createElement("script");e.type="text/javascript",e.id=this.config.siteId,e.textContent=this.getScriptContent(),document.body.appendChild(e)}},{key:"subscribeSdkEvents",value:function(){var e=this;document.addEventListener(po,(function(t){"string"==typeof t.detail?(e.cookieToken=t.detail,e.emitFingerprintTokenReady()):e.emitFingerprintTokenWrongTypeError()}))}},{key:"validateCsp",value:function(e){if(void 0!==e&&"boolean"!=typeof e)throw new TypeError("ForterDeviceAgent config 'csp' is optional, when set it must be of type boolean.")}},{key:"validateMode",value:function(e){if(!eo(e))throw new TypeError("ForterDeviceAgent: forter integration can not be initiated with the provided mode '".concat(e,"'"))}},{key:"validateSiteId",value:function(e){if("string"!=typeof e)throw new TypeError("ForterDeviceAgent config 'siteId' is required and must be of type string.")}}])}();function mo(e,t,n){return ie(this,void 0,void 0,p().mark((function i(){var r,o,s,a;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,e.execute("GET","/v1/services/".concat(n,"/config"));case 2:if(r=i.sent,o=m(r,2),s=o[0],!(a=o[1])){i.next=8;break}return i.abrupt("return",[null,a.body.error]);case 8:i.t0=t,i.next=i.t0===to.FORTER?11:12;break;case 11:return i.abrupt("return",[{provider:to.FORTER,siteId:s.body.resource.data.username,subsiteId:s.body.resource.data.merchant},null]);case 12:throw new Error("findServiceConfig does not support provider ".concat(t,"."));case 13:case"end":return i.stop()}}),i)})))}var vo,go,Co=function(){return o((function e(t){var n=this;i(this,e),this.authorizationStrategy=new oo,this.forterDeviceAgent=null,this.validateEnvironmentId(t.environmentId),this.validateEnvironmentAlias(t.environmentAlias),this.environment=new Z(q),this.environment.setEnv(t.environmentId,t.environmentAlias),this.validateMode(t.mode),this.mode=t.mode,this.httpFetcherFactory=new ho({authorizationStrategy:function(){return n.authorizationStrategy},environment:this.environment})}),[{key:"withAuthorization",value:function(e){return De.isJwt(e)?this.withAccessTokenStrategy(e):this.withPublicKeyStrategy(e)}},{key:"withAccessTokenStrategy",value:function(e){return this.authorizationStrategy=new ro(e),this}},{key:"withPublicKeyStrategy",value:function(e){return this.authorizationStrategy=new so(e),this}},{key:"withForter",value:function(e){return ie(this,void 0,void 0,p().mark((function t(){var n,i,r,o,s,a=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=function(t,n){return ie(a,void 0,void 0,p().mark((function i(){return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return this.forterDeviceAgent=new fo({csp:e.csp,mode:this.mode,siteId:null!=t?t:n}).init(),i.abrupt("return",Promise.resolve(this));case 2:case"end":return i.stop()}}),i,this)})))},!("siteId"in e&&"string"==typeof e.siteId)){t.next=4;break}return t.abrupt("return",n(e.siteId,void 0));case 4:if(!("providerId"in e&&"string"==typeof e.providerId)||!this.authorizationStrategy){t.next=15;break}return t.next=8,this.getProviderCredentials(to.FORTER,e.providerId);case 8:if(i=t.sent,r=m(i,2),o=r[0],!(s=r[1])){t.next=14;break}throw new Error("FraudPreventionService could not obtain forter integration credentials from providerId '".concat(e.providerId,"'. Cause: ").concat(s instanceof Error?s.message:JSON.stringify(s),";"));case 14:return t.abrupt("return",n(o.siteId,o.subsiteId));case 15:throw new TypeError("FraudPreventionService withForter expects either config 'siteId' or config 'providerId' to be of type string.");case 16:case"end":return t.stop()}}),t,this)})))}},{key:"forter",get:function(){return this.forterDeviceAgent}},{key:"getProviderCredentials",value:function(e,t){return ie(this,void 0,void 0,p().mark((function n(){var i;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=this.httpFetcherFactory.createFetcher(),n.abrupt("return",mo(i,e,t));case 2:case"end":return n.stop()}}),n,this)})))}},{key:"validateEnvironmentId",value:function(e){if("string"!=typeof e)throw new TypeError("FraudPreventionService expects config 'environmentId' to be of type string.")}},{key:"validateEnvironmentAlias",value:function(e){if(e&&"string"!=typeof e)throw new TypeError("FraudPreventionService expects config 'domain' to be of type string when it is provided.")}},{key:"validateMode",value:function(e){if(!eo(e))throw new TypeError("FraudPreventionService expects config 'mode' to be of type string and one of ".concat(Qr.join(","),"."))}}])}(),yo=function(){return o((function e(){i(this,e)}),null,[{key:"values",value:function(e){return Object.keys(e).map((function(t){return e[t]}))}}])}(),bo=function(){return o((function e(t,n){i(this,e),this.configs=[],this.configTokens=[],this.link=new Pi("/payment-sources"),this.link.setParams(c({query_token:n},De.validateJWT(t)?{access_token:t}:{public_key:t})),Q.version&&this.link.setParams({sdk_version:Q.version,sdk_type:Q.type})}),[{key:"setStyles",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setStyle(t,e[t])}},{key:"setStyle",value:function(e,t){-1!==yo.values(pr).indexOf(e)?this.link.setParams(a({},e,t)):console.warn("Widget::setStyle[s: unsupported style param ".concat(e))}},{key:"setRefId",value:function(e){this.link.setParams({ref_id:e})}},{key:"setLimit",value:function(e){this.link.setParams({limit:e})}},{key:"setEnv",value:function(e,t){for(var n in this.link.setEnv(e,t),this.configs)this.configs.hasOwnProperty(n)&&this.configs[n].setEnv(e,t)}},{key:"getEnv",value:function(){this.link.getEnv()}},{key:"getIFrameUrl",value:function(){return this.link.getUrl()}},{key:"filterByGatewayIds",value:function(e){this.link.setParams({gateway_ids:e.join(",")})}},{key:"filterByTypes",value:function(e){var t,n=[],i=s(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.hasOwnProperty(r)&&(-1===yo.values(dr).indexOf(r)?console.warn("PaymentSourceWidget::filterByTypes: unsupported type ".concat(r)):n.push(r))}}catch(e){i.e(e)}finally{i.f()}this.link.setParams({payment_source_types:n.join(",")})}},{key:"setLanguage",value:function(e){this.link.setParams({language:e})}}])}(),Eo=function(e){function t(e,r,o){var s;return i(this,t),(s=n(this,t,[r,o])).container=new Di(e),s.iFrame=new Ui(s.container),s.event=new Hi(window),s}return d(t,e),o(t,[{key:"load",value:function(){this.iFrame.load(this.getIFrameUrl(),{title:"Payment Sources"})}},{key:"on",value:function(e,t){this.event.on(e,this.link.getParams().widget_id,t)}},{key:"hide",value:function(e){console.info("PayDock SDK"),this.iFrame.hide(e)}},{key:"show",value:function(){this.iFrame.show()}},{key:"reload",value:function(){this.iFrame.remove(),this.load()}},{key:"onSelectInsert",value:function(e,t){this.on(Fi.SELECT,(function(n){Li.insertToInput(e,t,n)}))}}])}(bo);!function(e){e.IFRAME_LOADED="iframeLoaded",e.CHECKOUT_READY="checkoutReady",e.CHECKOUT_COMPLETED="checkoutCompleted",e.CHECKOUT_ERROR="checkoutError",e.CHECKOUT_POPUP_OPEN="checkoutPopupOpen",e.CHECKOUT_POPUP_CLOSE="checkoutPopupClose"}(vo||(vo={})),function(e){e.CRITICAL_ERROR="CriticalError",e.USER_ERROR="UserError",e.SUCCESS="Success"}(go||(go={}));var wo,_o={PRIMARY_BUTTON_COLOR:"primary_button_color",SECONDARY_BUTTON_COLOR:"secondary_button_color",PRIMARY_BUTTON_TEXT_COLOR:"primary_button_text_color",SECONDARY_BUTTON_TEXT_COLOR:"secondary_button_text_color",FONT_FAMILY:"font_family",ENABLE_SRC_POPUP:"enable_src_popup"},ko=function(){return o((function e(t,n,r,o,s,a,l,u){i(this,e),this.meta=o,this.eventEmitter=s,this.autoResize=a,this.link=new Pi("/secure-remote-commerce/mastercard"),this.link.setParams(c({service_id:n,public_key:r},o&&{meta:JSON.stringify(o)})),Q.version&&this.link.setParams({sdk_version:Q.version,sdk_type:Q.type}),l&&this.link.setEnv(l,u),this.iFrameContainer=new Di(t),this.iFrame=new Ui(this.iFrameContainer),this.iFrameEvent=new Hi(window),this.setupIFrameEvents()}),[{key:"setupIFrameEvents",value:function(){var e=this,t=this.link.getParams().widget_id;t&&(this.iFrameEvent.on(vo.CHECKOUT_READY,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_READY,n)})),this.iFrameEvent.on(vo.CHECKOUT_COMPLETED,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_COMPLETED,n)})),this.iFrameEvent.on(vo.CHECKOUT_POPUP_OPEN,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_POPUP_OPEN,n)})),this.iFrameEvent.on(vo.CHECKOUT_POPUP_CLOSE,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_POPUP_CLOSE,n)})),this.iFrameEvent.on(vo.CHECKOUT_ERROR,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_ERROR,n)})),this.autoResize&&this.useAutoResize(!0))}},{key:"load",value:function(){var e=this;this.iFrame.load(this.link.getUrl(),{title:"Click To Pay checkout"});var t=this.iFrame.getElement();this.iFrame.setStyle("width","100%"),t&&(t.setAttribute("allow","payment; accelerometer;"),t.onload=function(){return e.eventEmitter.emit(vo.IFRAME_LOADED,{})})}},{key:"getEnv",value:function(){return this.link.getEnv()}},{key:"hideCheckout",value:function(e){this.iFrame&&this.iFrame.hide()}},{key:"showCheckout",value:function(){this.iFrame&&this.iFrame.show()}},{key:"reload",value:function(){this.iFrame.remove(),this.load()}},{key:"useAutoResize",value:function(e){var t=this;if(!this.autoResize||e){this.autoResize=!0;var n=this.link.getParams();(null==n?void 0:n.widget_id)&&this.iFrameEvent.on("resize",n.widget_id,(function(e){var n,i,r=e.data,o=t.iFrame.getElement();o&&(o.scrolling="no",(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.height)&&t.iFrame.setStyle("height",(null===(i=null==r?void 0:r.data)||void 0===i?void 0:i.height)+"px"))}))}}}])}(),So=function(){return o((function e(t,n,r,o){i(this,e),this.iframe_selector=t,this.service_id=n,this.public_key_or_access_token=r,this.meta=o,this.autoResize=!1,this.style={},this.api=new er(r,Ei.PUBLIC_KEY),this.eventEmitter=new ir}),[{key:"setStyles",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setStyle(t,e[t])}},{key:"setStyle",value:function(e,t){-1!==yo.values(_o).indexOf(e)?this.style[e]=t:console.warn("Widget::setStyle[s: unsupported style param ".concat(e))}},{key:"load",value:function(){var e=this;this.provider||this.api.service().getConfig(this.service_id).then((function(t){var n=t.type;if(e.meta.customizations=e.style,n===Bi.MASTERCARD_SRC)e.provider=new ko(e.iframe_selector,e.service_id,e.public_key_or_access_token,e.meta,e.eventEmitter,e.autoResize,e.env,e.alias);e.provider&&e.provider.load()}))}},{key:"setEnv",value:function(e,t){this.provider||(this.env=e,this.alias=t,this.api.setEnv(e,t))}},{key:"getEnv",value:function(){return this.provider?this.provider.getEnv():this.env}},{key:"on",value:function(e,t){var n=this;return"function"==typeof t?this.eventEmitter.subscribe(e,t):new Promise((function(t){return n.eventEmitter.subscribe(e,(function(e){return t(e)}))}))}},{key:"hideCheckout",value:function(e){this.provider&&"function"==typeof this.provider.hideCheckout&&this.provider.hideCheckout(e)}},{key:"showCheckout",value:function(){this.provider&&"function"==typeof this.provider.showCheckout&&this.provider.showCheckout()}},{key:"reload",value:function(){this.provider&&this.provider.reload()}},{key:"useAutoResize",value:function(){this.autoResize=!0,this.provider&&"function"==typeof this.provider.useAutoResize&&this.provider.useAutoResize()}}])}(),To=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r,o,s])).iframe_selector=e,a.service_id=r,a.public_key_or_access_token=o,a.meta=s,a}return d(t,e),o(t,[{key:"load",value:function(){this.provider||(this.meta.customizations=this.style,this.provider=new ko(this.iframe_selector,this.service_id,this.public_key_or_access_token,this.meta,this.eventEmitter,this.autoResize,this.env,this.alias),this.provider.load())}}])}(So),Mo={SUBMIT_FORM:"submit_form",CHANGE_TAB:"tab",HIDE_ELEMENTS:"hide_elements",SHOW_ELEMENTS:"show_elements",REFRESH_CHECKOUT:"refresh_checkout",UPDATE_FORM_VALUES:"update_form_values",INIT_CHECKOUT:"init_checkout"},Ao=function(){return o((function e(t){i(this,e),this.iFrame=t}),[{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.iFrame.isExist()){-1===yo.values(Mo).indexOf(e)&&console.warn("unsupported trigger type");var n={trigger:e,destination:"widget.paydock",data:t};this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(n),"*")}}}])}();!function(e){e.AFTER_LOAD="after_load",e.SYSTEM_ERROR="system_error",e.CVV_SECURE_CODE_REQUESTED="cvv_secure_code_requested",e.CARD_NUMBER_SECURE_CODE_REQUESTED="card_number_secure_code_requested",e.ACCESS_FORBIDDEN="access_forbidden",e.SESSION_EXPIRED="session_expired",e.OPERATION_FORBIDDEN="operation_forbidden"}(wo||(wo={}));var No,Oo,Io=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"on",value:function(e,t,n){for(var i in wo)wo.hasOwnProperty(i)&&e===wo[i]&&this.listeners.push({event:e,listener:n,widget_id:t})}}])}(Hi),Ro=function(){return o((function e(t,n){i(this,e),this.validationData={},this.configs=[],this.container=new Di(t),this.iFrame=new Ui(this.container),this.triggerElement=new Ao(this.iFrame),this.event=new Io(window),this.vaultDisplayToken=n,this.link=new Pi("/vault-display"),this.link.setParams({vault_display_token:n})}),[{key:"setEnv",value:function(e,t){this.link.setEnv(e,t)}},{key:"on",value:function(e,t){var n=this;return"function"==typeof t?this.event.on(e,this.link.getParams().widget_id,t):new Promise((function(t){return n.event.on(e,n.link.getParams().widget_id,(function(e){return t(e)}))}))}},{key:"setStyles",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setStyle(t,e[t])}},{key:"setStyle",value:function(e,t){-1!==yo.values(pr).indexOf(e)?this.link.setParams(a({},e,t)):console.warn("Widget::setStyle[s: unsupported style param ".concat(e))}},{key:"load",value:function(){this.iFrame.load(this.link.getUrl(),{title:"Vault Display"})}}])}(),xo={UNAVAILABLE:"unavailable",UPDATE:"update",PAYMENT_METHOD_SELECTED:"payment_method_selected",PAYMENT_SUCCESS:"payment_success",PAYMENT_IN_REVIEW:"payment_in_review",PAYMENT_ERROR:"payment_error",CALLBACK:"callback",AUTH_TOKENS_CHANGED:"auth_tokens_changed",BUTTON_CLICK:"button_click",CHECKOUT_OPEN:"checkout_open",CHECKOUT_CLOSE:"checkout_close"},Po=function(){return o((function e(t,n){i(this,e),this.publicKey=t,this.meta=n,this.env=X,this.eventEmitter=new ir,this.initializeChildWallets()}),[{key:"initializeChildWallets",value:function(){this.childWallets=[]}},{key:"getGatewayName",value:function(){throw new Error("Method not implemented")}},{key:"setEnv",value:function(e){return this.env=e,this}},{key:"load",value:function(e){this.childWallets.forEach((function(t){return t.load(e)}))}},{key:"update",value:function(e){}},{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"on",value:function(e,t){var n=this;if(-1===yo.values(xo).indexOf(e))throw new Error("invalid wallet event");return"function"==typeof t?this.eventEmitter.subscribe(e,t):new Promise((function(t){return n.eventEmitter.subscribe(e,(function(e){return t(e)}))}))}}])}(),Lo=function(e){function t(e,r){var o;return i(this,t),(o=n(this,t,[e,r])).CHECKOUT_URL=window.location.href,o.token=e,o.isRedirectMode=!(!r.success_url||!r.error_url),o.isRedirectMode&&(o.storageDispatcher=new zr("afterpay.wallet.paydock")),o}return d(t,e),o(t,[{key:"load",value:function(e){var t=this;this.isRedirectMode?this.storageDispatcher.create((function(){return t.mount(e)})):this.mount(e)}},{key:"setEnv",value:function(e){return v(t,"setEnv",this)([e]),this.isRedirectMode&&this.storageDispatcher.setEnv(e),this}},{key:"mount",value:function(e){var t,n,i,r,o=this,s={};(null===(t=this.meta)||void 0===t?void 0:t.style)&&"object"===y(null===(n=this.meta)||void 0===n?void 0:n.style)&&(s=JSON.parse(JSON.stringify((null===(i=this.meta)||void 0===i?void 0:i.style.afterpay)||(null===(r=this.meta)||void 0===r?void 0:r.style))));var a=this.getButton(s);a.onclick=function(){return o.onAfterPayButtonClicked()};var c=this.getButtonStyle(s);e.getElement().appendChild(a),e.getElement().appendChild(c)}},{key:"onAfterPayButtonClicked",value:function(){var e,t,n=this,i=document.createElement("script"),r=null===(e=this.meta)||void 0===e?void 0:e.country;i.type="text/javascript",i.src="live"===(null===(t=this.meta)||void 0===t?void 0:t.gateway_mode)?"https://portal.afterpay.com/afterpay.js":"https://portal.sandbox.afterpay.com/afterpay.js",i.async=!0,i.defer=!0,i.onload=function(){window.AfterPay.initialize({countryCode:r}),n.isRedirectMode?n.storageDispatcher.push({intent:Fr.WIDGET_SESSION,data:{token:n.token}},{onSuccess:function(){n.getCheckoutSession().then((function(e){window.AfterPay.redirect({token:e.ref_token})})).catch((function(e){window.AfterPay.close(),n.eventEmitter.emit(xo.UNAVAILABLE,{err:e})}))},onError:function(){console.error("Error initializing Afterpay wallet"),window.AfterPay.close(),n.eventEmitter.emit(xo.UNAVAILABLE,{})}}):(window.AfterPay.open(),n.getCheckoutSession().then((function(e){window.AfterPay.onComplete=function(t){"SUCCESS"===t.data.status?n.eventEmitter.emit(xo.PAYMENT_METHOD_SELECTED,{data:{token:e.ref_token,merchantReference:t.data.orderToken},onSuccess:function(){return n.eventEmitter.emit(xo.PAYMENT_SUCCESS)},onError:function(){return n.eventEmitter.emit(xo.PAYMENT_ERROR)}}):n.eventEmitter.emit(xo.CHECKOUT_CLOSE,{data:t.data})},window.AfterPay.transfer({token:e.ref_token})})).catch((function(e){window.AfterPay.close(),n.eventEmitter.emit(xo.UNAVAILABLE,{err:e})})))},document.head.appendChild(i)}},{key:"getCheckoutSession",value:function(){var e=this;return new Promise((function(t,n){return e.eventEmitter.emit(xo.CALLBACK,{data:{request_type:"CREATE_SESSION",wallet_type:lr.AFTERPAY,checkout_url:e.isRedirectMode?void 0:e.CHECKOUT_URL},onSuccess:function(e){t(e)},onError:function(t){console.error("Error generating order id",t),e.eventEmitter.emit(xo.PAYMENT_ERROR,{message:t}),n(t)}})}))}},{key:"getButton",value:function(e){var t=document.createElement("button");return t.classList.add("afterpay-checkout-btn"),t.setAttribute("type","button"),t.innerHTML='\n <div class="afterpay-checkout-btn__wrapper">\n <svg viewBox="0 0 390 94"\n height="'.concat(this.getHeight(e),'"\n xmlns="http://www.w3.org/2000/svg">\n <g fill="currentColor">\n <path\n d="M388.6 21.4l-34.8 71.8h-14.4l13-26.8-20.5-45h14.8l13.2 30.1 14.3-30.1zM41 46.9c0-8.6-6.2-14.6-13.9-14.6s-13.9 6.1-13.9 14.6c0 8.4 6.2 14.6 13.9 14.6 7.6 0 13.9-6.1 13.9-14.6m.1 25.5v-6.6c-3.8 4.6-9.4 7.4-16.1 7.4C11 73.2.4 62 .4 46.9c0-15 11-26.4 24.9-26.4 6.5 0 12 2.9 15.8 7.3v-6.4h12.5v51H41.1zM114.6 61.1c-4.4 0-5.6-1.6-5.6-5.9V32.5h8.1V21.4H109V8.9H96.1v12.4H79.5v-5.1c0-4.3 1.6-5.9 6.1-5.9h2.8V.4h-6.2C71.6.4 66.6 3.9 66.6 14.5v6.8h-7.1v11.1h7.1v39.9h12.9V32.5h16.6v25c0 10.4 4 14.9 14.4 14.9h6.6V61.1h-2.5zM160.7 42.3c-.9-6.6-6.3-10.6-12.6-10.6s-11.5 3.9-12.9 10.6h25.5zm-25.6 7.9c.9 7.5 6.3 11.8 13.2 11.8 5.4 0 9.6-2.6 12-6.6h13.2c-3.1 10.8-12.7 17.7-25.5 17.7-15.4 0-26.2-10.8-26.2-26.2 0-15.4 11.4-26.5 26.5-26.5 15.2 0 26.2 11.2 26.2 26.5 0 1.1-.1 2.2-.3 3.3h-39.1zM256.2 46.9c0-8.3-6.2-14.6-13.9-14.6s-13.9 6.1-13.9 14.6c0 8.4 6.2 14.6 13.9 14.6 7.6 0 13.9-6.4 13.9-14.6m-40.4 46.3V21.4h12.5V28c3.8-4.7 9.4-7.5 16.1-7.5 13.8 0 24.6 11.3 24.6 26.3s-11 26.4-24.9 26.4c-6.4 0-11.7-2.6-15.4-6.8v26.8h-12.9zM314.2 46.9c0-8.6-6.2-14.6-13.9-14.6-7.6 0-13.9 6.1-13.9 14.6 0 8.4 6.2 14.6 13.9 14.6s13.9-6.1 13.9-14.6m.1 25.5v-6.6c-3.8 4.6-9.4 7.4-16.1 7.4-14 0-24.6-11.2-24.6-26.3 0-15 11-26.4 24.9-26.4 6.5 0 12 2.9 15.8 7.3v-6.4h12.5v51h-12.5zM193.2 26.4s3.2-5.9 11-5.9c3.3 0 5.5 1.2 5.5 1.2v13s-4.7-2.9-9.1-2.3c-4.3.6-7.1 4.6-7.1 9.9v30.2h-13v-51H193v4.9h.2z" />\n </g>\n </svg>\n <svg viewBox="0 0 107 96"\n height="').concat(this.getHeight(e),'"\n xmlns="http://www.w3.org/2000/svg">\n <path\n d="M99 19.5L84.2 11l-15-8.6c-10-5.7-22.4 1.5-22.4 13v1.9c0 1.1.6 2 1.5 2.6l7 4c1.9 1.1 4.4-.3 4.4-2.5v-4.6c0-2.3 2.5-3.7 4.4-2.6l13.8 7.9L91.6 30c2 1.1 2 4 0 5.1L77.9 43l-13.8 7.9c-2 1.1-4.4-.3-4.4-2.6V46c0-11.5-12.4-18.7-22.4-13l-15 8.6-14.8 8.5c-10 5.7-10 20.2 0 26l14.8 8.5 15 8.6c10 5.7 22.4-1.5 22.4-13v-1.9c0-1.1-.6-2-1.5-2.6l-7-4c-1.9-1.1-4.4.3-4.4 2.5v4.6c0 2.3-2.5 3.7-4.4 2.6l-13.8-7.9-13.7-7.9c-2-1.1-2-4 0-5.1l13.7-7.9 13.8-7.9c2-1.1 4.4.3 4.4 2.6v2.3c0 11.5 12.4 18.7 22.4 13l15-8.6L99 45.5c10.1-5.8 10.1-20.2 0-26"\n fill="currentColor" />\n </svg>\n </div>\n '),t}},{key:"getButtonStyle",value:function(e){var t=document.createElement("style"),n=this.generateButtonColor(e.button_type);return t.innerText="\n .afterpay-checkout-btn {\n outline: none;\n border: none;\n border-radius: ".concat(this.getHeight(e),";\n padding: 0;\n margin: 0;\n transition: all 300ms;\n cursor: pointer;\n }\n\n .afterpay-checkout-btn:active {\n opacity: 0.7;\n }\n\n .afterpay-checkout-btn__wrapper {\n display: flex;\n align-items: center;\n padding: 10px 20px;\n color: ").concat(n.color,";\n background-color: ").concat(n.background,";\n border-radius: ").concat(this.getHeight(e),";\n }\n "),t}},{key:"generateButtonColor",value:function(e){switch(e){case"black":return{color:"#B2FCE3",background:"#000"};case"mint":return{color:"#000",background:"#B2FCE3"};default:return{color:"#fff",background:"#000"}}}},{key:"getHeight",value:function(e){return e.height?Number.isNaN(Number(e.height))?e.height:"".concat(e.height,"px"):"40px"}}])}(Po);function Do(){if(Oo)return No;Oo=1;const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),s||(s=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),l||(l=function(e,t){return new e(...t)});const u=S(Array.prototype.forEach),d=S(Array.prototype.lastIndexOf),h=S(Array.prototype.pop),p=S(Array.prototype.push),f=S(Array.prototype.splice),m=S(String.prototype.toLowerCase),v=S(String.prototype.toString),g=S(String.prototype.match),C=S(String.prototype.replace),y=S(String.prototype.indexOf),b=S(String.prototype.trim),E=S(Object.prototype.hasOwnProperty),w=S(RegExp.prototype.test),_=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(k,t)});var k;function S(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return c(e,t,i)}}function T(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let o=i.length;for(;o--;){let t=i[o];if("string"==typeof t){const e=r(t);e!==t&&(n(i)||(i[o]=e),t=e)}e[t]=!0}return e}function M(e){for(let t=0;t<e.length;t++){E(e,t)||(e[t]=null)}return e}function A(t){const n=a(null);for(const[i,r]of e(t)){E(t,i)&&(Array.isArray(r)?n[i]=M(r):r&&"object"==typeof r&&r.constructor===Object?n[i]=A(r):n[i]=r)}return n}function N(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=i(e)}return function(){return null}}const O=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),x=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),L=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=o(["#text"]),U=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),F=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=s(/<%[\w\W]*|[\w\W]*%>/gm),W=s(/\$\{[\w\W]*/gm),V=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=s(/^aria-[\-\w]+$/),q=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=s(/^(?:\w+script|data):/i),K=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=s(/^html$/i),$=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:$,DATA_ATTR:V,DOCTYPE_NAME:X,ERB_EXPR:z,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:B,TMPLIT_EXPR:W});const Z=1,Q=3,ee=7,te=8,ne=9,ie=function(){return"undefined"==typeof window?null:window};var re=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie();const i=e=>t(e);if(i.version="3.2.4",i.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return i.isSupported=!1,i;let{document:r}=n;const s=r,c=s.currentScript,{DocumentFragment:l,HTMLTemplateElement:k,Node:S,Element:M,NodeFilter:B,NamedNodeMap:z=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:W,DOMParser:V,trustedTypes:G}=n,Y=M.prototype,K=N(Y,"cloneNode"),$=N(Y,"remove"),re=N(Y,"nextSibling"),oe=N(Y,"childNodes"),se=N(Y,"parentNode");if("function"==typeof k){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ae,ce="";const{implementation:le,createNodeIterator:ue,createDocumentFragment:de,getElementsByTagName:he}=r,{importNode:pe}=s;let fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof e&&"function"==typeof se&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:ve,TMPLIT_EXPR:ge,DATA_ATTR:Ce,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:we}=J;let{IS_ALLOWED_URI:_e}=J,ke=null;const Se=T({},[...O,...I,...R,...P,...D]);let Te=null;const Me=T({},[...U,...F,...H,...j]);let Ae=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Oe=null,Ie=!0,Re=!0,xe=!1,Pe=!0,Le=!1,De=!0,Ue=!1,Fe=!1,He=!1,je=!1,Be=!1,ze=!1,We=!0,Ve=!1,Ge=!0,qe=!1,Ye={},Ke=null;const Xe=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const Je=T({},["audio","video","img","source","image","track"]);let Ze=null;const Qe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let it=nt,rt=!1,ot=null;const st=T({},[et,tt,nt],v);let at=T({},["mi","mo","mn","ms","mtext"]),ct=T({},["annotation-xml"]);const lt=T({},["title","style","font","a","script"]);let ut=null;const dt=["application/xhtml+xml","text/html"];let ht=null,pt=null;const ft=r.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},vt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),ut=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===ut?v:m,ke=E(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,ht):Se,Te=E(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,ht):Me,ot=E(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,v):st,Ze=E(e,"ADD_URI_SAFE_ATTR")?T(A(Qe),e.ADD_URI_SAFE_ATTR,ht):Qe,$e=E(e,"ADD_DATA_URI_TAGS")?T(A(Je),e.ADD_DATA_URI_TAGS,ht):Je,Ke=E(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,ht):Xe,Ne=E(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,ht):{},Oe=E(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,ht):{},Ye=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,Ie=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Ue=e.WHOLE_DOCUMENT||!1,je=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||q,it=e.NAMESPACE||nt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,ct=e.HTML_INTEGRATION_POINTS||ct,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Re=!1),Be&&(je=!0),Ye&&(ke=T({},D),Te=[],!0===Ye.html&&(T(ke,O),T(Te,U)),!0===Ye.svg&&(T(ke,I),T(Te,F),T(Te,j)),!0===Ye.svgFilters&&(T(ke,R),T(Te,F),T(Te,j)),!0===Ye.mathMl&&(T(ke,P),T(Te,H),T(Te,j))),e.ADD_TAGS&&(ke===Se&&(ke=A(ke)),T(ke,e.ADD_TAGS,ht)),e.ADD_ATTR&&(Te===Me&&(Te=A(Te)),T(Te,e.ADD_ATTR,ht)),e.ADD_URI_SAFE_ATTR&&T(Ze,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Ke===Xe&&(Ke=A(Ke)),T(Ke,e.FORBID_CONTENTS,ht)),Ge&&(ke["#text"]=!0),Ue&&T(ke,["html","head","body"]),ke.table&&(T(ke,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,ce=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(G,c)),null!==ae&&"string"==typeof ce&&(ce=ae.createHTML(""));o&&o(e),pt=e}},gt=T({},[...I,...R,...x]),Ct=T({},[...P,...L]),yt=function(e){p(i.removed,{element:e});try{se(e).removeChild(e)}catch(t){$(e)}},bt=function(e,t){try{p(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(je||Be)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&it===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ae?ae.createHTML(e):e;if(it===nt)try{t=(new V).parseFromString(i,ut)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=rt?ce:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),it===nt?he.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:o},wt=function(e){return ue.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof z)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},kt=function(e){return"function"==typeof S&&e instanceof S};function St(e,t,n){u(e,(e=>{e.call(i,t,n,pt)}))}const Tt=function(e){let t=null;if(St(fe.beforeSanitizeElements,e,null),_t(e))return yt(e),!0;const n=ht(e.nodeName);if(St(fe.uponSanitizeElement,e,{tagName:n,allowedTags:ke}),e.hasChildNodes()&&!kt(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return yt(e),!0;if(e.nodeType===ee)return yt(e),!0;if(De&&e.nodeType===te&&w(/<[/\w]/g,e.data))return yt(e),!0;if(!ke[n]||Ne[n]){if(!Ne[n]&&At(n)){if(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,n))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))return!1}if(Ge&&!Ke[n]){const t=se(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=K(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,re(e))}}}return yt(e),!0}return e instanceof M&&!function(e){let t=se(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=m(e.tagName),i=m(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===i||at[i]):Boolean(gt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&ct[i]:Boolean(Ct[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!ct[i])&&!(t.namespaceURI===et&&!at[i])&&!Ct[n]&&(lt[n]||!gt[n]):!("application/xhtml+xml"!==ut||!ot[e.namespaceURI]))}(e)?(yt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&e.nodeType===Q&&(t=e.textContent,u([me,ve,ge],(e=>{t=C(t,e," ")})),e.textContent!==t&&(p(i.removed,{element:e.cloneNode()}),e.textContent=t)),St(fe.afterSanitizeElements,e,null),!1):(yt(e),!0)},Mt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in r||n in ft))return!1;if(Re&&!Oe[t]&&w(Ce,t));else if(Ie&&w(ye,t));else if(!Te[t]||Oe[t]){if(!(At(e)&&(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&w(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Ze[t]);else if(w(_e,C(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!$e[e]){if(xe&&!w(be,C(n,Ee,"")));else if(n)return!1}else;return!0},At=function(e){return"annotation-xml"!==e&&g(e,we)},Nt=function(e){St(fe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:s,namespaceURI:a,value:c}=o,l=ht(s);let d="value"===s?c:b(c);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,St(fe.uponSanitizeAttribute,e,n),d=n.attrValue,!Ve||"id"!==l&&"name"!==l||(bt(s,e),d="user-content-"+d),De&&w(/((--!?|])>)|<\/(style|title)/i,d)){bt(s,e);continue}if(n.forceKeepAttr)continue;if(bt(s,e),!n.keepAttr)continue;if(!Pe&&w(/\/>/i,d)){bt(s,e);continue}Le&&u([me,ve,ge],(e=>{d=C(d,e," ")}));const p=ht(e.nodeName);if(Mt(p,l,d)){if(ae&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(a);else switch(G.getAttributeType(p,l)){case"TrustedHTML":d=ae.createHTML(d);break;case"TrustedScriptURL":d=ae.createScriptURL(d)}try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),_t(e)?yt(e):h(i.removed)}catch(e){}}}St(fe.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const i=wt(t);for(St(fe.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)St(fe.uponSanitizeShadowNode,n,null),Tt(n),Nt(n),n.content instanceof l&&e(n.content);St(fe.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,a=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!kt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Fe||vt(t),i.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=ht(e.nodeName);if(!ke[t]||Ne[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)n=Et("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Z&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!je&&!Le&&!Ue&&-1===e.indexOf("<"))return ae&&ze?ae.createHTML(e):e;if(n=Et(e),!n)return je?null:ze?ce:""}n&&He&&yt(n.firstChild);const c=wt(qe?e:n);for(;o=c.nextNode();)Tt(o),Nt(o),o.content instanceof l&&Ot(o.content);if(qe)return e;if(je){if(Be)for(a=de.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(Te.shadowroot||Te.shadowrootmode)&&(a=pe.call(s,a,!0)),a}let d=Ue?n.outerHTML:n.innerHTML;return Ue&&ke["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(X,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Le&&u([me,ve,ge],(e=>{d=C(d,e," ")})),ae&&ze?ae.createHTML(d):d},i.setConfig=function(){vt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Fe=!0},i.clearConfig=function(){pt=null,Fe=!1},i.isValidAttribute=function(e,t,n){pt||vt({});const i=ht(e),r=ht(t);return Mt(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&p(fe[e],t)},i.removeHook=function(e,t){if(void 0!==t){const n=d(fe[e],t);return-1===n?void 0:f(fe[e],n,1)[0]}return h(fe[e])},i.removeHooks=function(e){fe[e]=[]},i.removeAllHooks=function(){fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();return No=re}window.DOMPurify||(window.DOMPurify=Do().default||Do());var Uo=class{DEFAULT_WIDTH=450;DEFAULT_HEIGHT=750;DEFAULT_FEATURES={resizable:"no"};auth;callback;error;frame;isCheckoutOpen;onMessage;url;orderId;accessToken;refreshToken;clientId;onCheckoutClosed;redirectUrl;rootUrl;targetOrigin;title;windowFeatures;windowObserver;constructor({auth:e,url:t,clientId:n,mode:i,orderId:r,onCheckoutClosed:o,onError:s,onTokensChanged:a,onPaymentSuccess:c,onPaymentError:l,redirectUrl:u,title:d,windowFeatures:h}){this.callback={ERROR({error:e,orderId:t}){s?.({error:e,orderId:t})},PAYMENT_ERROR({error:e,orderId:t}){l?.({error:e,orderId:t})},PAYMENT_SUCCESS({orderId:e}){c?.({orderId:e})},TOKENS_CHANGED({accessToken:e,refreshToken:t}){a?.({accessToken:e,refreshToken:t})}},this.auth=e,this.isCheckoutOpen=!1,this.error=void 0,this.frame=void 0,this.onMessage=e=>{const{data:n,origin:i}=e;i===t&&(!0===n?.isDomReady&&this.postMessage(),n?.isPaymentSuccessful&&this.callback.PAYMENT_SUCCESS({orderId:n.orderId}),!n?.isPaymentSuccessful&&n?.error&&this.callback.PAYMENT_ERROR({orderId:n.orderId,error:n.error}),!n?.paymentFlowState&&n?.error&&this.callback.ERROR({orderId:n.orderId,error:n.error}),n?.accessToken&&n?.refreshToken&&this.callback.TOKENS_CHANGED({accessToken:n.accessToken,refreshToken:n.refreshToken}))};const p=i||"default",f=u?`&redirectUrl=${u}`:"",m=n?`&clientId=${n}`:"";this.rootUrl=t.replaceAll(/\/+$/g,""),this.targetOrigin=window.location.href.replace(/\/$/,""),this.url=`${this.rootUrl}?orderId=${r}&merchantUrl=${encodeURIComponent(this.targetOrigin)}&mode=${p}${f}${m}`,this.orderId=r,this.clientId=n,this.onCheckoutClosed=o,this.title=d,this.windowFeatures=h,this.windowObserver=void 0}get isWindowObserverOpen(){return!!this.windowObserver}open=()=>{this.isCheckoutOpen?this.frame?.focus():(this.frame=window.open(this.url,this.title,this.getFeatures()),this.isCheckoutOpen=!0,this.startWindowObserver())};close=()=>{this.frame?.close(),this.frame=void 0,this.isCheckoutOpen=!1,this.stopWindowObserver()};listenMessage=()=>{this.onMessage&&window.addEventListener("message",this.onMessage,!1)};postMessage=()=>{this.frame&&this.rootUrl&&this.frame.postMessage({auth:{...this.auth}},this.rootUrl)};getFeatures(){const e=this.windowFeatures?.width||this.DEFAULT_WIDTH,t=this.windowFeatures?.height||this.DEFAULT_HEIGHT,n={...this.DEFAULT_FEATURES,...this.windowFeatures};return function(e,t="="){return Object.keys(e).length?Object.entries(e).reduce(((e,[n,i])=>[...e,`${n}${t}${i}`]),[]).join(","):""}({...this.getCenteredPosition(e,t),...n,width:e,height:t})}getCenteredPosition(e,t){return{left:screen.width/2-e/2,top:screen.height/2-t/2}}startWindowObserver(){this.isWindowObserverOpen||(this.windowObserver=setInterval((()=>{this.frame?.closed&&(this.close(),this.onCheckoutClosed?.({orderId:this.orderId}),this.onMessage&&window.removeEventListener("message",this.onMessage))}),300))}stopWindowObserver(){clearInterval(this.windowObserver)}},Fo=function(e){function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i(this,t),(r=n(this,t)).bgImageUrl=e,r.hideCloseButton=o,r.hideContinueButton=s,r.imageStyle=null,r}return d(t,e),o(t,[{key:"initControl",value:function(){this.imageStyle||this.createImageStyles(),v(t,"initControl",this)([])}},{key:"clear",value:function(){this.imageStyle&&this.imageStyle.parentNode.removeChild(this.imageStyle),this.imageStyle=null,v(t,"clear",this)([])}},{key:"createTemplate",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0],n=String('\n <div class="checkout-container">\n <div class="checkout-bg-logo"></div>\n <a href="#" data-continue>Continue</a>\n <a href="#" data-close>Close</a>\n </div>\n');!0===this.hideCloseButton&&(n=n.replace('<a href="#" data-close>Close</a>',"")),!0===this.hideContinueButton&&(n=n.replace('<a href="#" data-continue>Continue</a>',"")),this.overlay=document.createElement("div"),this.overlay.classList.add("checkout-overlay"),this.overlay.setAttribute("checkout-overlay"," "),this.overlay.innerHTML=n,t.appendChild(this.overlay),setTimeout((function(){e.isInit()&&e.overlay.classList.add("display")}),5)}},{key:"createImageStyles",value:function(){var e=document.head||document.getElementsByTagName("head")[0],t=String("\n .checkout-bg-logo {\n display: block;\n background: url({{url}}) no-repeat;\n width: 100px;\n height: 50px;\n margin: 0 auto;\n border-radius: 10px;\n background-size: contain;\n background-position: 50% 50%;\n }\n [data-continue] {\n margin-top: 24px;\n display: block;\n font-family: Helvetica, sans-serif;\n text-decoration: none;\n color: #fff !important;\n border: 1px solid white;\n width: 100px;\n border-radius: 16px;\n padding: 5px;\n }\n [data-continue]:hover {\n background-color: #f2f2f2;\n border: none;\n color: rgba(0, 0, 0, 0.7) !important;\n }\n .checkout-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .checkout-overlay {\n z-index: 2147483647;\n }\n\n .checkout-container [data-close] {\n opacity: 1;\n }\n .checkout-container [data-close]:before,\n .checkout-container [data-close]:after {\n background-color: #fff;\n }\n");document.querySelector(".checkout-container"),t=t.replace("{{url}}",this.bgImageUrl),this.imageStyle=document.createElement("style"),this.imageStyle.type="text/css",this.imageStyle.appendChild(document.createTextNode(t)),e.appendChild(this.imageStyle)}}])}(Tr);function Ho(e){return Bo("paydock-flypay-button",e)}function jo(e){return"flypay-v2-checkout-btn__wrapper__".concat(e)}function Bo(e,t){return'\n <div id="'.concat(t,'-loading-overlay"></div>\n <div class="').concat(e,'" tabindex="0">\n <svg\n viewBox="0 0 356 74"\n data-name="pay-with-coles-pay"\n fill="none"\n style="grid-area: center; width: 100%; height: 100%"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path fill-rule="evenodd" clip-rule="evenodd" d="M274.326 54.9868H280.946L282.661 45.6527C284.218 47.6804 286.291 48.3936 288.803 48.3936C295.623 48.3936 301.962 42.0781 301.962 34.2162C301.962 28.3776 298.69 24.8447 293.149 24.8447C290.275 24.8447 287.766 25.9146 285.693 28.0209H285.57L286.009 25.5993H279.787L274.326 54.9868ZM283.973 37.6743C283.973 34.1788 287.203 31.0023 290.633 31.0023L290.631 30.9983C293.502 30.9983 295.255 32.9058 295.255 35.6051C295.255 38.9847 292.103 42.24 288.558 42.24C285.888 42.24 283.973 40.4153 283.973 37.6743ZM318.51 47.643L318.946 45.2588H318.868C317.311 47.3237 314.641 48.3976 311.81 48.3976C306.306 48.3976 302.638 44.7818 302.638 39.1837C302.638 31.1228 309.298 24.8447 316.156 24.8447C318.988 24.8447 321.304 25.9185 322.098 27.9421H322.178L322.614 25.5993H329.236L325.125 47.643H318.51ZM320.663 35.5305C320.663 32.7896 318.825 31.0023 315.994 31.0023C312.646 31.0023 309.416 34.1414 309.416 37.5957C309.416 40.3367 311.131 42.244 313.963 42.244C317.593 42.244 320.663 39.0677 320.663 35.5305ZM329.356 54.991L334.419 46.5317L330.112 25.5993H337.17L339.204 38.3877H339.281L345.901 25.5993H352.922L336.372 54.991H329.356Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M221.032 18.351H226.224V48.4268H221.032V18.351ZM250.228 37.6828C250.261 37.2972 250.277 36.9033 250.277 36.5052C250.299 27.764 243.627 24.82 239.026 24.8158C234.423 24.8158 227.755 27.764 227.772 36.5052C227.76 43.7494 233.044 48.4228 239.031 48.4228C244.006 48.4353 248.383 45.1468 249.731 40.3781H244.64C243.599 42.5303 241.424 43.907 239.026 43.9402C235.888 43.9402 233.084 41.5268 232.585 37.6828H250.228ZM239.026 29.0661C241.876 29.067 244.381 30.9494 245.165 33.6814H232.887C233.669 30.9494 236.173 29.067 239.026 29.0661ZM260.582 48.3605C254.591 48.3605 251.156 45.4868 251.156 40.4776V40.3741H255.84V40.4736C256.047 43.14 257.729 44.4419 260.994 44.4419C263.706 44.4419 265.39 43.339 265.39 41.5642C265.39 40.063 264.245 39.495 261.988 38.931L258.678 38.0976C256.214 37.4962 254.565 36.783 253.495 35.8626C252.313 34.8341 251.677 33.3207 251.771 31.7574C251.717 29.8332 252.563 27.988 254.059 26.7729C255.585 25.5289 257.793 24.8779 260.441 24.8779C263.088 24.8779 265.482 25.5539 267.093 26.8353C268.684 28.0793 269.593 29.999 269.541 32.0103V32.0517H264.895V32.0103C264.771 29.8539 263.18 28.7136 260.29 28.7136C258.016 28.7136 256.61 29.6094 256.61 31.044C256.61 32.6447 258.009 33.2875 260.266 33.7974L263.072 34.4235C267.685 35.4894 270.184 36.8494 270.184 40.9713C270.262 43.0652 269.334 45.0765 267.685 46.3826C266.052 47.6598 263.576 48.3565 260.591 48.3565L260.582 48.3605ZM219.496 36.6172C219.496 30.0986 214.191 24.8158 207.646 24.8158C201.101 24.8158 195.796 30.0986 195.796 36.6172C195.796 43.1357 201.101 48.4186 207.646 48.4186C214.191 48.4186 219.496 43.1357 219.496 36.6172ZM214.754 36.6172C214.754 40.5275 211.568 43.6998 207.641 43.6998C203.716 43.6998 200.531 40.5275 200.531 36.6172C200.531 32.7068 203.716 29.5346 207.641 29.5346C211.568 29.5346 214.754 32.7068 214.754 36.6172ZM180.333 25.1765C186.679 23.58 193.122 27.4075 194.727 33.727V33.731H189.725C189.009 32.1388 187.732 30.8699 186.137 30.1567C182.552 28.5602 178.347 30.1609 176.744 33.731C175.14 37.3014 176.748 41.4894 180.333 43.0859C183.918 44.6823 188.123 43.0819 189.725 39.5115H194.727C193.659 43.7162 190.363 47.0005 186.142 48.0619C179.795 49.6583 173.35 45.831 171.747 39.5115C170.144 33.192 173.987 26.7729 180.333 25.1765Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.47326 37.2345H14.5938C17.7883 37.2345 20.2454 36.531 21.9652 35.1263C23.6873 33.7192 24.5472 31.3145 24.5472 27.9192C24.5472 24.8063 23.6873 22.5075 21.9652 21.0251C20.2454 19.5404 17.9367 18.7969 15.0437 18.7969H2.48941V47.5875H8.47326V37.2345ZM18.5822 27.9569C18.5822 29.4557 18.1911 30.5498 17.409 31.2392C16.6151 31.9286 15.5055 32.2745 14.0849 32.2745H8.47326V23.7969H14.0849C15.5055 23.7969 16.608 24.1169 17.3901 24.7545C18.1841 25.3922 18.5822 26.4604 18.5822 27.9569ZM37.0049 25.7898C33.4193 25.7898 30.8891 26.7263 29.4167 28.6016C28.4909 29.8016 27.9702 31.331 27.8525 33.1898H33.2308C33.3604 32.371 33.6219 31.7216 34.013 31.2369C34.5595 30.5875 35.4925 30.2628 36.8094 30.2628C37.9826 30.2628 38.8684 30.4322 39.4668 30.771C40.0816 31.0957 40.3879 31.6933 40.3879 32.5663C40.3879 33.2839 39.9898 33.811 39.1935 34.1498C38.7506 34.3451 38.0132 34.5075 36.9837 34.6369L35.0873 34.8722C32.9364 35.1451 31.3061 35.6016 30.1989 36.2369C28.1776 37.411 27.1669 39.3051 27.1669 41.9216C27.1669 43.9404 27.7936 45.5028 29.0445 46.611C30.3096 47.7028 31.9069 48.251 33.8363 48.251C35.3488 48.251 36.7034 47.9051 37.9025 47.2157C38.891 46.6432 39.7876 45.9253 40.5622 45.0863C40.6023 45.5686 40.6541 45.9992 40.7201 46.3757C40.7837 46.7522 40.9015 47.1569 41.0711 47.5875H47.1327V46.7663C46.8069 46.6282 46.5237 46.4056 46.3129 46.1216C46.1291 45.8628 46.0184 45.3686 45.9807 44.6392C45.9548 43.6745 45.9406 42.8533 45.9406 42.1757V32.411C45.9406 29.8463 45.0336 28.1004 43.222 27.1757C41.4104 26.251 39.3372 25.7898 37.0049 25.7898ZM35.4783 44.2086C34.7221 44.2086 34.0837 43.9922 33.563 43.5639C33.0282 43.1475 32.7597 42.4628 32.7597 41.5122C32.7597 40.4439 33.1908 39.6581 34.0507 39.1498C34.5595 38.8486 35.4006 38.5945 36.5738 38.3875L37.8248 38.1522C38.4514 38.0345 38.9391 37.9122 39.2924 37.7828C39.6576 37.6392 40.0157 37.4557 40.3667 37.2345V39.3051C40.329 41.1663 39.8013 42.4486 38.7836 43.1522C37.8207 43.843 36.664 44.2129 35.4783 44.2086Z" fill="white"/>\n <path d="M63.9699 26.3L59.5716 42.0035L54.9164 26.3H48.7182L56.5396 48.5258C56.5914 48.6811 56.4736 49.1141 56.1886 49.8153C55.9129 50.5188 55.6138 50.98 55.2887 51.2035C54.9494 51.4364 54.5324 51.5847 54.0377 51.6506C53.5185 51.7164 52.9941 51.736 52.4711 51.7094L51.769 51.6694V56.1235C52.3674 56.1635 52.8174 56.1823 53.1166 56.1823C53.4181 56.1941 53.8139 56.2011 54.311 56.2011C56.7752 56.2011 58.4172 55.7141 59.2394 54.7376C60.0592 53.7729 61.1736 51.2741 62.5824 47.2364L69.8949 26.3H63.9699ZM97.1756 32.0811L100.519 47.587H106.25L112.43 26.3H106.62L103.296 41.6317L100.05 26.3H94.3981L91.3284 41.5729L88.0043 26.3H82.0204L88.0043 47.5894H93.7926L97.1756 32.0811ZM121.248 47.5894V26.3H115.596V47.5894H121.248ZM121.248 23.7611V18.6223H115.596V23.7611H121.248ZM136.424 47.7847V43.6247L135.856 43.6623H135.329C134.193 43.6623 133.517 43.5588 133.295 43.3494C133.074 43.1282 132.961 42.5823 132.961 41.7094V30.46H136.424V26.4953H132.961V20.5541H127.448V26.4929H124.475V30.46H127.448V43.5658C127.448 44.8929 127.759 45.8764 128.386 46.5141C129.352 47.5164 131.149 47.9729 133.783 47.8811L136.424 47.7847ZM159.264 47.5894V35.0882C159.264 33.187 159.198 31.82 159.068 30.987C158.918 30.0906 158.548 29.2451 157.992 28.5258C157.315 27.5988 156.395 26.876 155.334 26.4364C154.2 25.9687 152.983 25.7364 151.756 25.7541C150.58 25.7541 149.461 25.9988 148.392 26.4953C147.336 26.9753 146.403 27.8364 145.595 29.0717V18.8976H140.04V47.5894H145.595V36.0647C145.595 34.2411 145.972 32.8411 146.729 31.8647C147.499 30.8764 148.62 30.3823 150.093 30.3823C151.513 30.3823 152.479 30.8764 152.986 31.8647C153.379 32.5705 153.575 33.4929 153.575 34.6411V47.5894H159.264Z" fill="white"/>\n </svg>\n </div>\n ')}var zo,Wo=function(e){function t(e,r){var o;if(i(this,t),(o=n(this,t,[e,r])).widgetId=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10),o.onFlypayV2ButtonClick=function(){var e=function(e){var t,n=document.getElementById((t=o.widgetId,"".concat(t,"-loading-overlay")));n&&(n.style.display=e)};o.disable(),e("flex"),o.handleMerchantOnButtonClickEvent().then((function(){var t;e("none"),o.background=o.initBackground(),null===(t=o.background)||void 0===t||t.initControl(),o.flypayV2Checkout(o.orderId)})).catch((function(t){e("none"),o.enable()}))},o.accessToken=null==r?void 0:r.access_token,o.refreshToken=null==r?void 0:r.refresh_token,!(null==r?void 0:r.client_id))throw new Error("Wallet meta `client_id` is required as part of initialization process.");return o.link=new Pi(""),o}return d(t,e),o(t,[{key:"load",value:function(e){var t=this;this.orderId?this.mount(e):this.getOrderId().then((function(n){t.orderId=n,t.mount(e)})).catch((function(e){console.error("Error generating order id",e),t.eventEmitter.emit(xo.UNAVAILABLE,{type:"create_order_id_error",error_code:e.code})}))}},{key:"setEnv",value:function(e){return this.link.setEnv(e),v(t,"setEnv",this)([e])}},{key:"enable",value:function(){var e=document.getElementById(this.widgetId);e&&(e.disabled=!1,this.flypayV2Button.innerHTML=Ho(this.widgetId))}},{key:"disable",value:function(){var e=document.getElementById(this.widgetId);e&&(e.disabled=!0,this.flypayV2Button.innerHTML=Bo("paydock-flypay-button paydock-flypay-button__disabled",this.widgetId))}},{key:"mount",value:function(e){this.flypayV2Button=this.getButton(),this.flypayV2Button.onclick=this.onFlypayV2ButtonClick,e.getElement().appendChild(this.flypayV2Button)}},{key:"getButton",value:function(){var e,t,n=document.createElement("style");return n.innerHTML=(e=this.widgetId,t=jo(e),"\n .".concat(t," {\n position: relative;\n height: 100%;\n width: 100%;\n border: none; /* Remove borders */\n background: transparent; /* Make the button background transparent */\n cursor: pointer; /* Make it look clickable */\n outline: none; /* Remove focus outline */\n padding: 0; /* Remove any default padding */\n }\n\n .").concat(t,' .paydock-flypay-button {\n background-color: #212121;\n border-radius: 9999px;\n width: 100%; /* set hard pixel dimensions here for a button with intrinsic dimensions */\n height: 100%; /* and leave the 100% settings for the Coles use case (enabled by extra param object flag) */\n display: grid;\n grid-template-columns: 20% 1fr 20%;\n grid-template-rows: 20% 1fr 20%;\n grid-template-areas:\n ". . ."\n ". center ."\n ". . .";\n box-sizing: border-box;\n }\n\n .').concat(t," .paydock-flypay-button:hover {\n background-color: #3d3d3d;\n }\n\n .").concat(t," .paydock-flypay-button:focus-visible {\n outline-color: transparent;\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2670ee;\n outline-color: transparent;\n }\n\n .").concat(t," .paydock-flypay-button:active {\n background-color: #6f6f6f;\n }\n\n .").concat(t," .paydock-flypay-button:disabled,\n .").concat(t," .paydock-flypay-button__disabled {\n opacity: 25%;\n cursor: not-allowed;\n }\n\n #").concat(e,"-loading-overlay {\n position: absolute;\n height: 100%;\n width: 100%;\n background: rgba(255, 255, 255, 0.7);\n display: none;\n justify-content: center;\n align-items: center;\n cursor: not-allowed; /* Make it look not clickable */\n }\n\n #").concat(e,'-loading-overlay::after {\n content: "";\n height: 60%;\n aspect-ratio: 1 / 1;\n display: inline-block;\n border: 4px solid #ccc;\n border-top-color: #333;\n border-radius: 50%;\n /* Vendor prefixes for animation property */\n -webkit-animation: spin 1s infinite linear;\n -moz-animation: spin 1s infinite linear;\n -o-animation: spin 1s infinite linear;\n animation: spin 1s infinite linear;\n }\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @-o-keyframes spin {\n 0% {\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ')),document.head.appendChild(n),this.flypayV2Button=document.createElement("button"),this.flypayV2Button.classList.add(jo(this.widgetId)),this.flypayV2Button.setAttribute("type","button"),this.flypayV2Button.setAttribute("aria-label","Pay with Coles Pay"),this.flypayV2Button.setAttribute("id",this.widgetId),this.flypayV2Button.innerHTML=Ho(this.widgetId),this.flypayV2Button}},{key:"handleMerchantOnButtonClickEvent",value:function(){var e=this;return new Promise((function(t,n){var i;e.eventEmitter.emit(xo.BUTTON_CLICK,{attachResult:function(e){i=e}}),i instanceof Promise?i.then(t).catch(n):!1===i?n():t()}))}},{key:"getOrderId",value:function(){var e=this;return new Promise((function(t,n){return e.eventEmitter.emit(xo.CALLBACK,{data:{request_type:"CREATE_SESSION"},onSuccess:function(e){return t(e.id)},onError:function(t,i){console.error("Error generating order id",t),e.eventEmitter.emit(xo.PAYMENT_ERROR,{message:t}),n({message:t,code:i})}})}))}},{key:"flypayV2Checkout",value:function(e){var t,n=this;this.checkout=new Uo(c(c({orderId:e},this.accessToken&&this.refreshToken&&{auth:{access_token:this.accessToken,refresh_token:this.refreshToken},mode:"express"}),{clientId:this.meta.client_id,url:"live"===(null===(t=this.meta)||void 0===t?void 0:t.gateway_mode)?"https://checkout.colespay.com.au":"https://checkout.sandbox.cxbflypay.com.au",onCheckoutClosed:function(){var e;n.eventEmitter.emit(xo.CHECKOUT_CLOSE),null===(e=n.background)||void 0===e||e.clear(),n.enable()},onError:function(e){return n.eventEmitter.emit(xo.PAYMENT_ERROR,{error:e})},onPaymentSuccess:function(e){return n.eventEmitter.emit(xo.PAYMENT_SUCCESS,e)},onPaymentError:function(e){return n.eventEmitter.emit(xo.PAYMENT_ERROR,{error:e})},onTokensChanged:function(e){var t=e.accessToken,i=e.refreshToken;n.accessToken=t,n.refreshToken=i,n.eventEmitter.emit(xo.AUTH_TOKENS_CHANGED,{accessToken:t,refreshToken:i})}})),this.checkout.open(),this.checkout.isCheckoutOpen&&this.eventEmitter.emit(xo.CHECKOUT_OPEN,{}),this.checkout.listenMessage()}},{key:"initBackground",value:function(){var e=this,t=new Fo(this.link.getNetUrl()+xi,!1,!1);return t.setBackdropTitle(""),t.setBackdropDescription(""),t.onTrigger(kr,(function(){var t;e.checkout.close(),null===(t=e.background)||void 0===t||t.clear(),e.enable()})),t.onTrigger(Sr,(function(){return e.checkout.open()})),t}}])}(Po);!function(e){e.AFTER_LOAD="after_load",e.UNAVAILABLE="unavailable",e.START_LOADING="start_loading",e.END_LOADING="end_loading",e.UPDATE="update",e.PAYMENT_SUCCESSFUL="payment_successful",e.PAYMENT_IN_REVIEW="payment_in_review",e.PAYMENT_ERROR="payment_error"}(zo||(zo={}));var Vo=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"on",value:function(e,t,n){for(var i in zo)zo.hasOwnProperty(i)&&e===zo[i]&&this.listeners.push({event:e,listener:n,widget_id:t})}}])}(Hi),Go={CLOSE:"close",UPDATED:"updated"},qo=function(e){function t(e,r){var o;return i(this,t),(o=n(this,t,[e])).widgetId=r,o}return d(t,e),o(t,[{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.iFrame.isExist()){-1===yo.values(Go).indexOf(e)&&console.warn("unsupported trigger type");var n={message_source:"wallet.paydock",reference_id:this.widgetId,trigger:e,destination:"widget.paydock",data:t};this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(n),"*")}}}])}(Ao),Yo=function(e){function t(e,r){var o;i(this,t),(o=n(this,t,[e,r])).link=new Pi(Ri);var s=r.amount,a=r.currency,l=r.id,u=r.gateway_mode,d=r.reference,h=r.request_shipping;return o.link.setParams(c({token:e,amount:s,currency:a,gateway_mode:u,credentials:d||l},h?{request_shipping:h}:{})),Q.version&&o.link.setParams({sdk_version:Q.version,sdk_type:Q.type}),o.token=e,o.event=new Vo(window),o}return d(t,e),o(t,[{key:"load",value:function(e){this.container=e,this.iFrame=new Ui(this.container);var t=this.link.getParams().widget_id;this.triggerElement=new qo(this.iFrame,t),this.setupIFrameEvents(t),this.background=this.initBackground(),this.iFrame.load(this.link.getUrl())}},{key:"close",value:function(){this.triggerElement.push(Go.CLOSE),this.background.clear()}},{key:"update",value:function(e){this.triggerElement.push(Go.UPDATED,e)}},{key:"setEnv",value:function(e){return this.link.setEnv(e),this}},{key:"initBackground",value:function(){var e=this,t=new Fo(this.link.getNetUrl().replace(Ri,xi));return t.setBackdropTitle(""),t.setBackdropDescription(""),t.onTrigger(kr,(function(){return e.triggerElement.push(Go.CLOSE)})),t}},{key:"setupIFrameEvents",value:function(e){var t=this;this.event.on(zo.UNAVAILABLE,e,(function(e){return t.eventEmitter.emit(xo.UNAVAILABLE,null)})),this.event.on(zo.START_LOADING,e,(function(e){return t.background.initControl()})),this.event.on(zo.END_LOADING,e,(function(e){return t.background.clear()})),this.event.on(zo.UPDATE,e,(function(e){t.eventEmitter.emit(xo.UPDATE,t.parseUpdateData(e))})),this.event.on(zo.PAYMENT_SUCCESSFUL,e,(function(e){t.eventEmitter.emit(xo.PAYMENT_SUCCESS,t.parsePaymentSuccessfulData(e)),t.iFrame.getElement()||t.background.clear()})),this.event.on(zo.PAYMENT_IN_REVIEW,e,(function(e){t.eventEmitter.emit(xo.PAYMENT_IN_REVIEW,t.parsePaymentSuccessfulData(e)),t.iFrame.getElement()||t.background.clear()})),this.event.on(zo.PAYMENT_ERROR,e,(function(e){t.eventEmitter.emit(xo.PAYMENT_ERROR,e),t.iFrame.getElement()||t.background.clear()}))}},{key:"parsePaymentSuccessfulData",value:function(e){var t;return{id:this.meta.id,amount:e.amount,currency:e.currencyCode,status:null===(t=e.charge)||void 0===t?void 0:t.status}}},{key:"parseUpdateData",value:function(e){return c(c(c({wallet_response_code:e.responseCode,wallet_session_id:e.sessionId},e.paymentMethodDetails?{payment_source:{wallet_payment_method_id:e.paymentMethodDetails.paymentMethodId,card_number_last4:e.paymentMethodDetails.lastFourDigitsOfPan,card_scheme:e.paymentMethodDetails.paymentScheme}}:{}),e.loyaltyAccountSummary?{wallet_loyalty_account:{id:e.loyaltyAccountSummary.loyaltyAccountId,barcode:e.loyaltyAccountSummary.loyaltyAccountBarcode}}:{}),e.deliveryAddressDetails?{shipping:{address_line1:e.deliveryAddressDetails.line1,address_line2:e.deliveryAddressDetails.line2,address_postcode:e.deliveryAddressDetails.postalCode,address_city:e.deliveryAddressDetails.city,address_state:e.deliveryAddressDetails.state,address_country:e.deliveryAddressDetails.countryCode,address_company:e.deliveryAddressDetails.companyName,wallet_address_id:e.deliveryAddressDetails.addressId,post_office_box_number:e.deliveryAddressDetails.postOfficeBoxNumber,wallet_address_created_timestamp:e.deliveryAddressDetails.createdTimestamp,wallet_address_updated_timestamp:e.deliveryAddressDetails.updatedTimestamp,wallet_address_name:e.deliveryAddressDetails.name}}:{})}}])}(Po),Ko=["paymentCredentialsAvailable"],Xo=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r])).gatewayName=o,a.eventEmitter=s,a.latestShippingData={},a.onCancelPayment=function(e){return a.eventEmitter.emit(xo.CHECKOUT_CLOSE)},a.onValidateMerchant=function(e){a.handleMerchantOnButtonClickEvent().then((function(){a.getMerchantSession().then((function(e){a.paymentSession.completeMerchantValidation(e)})).catch((function(e){console.error("Error fetching merchant session",e),a.paymentSession.abort()}))})).catch((function(e){console.error("Error while processing merchant callback",e),a.paymentSession.abort()}))},a.onPaymentAuthorized=function(e){var t,n=e.payment,i=n.token,r=n.billingContact,o=n.shippingContact;a.latestShippingData.shippingContact=o;var s=null===(t=a.selectedShippingOption)||void 0===t?void 0:t.type,l=[null==o?void 0:o.givenName,null==o?void 0:o.familyName].join(" ").trim();a.eventEmitter.emit(xo.PAYMENT_METHOD_SELECTED,{data:c({customer:{payment_source:c(c({wallet_type:lr.APPLE},l&&{card_name:l}),{type:i.paymentMethod.type,card_scheme:i.paymentMethod.network,address_line1:null==r?void 0:r.addressLines[0],address_line2:null==r?void 0:r.addressLines[1],address_country:null==r?void 0:r.countryCode,address_city:null==r?void 0:r.locality,address_postcode:null==r?void 0:r.postalCode,address_state:null==r?void 0:r.administrativeArea,ref_token:i.paymentData?JSON.stringify(i.paymentData):""})}},a.meta.request_shipping&&o&&{shipping:c(c(c({},s&&{method:s}),a.hasShippingOptions()&&{options:a.meta.shipping_options}),{address_line1:o.addressLines[0],address_line2:o.addressLines[1],address_country:o.countryCode,address_city:o.locality,address_postcode:o.postalCode,address_state:o.administrativeArea,contact:{first_name:o.givenName,last_name:o.familyName,email:o.emailAddress,phone:o.phoneNumber}})}),onSuccess:function(){return a.paymentSession.completePayment(ApplePaySession.STATUS_SUCCESS)},onError:function(){return a.paymentSession.completePayment(ApplePaySession.STATUS_FAILURE)}})},a.onShippingContactSelected=function(e){a.latestShippingData.shippingContact=e.shippingContact;var t=a.parseUpdateData(a.latestShippingData);return a.eventEmitter.emit(xo.UPDATE,t),new Promise((function(e,t){a.latestShippingChangePromiseResolve=e,a.latestShippingChangePromiseReject=t}))},a.onShippingMethodSelected=function(e){var t,n;a.latestShippingData.shippingMethod=e.shippingMethod;var i={newTotal:{label:a.meta.amount_label||(null===(n=null===(t=a.getMetaRawDataInitialization())||void 0===t?void 0:t.total)||void 0===n?void 0:n.label),amount:a.meta.amount.toString(),type:"final"}};a.paymentSession.completeShippingMethodSelection(i)},a.parseUpdateData=function(e){var t,n,i,r,o,s,a,l;return c({shipping:{address_city:null===(t=null==e?void 0:e.shippingContact)||void 0===t?void 0:t.locality,address_state:null===(n=null==e?void 0:e.shippingContact)||void 0===n?void 0:n.administrativeArea,address_postcode:null===(i=null==e?void 0:e.shippingContact)||void 0===i?void 0:i.postalCode,address_country:null===(r=null==e?void 0:e.shippingContact)||void 0===r?void 0:r.countryCode}},(null==e?void 0:e.shippingMethod)&&{selected_shipping_option:{id:null===(o=null==e?void 0:e.shippingMethod)||void 0===o?void 0:o.identifier,label:null===(s=null==e?void 0:e.shippingMethod)||void 0===s?void 0:s.label,detail:null===(a=null==e?void 0:e.shippingMethod)||void 0===a?void 0:a.detail,amount:null===(l=null==e?void 0:e.shippingMethod)||void 0===l?void 0:l.amount}})},a.formatShippingOptions=function(e){return e.map((function(e){return{identifier:e.id,label:e.label,detail:(null==e?void 0:e.detail)||"",amount:e.amount}}))},a.eventEmitter=s,a}return d(t,e),o(t,[{key:"getGatewayName",value:function(){return this.gatewayName}},{key:"getMerchantId",value:function(){var e,t,n;return(null===(n=null===(t=null===(e=this.meta)||void 0===e?void 0:e.credentials)||void 0===t?void 0:t[lr.APPLE])||void 0===n?void 0:n.merchant)||""}},{key:"getMetaStyles",value:function(){var e,t,n;if((null===(e=this.meta)||void 0===e?void 0:e.style)&&"object"===y(null===(t=this.meta)||void 0===t?void 0:t.style)){var i=JSON.parse(JSON.stringify(null===(n=this.meta)||void 0===n?void 0:n.style));return"google"in i&&(null==i||delete i.google),"apple"in i?null==i?void 0:i.apple:i}return null}},{key:"getMetaRawDataInitialization",value:function(){var e,t,n,i;if((null===(e=this.meta)||void 0===e?void 0:e.raw_data_initialization)&&(null===(t=this.meta)||void 0===t?void 0:t.raw_data_initialization)&&"object"===y(null===(n=this.meta)||void 0===n?void 0:n.raw_data_initialization)){var r=JSON.parse(JSON.stringify(null===(i=this.meta)||void 0===i?void 0:i.raw_data_initialization));return"google"in r&&(null==r||delete r.google),"apple"in r?null==r?void 0:r.apple:r}return null}},{key:"isShippingRequired",value:function(){var e;return null===(e=this.meta)||void 0===e?void 0:e.request_shipping}},{key:"hasShippingOptions",value:function(){var e,t;return(null===(e=this.meta)||void 0===e?void 0:e.request_shipping)&&!!(null===(t=this.meta)||void 0===t?void 0:t.shipping_options)}},{key:"load",value:function(e){var t=this;if(window.Promise)if(null===customElements||void 0===customElements?void 0:customElements.get("apple-pay-button"))this.onScriptLoaded(e);else{var n=document.createElement("script");n.src="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",n.type="text/javascript",n.crossOrigin="anonymous",n.onload=function(){t.onScriptLoaded(e)},n.onerror=function(e){console.error("AppleWalletService: Error loading ApplePay script",e),t.eventEmitter.emit(xo.UNAVAILABLE,{wallet:lr.APPLE})},document.head.appendChild(n)}else this.eventEmitter.emit(xo.UNAVAILABLE,{wallet:lr.APPLE})}},{key:"onScriptLoaded",value:function(e){var t=this;this.checkAvailability().then((function(n){var i;n?(t.isShippingRequired()&&t.hasShippingOptions()&&(t.selectedShippingOption=null===(i=t.meta)||void 0===i?void 0:i.shipping_options[0],t.latestShippingData.shippingMethod=t.formatShippingOptions([t.selectedShippingOption])[0]),t.mount(e)):t.eventEmitter.emit(xo.UNAVAILABLE,{wallet:lr.APPLE})})).catch((function(e){return console.error("Error checking ApplePay availability",e)}))}},{key:"update",value:function(e){var t,n,i;if(this.latestShippingChangePromiseResolve&&this.latestShippingChangePromiseReject){if(!e.success||!e.body)return this.latestShippingChangePromiseReject();var r=null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.amount,o=null===(n=null==e?void 0:e.body)||void 0===n?void 0:n.shipping_options;r&&(this.meta.amount=r),o&&(this.meta.shipping_options=o,this.selectedShippingOption=o?o[0]:void 0);var s=c({newTotal:{label:null===(i=this.meta)||void 0===i?void 0:i.amount_label,amount:this.meta.amount.toString(),type:"final"}},this.isShippingRequired()&&this.hasShippingOptions()&&{newShippingMethods:this.formatShippingOptions(this.meta.shipping_options)});this.paymentSession.completeShippingContactSelection(s),this.latestShippingChangePromiseResolve({})}}},{key:"checkAvailability",value:function(){var e=this;return new Promise((function(t,n){var i;window.ApplePaySession&&ApplePaySession||t(!1);var r=Ko;(null===(i=e.meta.apple_pay_capabilities)||void 0===i?void 0:i.length)>0&&(r=e.formatCapabilities(e.meta.apple_pay_capabilities)),ApplePaySession.applePayCapabilities(e.getMerchantId()).then((function(e){var n=r.includes(null==e?void 0:e.paymentCredentialStatus);t(n)})).catch((function(e){return t(!1)}))}))}},{key:"mount",value:function(e){var t,n,i=document.createElement("style");i.innerHTML=this.createButtonStyle(),document.head.appendChild(i);var r=e.getElement(),o="".concat((null===(t=this.getMetaStyles())||void 0===t?void 0:t.button_style)||"black"),s="".concat((null===(n=this.getMetaStyles())||void 0===n?void 0:n.button_type)||"plain");r.innerHTML='<apple-pay-button buttonstyle="'.concat(o,'" type="').concat(s,'" tabindex="0"></apple-pay-button>');var a=r.querySelector("apple-pay-button");if(!a)return console.error("AppleWalletService: Query selector does not found <apple-pay-button> element"),void this.eventEmitter.emit(xo.UNAVAILABLE,{wallet:lr.APPLE});a.addEventListener("click",this.onApplePayButtonClicked.bind(this))}},{key:"onApplePayButtonClicked",value:function(){this.paymentSession=new ApplePaySession(14,this.createRequest()),this.paymentSession.onvalidatemerchant=this.onValidateMerchant,this.paymentSession.onpaymentauthorized=this.onPaymentAuthorized,this.paymentSession.oncancel=this.onCancelPayment,this.paymentSession.onshippingcontactselected=this.onShippingContactSelected,this.paymentSession.onshippingmethodselected=this.onShippingMethodSelected,this.paymentSession.begin()}},{key:"createRequest",value:function(){var e,t=this.getMetaRawDataInitialization();return t&&"object"===y(t)&&("object"===y(t.total)?t.total.amount=this.meta.amount.toString():t.total={label:(null===(e=this.meta)||void 0===e?void 0:e.amount_label)||"",amount:this.meta.amount.toString()},this.isShippingRequired()&&this.hasShippingOptions()&&(t.shippingMethods=this.formatShippingOptions(this.meta.shipping_options))),t||c(c(c({countryCode:this.meta.country.toUpperCase(),currencyCode:this.meta.currency.toUpperCase(),merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:["visa","masterCard","amex","discover"]},this.meta.show_billing_address&&{requiredBillingContactFields:["name","postalAddress"]}),this.isShippingRequired()&&c({requiredShippingContactFields:["postalAddress","name","phone","email"]},this.hasShippingOptions()&&{shippingMethods:this.formatShippingOptions(this.meta.shipping_options)})),{total:{label:this.meta.amount_label,amount:this.meta.amount.toString(),type:"final"}})}},{key:"getMerchantSession",value:function(){var e=this;return new Promise((function(t,n){return e.eventEmitter.emit(xo.CALLBACK,{data:c({request_type:"CREATE_SESSION",wallet_type:lr.APPLE,session_id:window.location.hostname},e.isShippingRequired()&&{request_shipping:e.meta.request_shipping}),onSuccess:function(e){return t(e)},onError:function(t){console.error("Error generating order id",t),e.eventEmitter.emit(xo.PAYMENT_ERROR,{message:t}),n(t)}})}))}},{key:"handleMerchantOnButtonClickEvent",value:function(){var e=this;return new Promise((function(t,n){var i;e.eventEmitter.emit(xo.BUTTON_CLICK,{attachResult:function(e){i=e}}),i instanceof Promise?i.then(t).catch(n):!1===i?n():t()}))}},{key:"formatCapabilities",value:function(e){var t={credentials_available:"paymentCredentialsAvailable",credentials_status_unknown:"paymentCredentialStatusUnknown",credentials_unavailable:"paymentCredentialsUnavailable"};return e.map((function(e){return t[e]||e}))}},{key:"createButtonStyle",value:function(){return"\n apple-pay-button {\n display: inline-block;\n --apple-pay-button-width: 100%;\n --apple-pay-button-height: 40px;\n --apple-pay-button-border-radius: 5px;\n --apple-pay-button-padding: 5px 0px;\n }\n "}}])}(Po),$o=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r])).gatewayName=o,a.eventEmitter=s,a.processingButtonClick=!1,a.isProcessingAuthorization=!1,a.parseUpdateData=function(e){var t,n,i,r,o,s,l=null===(n=null===(t=a.meta)||void 0===t?void 0:t.shipping_options)||void 0===n?void 0:n.find((function(t){var n;return t.id===(null===(n=null==e?void 0:e.shippingOptionData)||void 0===n?void 0:n.id)}));return c({shipping:{address_city:null===(i=e.shippingAddress)||void 0===i?void 0:i.locality,address_state:null===(r=e.shippingAddress)||void 0===r?void 0:r.administrativeArea,address_postcode:null===(o=null==e?void 0:e.shippingAddress)||void 0===o?void 0:o.postalCode,address_country:null===(s=null==e?void 0:e.shippingAddress)||void 0===s?void 0:s.countryCode}},l&&{selected_shipping_option:{id:null==l?void 0:l.id,label:null==l?void 0:l.label,detail:null==l?void 0:l.detail,type:null==l?void 0:l.type}})},a.formatShippingOptions=function(e){return e.map((function(e){return{id:e.id,label:e.label,description:(null==e?void 0:e.detail)||""}}))},a.eventEmitter=s,a}return d(t,e),o(t,[{key:"getGatewayName",value:function(){return this.gatewayName}},{key:"getMerchantId",value:function(){var e,t,n;return null===(n=null===(t=null===(e=this.meta)||void 0===e?void 0:e.credentials)||void 0===t?void 0:t[lr.GOOGLE])||void 0===n?void 0:n.merchant}},{key:"getMetaStyles",value:function(){var e,t,n,i;return"object"===y(null===(e=this.meta)||void 0===e?void 0:e.style)&&"google"in(null===(t=this.meta)||void 0===t?void 0:t.style)?null===(i=null===(n=this.meta)||void 0===n?void 0:n.style)||void 0===i?void 0:i.google:null}},{key:"getMetaRawDataInitialization",value:function(){var e,t,n,i,r;return(null===(e=this.meta)||void 0===e?void 0:e.raw_data_initialization)&&"object"===y(null===(t=this.meta)||void 0===t?void 0:t.raw_data_initialization)&&"google"in(null===(n=this.meta)||void 0===n?void 0:n.raw_data_initialization)?null===(r=null===(i=this.meta)||void 0===i?void 0:i.raw_data_initialization)||void 0===r?void 0:r.google:null}},{key:"isShippingRequired",value:function(){return!!this.meta.request_shipping}},{key:"hasShippingOptions",value:function(){return this.meta.request_shipping&&!!this.meta.shipping_options}},{key:"load",value:function(e){var t=this;if(this.processingButtonClick=!1,window.Promise)return new Promise((function(n,i){var r=document.createElement("script");r.type="text/javascript",r.src="https://pay.google.com/gp/p/js/pay.js",r.async=!0,r.onload=function(){var r,o,s,a;if(!window.google)return t.eventEmitter.emit(xo.UNAVAILABLE,{wallet:lr.GOOGLE}),void i();t.isShippingRequired()&&t.hasShippingOptions()&&(t.selectedShippingOption=null===(r=t.meta)||void 0===r?void 0:r.shipping_options[0]),t.paymentsClient=new google.payments.api.PaymentsClient(c({merchantInfo:c(c({},(null===(o=t.meta)||void 0===o?void 0:o.merchant_name)?{merchantName:null===(s=t.meta)||void 0===s?void 0:s.merchant_name}:{}),{merchantId:t.getMerchantId()}),paymentDataCallbacks:c({onPaymentAuthorized:function(e){return t.onPaymentAuthorized(e)}},t.isShippingRequired()&&{onPaymentDataChanged:function(e){return t.onPaymentDataChanged(e)}})},"live"===(null===(a=t.meta)||void 0===a?void 0:a.gateway_mode)?{environment:"PRODUCTION"}:{environment:"TEST"})),t.checkAvailability().then((function(r){if(!r)return t.eventEmitter.emit(xo.UNAVAILABLE,{wallet:lr.GOOGLE}),void i();t.mount(e),n()}))},document.head.appendChild(r)}));this.eventEmitter.emit(xo.UNAVAILABLE,{wallet:lr.GOOGLE})}},{key:"update",value:function(e){var t,n,i,r;if(this.latestShippingChangePromiseResolve&&this.latestShippingChangePromiseReject){if(!e.success)return this.latestShippingChangePromiseReject();var o=(null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.amount)||this.meta.amount,s=null===(n=null==e?void 0:e.body)||void 0===n?void 0:n.shipping_options;o&&(this.meta.amount=o),s&&(this.meta.shipping_options=s,this.selectedShippingOption=s?s[0]:void 0);var a=c({newTransactionInfo:{totalPriceStatus:"FINAL",totalPriceLabel:this.meta.amount_label,totalPrice:null===(i=this.meta.amount)||void 0===i?void 0:i.toString(),currencyCode:this.meta.currency.toUpperCase(),countryCode:this.meta.country.toUpperCase()}},this.isShippingRequired()&&this.hasShippingOptions()&&s&&{newShippingOptionParameters:{defaultSelectedOptionId:null===(r=this.selectedShippingOption)||void 0===r?void 0:r.id,shippingOptions:this.formatShippingOptions(this.meta.shipping_options)}});this.latestShippingChangePromiseResolve(a)}}},{key:"checkAvailability",value:function(){return ie(this,void 0,void 0,p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.paymentsClient.isReadyToPay(this.createRequest()).then((function(e){return!!e.result})).catch((function(e){return console.error("Error checking GooglePay availability",e),!1})));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"mount",value:function(e){var t,n,i,r=this;e.getElement().appendChild(this.paymentsClient.createButton({onClick:function(){return r.onGooglePayButtonClicked()},buttonType:(null===(t=this.getMetaStyles())||void 0===t?void 0:t.button_type)||"pay",buttonSizeMode:(null===(n=this.getMetaStyles())||void 0===n?void 0:n.button_size_mode)||"fill",buttonColor:(null===(i=this.getMetaStyles())||void 0===i?void 0:i.button_color)||"default"}))}},{key:"onGooglePayButtonClicked",value:function(){var e=this;this.processingButtonClick?console.warn("Google Pay button clicked while processing."):(this.processingButtonClick=!0,this.handleMerchantOnButtonClickEvent().then((function(){e.loadPaymentData().finally((function(){e.processingButtonClick=!1}))})).catch((function(t){e.processingButtonClick=!1,console.error("Error while processing merchant callback",t)})))}},{key:"handleMerchantOnButtonClickEvent",value:function(){var e=this;return new Promise((function(t,n){var i;e.eventEmitter.emit(xo.BUTTON_CLICK,{attachResult:function(e){i=e}}),i instanceof Promise?i.then(t).catch(n):!1===i?n():t()}))}},{key:"loadPaymentData",value:function(){return ie(this,void 0,void 0,p().mark((function e(){var t=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.paymentsClient.loadPaymentData(this.createPaymentDataRequest()).catch((function(e){throw t.eventEmitter.emit(xo.CHECKOUT_CLOSE),t.processingButtonClick=!1,console.error("Error while loading payment data",e),e})));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"onPaymentAuthorized",value:function(e){var t,n,i,r,o,s,a,l,u,d,h,p,f,m,v,g=this,C=null===(i=null===(n=null===(t=e.paymentMethodData)||void 0===t?void 0:t.info)||void 0===n?void 0:n.billingAddress)||void 0===i?void 0:i.address1,y=null===(s=null===(o=null===(r=e.paymentMethodData)||void 0===r?void 0:r.info)||void 0===o?void 0:o.billingAddress)||void 0===s?void 0:s.address2,b=null===(a=null==e?void 0:e.shippingAddress)||void 0===a?void 0:a.address1,E=null===(l=null==e?void 0:e.shippingAddress)||void 0===l?void 0:l.address2,w=null===(u=this.selectedShippingOption)||void 0===u?void 0:u.type,_=null===(d=null==e?void 0:e.shippingAddress)||void 0===d?void 0:d.countryCode,k=null===(h=null==e?void 0:e.shippingAddress)||void 0===h?void 0:h.locality,S=null===(p=null==e?void 0:e.shippingAddress)||void 0===p?void 0:p.postalCode,T=null===(f=null==e?void 0:e.shippingAddress)||void 0===f?void 0:f.administrativeArea,M=null===(m=null==e?void 0:e.shippingAddress)||void 0===m?void 0:m.name,A=null==e?void 0:e.email,N=null===(v=null==e?void 0:e.shippingAddress)||void 0===v?void 0:v.phoneNumber,O=new Promise((function(t){g.isProcessingAuthorization?(console.warn("Duplicate payment authorization detected. Ignoring."),t({transactionState:"ERROR",error:{intent:"PAYMENT_AUTHORIZATION",message:"Another payment authorization is already in progress",reason:"OTHER_ERROR"}})):(g.isProcessingAuthorization=!0,function(){var n,i,r,o,s,a,l,u,d,h,p,f,m,v;g.eventEmitter.emit(xo.PAYMENT_METHOD_SELECTED,{data:c({customer:{payment_source:c(c(c({wallet_type:lr.GOOGLE,type:e.paymentMethodData.type,card_scheme:null===(i=null===(n=e.paymentMethodData)||void 0===n?void 0:n.info)||void 0===i?void 0:i.cardNetwork},C&&{address_line1:C}),y&&{address_line2:y}),{address_country:null===(s=null===(o=null===(r=e.paymentMethodData)||void 0===r?void 0:r.info)||void 0===o?void 0:o.billingAddress)||void 0===s?void 0:s.countryCode,address_city:null===(u=null===(l=null===(a=e.paymentMethodData)||void 0===a?void 0:a.info)||void 0===l?void 0:l.billingAddress)||void 0===u?void 0:u.locality,address_postcode:null===(p=null===(h=null===(d=e.paymentMethodData)||void 0===d?void 0:d.info)||void 0===h?void 0:h.billingAddress)||void 0===p?void 0:p.postalCode,address_state:null===(v=null===(m=null===(f=e.paymentMethodData)||void 0===f?void 0:f.info)||void 0===m?void 0:m.billingAddress)||void 0===v?void 0:v.administrativeArea,ref_token:e.paymentMethodData.tokenizationData.token})}},g.isShippingRequired()&&{shipping:c(c(c(c(c(c(c(c(c({},w&&{method:w}),g.hasShippingOptions()&&{options:g.meta.shipping_options}),b&&{address_line1:b}),E&&{address_line2:E}),_&&{address_country:_}),k&&{address_city:k}),S&&{address_postcode:S}),T&&{address_state:T}),{contact:c(c(c({},M&&{first_name:M}),A&&{email:A}),N&&{phone:N})})}),onSuccess:function(){g.processingButtonClick=!1,g.isProcessingAuthorization=!1,t({transactionState:"SUCCESS"})},onError:function(e){g.processingButtonClick=!1,g.isProcessingAuthorization=!1,t({transactionState:"ERROR",error:{intent:"PAYMENT_AUTHORIZATION",message:(null==e?void 0:e.message)||"Error processing payment",reason:"PAYMENT_DATA_INVALID"}})}})}())}));return O}},{key:"onPaymentDataChanged",value:function(e){var t=this;if(this.isShippingRequired()){var n=this.parseUpdateData(e),i=new Promise((function(e,n){t.latestShippingChangePromiseResolve=e,t.latestShippingChangePromiseReject=n}));return this.eventEmitter.emit(xo.UPDATE,n),i}}},{key:"createRequest",value:function(){var e="Apple Safari"===w.getBrowserName();return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[this.createCardData()],existingPaymentMethodRequired:!e}}},{key:"createPaymentDataRequest",value:function(){var e,t,n,i;this.isShippingRequired()&&this.hasShippingOptions()&&(this.selectedShippingOption=null===(e=this.meta)||void 0===e?void 0:e.shipping_options[0]);var r=this.getMerchantId();return c({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[c(c({},this.createCardData()),{tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:"paydock",gatewayMerchantId:r}}})],transactionInfo:{totalPriceStatus:"FINAL",totalPriceLabel:this.meta.amount_label,totalPrice:this.meta.amount.toString(),currencyCode:this.meta.currency.toUpperCase(),countryCode:this.meta.country.toUpperCase()},merchantInfo:c(c({},(null===(t=this.meta)||void 0===t?void 0:t.merchant_name)?{merchantName:null===(n=this.meta)||void 0===n?void 0:n.merchant_name}:{}),{merchantId:r}),callbackIntents:["PAYMENT_AUTHORIZATION"].concat(g(this.isShippingRequired()?["SHIPPING_ADDRESS"]:[]),g(this.hasShippingOptions()?["SHIPPING_OPTION"]:[]))},this.isShippingRequired()&&c({shippingAddressRequired:!0},this.hasShippingOptions()&&{shippingOptionRequired:!0,shippingOptionParameters:{defaultSelectedOptionId:null===(i=this.selectedShippingOption)||void 0===i?void 0:i.id,shippingOptions:this.formatShippingOptions(this.meta.shipping_options)}}))}},{key:"createCardData",value:function(){return this.getMetaRawDataInitialization()||{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["AMEX","DISCOVER","INTERAC","JCB","MASTERCARD","VISA"],billingAddressRequired:!!this.meta.show_billing_address}}}}])}(Po),Jo=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"initializeChildWallets",value:function(){var e,t,n,i,r,o;this.childWallets=[];var s=!!(null===(n=null===(t=null===(e=this.meta)||void 0===e?void 0:e.credentials)||void 0===t?void 0:t.apple)||void 0===n?void 0:n.merchant),a=!!(null===(o=null===(r=null===(i=this.meta)||void 0===i?void 0:i.credentials)||void 0===r?void 0:r.google)||void 0===o?void 0:o.merchant);!s||this.meta.wallets&&!this.meta.wallets.includes(lr.APPLE)||this.childWallets.push(new Xo(this.publicKey,this.meta,this.getGatewayName(),this.eventEmitter)),!a||this.meta.wallets&&!this.meta.wallets.includes(lr.GOOGLE)||this.childWallets.push(new $o(this.publicKey,this.meta,this.getGatewayName(),this.eventEmitter))}},{key:"getGatewayName",value:function(){return cr.MASTERCARD}},{key:"setEnv",value:function(e){return this.childWallets.forEach((function(t){return t.setEnv(e)})),this}},{key:"update",value:function(e){this.childWallets.forEach((function(t){return t.update(e)}))}}])}(Po),Zo=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"load",value:function(e){return window.Promise?(!0===this.meta.standalone?this.renderPaypalStandaloneComponent(e):this.renderPaypalCommonComponent(e),Promise.resolve()):(this.eventEmitter.emit(xo.UNAVAILABLE,null),Promise.resolve())}},{key:"update",value:function(e){var t=this;if(this.latestShippingChangePromiseResolve&&this.latestShippingChangePromiseReject)return e.success?void this.eventEmitter.emit(xo.CALLBACK,{data:{request_type:"UPDATE_TRANSACTION",shipping:this.latestShippingData},onSuccess:function(e){return t.latestShippingChangePromiseResolve(!0)},onError:function(){return t.latestShippingChangePromiseReject()}}):this.latestShippingChangePromiseReject()}},{key:"renderPaypalCommonComponent",value:function(e){var t,n=this,i=(null===(t=e.getElement())||void 0===t?void 0:t.id)||"",r=document.createElement("script");r.src="https://www.paypal.com/sdk/js?client-id=".concat(this.publicKey,"¤cy=").concat(this.meta.currency).concat(!0===this.meta.pay_later?"&enable-funding=paylater&disable-funding=card":"&disable-funding=credit,card").concat(this.meta.capture?"":"&intent=authorize"),r.async=!0,r.onload=function(){window.paypal?(n.paypal=window.paypal,n.paypal.Buttons(c({},n.paypalSharedProps())).render("#".concat(i))):n.eventEmitter.emit(xo.UNAVAILABLE,null)},document.head.appendChild(r)}},{key:"renderPaypalStandaloneComponent",value:function(e){var t,n,i=this,r=(null===(t=e.getElement())||void 0===t?void 0:t.id)||"",o=document.createElement("script");o.src="https://www.paypal.com/sdk/js?client-id=".concat(this.publicKey,"¤cy=").concat(this.meta.currency,"&components=buttons,funding-eligibility,messages&enable-funding=paylater").concat(this.meta.capture?"":"&intent=authorize").concat("live"===(null===(n=this.meta)||void 0===n?void 0:n.gateway_mode)?"":"&buyer-country=AU"),o.async=!0,o.onload=function(){if(window.paypal){i.paypal=window.paypal;var e=!!i.meta.pay_later,t=i.paypal.Buttons(c({fundingSource:e?i.paypal.FUNDING.PAYLATER:i.paypal.FUNDING.PAYPAL},i.paypalSharedProps()));if(t.isEligible()){if(t.render("#".concat(r)),e&&!i.meta.hide_message)i.paypal.Messages(c({amount:i.meta.amount,currency:i.meta.currency,placement:"payment"},i.meta.style&&i.meta.style.messages&&{style:i.meta.style.messages})).render("#".concat(r))}else i.eventEmitter.emit(xo.UNAVAILABLE,null)}else i.eventEmitter.emit(xo.UNAVAILABLE,null)},document.head.appendChild(o)}},{key:"paypalSharedProps",value:function(){var e=this;return c(c({},this.meta.style&&{style:this.meta.style}),{onClick:function(t,n){var i;return e.eventEmitter.emit(xo.BUTTON_CLICK,{attachResult:function(e){i=e&&e instanceof Promise?e.then((function(){return n.resolve()})).catch((function(){return n.reject()})):e}}),i},createOrder:function(){return new Promise((function(t,n){e.eventEmitter.emit(xo.CALLBACK,{data:c({request_type:"CREATE_TRANSACTION"},e.meta.request_shipping&&{request_shipping:e.meta.request_shipping}),onSuccess:function(e){return t(e.id)},onError:function(t){console.error("Error generating order id",t),e.eventEmitter.emit(xo.PAYMENT_ERROR,{error:t}),n(t)}})}))},onShippingChange:function(t,n){return new Promise((function(n,i){var r=e.parseUpdateData(t);e.latestShippingData=r.shipping,e.latestShippingChangePromiseResolve=n,e.latestShippingChangePromiseReject=i,e.eventEmitter.emit(xo.UPDATE,r)}))},onApprove:function(t){return e.pendingApprovalPromise=e.pendingApprovalPromise||new Promise((function(n,i){return e.eventEmitter.emit(xo.PAYMENT_METHOD_SELECTED,{data:{payment_method_id:t.orderID,customer:{payment_source:{external_payer_id:t.payerID}}},onSuccess:function(){e.pendingApprovalPromise=void 0,n(!0)},onError:function(t){e.pendingApprovalPromise=void 0,i(t)}})})),e.pendingApprovalPromise},onCancel:function(){return e.eventEmitter.emit(xo.CHECKOUT_CLOSE)},onError:function(e){}})}},{key:"parseUpdateData",value:function(e){var t;return c(c({wallet_order_id:e.orderID,wallet_session_id:e.paymentID,payment_source:{wallet_payment_method_id:e.paymentToken}},e.shipping_address&&{shipping:{address_city:e.shipping_address.city,address_state:e.shipping_address.state,address_postcode:e.shipping_address.postal_code,address_country:e.shipping_address.country_code}}),e.selected_shipping_option&&{selected_shipping_option:{id:e.selected_shipping_option.id,label:e.selected_shipping_option.label,amount:e.selected_shipping_option.amount.value,currency:e.selected_shipping_option.amount.currency_code,type:null===(t=e.selected_shipping_option)||void 0===t?void 0:t.type}})}}])}(Po),Qo={};function es(e){return es="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},es(e)}Object.defineProperty(Qo,"__esModule",{value:!0});var ts,ns="https://js.stripe.com/v3",is=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,rs="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",os=null,ss=function(e){return null!==os||(os=new Promise((function(t,n){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(rs),window.Stripe)t(window.Stripe);else try{var i=function(){for(var e=document.querySelectorAll('script[src^="'.concat(ns,'"]')),t=0;t<e.length;t++){var n=e[t];if(is.test(n.src))return n}return null}();i&&e?console.warn(rs):i||(i=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(ns).concat(t);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(n),n}(e)),i.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),i.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))),os},as=function(e){var t="invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(e),"\n");if(null===e||"object"!==es(e))throw new Error(t);if(1===Object.keys(e).length&&"boolean"==typeof e.advancedFraudSignals)return e;throw new Error(t)},cs=!1,ls=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];cs=!0;var i=Date.now();return ss(ts).then((function(e){return function(e,t,n){if(null===e)return null;var i=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:t})}(i,n),i}(e,t,i)}))};ls.setLoadParameters=function(e){if(cs&&ts){var t=as(e);if(Object.keys(t).reduce((function(t,n){var i;return t&&e[n]===(null===(i=ts)||void 0===i?void 0:i[n])}),!0))return}if(cs)throw new Error("You cannot change load parameters after calling loadStripe");ts=as(e)},Qo.loadStripe=ls;var us,ds=Qo,hs="success",ps="fail",fs=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"initPaymentRequest",value:function(){return this.stripe.paymentRequest({country:this.meta.country.toUpperCase(),currency:this.meta.currency.toLowerCase(),total:{label:this.meta.amount_label,amount:Math.floor(100*this.meta.amount)},requestPayerName:!0===this.meta.request_payer_name,requestPayerEmail:!0===this.meta.request_payer_email,requestPayerPhone:!0===this.meta.request_payer_phone})}},{key:"createWalletButton",value:function(){return this.stripe.elements().create("paymentRequestButton",{paymentRequest:this.paymentRequest})}},{key:"load",value:function(e){var t=this;return ds.loadStripe(this.publicKey).then((function(e){t.stripe=e,t.paymentRequest=t.initPaymentRequest()})).then((function(){return t.checkAvailability()})).then((function(n){return t.mount(e,n)})).then((function(){return t.setOnPaymentMethodSelected()}))}},{key:"checkAvailability",value:function(){var e=this;return this.paymentRequest.canMakePayment().then((function(t){if(t){var n=!e.meta.wallets||e.meta.wallets.includes(lr.GOOGLE),i=!e.meta.wallets||e.meta.wallets.includes(lr.APPLE);return{google_pay:n&&!t.applePay,apple_pay:i&&t.applePay,flypay:!1}}}))}},{key:"mount",value:function(e,t){if(!t||!t.apple_pay&&!t.google_pay)return this.eventEmitter.emit(xo.UNAVAILABLE,null);this.createWalletButton().mount(e.getElement())}},{key:"setOnPaymentMethodSelected",value:function(){var e=this;this.paymentRequest.on("paymentmethod",(function(t){var n,i,r=t.paymentMethod,o=r.id,s=r.card,a=r.billing_details,c=a.name,l=a.address,u={payment_method_id:o,customer:{payer_name:t.payerName,payer_email:t.payerEmail,payer_phone:t.payerPhone,payment_source:{wallet_type:e.getWalletType(null===(n=null==s?void 0:s.wallet)||void 0===n?void 0:n.type),card_name:c,type:null===(i=null==s?void 0:s.wallet)||void 0===i?void 0:i.type,card_scheme:null==s?void 0:s.brand,card_number_last4:null==s?void 0:s.last4,expire_month:null==s?void 0:s.exp_month,expire_year:null==s?void 0:s.exp_year,address_line1:l.line1,address_line2:l.line2,address_city:l.city,address_postcode:l.postal_code,address_state:l.state,address_country:l.country}}};e.eventEmitter.emit(xo.PAYMENT_METHOD_SELECTED,{data:u,onSuccess:function(){return t.complete(hs)},onError:function(e){return t.complete(ps)}})}))}},{key:"getWalletType",value:function(e){return e?"google_pay"===e?lr.GOOGLE:lr.APPLE:null}}])}(Po);!function(e){e.UNAVAILABLE="unavailable",e.UPDATE="update",e.PAYMENT_SUCCESSFUL="paymentSuccessful",e.PAYMENT_ERROR="paymentError",e.PAYMENT_IN_REVIEW="paymentInReview",e.AUTH_TOKENS_CHANGED="authTokensChanged",e.ON_CLICK="onClick",e.ON_CHECKOUT_OPEN="onCheckoutOpen",e.ON_CHECKOUT_CLOSE="onCheckoutClose"}(us||(us={}));var ms,vs,gs,Cs,ys,bs,Es={UNAVAILABLE:us.UNAVAILABLE,UPDATE:us.UPDATE,PAYMENT_SUCCESSFUL:us.PAYMENT_SUCCESSFUL,PAYMENT_ERROR:us.PAYMENT_ERROR,PAYMENT_IN_REVIEW:us.PAYMENT_IN_REVIEW,AUTH_TOKENS_CHANGED:us.AUTH_TOKENS_CHANGED,ON_CLICK:us.ON_CLICK,ON_CHECKOUT_OPEN:us.ON_CHECKOUT_OPEN,ON_CHECKOUT_CLOSE:us.ON_CHECKOUT_CLOSE},ws=function(){return o((function e(t,n,r){var o,s;i(this,e),this.hasUpdateHandler=!1;var a=De.validateJWT(n);if(!a)throw new Error("Invalid charge token");this.eventEmitter=new ir,this.container=new Di(t);var l=De.extractMeta(a.body);switch(this.api=new er(n,Ei.TOKEN),l.gateway.type){case cr.STRIPE:this.service=new fs(l.credentials.client_auth,c(c({},r),{amount:l.charge.amount,currency:l.charge.currency}));break;case cr.FLYPAY:this.service=new Yo(n,c(c({},r),{id:l.charge.id,gateway_mode:l.gateway.mode,amount:l.charge.amount,currency:l.charge.currency,reference:l.charge.reference}));break;case cr.FLYPAY_V2:this.service=new Wo(n,c(c({},r),{id:l.charge.id,gateway_mode:l.gateway.mode,amount:l.charge.amount,currency:l.charge.currency,reference:l.charge.reference}));break;case cr.PAYPAL:this.service=new Zo(l.credentials.client_auth,c(c({},r),{id:l.charge.id,gateway_mode:l.gateway.mode,amount:l.charge.amount,currency:l.charge.currency,capture:l.charge.capture}));break;case cr.MASTERCARD:this.service=new Jo("",c(c({},r),{credentials:l.gateway.credentials,amount:l.charge.amount,currency:l.charge.currency,gateway_mode:l.gateway.mode}));break;case cr.AFTERPAY:this.service=new Lo(n,c(c({},r),{id:l.charge.id,gateway_mode:l.gateway.mode,amount:l.charge.amount,currency:l.charge.currency,reference:l.charge.reference,success_url:null===(o=l.charge.meta)||void 0===o?void 0:o.success_url,error_url:null===(s=l.charge.meta)||void 0===s?void 0:s.error_url}))}}),[{key:"load",value:function(){try{this.setupServiceCallbacks(),this.service.load(this.container)}catch(e){throw this.eventEmitter.emit(Es.UNAVAILABLE,null),e}}},{key:"update",value:function(e){this.service.update(e)}},{key:"setEnv",value:function(e,t){this.api.setEnv(e,t),this.service.setEnv(e)}},{key:"enable",value:function(){this.service.enable()}},{key:"disable",value:function(){this.service.disable()}},{key:"close",value:function(){"function"==typeof this.service.close&&this.service.close()}},{key:"on",value:function(e,t){var n=this;return e===Es.UPDATE&&(this.hasUpdateHandler=!0),"function"==typeof t?this.eventEmitter.subscribe(e,t):new Promise((function(t){return n.eventEmitter.subscribe(e,(function(e){return t(e)}))}))}},{key:"onUnavailable",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(Es.UNAVAILABLE,e):new Promise((function(e){return t.eventEmitter.subscribe(Es.UNAVAILABLE,(function(){return e()}))}))}},{key:"onUpdate",value:function(e){var t=this;return this.hasUpdateHandler=!0,"function"==typeof e?this.eventEmitter.subscribe(Es.UPDATE,e):new Promise((function(e){return t.eventEmitter.subscribe(Es.UPDATE,(function(t){return e(t)}))}))}},{key:"onPaymentSuccessful",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(Es.PAYMENT_SUCCESSFUL,e):new Promise((function(e){return t.eventEmitter.subscribe(Es.PAYMENT_SUCCESSFUL,(function(t){return e(t)}))}))}},{key:"onPaymentInReview",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(Es.PAYMENT_IN_REVIEW,e):new Promise((function(e){return t.eventEmitter.subscribe(Es.PAYMENT_IN_REVIEW,(function(t){return e(t)}))}))}},{key:"onPaymentError",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(Es.PAYMENT_ERROR,e):new Promise((function(e){return t.eventEmitter.subscribe(Es.PAYMENT_ERROR,(function(t){return e(t)}))}))}},{key:"onAuthTokensChanged",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(Es.AUTH_TOKENS_CHANGED,e):new Promise((function(e){return t.eventEmitter.subscribe(Es.AUTH_TOKENS_CHANGED,(function(t){return e(t)}))}))}},{key:"onClick",value:function(e){if("function"==typeof e)return this.eventEmitter.subscribe(Es.ON_CLICK,e)}},{key:"onCheckoutOpen",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(Es.ON_CHECKOUT_OPEN,e):new Promise((function(e){return t.eventEmitter.subscribe(Es.ON_CHECKOUT_OPEN,(function(t){return e(t)}))}))}},{key:"onCheckoutClose",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(Es.ON_CHECKOUT_CLOSE,e):new Promise((function(e){return t.eventEmitter.subscribe(Es.ON_CHECKOUT_CLOSE,(function(t){return e(t)}))}))}},{key:"setupServiceCallbacks",value:function(){this.setupUnavailableCallback(),this.setupUpdateCallback(),this.setupWalletCallback(),this.setupPaymentCallback(),this.setupPaymentSuccessCallback(),this.setupPaymentInReviewCallback(),this.setupPaymentErrorCallback(),this.setupAuthTokensChangedCallback(),this.setupOnClickCallback(),this.setupOnCheckoutOpenCallback(),this.setupOnCheckoutCloseCallback()}},{key:"setupUnavailableCallback",value:function(){var e=this;this.service.on(xo.UNAVAILABLE,(function(t){return e.eventEmitter.emit(Es.UNAVAILABLE,{event:Es.UNAVAILABLE,data:t})}))}},{key:"setupUpdateCallback",value:function(){var e=this;this.service.on(xo.UPDATE,(function(t){return e.hasUpdateHandler?e.eventEmitter.emit(Es.UPDATE,{event:Es.UPDATE,data:t}):e.update({success:!0})}))}},{key:"setupOnClickCallback",value:function(){var e=this;this.service.on(xo.BUTTON_CLICK,(function(t){return e.eventEmitter.emit(Es.ON_CLICK,{event:Es.ON_CLICK,data:t})}))}},{key:"setupOnCheckoutOpenCallback",value:function(){var e=this;this.service.on(xo.CHECKOUT_OPEN,(function(t){return e.eventEmitter.emit(Es.ON_CHECKOUT_OPEN,{event:Es.ON_CHECKOUT_OPEN,data:t})}))}},{key:"setupOnCheckoutCloseCallback",value:function(){var e=this;this.service.on(xo.CHECKOUT_CLOSE,(function(t){return e.eventEmitter.emit(Es.ON_CHECKOUT_CLOSE,{event:Es.ON_CHECKOUT_CLOSE,data:t})}))}},{key:"setupWalletCallback",value:function(){var e=this;this.service.on(xo.CALLBACK,(function(t){var n=t.data,i=t.onSuccess,r=t.onError;e.api.charge().walletCallback(n).then((function(e){return i(e)}),(function(e){return r(e.message,e.code)}))}))}},{key:"setupPaymentCallback",value:function(){var e=this;this.service.on(xo.PAYMENT_METHOD_SELECTED,(function(t){var n=t.data,i=t.onSuccess,r=t.onError;e.api.charge().walletCapture(n).then((function(t){"function"==typeof i&&i();var r="inreview"===t.status?Es.PAYMENT_IN_REVIEW:Es.PAYMENT_SUCCESSFUL;e.eventEmitter.emit(r,{event:r,data:c(c({},t),n.customer&&{payer_name:n.customer.payer_name,payer_email:n.customer.payer_email,payer_phone:n.customer.payer_phone})})}),(function(t){"function"==typeof r&&r(t),e.eventEmitter.emit(Es.PAYMENT_ERROR,{event:Es.PAYMENT_ERROR,data:t})}))}))}},{key:"setupPaymentSuccessCallback",value:function(){var e=this;this.service.on(xo.PAYMENT_SUCCESS,(function(t){return e.eventEmitter.emit(Es.PAYMENT_SUCCESSFUL,{event:Es.PAYMENT_SUCCESSFUL,data:t})}))}},{key:"setupPaymentInReviewCallback",value:function(){var e=this;this.service.on(xo.PAYMENT_IN_REVIEW,(function(t){return e.eventEmitter.emit(Es.PAYMENT_IN_REVIEW,{event:Es.PAYMENT_IN_REVIEW,data:t})}))}},{key:"setupPaymentErrorCallback",value:function(){var e=this;this.service.on(xo.PAYMENT_ERROR,(function(t){return e.eventEmitter.emit(Es.PAYMENT_ERROR,{event:Es.PAYMENT_ERROR,data:t})}))}},{key:"setupAuthTokensChangedCallback",value:function(){var e=this;this.service.on(xo.AUTH_TOKENS_CHANGED,(function(t){return e.eventEmitter.emit(Es.AUTH_TOKENS_CHANGED,{event:Es.AUTH_TOKENS_CHANGED,data:t})}))}}])}();function _s(e){var t,n,i,r,o,s=function(e){var t=function(e){var t=[Cs.GATEWAY_ID,Cs.TYPE];if(e.predefined_fields.type===ms.GIFT_CARD)return t.concat([Cs.CARD_SCHEME,Cs.CARD_PROCESSING_NETWORK]);return t}(e).map((function(t){return e.predefined_fields[t]?"":t})).filter(Boolean);if(t.length)return t.join(", ").concat(" ".concat(t.length>1?"are":"is"," cannot be empty"))}(e);if(s)throw console.error("Errors when creating a token"),console.error("--- | ".concat(s)),new Error(s);return{allowed_response_data:{event:[gs.PAYMENT_SOURCE_TOKEN],url:[]},defined_form_fields:e.dynamic_fields_position?Ts(e):Ss(e),dynamic_fields_position:null!==(t=e.dynamic_fields_position)&&void 0!==t&&t,error_redirect_url:null!==(n=e.error_redirect_url)&&void 0!==n?n:"",label:null!==(i=e.label)&&void 0!==i?i:"",meta:Ms(e),predefined_fields:As(e),purpose:e.purpose,success_redirect_url:null!==(r=e.success_redirect_url)&&void 0!==r?r:"",webhook_destination:null!==(o=e.webhook_destination)&&void 0!==o?o:"",handle_cvv:Ns(e)}}function ks(e){var t=[ys.FIRST_NAME,ys.LAST_NAME,ys.EMAIL,ys.PHONE,ys.PHONE2,ys.ADDRESS_LINE1,ys.ADDRESS_LINE2,ys.ADDRESS_STATE,ys.ADDRESS_COUNTRY,ys.ADDRESS_CITY,ys.ADDRESS_POSTCODE,ys.ADDRESS_COMPANY];switch(e.predefined_fields.type){case ms.BANK_ACCOUNT:case ms.BSB:return t.concat([ys.ACCOUNT_BANK_NAME,ys.ACCOUNT_BSB,ys.ACCOUNT_HOLDER_TYPE,ys.ACCOUNT_ROUTING,ys.ACCOUNT_TYPE,ys.ACCOUNT_NUMBER,ys.ACCOUNT_NAME]);case ms.CARD:return t.concat([ys.CARD_NAME,ys.CARD_NUMBER,ys.EXPIRE_MONTH,ys.EXPIRE_YEAR,ys.CARD_CCV]);case ms.GIFT_CARD:return t.concat([ys.CARD_NUMBER,ys.CARD_SCHEME,ys.CARD_PROCESSING_NETWORK,ys.CARD_PIN])}}function Ss(e){return ks(e).map((function(t){var n,i;return(null===(n=e.defined_form_fields)||void 0===n?void 0:n.includes(t))?t:(null===(i=e.defined_form_fields)||void 0===i?void 0:i.includes("".concat(t,"*")))?"".concat(t,"*"):void 0})).filter(Boolean)}function Ts(e){var t,n=ks(e);return null===(t=e.defined_form_fields)||void 0===t?void 0:t.map((function(e){var t=e.replace("*","");if(n.includes(t))return e})).filter(Boolean)}function Ms(e){return Object.values(bs).reduce((function(t,n){var i;return(null===(i=e.meta)||void 0===i?void 0:i[n])?c({},t,a({},n,e.meta[n])):t}),{})}function As(e){var t="not_configured"===e.predefined_fields.gateway_id?"":e.predefined_fields.gateway_id;return c({},e.predefined_fields,{gateway_id:t})}function Ns(e){switch(e.purpose){case vs.CARD_PAYMENT_SOURCE_WITH_CVV:return!0;case vs.CARD_PAYMENT_SOURCE_WITHOUT_CVV:return!1;default:return}}!function(e){e.CARD="card",e.GIFT_CARD="gift_card",e.BSB="bsb",e.CHECKOUT="checkout",e.BANK_ACCOUNT="bank_account"}(ms||(ms={})),function(e){e.PAYMENT_SOURCE="payment_source",e.CARD_PAYMENT_SOURCE_WITH_CVV="card_payment_source_with_cvv",e.CARD_PAYMENT_SOURCE_WITHOUT_CVV="card_payment_source_without_cvv"}(vs||(vs={})),function(e){e.PAYMENT_SOURCE_TOKEN="payment_source"}(gs||(gs={})),function(e){e.GATEWAY_ID="gateway_id",e.TYPE="type",e.CUSTOMER_ID="customer_id",e.CARD_SCHEME="card_scheme",e.CARD_PROCESSING_NETWORK="card_processing_network"}(Cs||(Cs={})),function(e){e.ACCOUNT_NAME="account_name",e.ACCOUNT_BSB="account_bsb",e.ACCOUNT_NUMBER="account_number",e.ACCOUNT_ROUTING="account_routing",e.ACCOUNT_HOLDER_TYPE="account_holder_type",e.ACCOUNT_BANK_NAME="account_bank_name",e.ACCOUNT_TYPE="account_type",e.CARD_NAME="card_name",e.CARD_NUMBER="card_number",e.EXPIRE_MONTH="expire_month",e.EXPIRE_YEAR="expire_year",e.CARD_CCV="card_ccv",e.CARD_PIN="card_pin",e.FIRST_NAME="first_name",e.LAST_NAME="last_name",e.EMAIL="email",e.PHONE="phone",e.PHONE2="phone2",e.ADDRESS_LINE1="address_line1",e.ADDRESS_LINE2="address_line2",e.ADDRESS_STATE="address_state",e.ADDRESS_COUNTRY="address_country",e.ADDRESS_CITY="address_city",e.ADDRESS_POSTCODE="address_postcode",e.ADDRESS_COMPANY="address_company",e.CARD_SCHEME="card_scheme",e.CARD_PROCESSING_NETWORK="card_processing_network"}(ys||(ys={})),function(e){e.BRAND_NAME="brand_name",e.CART_BORDER_COLOR="cart_border_color",e.REFERENCE="reference",e.EMAIL="email",e.HDR_IMG="hdr_img",e.LOGO_IMG="logo_img",e.PAY_FLOW_COLOR="pay_flow_color",e.FIRST_NAME="first_name",e.LAST_NAME="last_name",e.ADDRESS_LINE="address_line",e.ADDRESS_LINE2="address_line2",e.ADDRESS_CITY="address_city",e.ADDRESS_STATE="address_state",e.ADDRESS_POSTCODE="address_postcode",e.ADDRESS_COUNTRY="address_country",e.PHONE="phone",e.HIDE_SHIPPING_ADDRESS="hide_shipping_address",e.CUSTOMER_STORAGE_NUMBER="customer_storage_number",e.TOKENISE_ALGORITHM="tokenise_algorithm"}(bs||(bs={}));var Os="configuration",Is="identity_access_management",Rs="internal",xs="process",Ps="resource",Ls="validation",Ds="aborted",Us="access_forbidden",Fs="already_exists",Hs="canceled",js="invalid_configuration",Bs="invalid_input",zs="not_found",Ws="not_implemented",Vs="rate_limited",Gs="server_busy",qs="service_unreachable",Ys="unauthorized",Ks="unknown_error",Xs="unprocessable_entity",$s=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[s.message])).cause=e,a.category=r,a.retryable=o,a.details=s,Object.setPrototypeOf(a,t.prototype),a.name=t.name,a}return d(t,e),o(t,[{key:"toJSON",value:function(){return{error:{category:this.category,cause:this.cause,details:this.details,retryable:this.retryable}}}},{key:"setContextId",value:function(e){this.details.contextId=e}},{key:"setPurpose",value:function(e){this.purpose=e}}],[{key:"create",value:function(e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r={cause:e,contextId:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",message:n,timestamp:(new Date).toISOString()},o=function(e){switch(e){case js:return Os;case Us:case Ys:return Is;case qs:case Ws:case Gs:return Rs;case Ds:case Hs:return xs;case zs:case Vs:return Ps;case Fs:case Bs:case Xs:return Ls;default:return Rs}}(e);return new t(e,o,i,r)}}])}(E(Error));function Js(e){var t,n;switch(e.status){case 400:t=Bs,n=e.message||"validation_error";break;case 401:t=Ys,n=e.message||"unauthorized_resource";break;case 403:t=Us,n=e.message||"invalid_credentials";break;case 404:t=zs,n=e.message||"not_found";break;case 429:t=Vs,n=e.message||"rate_limited";break;case 500:t=Gs,n=e.message||"server_busy";break;case 503:t=qs,n=e.message||"service_unreachable";break;default:t=Ks,n=e.message||"unknown_error"}return{cause:t,message:n}}var Zs={CARD:"card",GIFT_CARD:"gift_card",BANK_ACCOUNT:"bank_account",CHECKOUT:"checkout",BSB:"bsb"};e.PURPOSE=void 0,function(e){e.PAYMENT_SOURCE="payment_source",e.CARD_PAYMENT_SOURCE_WITH_CVV="card_payment_source_with_cvv",e.CARD_PAYMENT_SOURCE_WITHOUT_CVV="card_payment_source_without_cvv"}(e.PURPOSE||(e.PURPOSE={}));var Qs=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zs.CARD,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.PURPOSE.PAYMENT_SOURCE;if(i(this,t),-1===yo.values(Zs).indexOf(r))throw new Error("unsupported payment type");if(r===Zs.CHECKOUT)throw new Error('Payment type "checkout" is deprecated. Use CheckoutButton for this type of payments https://www.npmjs.com/package/@paydock/client-sdk#checkout-button');if(-1===yo.values(e.PURPOSE).indexOf(o))throw new Error("unsupported purpose");this.env=new Z(q),this.configs={purpose:o,meta:{},dynamic_fields_position:!0,predefined_fields:{gateway_id:n,type:r,card_scheme:null,card_processing_network:null},defined_form_fields:[]}}return o(t,[{key:"setWebHookDestination",value:function(e){this.configs.webhook_destination=e}},{key:"setSuccessRedirectUrl",value:function(e){this.configs.success_redirect_url=e}},{key:"setErrorRedirectUrl",value:function(e){this.configs.error_redirect_url=e}},{key:"setFormFields",value:function(e){for(var t in Array.isArray(this.configs.defined_form_fields)||(this.configs.defined_form_fields=[]),e)e.hasOwnProperty(t)&&(-1!==yo.values(hr).indexOf(e[t].replace("*",""))?this.configs.defined_form_fields.push(e[t]):console.warn("Configuration::setFormFields: unsupported form field ".concat(e[t])))}},{key:"setMeta",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(-1!==gr.indexOf(t)?this.configs.meta[t]=e[t]:console.warn("Configuration::setMeta: unsupported meta key ".concat(t)))}},{key:"setEnv",value:function(e,t){this.env.setEnv(e,t)}},{key:"setLabel",value:function(e){this.configs.label=e}},{key:"getEnv",value:function(){return this.env.getEnv()}},{key:"createToken",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){};this.send(e,this.getUrl(),"POST",(function(e,i){if(i>=200&&i<300)return t(e.resource.data.configuration_token);void 0===e.error||void 0===e.error.message?n("unknown error"):n(e.error.message)}))}},{key:"getDefaultGateway",value:function(e,t,n){var i=Ue.create(t,n).setHeader(De.getAccessHeaderNameByToken(e),e).setContentTypeJson().setSdkVersion().inner();return new Promise((function(e,t){i.onload=function(){try{var n=JSON.parse(i.responseText);e(n)}catch(e){t(e)}},i.send()}))}},{key:"send",value:function(e,t,n,i){var r=Ue.create(n,t).setHeader(De.getAccessHeaderNameByToken(e),e).setContentTypeJson().setSdkVersion().inner();r.onload=function(){var e={};try{e=JSON.parse(r.responseText)}catch(e){}i(e,r.status)},r.send(JSON.stringify(this.getConfigs()))}},{key:"getConfigs",value:function(){return this.configs}},{key:"getUrl",value:function(){return this.env.getConf().url+"/v1/remote-action/configs"}},{key:"getDefaultGatewayUrl",value:function(){return this.env.getConf().url+"/v1/gateways/default"}},{key:"setGiftCardSchemeData",value:function(e,t){if(this.configs.predefined_fields.type!==Zs.GIFT_CARD)throw new Error("unsupported payment type");if(!e||!t)throw new Error("");this.configs.predefined_fields.card_scheme=e,this.configs.predefined_fields.card_processing_network=t}}],[{key:"createEachToken",value:function(e,n){return ie(this,void 0,void 0,p().mark((function i(){var r,o,s,a,c,l,u,d;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:r=new Array(n.length),i.t0=p().keys(n);case 2:if((i.t1=i.t0()).done){i.next=20;break}if(o=i.t1.value,!n.hasOwnProperty(o)){i.next=18;break}if("default"!==n[o].configs.predefined_fields.gateway_id){i.next=16;break}return i.next=8,n[o].getDefaultGateway(e,"GET",n[o].getDefaultGatewayUrl());case 8:if(200===(s=i.sent).status){i.next=15;break}throw console.error("--- | gateway: default | ".concat(s.error.message)),a=Js({status:s.status,message:s.error.message}),c=a.cause,l=a.message,(u=$s.create(c,l)).setPurpose(n[o].configs.purpose),u;case 15:n[o].configs.predefined_fields.gateway_id=s.resource.data._id;case 16:(d=_s(n[o].configs))&&t.addTokenInBase64(r,JSON.stringify(d),o);case 18:i.next=2;break;case 20:return i.abrupt("return",r);case 21:case"end":return i.stop()}}),i)})))}},{key:"addTokenInBase64",value:function(e,t,n){e[n]=window.btoa(t)}}])}(),ea={INPUT:"input",SUBMIT_BUTTON:"submit_button",LABEL:"label",TITLE:"title",TITLE_DESCRIPTION:"title_description"},ta={ERROR:"error",FOCUS:"focus",HOVER:"hover"},na=[{element:ea.INPUT,states:[ta.FOCUS,ta.ERROR],styles:["color","border","border_radius","background_color","height","text_decoration","font_size","font_family","line_height","font_weight","padding","margin","transition"]},{element:ea.SUBMIT_BUTTON,states:[ta.HOVER],styles:["color","border","border_radius","background_color","text_decoration","font_size","font_family","line_height","font_weight","padding","margin","transition","opacity"]},{element:ea.LABEL,states:[],styles:["color","text_decoration","font_size","font_family","line_height","font_weight","padding","margin"]},{element:ea.TITLE,states:[],styles:["color","text_decoration","font_size","font_family","line_height","font_weight","padding","margin","text_align"]},{element:ea.TITLE_DESCRIPTION,states:[],styles:["color","text_decoration","font_size","font_family","line_height","font_weight","padding","margin","text_align"]}],ia=function(){return o((function e(){i(this,e)}),null,[{key:"check",value:function(e,t,n,i){for(var r in e)if(e.hasOwnProperty(r)&&e[r].element===t){if(-1===e[r].states.indexOf(n)&&n)return!1;for(var o in i)if(i.hasOwnProperty(o)&&-1===e[r].styles.indexOf(o.replace("-","_")))return!1;return!0}return!1}},{key:"encode",value:function(e,t,n){var i=[];for(var r in n)n.hasOwnProperty(r)&&i.push("".concat(r.replace("_","-"),":").concat(n[r]));var o=i.join(";");return t?"".concat(e,"::").concat(t,"{").concat(o,"}"):"".concat(e,"{").concat(o,"}")}},{key:"decode",value:function(e){var t=(e.match("::(.*){")||["",null])[1],n=null!==t?(e.match("(.*)::")||["",""])[1].trim():(e.match("(.*){")||["",""])[1].trim(),i=(e.match("{(.*)}")||["",""])[1].split(";"),r={};for(var o in i)if(i.hasOwnProperty(o)){var s=i[o].split(":");(s||2===s.length)&&(r[s[0].trim()]=(s[1]||"").trim())}return{element:n,state:t,styles:r}}}])}(),ra=function(){return o((function e(t,n){i(this,e),this.configs=[],this.configTokens=[],this.link=new Pi("/remote-action"),Q.version&&this.link.setParams({sdk_version:Q.version,sdk_type:Q.type});var r=De.validateJWT(t);if(r){if(!De.validateJWTWhitelistedDomains(r.body))throw Error("access Token is not valid for current domain");this.link.setParams({token:t})}else this.link.setParams({public_key:t});if(this.accessToken=t,!n||Array.isArray(n)&&!n.length)throw Error("configuration token is required");if("string"==typeof n)this.configTokens.push(n);else if(n instanceof Qs)this.configs.push(n);else if(Array.isArray(n)&&"string"==typeof n[0])this.configTokens=n;else{if(!(Array.isArray(n)&&n[0]instanceof Qs))throw Error("Unsupported type of configuration token");this.configs=n}this.event=new Hi(window)}),[{key:"setStyles",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setStyle(t,e[t])}},{key:"usePhoneCountryMask",value:function(e){return e?!e.only_countries||/^[a-z]+$/.test(e.only_countries.join(""))&&2*e.only_countries.length===e.only_countries.join("").length?!e.preferred_countries||/^[a-z]+$/.test(e.preferred_countries.join(""))&&2*e.preferred_countries.length===e.preferred_countries.join("").length?e.default_country&&2!==e.default_country.length?console.warn("Widget::usePhoneCountryMask[s: default_country - incorrect value length"):(this.link.setParams({use_country_phone_mask:!0}),e.only_countries&&this.link.setParams({phone_mask_only_countries:e.only_countries.join(",")}),e.preferred_countries&&this.link.setParams({phone_mask_preferred_countries:e.preferred_countries.join(",")}),void(e.default_country&&this.link.setParams({phone_mask_default_country:e.default_country}))):console.warn("Widget::usePhoneCountryMask[s: preferred_countries - unsupported symbols or incorrect length of value"):console.warn("Widget::usePhoneCountryMask[s: only_countries - unsupported symbols or incorrect length of value"):this.link.setParams({use_country_phone_mask:!0})}},{key:"setStyle",value:function(e,t){-1!==yo.values(pr).indexOf(e)?this.link.setParams(a({},e,t)):console.warn("Widget::setStyle[s: unsupported style param ".concat(e))}},{key:"setTexts",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setText(t,e[t])}},{key:"setText",value:function(e,t){-1!==yo.values(fr).indexOf(e)?this.link.setParams(a({},e,t)):console.warn("Widget::setText[s: unsupported text param ".concat(e))}},{key:"setElementStyle",value:function(e,t,n){var i=3===arguments.length?t:null,r=3===arguments.length?n:t;if(!ia.check(na,e,i,r))return console.warn('Styles for "'.concat(e,'" element with "').concat(i||"default",'" state was ignored because some of the arguments are unacceptable'));this.link.concatParams({element_styles:ia.encode(e,i,r)})}},{key:"setFormValues",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setFormValue(t,e[t])}},{key:"setFormValue",value:function(e,t){return-1===yo.values(hr).indexOf(e)?console.warn("Widget::setFormValues[s: unsupported field ".concat(e)):/\,/.test(t)||/\:/.test(t)?console.warn("Widget::setFormValues[s: ".concat(e," - unsupported symbols (: or ,) in value")):void("string"==typeof this.link.getParams().form_values&&this.link.getParams().form_values.length?this.link.setParams({form_values:"".concat(this.link.getParams().form_values,",").concat(e,":").concat(t)}):this.link.setParams({form_values:"".concat(e,":").concat(t)}))}},{key:"setFormLabels",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setFormLabel(t,e[t])}},{key:"setFormLabel",value:function(e,t){if(-1===yo.values(hr).indexOf(e))return console.warn("Widget::setFormLabel[s: unsupported field ".concat(e));var n=null===t||""===t?" ":t;if(/\,/.test(n)||/\:/.test(n))return console.warn("Widget::setFormLabel[s: ".concat(e," - unsupported symbols (: or ,) in value"));this.link.concatParams({form_labels:"".concat(e,":").concat(n)})}},{key:"setFormPlaceholders",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setFormPlaceholder(t,e[t])}},{key:"setFormPlaceholder",value:function(e,t){if(-1===yo.values(hr).indexOf(e))return console.warn("Widget::setFormPlaceholder[s: unsupported field ".concat(e));var n=null===t||""===t?" ":t;if(/\,/.test(n)||/\:/.test(n))return console.warn("Widget::setFormPlaceholder[s: ".concat(e," - unsupported symbols (: or ,) in value"));this.link.concatParams({form_placeholders:"".concat(e,":").concat(n)})}},{key:"setFormElements",value:function(e){var t=this;e.forEach((function(e){return t.setFormElement(e)}))}},{key:"setFormElement",value:function(e){e.value&&this.setFormValue(e.field,e.value),e.label&&this.setFormLabel(e.field,e.label),e.placeholder&&this.setFormPlaceholder(e.field,e.placeholder)}},{key:"setIcons",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setIcon(t,e[t])}},{key:"setIcon",value:function(e,t){if(/\,/.test(t)||/\:/.test(t))return console.warn("Widget::setIcon[s: ".concat(e," - unsupported symbols (: or ,) in value"));"string"==typeof this.link.getParams().icons&&this.link.getParams().icons.length?this.link.setParams({icons:"".concat(this.link.getParams().icons,",").concat(e,":").concat(t)}):this.link.setParams({icons:"".concat(e,":").concat(t)})}},{key:"setHiddenElements",value:function(e){var t=[],n=yo.values(mr).concat(yo.values(hr));for(var i in e)e.hasOwnProperty(i)&&(-1!==n.indexOf(e[i])?t.push(e[i]):console.warn("Widget::setHiddenElements: unsupported element ".concat(e[i])));t.length&&this.link.concatParams({hidden_elements:t.join(",")})}},{key:"setRefId",value:function(e){this.link.setParams({ref_id:e})}},{key:"useGatewayFieldValidation",value:function(){this.link.setParams({fields_validation:!0})}},{key:"setSupportedCardIcons",value:function(e,t){var n=[];for(var i in e)e.hasOwnProperty(i)&&(-1!==yo.values(vr).indexOf(e[i])?n.push(e[i]):console.warn("Widget::cardTypes: unsupported type of cards ".concat(e[i])));n.length&&this.link.concatParams({supported_card_types:n.join(",")}),t&&this.link.setParams({validate_card_types:t})}},{key:"hideUiErrors",value:function(){this.link.setParams({hide_ui_errors:!0})}},{key:"setEnv",value:function(e,t){for(var n in this.link.setEnv(e,t),this.configs)this.configs.hasOwnProperty(n)&&this.configs[n].setEnv(e,t)}},{key:"getEnv",value:function(){this.link.getEnv()}},{key:"loadIFrameUrl",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){};this.link.setParams({configuration_tokens:"",sdk_origin:!0}),this.configTokens.length?(this.link.setParams({configuration_tokens:this.configTokens.join(",")}),e(this.link.getUrl())):Qs.createEachToken(this.accessToken,this.configs).then((function(n){t.link.concatParams({configuration_tokens:n.join(",")}),e(t.link.getUrl())})).catch(n)}},{key:"setLanguage",value:function(e){this.link.setParams({language:e})}},{key:"getLink",value:function(){return this.link}},{key:"handleErrorEvent",value:function(e,t,n){Object.values(Fi).includes(e)?this.event.emit({error:t,event:e,message_source:"client-sdk.paydock",purpose:n,widget_id:this.link.getParams().widget_id}):console.error("Unknown event: ",{event:e,error:t})}}])}(),oa=function(){return o((function e(t){i(this,e),this.intercepted=!1,this.selector=t}),[{key:"getElement",value:function(){return document.querySelector(this.selector)}},{key:"isExist",value:function(){return!!this.getElement()}},{key:"beforeSubmit",value:function(e){var t=this;this.isExist()&&this.subscribe(this.getElement(),(function(n){n.preventDefault(),t.intercepted=!0,e.apply(t,[])}))}},{key:"continueSubmit",value:function(){var e=this;this.isExist()&&this.intercepted&&(this.intercepted=!1,setTimeout((function(){e.getElement().submit()}),50))}},{key:"subscribe",value:function(e,t){e.addEventListener?e.addEventListener("submit",t):e.attachEvent("onsubmit",t)}}])}(),sa=function(e){function t(e,r,o){var s;return i(this,t),(s=n(this,t,[r,o])).validationData={},s.container=new Di(e),s.iFrame=new Ui(s.container),s.triggerElement=new Ao(s.iFrame),s}return d(t,e),o(t,[{key:"load",value:function(){var e=this;this.setStyles(this.container.getStyles(yo.values(pr))),this.setTexts(this.container.getAttr(yo.values(fr))),this.loadIFrameUrl((function(t){e.iFrame.load(t,{title:"Card details"}),e.afterLoad()}),(function(t){t instanceof $s&&(t.setContextId(e.link.getParams().widget_id),e.handleErrorEvent(Fi.ERROR,t.toJSON().error,t.purpose)),console.error("Error when creating a token, widget will not be loaded")}))}},{key:"afterLoad",value:function(){var e=this;this.on(Fi.VALIDATION,(function(t){e.validationData=t}))}},{key:"on",value:function(e,t){var n=this;return"function"==typeof t?this.event.on(e,this.link.getParams().widget_id,t):new Promise((function(t){return n.event.on(e,n.link.getParams().widget_id,(function(e){return t(e)}))}))}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.triggerElement.push(e,t)}},{key:"getValidationState",value:function(){return this.validationData}},{key:"isValidForm",value:function(){return!!this.validationData.form_valid}},{key:"isInvalidField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!this.validationData.invalid_fields&&-1!==this.validationData.invalid_fields.indexOf(e)}},{key:"isFieldErrorShowed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!this.validationData.invalid_showed_fields&&-1!==this.validationData.invalid_showed_fields.indexOf(e)}},{key:"isInvalidFieldByValidator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=!1;if(!this.validationData.validators)return n;var i=this.validationData.validators[t];return i?-1!==i.indexOf(e):n}},{key:"hide",value:function(e){this.iFrame.hide(e)}},{key:"show",value:function(){this.iFrame.show()}},{key:"reload",value:function(){this.iFrame.remove(),this.load()}},{key:"hideElements",value:function(e){var t=[],n=yo.values(mr).concat(yo.values(hr));for(var i in e)e.hasOwnProperty(i)&&(-1!==n.indexOf(e[i])?t.push(e[i]):console.warn("Widget::hideElements: unsupported element ".concat(e[i])));t.length&&this.trigger(Mo.HIDE_ELEMENTS,{elements:t.join(",")})}},{key:"showElements",value:function(e){var t=[],n=yo.values(mr).concat(yo.values(hr));for(var i in e)e.hasOwnProperty(i)&&(-1!==n.indexOf(e[i])?t.push(e[i]):console.warn("Widget::showElements: unsupported element ".concat(e[i])));t.length&&this.trigger(Mo.SHOW_ELEMENTS,{elements:t.join(",")})}},{key:"updateFormValues",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.updateFormValue(t,e[t])}},{key:"updateFormValue",value:function(e,t){return-1===yo.values(hr).indexOf(e)?console.warn("Widget::setFormValues[s: unsupported field ".concat(e)):/\,/.test(t)||/\:/.test(t)?console.warn("Widget::setFormValues[s: ".concat(e," - unsupported symbols (: or ,) in value")):void this.trigger(Mo.UPDATE_FORM_VALUES,{form_values:"".concat(e,":").concat(t)})}},{key:"onFinishInsert",value:function(e,t){this.on(Fi.FINISH,(function(n){Li.insertToInput(e,t,n)}))}},{key:"interceptSubmitForm",value:function(e){var t=this;this.setHiddenElements([mr.SUBMIT_BUTTON]);var n=new oa(e);n.beforeSubmit((function(){t.triggerElement.push(Mo.SUBMIT_FORM,{}),t.event.on(Fi.FINISH,t.link.getParams().widget_id,(function(){n.continueSubmit()}))}))}},{key:"useCheckoutAutoSubmit",value:function(){var e=this;this.setHiddenElements([mr.SUBMIT_BUTTON]),this.on(Fi.CHECKOUT_SUCCESS,(function(t){e.trigger(Mo.SUBMIT_FORM)})),this.on(Fi.VALIDATION_ERROR,(function(t){e.trigger(Mo.REFRESH_CHECKOUT)})),this.on(Fi.SYSTEM_ERROR,(function(t){e.trigger(Mo.REFRESH_CHECKOUT)}))}},{key:"useAutoResize",value:function(){var e=this;this.on(Fi.RESIZE,(function(t){e.iFrame.getElement()&&(e.iFrame.getElement().scrolling="no",t.height&&e.iFrame.setStyle("height",t.height+"px"))}))}}])}(ra),aa=function(e){function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",s=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return i(this,t),n(this,t,[e,r,new Qs(o,s,a)])}return d(t,e),o(t,[{key:"setWebHookDestination",value:function(e){this.configs[0].setWebHookDestination(e)}},{key:"setSuccessRedirectUrl",value:function(e){this.configs[0].setSuccessRedirectUrl(e)}},{key:"setErrorRedirectUrl",value:function(e){this.configs[0].setErrorRedirectUrl(e)}},{key:"setFormFields",value:function(e){this.configs[0].setFormFields(e)}},{key:"setFormElements",value:function(e){var t,n=s(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.setFormElement(i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"setFormElement",value:function(e){this.configs[0].setFormFields([e.field]),v(t,"setFormElement",this)([c(c({},e),{field:e.field.replace("*","")})])}},{key:"setMeta",value:function(e){this.configs[0].setMeta(e)}},{key:"setGiftCardScheme",value:function(e,t){this.configs[0].setGiftCardSchemeData(e,t)}}])}(sa),ca=function(){return o((function e(){i(this,e),this.instructions=[]}),[{key:"getInstruction",value:function(e){return this.instructions.find((function(t){return t.instruction==e}))}}])}();var la=function(){return o((function e(t,n,r,o){i(this,e),this.selector=t,this.formSelector=n,this.api=r,this.checkoutWidget=o}),[{key:"getEnv",value:function(e){var t=De.validateJWT(e);if(!t)throw new Error("Invalid instruction token.");return De.extractEnv(t.body)}}])}();function ua(e){return function(t){var r;return r=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t)}(t),r.instruction=e,r}}var da=function(){return o((function e(){i(this,e)}),null,[{key:"getSpinnerElement",value:function(){return document.getElementById("spinner")}},{key:"show",value:function(){var e=this.getSpinnerElement();null==e||e.classList.remove("spinner-wrapper--hidden")}},{key:"hide",value:function(){var e=this.getSpinnerElement();null==e||e.classList.add("spinner-wrapper--hidden")}}])}(),ha=function(){return o((function e(){i(this,e)}),null,[{key:"sessionId",get:function(){return window.sessionStorage.getItem("sessionId")},set:function(e){window.sessionStorage.setItem("sessionId",e)}},{key:"setExpired",value:function(e){this.expired.next(e)}}])}();ha.expired=new xe(!1);var pa={zipmoney:'<svg id="svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="90"\n height="{{iconHeight}}" viewBox="0, 0, 400,198.7987987987988">\n <g id="svgg">\n <path id="path0"\n d="M138.764 66.505 C 138.630 66.667,138.397 66.799,138.246 66.799 C 138.095 66.799,137.972 66.978,137.972 67.197 C 137.972 67.416,138.100 67.594,138.257 67.594 C 138.821 67.594,139.116 71.699,138.590 72.225 C 138.469 72.346,138.371 72.539,138.373 72.654 C 138.374 72.769,138.454 72.740,138.549 72.589 C 139.373 71.289,139.848 75.804,139.075 77.584 C 138.959 77.851,139.018 77.932,139.329 77.932 C 139.872 77.932,140.007 78.448,139.932 80.240 C 139.893 81.185,139.951 81.781,140.092 81.869 C 140.676 82.235,140.934 84.735,140.536 86.171 C 140.357 86.816,140.371 86.993,140.617 87.173 C 141.079 87.511,141.364 88.886,141.285 90.388 C 141.231 91.396,141.295 91.876,141.531 92.237 C 141.878 92.770,141.968 96.025,141.664 97.068 C 141.540 97.493,141.571 97.614,141.804 97.614 C 142.460 97.614,142.791 100.359,142.264 101.417 C 142.080 101.785,142.041 101.974,142.178 101.838 C 142.960 101.056,143.446 103.705,142.930 105.943 C 142.754 106.707,142.777 106.861,143.117 107.177 C 143.729 107.747,143.923 110.242,143.444 111.382 C 143.340 111.627,143.389 111.730,143.609 111.730 C 144.285 111.730,144.499 114.377,144.021 116.821 C 143.921 117.328,143.971 117.458,144.297 117.543 C 144.756 117.663,145.085 119.720,144.831 120.877 C 144.741 121.284,144.771 121.572,144.912 121.659 C 145.352 121.930,145.620 123.952,145.394 125.290 C 145.207 126.390,145.223 126.581,145.525 126.871 C 145.915 127.245,146.201 129.182,146.009 130.144 C 145.930 130.540,146.002 130.984,146.211 131.390 C 146.636 132.210,146.803 134.196,146.568 135.636 C 146.430 136.486,146.442 136.779,146.616 136.779 C 147.179 136.779,147.610 141.200,147.068 141.419 C 146.910 141.483,146.937 141.525,147.143 141.535 C 147.770 141.565,148.106 143.972,147.715 145.626 C 147.565 146.261,147.588 146.467,147.827 146.648 C 148.458 147.124,148.733 149.390,148.281 150.382 C 148.082 150.819,148.114 150.932,148.529 151.269 C 149.057 151.696,149.202 153.894,148.834 155.915 C 148.689 156.712,148.711 156.859,148.974 156.859 C 149.583 156.859,149.960 159.731,149.508 160.921 C 149.353 161.328,149.374 161.431,149.612 161.431 C 150.046 161.431,150.298 162.273,150.298 163.716 C 150.298 164.601,150.392 165.075,150.611 165.294 C 150.893 165.577,156.544 165.606,209.834 165.606 L 268.744 165.606 268.844 165.159 C 268.899 164.913,268.959 164.091,268.977 163.332 C 268.995 162.573,269.054 161.880,269.108 161.792 C 269.359 161.387,269.343 160.835,269.081 160.835 C 268.604 160.835,268.390 160.127,268.390 158.549 C 268.390 157.714,268.482 156.858,268.595 156.647 C 268.756 156.346,268.736 156.262,268.503 156.262 C 267.818 156.262,267.520 152.966,268.085 151.640 C 268.199 151.373,268.138 151.292,267.824 151.292 C 267.515 151.292,267.388 151.133,267.311 150.646 C 267.055 149.028,267.058 147.986,267.318 147.478 C 267.592 146.943,267.502 146.233,267.186 146.428 C 266.657 146.755,266.340 143.058,266.794 141.862 C 266.949 141.455,266.928 141.352,266.690 141.352 C 266.051 141.352,265.699 138.370,266.189 137.104 C 266.384 136.600,266.351 136.480,265.908 136.070 C 265.540 135.728,265.398 135.379,265.371 134.751 C 265.307 133.228,265.444 131.517,265.651 131.262 C 265.798 131.083,265.766 131.014,265.538 131.014 C 264.866 131.014,264.445 129.134,264.830 127.849 C 265.045 127.131,265.034 127.000,264.740 126.785 C 264.140 126.346,263.988 123.070,264.510 121.819 C 264.620 121.555,264.559 121.471,264.257 121.471 C 263.515 121.471,263.168 119.001,263.702 117.520 C 264.103 116.408,264.097 116.302,263.632 116.302 C 262.968 116.302,262.648 112.800,263.214 111.741 C 263.401 111.393,263.376 111.332,263.042 111.332 C 262.203 111.332,262.071 109.442,262.749 107.108 C 262.818 106.869,262.696 106.701,262.360 106.574 C 261.760 106.345,261.495 104.671,261.809 103.082 C 261.974 102.250,261.954 102.048,261.690 101.846 C 261.076 101.376,260.984 98.521,261.532 96.918 C 261.616 96.673,261.602 96.612,261.495 96.759 C 260.940 97.522,260.342 95.416,260.568 93.494 C 260.665 92.670,260.598 92.242,260.244 91.419 C 259.766 90.309,259.744 88.269,260.209 88.115 C 260.334 88.073,260.436 87.845,260.434 87.608 C 260.432 87.334,260.376 87.264,260.280 87.415 C 259.545 88.571,258.952 85.112,259.514 82.946 C 259.766 81.975,259.760 81.909,259.418 81.909 C 258.766 81.909,258.524 79.431,259.006 77.684 C 259.188 77.026,259.169 76.956,258.790 76.900 C 258.199 76.813,257.985 75.799,258.116 73.708 C 258.176 72.745,258.146 71.968,258.048 71.968 C 257.514 71.968,257.296 69.396,257.755 68.516 C 258.161 67.738,258.134 67.411,257.673 67.532 C 257.412 67.600,257.254 67.502,257.163 67.216 C 256.815 66.119,261.472 66.199,197.719 66.205 C 146.119 66.210,138.979 66.246,138.764 66.505 "\n stroke="none" fill="#ac93fb" fill-rule="evenodd"></path>\n <path id="path1"\n d="M154.005 22.515 C 153.942 22.754,153.717 22.863,153.285 22.863 C 152.939 22.863,152.521 22.997,152.357 23.161 C 152.193 23.325,151.880 23.459,151.661 23.459 C 151.443 23.459,151.130 23.593,150.966 23.757 C 150.802 23.921,150.495 24.056,150.284 24.056 C 150.073 24.056,149.901 24.145,149.901 24.254 C 149.901 24.364,149.783 24.453,149.639 24.453 C 149.495 24.453,149.100 24.766,148.761 25.149 C 148.422 25.532,148.087 25.845,148.015 25.845 C 147.943 25.845,147.767 25.957,147.624 26.093 C 147.482 26.230,147.175 26.474,146.943 26.634 C 146.711 26.795,146.520 27.019,146.518 27.131 C 146.514 27.411,145.040 29.026,144.789 29.026 C 144.679 29.026,144.632 29.255,144.685 29.535 C 144.759 29.922,144.688 30.068,144.390 30.146 C 144.095 30.224,144.021 30.372,144.092 30.743 C 144.162 31.112,144.088 31.262,143.799 31.338 C 143.500 31.416,143.432 31.570,143.498 32.019 C 143.609 32.778,143.396 33.598,143.088 33.598 C 142.903 33.598,142.843 34.507,142.843 37.326 C 142.843 39.376,142.773 41.322,142.688 41.650 C 142.588 42.035,142.598 42.148,142.717 41.969 C 143.084 41.419,143.539 41.888,143.539 42.815 C 143.539 43.414,143.634 43.732,143.837 43.809 C 144.022 43.880,144.135 44.183,144.135 44.605 C 144.135 45.026,144.249 45.329,144.433 45.400 C 144.597 45.463,144.732 45.733,144.732 46.001 C 144.732 46.269,144.799 46.518,144.881 46.554 C 145.110 46.656,145.924 47.870,145.924 48.110 C 145.924 48.227,146.193 48.586,146.521 48.907 C 146.849 49.227,147.117 49.627,147.117 49.794 C 147.117 49.962,147.207 50.099,147.316 50.099 C 147.425 50.099,147.515 50.224,147.515 50.376 C 147.515 50.529,147.649 50.705,147.813 50.768 C 147.977 50.831,148.111 51.067,148.111 51.292 C 148.111 51.518,148.246 51.754,148.410 51.817 C 148.574 51.880,148.708 52.056,148.708 52.208 C 148.708 52.360,148.832 52.485,148.985 52.485 C 149.137 52.485,149.314 52.621,149.378 52.788 C 149.456 52.991,149.646 53.053,149.951 52.977 C 150.418 52.859,152.087 54.146,152.087 54.623 C 152.087 54.740,152.275 54.784,152.510 54.723 C 152.784 54.652,152.998 54.728,153.117 54.940 C 153.217 55.121,153.464 55.268,153.663 55.268 C 153.863 55.268,154.138 55.403,154.274 55.567 C 154.410 55.731,154.743 55.865,155.013 55.865 C 155.322 55.865,155.540 56.000,155.600 56.229 C 155.673 56.511,155.879 56.589,156.513 56.577 C 157.199 56.563,157.349 56.632,157.443 57.002 C 157.528 57.337,157.626 57.398,157.853 57.254 C 158.251 57.000,159.573 57.006,160.053 57.263 C 160.531 57.520,160.548 57.802,160.089 57.892 C 159.898 57.929,161.016 57.958,162.574 57.956 C 164.132 57.954,165.317 57.922,165.208 57.886 C 164.384 57.610,165.262 57.058,166.524 57.058 C 167.011 57.058,167.629 56.914,167.898 56.738 C 168.191 56.545,168.577 56.465,168.863 56.537 C 169.228 56.629,169.362 56.564,169.442 56.261 C 169.510 55.999,169.713 55.865,170.040 55.865 C 170.312 55.865,170.583 55.738,170.643 55.582 C 170.710 55.406,170.910 55.341,171.173 55.409 C 171.475 55.488,171.622 55.414,171.694 55.146 C 171.823 54.660,173.200 53.678,173.751 53.678 C 173.986 53.678,174.123 53.588,174.056 53.479 C 173.988 53.370,174.028 53.280,174.143 53.280 C 174.259 53.280,174.354 53.083,174.354 52.843 C 174.354 52.582,174.715 52.064,175.249 51.560 C 175.742 51.093,176.143 50.532,176.143 50.308 C 176.143 50.084,176.233 49.901,176.342 49.901 C 176.451 49.901,176.541 49.728,176.541 49.517 C 176.541 49.306,176.668 49.007,176.823 48.852 C 176.978 48.697,177.135 48.313,177.171 48.000 C 177.219 47.584,177.370 47.400,177.732 47.315 C 178.066 47.237,178.146 47.150,177.980 47.047 C 177.445 46.716,177.748 45.129,178.346 45.129 C 178.662 45.129,178.696 45.033,178.574 44.483 C 178.376 43.597,178.392 40.648,178.600 39.587 C 178.726 38.945,178.711 38.754,178.542 38.859 C 178.416 38.937,178.182 38.892,178.023 38.760 C 177.695 38.488,177.629 37.265,177.932 37.078 C 178.234 36.891,178.170 36.523,177.857 36.643 C 177.283 36.863,176.820 35.607,177.354 35.277 C 177.485 35.196,177.388 35.053,177.105 34.911 C 176.823 34.770,176.638 34.498,176.635 34.221 C 176.632 33.969,176.476 33.677,176.287 33.572 C 176.099 33.466,175.944 33.216,175.944 33.016 C 175.944 32.817,175.810 32.542,175.646 32.406 C 175.482 32.269,175.348 32.042,175.348 31.901 C 175.348 31.759,175.281 31.614,175.199 31.577 C 174.982 31.481,173.757 29.690,173.757 29.470 C 173.757 29.368,173.489 29.078,173.161 28.827 C 172.833 28.576,172.565 28.287,172.565 28.186 C 172.565 27.879,171.425 26.839,171.089 26.839 C 170.916 26.839,170.775 26.750,170.775 26.640 C 170.775 26.531,170.664 26.441,170.527 26.441 C 170.390 26.441,169.925 26.127,169.493 25.742 C 169.061 25.358,168.368 24.894,167.952 24.710 C 167.537 24.527,167.197 24.305,167.197 24.216 C 167.197 24.128,166.970 24.056,166.694 24.056 C 166.417 24.056,166.139 23.921,166.076 23.757 C 166.004 23.571,165.701 23.459,165.268 23.459 C 164.772 23.459,164.549 23.359,164.483 23.107 C 164.410 22.827,164.229 22.771,163.594 22.831 C 162.947 22.893,162.779 22.838,162.701 22.537 C 162.556 21.983,154.150 21.962,154.005 22.515 M142.020 37.575 C 142.020 38.613,142.053 39.038,142.094 38.519 C 142.135 38.000,142.135 37.150,142.094 36.630 C 142.053 36.111,142.020 36.536,142.020 37.575 M353.777 66.021 C 352.793 66.109,335.080 66.154,314.414 66.120 C 293.748 66.087,275.564 66.106,274.006 66.162 L 271.173 66.265 271.173 66.951 C 271.173 67.485,271.240 67.611,271.478 67.520 C 272.153 67.261,272.297 68.881,271.850 71.720 C 271.730 72.483,271.756 72.565,272.127 72.565 C 272.667 72.565,272.891 74.172,272.582 75.840 C 272.300 77.370,272.308 77.535,272.669 77.535 C 273.340 77.535,273.483 79.065,273.037 81.464 C 272.937 82.004,272.970 82.092,273.235 81.990 C 273.930 81.723,274.115 83.788,273.632 86.431 C 273.530 86.989,273.570 87.078,273.922 87.078 C 274.253 87.078,274.355 87.247,274.466 87.985 C 274.591 88.821,274.561 89.251,274.234 91.274 C 274.136 91.879,274.181 92.008,274.519 92.096 C 274.819 92.175,274.954 92.434,275.059 93.131 C 275.190 94.009,275.154 94.555,274.833 96.575 C 274.717 97.307,274.742 97.407,275.020 97.300 C 275.693 97.042,275.936 99.338,275.428 101.143 C 275.334 101.477,275.385 101.590,275.628 101.590 C 276.319 101.590,276.516 103.818,276.019 106.026 C 275.916 106.482,275.969 106.604,276.307 106.693 C 276.994 106.872,277.091 108.272,276.618 111.183 C 276.511 111.843,276.544 111.928,276.908 111.928 C 277.585 111.928,277.713 113.812,277.214 116.451 C 277.108 117.011,277.147 117.097,277.503 117.097 C 278.163 117.097,278.347 119.761,277.815 121.620 C 277.712 121.981,277.767 122.068,278.099 122.068 C 278.784 122.068,278.890 123.343,278.416 125.899 C 278.299 126.529,278.326 126.629,278.586 126.529 C 279.301 126.255,279.520 128.529,279.015 130.964 C 278.898 131.528,278.934 131.610,279.292 131.610 C 279.963 131.610,280.115 133.909,279.598 136.233 C 279.496 136.692,279.542 136.779,279.888 136.779 C 280.555 136.779,280.720 139.205,280.201 141.404 C 280.100 141.836,280.134 141.930,280.362 141.843 C 281.102 141.559,281.326 143.570,280.800 145.775 C 280.689 146.239,280.732 146.322,281.086 146.322 C 281.762 146.322,281.893 148.258,281.392 150.847 C 281.289 151.379,281.321 151.475,281.572 151.379 C 282.298 151.100,282.494 153.299,281.985 156.014 C 281.881 156.568,281.920 156.660,282.262 156.660 C 282.912 156.660,283.194 159.048,282.699 160.351 C 282.439 161.035,282.605 161.558,283.125 161.694 C 283.536 161.802,283.586 163.228,283.240 165.048 C 283.092 165.830,283.107 165.830,301.988 165.764 L 318.787 165.706 318.922 164.811 C 318.996 164.319,319.119 163.665,319.196 163.358 C 319.311 162.895,319.264 162.780,318.917 162.690 C 318.229 162.510,318.143 161.333,318.597 158.314 C 318.712 157.551,318.689 157.492,318.320 157.589 C 317.648 157.764,317.512 155.785,318.013 153.144 C 318.120 152.580,318.089 152.523,317.727 152.618 C 317.065 152.791,316.957 151.436,317.372 148.161 C 317.439 147.632,317.386 147.515,317.081 147.515 C 316.711 147.515,316.380 146.784,316.537 146.314 C 316.619 146.067,353.265 146.014,357.853 146.255 C 360.143 146.375,360.317 146.359,360.068 146.059 C 359.505 145.378,362.376 145.106,364.493 145.638 C 364.915 145.744,365.030 145.720,364.923 145.547 C 364.524 144.901,366.090 144.445,367.013 144.938 C 367.337 145.112,367.430 145.064,367.591 144.640 C 367.800 144.091,368.676 143.952,369.633 144.315 C 370.043 144.471,370.105 144.438,370.093 144.067 C 370.082 143.700,370.205 143.629,370.951 143.576 C 371.431 143.541,371.960 143.377,372.127 143.209 C 372.316 143.021,372.630 142.945,372.955 143.010 C 373.334 143.086,373.546 143.009,373.719 142.731 C 373.852 142.519,374.144 142.346,374.370 142.346 C 374.595 142.346,374.922 142.203,375.096 142.029 C 375.301 141.824,375.604 141.751,375.956 141.821 C 376.389 141.908,376.521 141.846,376.607 141.517 C 376.694 141.187,376.817 141.129,377.224 141.232 C 377.652 141.339,377.734 141.291,377.734 140.933 C 377.734 140.566,377.816 140.523,378.330 140.626 C 378.732 140.707,378.928 140.666,378.930 140.502 C 378.935 140.155,379.850 139.331,380.159 139.396 C 380.301 139.426,380.714 139.176,381.075 138.840 C 381.547 138.403,381.870 138.257,382.218 138.323 C 382.576 138.392,382.704 138.329,382.704 138.084 C 382.704 137.648,388.136 132.207,388.573 132.207 C 388.829 132.207,388.881 132.093,388.790 131.730 C 388.700 131.372,388.820 131.092,389.266 130.615 C 389.593 130.265,389.861 129.818,389.861 129.623 C 389.861 129.427,389.995 129.216,390.159 129.153 C 390.323 129.090,390.457 128.868,390.457 128.659 C 390.457 128.450,390.591 128.168,390.755 128.032 C 390.919 127.896,391.054 127.661,391.054 127.510 C 391.054 127.360,391.217 127.237,391.417 127.237 C 391.707 127.237,391.763 127.117,391.693 126.642 C 391.631 126.222,391.700 126.012,391.926 125.925 C 392.134 125.845,392.247 125.564,392.247 125.122 C 392.247 124.700,392.360 124.397,392.545 124.326 C 392.729 124.255,392.843 123.953,392.843 123.531 C 392.843 123.109,392.956 122.807,393.141 122.736 C 393.327 122.664,393.439 122.361,393.439 121.928 C 393.439 121.435,393.540 121.209,393.787 121.144 C 394.077 121.069,394.124 120.870,394.066 119.957 C 394.005 118.978,394.043 118.848,394.417 118.750 C 394.807 118.648,394.828 118.549,394.709 117.388 C 394.566 115.997,394.712 115.109,395.083 115.109 C 395.553 115.109,395.424 102.431,394.952 102.308 C 394.608 102.218,394.585 102.051,394.675 100.325 C 394.765 98.610,394.741 98.432,394.405 98.344 C 394.097 98.264,394.036 98.050,394.036 97.058 C 394.036 96.183,393.957 95.837,393.738 95.753 C 393.543 95.678,393.439 95.369,393.439 94.859 C 393.439 94.348,393.336 94.039,393.141 93.964 C 392.938 93.886,392.843 93.568,392.843 92.970 C 392.843 92.371,392.748 92.054,392.545 91.976 C 392.360 91.905,392.247 91.602,392.247 91.181 C 392.247 90.759,392.133 90.456,391.948 90.385 C 391.782 90.321,391.650 90.026,391.650 89.716 C 391.650 89.374,391.496 89.065,391.248 88.910 C 390.923 88.707,390.886 88.583,391.056 88.266 C 391.235 87.931,391.203 87.873,390.839 87.873 C 390.478 87.873,390.426 87.781,390.500 87.276 C 390.565 86.829,390.509 86.680,390.274 86.679 C 389.949 86.677,389.264 85.662,389.264 85.183 C 389.264 85.033,389.117 84.828,388.936 84.727 C 388.724 84.608,388.648 84.394,388.719 84.121 C 388.780 83.888,388.765 83.698,388.685 83.698 C 388.435 83.698,387.276 82.580,387.276 82.338 C 387.276 82.211,387.187 82.107,387.078 82.107 C 386.968 82.107,386.879 81.976,386.879 81.815 C 386.879 81.655,385.492 80.147,383.797 78.464 C 382.102 76.782,380.716 75.303,380.716 75.178 C 380.716 75.053,380.508 74.950,380.254 74.950 C 380.001 74.950,379.493 74.682,379.125 74.354 C 378.758 74.026,378.339 73.757,378.195 73.757 C 378.050 73.757,377.932 73.668,377.932 73.559 C 377.932 73.449,377.801 73.360,377.641 73.360 C 377.481 73.360,377.254 73.181,377.137 72.962 C 377.020 72.744,376.749 72.565,376.534 72.565 C 376.319 72.565,376.142 72.498,376.141 72.416 C 376.140 72.333,375.648 72.048,375.048 71.781 C 374.269 71.435,373.956 71.186,373.956 70.912 C 373.956 70.609,373.899 70.576,373.683 70.754 C 373.434 70.961,372.808 70.870,372.565 70.591 C 372.359 70.356,371.055 69.798,370.577 69.741 C 370.235 69.700,370.060 69.542,370.016 69.235 C 369.945 68.735,369.776 68.674,369.429 69.020 C 369.124 69.325,368.191 68.927,368.191 68.493 C 368.191 68.132,368.151 68.127,367.530 68.410 C 366.931 68.683,366.110 68.322,366.286 67.864 C 366.373 67.637,366.296 67.598,365.953 67.697 C 365.708 67.767,365.355 67.867,365.169 67.919 C 364.983 67.970,364.638 67.819,364.402 67.583 C 364.061 67.241,363.823 67.177,363.248 67.269 C 362.239 67.430,361.630 67.235,361.630 66.751 C 361.630 66.387,361.554 66.366,360.785 66.516 C 359.064 66.852,357.256 66.639,357.256 66.100 C 357.256 65.768,356.732 65.756,353.777 66.021 M4.905 66.153 C 4.504 66.828,4.563 69.136,4.984 69.246 C 5.425 69.361,5.429 69.392,5.305 71.837 C 5.183 74.242,5.191 74.313,5.602 74.421 C 6.010 74.527,6.020 74.607,5.914 76.909 C 5.809 79.189,5.822 79.292,6.213 79.395 C 6.604 79.497,6.617 79.596,6.495 81.577 C 6.373 83.582,6.383 83.657,6.793 83.764 C 7.207 83.872,7.215 83.942,7.101 86.351 C 6.991 88.684,7.007 88.833,7.369 88.928 C 7.666 89.006,7.762 89.224,7.792 89.892 C 7.848 91.162,7.835 91.437,7.664 92.694 C 7.533 93.660,7.556 93.837,7.817 93.837 C 8.253 93.837,8.417 94.504,8.409 96.256 C 8.403 97.643,8.441 97.791,8.824 97.895 C 9.055 97.957,21.590 98.009,36.680 98.009 L 64.115 98.009 64.052 98.806 C 64.004 99.420,64.060 99.602,64.297 99.602 C 64.597 99.602,64.664 99.777,64.898 101.173 C 65.031 101.962,63.658 103.488,62.977 103.310 C 62.783 103.260,62.623 103.322,62.622 103.448 C 62.621 103.574,62.167 103.991,61.613 104.374 C 61.059 104.756,60.267 105.360,59.852 105.716 C 59.437 106.071,59.001 106.362,58.885 106.362 C 58.768 106.362,58.377 106.632,58.015 106.962 C 57.653 107.293,57.223 107.543,57.058 107.517 C 56.894 107.492,56.372 107.848,55.898 108.308 C 55.425 108.769,54.960 109.145,54.866 109.145 C 54.771 109.145,54.354 109.461,53.938 109.846 C 53.486 110.265,53.040 110.513,52.833 110.461 C 52.642 110.414,52.485 110.484,52.485 110.617 C 52.485 110.915,51.415 111.730,51.023 111.730 C 50.867 111.730,50.687 111.864,50.624 112.028 C 50.561 112.192,50.414 112.326,50.298 112.326 C 50.181 112.326,49.816 112.602,49.486 112.940 C 49.117 113.317,48.768 113.508,48.580 113.436 C 48.380 113.359,48.237 113.457,48.169 113.717 C 48.112 113.936,47.941 114.115,47.790 114.115 C 47.639 114.115,47.515 114.200,47.515 114.303 C 47.515 114.489,46.750 114.979,46.074 115.227 C 45.882 115.297,45.726 115.436,45.726 115.535 C 45.726 115.634,45.524 115.803,45.278 115.909 C 44.698 116.160,44.197 116.495,43.589 117.041 C 43.318 117.284,42.921 117.538,42.705 117.607 C 42.490 117.675,42.066 117.991,41.762 118.309 C 41.458 118.627,41.063 118.887,40.883 118.887 C 40.704 118.887,40.557 118.978,40.557 119.090 C 40.557 119.202,40.333 119.379,40.060 119.483 C 39.786 119.587,39.563 119.764,39.563 119.876 C 39.563 119.988,39.406 120.080,39.215 120.082 C 39.023 120.083,38.431 120.485,37.899 120.976 C 37.367 121.467,36.808 121.869,36.658 121.869 C 36.508 121.869,36.138 122.122,35.837 122.431 C 35.535 122.740,35.154 123.057,34.990 123.135 C 34.385 123.422,33.882 123.774,33.321 124.306 C 33.004 124.606,32.625 124.851,32.478 124.851 C 32.331 124.851,31.954 125.119,31.640 125.447 C 31.327 125.775,30.933 126.044,30.765 126.044 C 30.597 126.044,30.172 126.312,29.821 126.640 C 29.470 126.968,29.053 127.237,28.894 127.237 C 28.736 127.237,28.358 127.508,28.055 127.840 C 27.752 128.171,27.167 128.623,26.754 128.845 C 26.342 129.066,25.802 129.465,25.554 129.733 C 25.306 130.000,24.934 130.219,24.727 130.219 C 24.519 130.219,24.127 130.491,23.855 130.823 C 23.583 131.156,22.980 131.619,22.515 131.852 C 22.050 132.086,21.670 132.347,21.670 132.431 C 21.670 132.516,21.334 132.743,20.924 132.935 C 20.514 133.127,19.926 133.534,19.617 133.839 C 19.308 134.144,18.905 134.394,18.721 134.394 C 18.538 134.394,18.126 134.707,17.807 135.089 C 17.488 135.472,17.102 135.785,16.949 135.785 C 16.796 135.785,16.547 135.897,16.394 136.034 C 15.663 136.689,15.368 136.904,14.718 137.252 C 14.332 137.459,13.899 137.795,13.756 137.999 C 13.613 138.203,13.367 138.370,13.209 138.370 C 13.052 138.370,12.922 138.465,12.922 138.580 C 12.922 138.696,12.994 138.747,13.081 138.693 C 13.749 138.280,14.044 140.328,13.639 142.565 C 13.490 143.388,13.513 143.491,13.872 143.585 C 14.402 143.723,14.581 144.862,14.319 146.421 C 14.054 147.990,14.062 148.119,14.411 147.985 C 15.087 147.726,15.238 149.406,14.792 152.237 C 14.681 152.944,14.713 153.082,14.989 153.082 C 15.697 153.082,15.827 154.481,15.381 157.319 C 15.278 157.970,15.319 158.092,15.671 158.184 C 16.229 158.330,16.443 160.030,16.105 161.624 C 15.851 162.821,15.925 163.221,16.401 163.221 C 16.578 163.221,16.719 163.555,16.800 164.165 C 16.868 164.684,16.942 165.244,16.964 165.408 C 17.030 165.906,135.515 165.956,135.662 165.458 C 136.054 164.124,136.022 161.885,135.610 161.777 C 135.281 161.692,135.182 161.500,135.158 160.903 C 135.117 159.906,135.116 159.921,135.278 158.195 C 135.405 156.838,135.384 156.706,135.035 156.614 C 134.552 156.488,134.380 155.518,134.603 154.175 C 134.850 152.683,134.828 152.286,134.497 152.286 C 133.950 152.286,133.761 150.461,134.073 148.190 C 134.227 147.070,134.209 146.969,133.842 146.872 C 133.321 146.736,133.105 145.243,133.392 143.760 C 133.706 142.133,133.662 141.614,133.201 141.493 C 132.801 141.388,132.750 141.179,132.734 139.563 C 132.731 139.180,132.799 138.321,132.887 137.653 C 133.034 136.540,133.014 136.431,132.654 136.337 C 132.383 136.266,132.217 135.994,132.122 135.463 C 132.046 135.039,131.879 134.448,131.751 134.150 L 131.518 133.609 104.328 133.601 C 86.101 133.596,77.137 133.660,77.137 133.795 C 77.137 134.084,76.402 134.043,76.291 133.748 C 76.240 133.611,76.274 132.881,76.366 132.126 C 76.511 130.933,76.488 130.721,76.189 130.502 C 75.838 130.246,76.479 129.225,76.991 129.225 C 77.091 129.225,77.333 129.026,77.530 128.784 C 77.835 128.406,77.933 128.381,78.208 128.609 C 78.486 128.840,78.529 128.820,78.529 128.454 C 78.529 128.222,78.633 128.032,78.760 128.032 C 78.887 128.032,79.240 127.752,79.546 127.410 C 79.938 126.971,80.221 126.819,80.508 126.894 C 80.754 126.959,80.915 126.904,80.915 126.757 C 80.915 126.407,82.070 125.480,83.025 125.064 C 83.256 124.964,83.499 124.740,83.565 124.568 C 83.631 124.396,83.822 124.254,83.990 124.254 C 84.157 124.254,84.294 124.165,84.294 124.056 C 84.294 123.946,84.433 123.857,84.602 123.857 C 84.772 123.857,85.233 123.544,85.627 123.161 C 86.021 122.778,86.423 122.465,86.520 122.465 C 86.709 122.465,87.065 122.196,87.669 121.599 C 87.874 121.396,88.158 121.268,88.300 121.315 C 88.442 121.363,88.988 120.954,89.512 120.407 C 90.244 119.643,90.520 119.467,90.700 119.646 C 91.034 119.981,91.252 119.936,91.256 119.533 C 91.261 119.055,92.178 118.221,92.545 118.362 C 92.726 118.432,92.843 118.362,92.843 118.185 C 92.843 118.024,92.939 117.893,93.057 117.893 C 93.175 117.893,93.540 117.624,93.868 117.296 C 94.196 116.968,94.596 116.700,94.757 116.700 C 94.918 116.700,95.366 116.392,95.753 116.017 C 96.140 115.641,96.560 115.374,96.687 115.422 C 96.814 115.471,97.180 115.197,97.500 114.813 C 98.044 114.160,98.807 113.869,98.807 114.314 C 98.807 114.423,98.894 114.513,99.000 114.513 C 99.106 114.513,99.137 114.370,99.070 114.196 C 98.910 113.778,100.306 112.525,100.931 112.525 C 101.184 112.525,101.392 112.423,101.392 112.299 C 101.392 111.873,102.403 111.112,102.802 111.238 C 103.034 111.312,103.181 111.264,103.181 111.114 C 103.181 110.820,104.529 109.586,105.024 109.427 C 105.217 109.366,105.662 109.053,106.012 108.733 C 106.363 108.413,106.790 108.151,106.962 108.151 C 107.134 108.151,107.495 107.886,107.763 107.563 C 108.031 107.240,108.366 106.971,108.507 106.967 C 108.789 106.957,108.877 106.895,110.040 105.871 C 110.477 105.486,110.946 105.170,111.082 105.170 C 111.217 105.169,111.596 104.890,111.922 104.548 C 112.332 104.119,112.639 103.960,112.918 104.032 C 113.166 104.097,113.320 104.041,113.320 103.885 C 113.320 103.746,113.678 103.385,114.115 103.082 C 114.553 102.778,114.911 102.443,114.911 102.335 C 114.911 102.228,115.095 102.189,115.320 102.248 C 115.592 102.319,115.769 102.243,115.846 102.022 C 115.993 101.601,116.712 101.004,117.080 100.998 C 117.234 100.996,117.610 100.714,117.915 100.372 C 118.307 99.933,118.590 99.781,118.878 99.856 C 119.116 99.919,119.284 99.867,119.284 99.731 C 119.284 99.603,119.562 99.276,119.902 99.004 C 120.241 98.732,120.637 98.397,120.782 98.260 C 120.927 98.124,121.230 98.012,121.457 98.012 C 121.683 98.012,121.869 97.895,121.869 97.751 C 121.869 97.302,122.942 96.637,123.323 96.850 C 123.572 96.989,123.658 96.961,123.658 96.739 C 123.658 96.350,124.624 95.385,124.916 95.482 C 125.040 95.524,125.422 95.260,125.765 94.896 C 126.108 94.532,126.490 94.235,126.614 94.235 C 126.738 94.235,126.839 94.156,126.839 94.059 C 126.839 93.962,127.018 93.837,127.237 93.779 C 127.724 93.652,127.808 92.644,127.331 92.644 C 126.667 92.644,126.529 91.326,126.959 89.103 C 127.067 88.547,127.023 88.428,126.674 88.337 C 126.191 88.211,125.924 86.960,126.119 85.739 C 126.507 83.309,126.507 83.300,126.164 83.300 C 125.454 83.300,125.307 81.640,125.763 78.773 C 125.880 78.041,125.854 77.941,125.576 78.048 C 124.872 78.318,124.730 76.837,125.168 73.805 C 125.271 73.097,125.241 72.978,124.987 73.075 C 124.277 73.348,124.085 71.587,124.579 69.334 C 124.678 68.880,124.631 68.787,124.301 68.787 C 123.835 68.787,123.665 68.299,123.661 66.948 L 123.658 66.004 64.326 66.004 C 31.693 66.004,4.954 66.071,4.905 66.153 M351.989 94.177 C 352.152 94.492,352.295 94.531,352.784 94.395 C 353.455 94.208,354.274 94.341,354.274 94.636 C 354.274 94.743,354.484 94.831,354.741 94.831 C 354.997 94.831,355.369 95.010,355.567 95.229 C 355.765 95.447,356.051 95.626,356.202 95.626 C 356.490 95.626,356.859 95.884,357.414 96.471 C 357.595 96.663,357.901 96.819,358.096 96.819 C 358.290 96.819,358.449 96.953,358.449 97.117 C 358.449 97.281,358.542 97.416,358.654 97.416 C 358.767 97.416,358.916 97.572,358.986 97.763 C 359.055 97.955,359.442 98.431,359.846 98.823 C 360.711 99.660,361.696 101.514,361.558 102.044 C 361.502 102.258,361.633 102.587,361.868 102.822 C 362.273 103.227,362.287 103.969,361.915 105.291 C 361.827 105.605,361.901 105.738,362.211 105.819 C 362.833 105.982,362.820 107.973,362.194 108.388 C 361.807 108.645,361.787 108.740,361.995 109.337 C 362.372 110.416,362.292 110.919,361.708 111.141 C 361.286 111.302,361.234 111.392,361.426 111.624 C 361.679 111.928,361.529 112.724,361.219 112.724 C 361.117 112.724,361.034 112.845,361.034 112.993 C 361.034 113.141,360.833 113.483,360.586 113.753 C 360.340 114.023,359.826 114.618,359.443 115.074 C 359.061 115.529,358.645 115.903,358.520 115.904 C 358.395 115.904,358.242 116.039,358.179 116.203 C 358.116 116.367,357.847 116.501,357.582 116.501 C 357.317 116.501,357.049 116.635,356.986 116.799 C 356.919 116.974,356.620 117.097,356.262 117.097 C 355.883 117.097,355.607 117.220,355.529 117.421 C 355.424 117.696,355.193 117.725,354.016 117.616 C 352.767 117.500,352.599 117.527,352.346 117.889 C 352.067 118.287,351.905 118.290,332.941 118.287 L 313.817 118.283 313.340 117.780 C 312.874 117.289,312.865 117.221,312.990 114.901 C 313.099 112.883,313.074 112.525,312.825 112.525 C 312.373 112.525,312.258 111.670,312.406 109.395 C 312.524 107.568,312.503 107.322,312.237 107.424 C 311.780 107.599,311.656 106.791,311.792 104.545 C 311.892 102.916,311.863 102.584,311.626 102.584 C 311.194 102.584,311.066 101.739,311.217 99.883 C 311.330 98.495,311.304 98.211,311.065 98.211 C 310.613 98.211,310.209 94.230,310.620 93.820 C 310.973 93.467,351.803 93.819,351.989 94.177 "\n stroke="none" fill="#fbfbfb" fill-rule="evenodd"></path>\n <path id="path2"\n d="M154.523 21.400 C 154.068 21.591,154.266 21.849,154.969 21.981 C 155.818 22.140,156.660 21.952,156.660 21.602 C 156.660 21.339,155.036 21.185,154.523 21.400 M159.932 21.484 C 159.665 21.916,161.928 22.234,162.340 21.822 C 162.648 21.514,162.117 21.272,161.133 21.272 C 160.545 21.272,160.004 21.368,159.932 21.484 M152.372 22.090 C 152.214 22.346,152.626 22.657,153.131 22.661 C 153.348 22.663,153.479 22.514,153.479 22.266 C 153.479 21.825,152.620 21.688,152.372 22.090 M163.224 22.018 C 163.233 22.474,163.587 22.660,164.208 22.536 C 164.820 22.414,164.842 22.383,164.504 22.136 C 164.115 21.851,163.219 21.769,163.224 22.018 M151.182 22.681 C 151.009 22.962,151.392 23.345,151.673 23.172 C 151.988 22.977,151.937 22.465,151.602 22.465 C 151.445 22.465,151.256 22.562,151.182 22.681 M165.048 22.813 C 165.085 23.004,165.291 23.161,165.507 23.161 C 165.723 23.161,165.929 23.004,165.966 22.813 C 166.016 22.553,165.901 22.465,165.507 22.465 C 165.113 22.465,164.998 22.553,165.048 22.813 M150.033 23.194 C 149.791 23.436,149.896 23.857,150.199 23.857 C 150.364 23.857,150.497 23.680,150.497 23.459 C 150.497 23.063,150.285 22.942,150.033 23.194 M166.600 23.481 C 166.600 23.832,166.683 23.879,167.114 23.771 C 167.524 23.668,167.649 23.724,167.734 24.048 C 167.792 24.271,167.963 24.453,168.115 24.453 C 168.511 24.453,168.454 23.869,168.042 23.713 C 167.850 23.640,167.576 23.464,167.431 23.321 C 167.033 22.927,166.600 23.010,166.600 23.481 M148.708 24.056 C 148.708 24.277,148.575 24.453,148.410 24.453 C 148.246 24.453,148.111 24.587,148.111 24.751 C 148.111 24.916,148.246 25.050,148.410 25.050 C 148.574 25.050,148.708 24.916,148.708 24.751 C 148.708 24.587,148.842 24.453,149.006 24.453 C 149.172 24.453,149.304 24.277,149.304 24.056 C 149.304 23.835,149.172 23.658,149.006 23.658 C 148.840 23.658,148.708 23.835,148.708 24.056 M168.986 24.652 C 168.986 24.873,169.119 25.050,169.284 25.050 C 169.448 25.050,169.583 25.184,169.583 25.348 C 169.583 25.512,169.717 25.646,169.881 25.646 C 170.046 25.646,170.179 25.469,170.179 25.249 C 170.179 25.030,170.054 24.851,169.902 24.851 C 169.750 24.851,169.574 24.717,169.511 24.553 C 169.344 24.119,168.986 24.187,168.986 24.652 M146.322 25.944 C 146.322 26.108,146.456 26.243,146.620 26.243 C 146.784 26.243,146.918 26.108,146.918 25.944 C 146.918 25.780,146.784 25.646,146.620 25.646 C 146.456 25.646,146.322 25.780,146.322 25.944 M171.372 26.541 C 171.372 26.705,171.506 26.839,171.670 26.839 C 171.834 26.839,171.968 26.973,171.968 27.137 C 171.968 27.301,172.102 27.435,172.266 27.435 C 172.430 27.435,172.565 27.570,172.565 27.734 C 172.565 27.898,172.699 28.032,172.863 28.032 C 173.337 28.032,173.214 27.700,172.459 26.945 C 171.703 26.190,171.372 26.066,171.372 26.541 M145.175 27.671 C 145.298 28.040,145.726 28.101,145.726 27.750 C 145.726 27.577,145.584 27.435,145.411 27.435 C 145.238 27.435,145.132 27.542,145.175 27.671 M144.533 28.330 C 144.533 28.494,144.399 28.628,144.235 28.628 C 144.053 28.628,143.936 28.814,143.936 29.104 C 143.936 29.366,144.071 29.631,144.235 29.694 C 144.458 29.780,144.533 29.661,144.533 29.218 C 144.533 28.826,144.633 28.628,144.831 28.628 C 144.995 28.628,145.129 28.494,145.129 28.330 C 145.129 28.166,144.995 28.032,144.831 28.032 C 144.667 28.032,144.533 28.166,144.533 28.330 M173.294 28.164 C 173.065 28.393,173.149 28.628,173.459 28.628 C 173.623 28.628,173.757 28.494,173.757 28.330 C 173.757 28.020,173.522 27.936,173.294 28.164 M143.340 30.417 C 143.340 30.815,143.439 31.014,143.638 31.014 C 143.837 31.014,143.936 30.815,143.936 30.417 C 143.936 30.020,143.837 29.821,143.638 29.821 C 143.439 29.821,143.340 30.020,143.340 30.417 M174.553 30.119 C 174.553 30.283,174.642 30.417,174.751 30.417 C 174.861 30.417,174.950 30.552,174.950 30.716 C 174.950 30.881,175.127 31.014,175.348 31.014 C 175.569 31.014,175.746 30.881,175.746 30.716 C 175.746 30.552,175.611 30.417,175.447 30.417 C 175.283 30.417,175.149 30.283,175.149 30.119 C 175.149 29.955,175.015 29.821,174.851 29.821 C 174.687 29.821,174.553 29.955,174.553 30.119 M142.744 31.992 C 142.744 32.201,142.692 32.508,142.628 32.673 C 142.542 32.898,142.616 32.946,142.927 32.865 C 143.430 32.733,143.533 31.610,143.042 31.610 C 142.878 31.610,142.744 31.782,142.744 31.992 M176.143 32.498 C 176.143 32.658,176.322 32.885,176.541 33.002 C 176.890 33.189,176.938 33.153,176.938 32.711 C 176.938 32.339,176.834 32.207,176.541 32.207 C 176.322 32.207,176.143 32.338,176.143 32.498 M142.075 34.477 C 141.934 35.675,142.051 36.183,142.467 36.183 C 142.677 36.183,142.744 35.848,142.744 34.791 C 142.744 33.022,142.272 32.801,142.075 34.477 M176.872 33.532 C 176.642 33.762,176.727 33.975,177.137 34.195 C 177.486 34.382,177.535 34.346,177.535 33.904 C 177.535 33.429,177.176 33.228,176.872 33.532 M177.435 35.388 C 177.269 35.657,177.494 35.984,177.845 35.984 C 178.002 35.984,178.131 35.805,178.131 35.586 C 178.131 35.175,177.652 35.038,177.435 35.388 M178.008 37.267 C 177.866 37.636,178.073 37.972,178.441 37.972 C 178.614 37.972,178.728 37.775,178.728 37.475 C 178.728 36.929,178.197 36.775,178.008 37.267 M142.169 39.238 C 141.881 39.585,142.146 41.583,142.495 41.700 C 142.678 41.761,142.744 41.412,142.744 40.374 C 142.744 38.981,142.607 38.711,142.169 39.238 M178.622 40.439 C 178.462 41.718,178.567 44.438,178.784 44.655 C 179.184 45.055,179.333 44.241,179.281 41.948 C 179.219 39.250,178.870 38.451,178.622 40.439 M142.677 42.511 C 142.713 42.657,142.744 43.082,142.744 43.456 C 142.744 43.927,142.835 44.135,143.042 44.135 C 143.257 44.135,143.340 43.914,143.340 43.340 C 143.340 42.786,143.254 42.545,143.058 42.545 C 142.903 42.545,142.739 42.478,142.693 42.396 C 142.647 42.314,142.640 42.366,142.677 42.511 M143.340 44.930 C 143.340 45.151,143.472 45.328,143.638 45.328 C 143.804 45.328,143.936 45.151,143.936 44.930 C 143.936 44.710,143.804 44.533,143.638 44.533 C 143.472 44.533,143.340 44.710,143.340 44.930 M143.936 46.198 C 143.936 46.349,144.071 46.584,144.235 46.720 C 144.487 46.929,144.533 46.887,144.533 46.446 C 144.533 46.115,144.424 45.924,144.235 45.924 C 144.071 45.924,143.936 46.048,143.936 46.198 M178.063 46.214 C 177.900 46.637,178.114 47.117,178.464 47.117 C 178.662 47.117,178.734 46.948,178.691 46.586 C 178.619 45.981,178.239 45.756,178.063 46.214 M144.533 47.416 C 144.533 47.580,144.667 47.714,144.831 47.714 C 144.995 47.714,145.129 47.580,145.129 47.416 C 145.129 47.251,144.995 47.117,144.831 47.117 C 144.667 47.117,144.533 47.251,144.533 47.416 M177.433 48.120 C 177.285 48.584,177.454 48.907,177.845 48.907 C 178.223 48.907,178.222 47.990,177.843 47.845 C 177.669 47.778,177.507 47.887,177.433 48.120 M145.129 48.509 C 145.129 48.730,145.262 48.907,145.427 48.907 C 145.591 48.907,145.726 49.041,145.726 49.205 C 145.726 49.369,145.860 49.503,146.024 49.503 C 146.188 49.503,146.322 49.369,146.322 49.205 C 146.322 49.041,146.188 48.907,146.024 48.907 C 145.858 48.907,145.726 48.730,145.726 48.509 C 145.726 48.288,145.593 48.111,145.427 48.111 C 145.262 48.111,145.129 48.288,145.129 48.509 M176.839 49.503 C 176.673 49.772,176.897 50.099,177.248 50.099 C 177.406 50.099,177.535 49.920,177.535 49.702 C 177.535 49.290,177.055 49.153,176.839 49.503 M176.143 50.994 C 176.143 51.158,176.009 51.292,175.845 51.292 C 175.679 51.292,175.547 51.469,175.547 51.690 C 175.547 52.197,175.553 52.195,176.306 51.523 C 177.041 50.867,177.090 50.696,176.541 50.696 C 176.320 50.696,176.143 50.828,176.143 50.994 M147.515 51.367 C 147.515 51.409,147.649 51.554,147.813 51.690 C 148.057 51.893,148.111 51.879,148.111 51.615 C 148.111 51.437,147.977 51.292,147.813 51.292 C 147.649 51.292,147.515 51.326,147.515 51.367 M150.497 53.976 C 150.497 54.140,150.631 54.274,150.795 54.274 C 150.959 54.274,151.093 54.409,151.093 54.573 C 151.093 54.737,151.228 54.871,151.392 54.871 C 151.556 54.871,151.690 54.737,151.690 54.573 C 151.690 54.409,151.556 54.274,151.392 54.274 C 151.228 54.274,151.093 54.140,151.093 53.976 C 151.093 53.812,150.959 53.678,150.795 53.678 C 150.631 53.678,150.497 53.812,150.497 53.976 M171.968 55.169 C 171.968 55.333,171.834 55.467,171.670 55.467 C 171.506 55.467,171.372 55.601,171.372 55.765 C 171.372 55.929,171.506 56.064,171.670 56.064 C 171.834 56.064,171.968 55.940,171.968 55.789 C 171.968 55.637,172.147 55.467,172.366 55.410 C 172.584 55.352,172.763 55.208,172.763 55.088 C 172.763 54.969,172.584 54.871,172.366 54.871 C 172.145 54.871,171.968 55.003,171.968 55.169 M152.883 55.765 C 152.883 55.931,153.059 56.064,153.280 56.064 C 153.501 56.064,153.678 55.931,153.678 55.765 C 153.678 55.600,153.501 55.467,153.280 55.467 C 153.059 55.467,152.883 55.600,152.883 55.765 M154.076 56.362 C 154.076 56.547,154.263 56.660,154.573 56.660 C 154.882 56.660,155.070 56.547,155.070 56.362 C 155.070 56.176,154.882 56.064,154.573 56.064 C 154.263 56.064,154.076 56.176,154.076 56.362 M170.046 56.362 C 170.046 56.526,170.210 56.660,170.411 56.660 C 170.611 56.660,170.775 56.526,170.775 56.362 C 170.775 56.198,170.611 56.064,170.411 56.064 C 170.210 56.064,170.046 56.198,170.046 56.362 M155.865 56.935 C 155.865 57.086,156.039 57.256,156.251 57.311 C 156.716 57.433,156.868 57.313,156.724 56.939 C 156.586 56.578,155.865 56.575,155.865 56.935 M168.390 57.079 C 168.390 57.379,168.479 57.464,168.704 57.377 C 168.877 57.311,169.145 57.256,169.301 57.256 C 169.456 57.256,169.583 57.122,169.583 56.958 C 169.583 56.759,169.384 56.660,168.986 56.660 C 168.512 56.660,168.390 56.746,168.390 57.079 M157.654 57.555 C 157.654 57.874,157.683 57.882,159.046 57.947 C 159.538 57.970,159.784 57.952,159.592 57.907 C 159.401 57.861,159.245 57.696,159.245 57.540 C 159.245 57.342,159.005 57.256,158.449 57.256 C 157.875 57.256,157.654 57.339,157.654 57.555 M166.117 57.433 C 165.916 57.759,166.534 58.055,167.156 57.931 C 168.172 57.727,168.136 57.256,167.103 57.256 C 166.621 57.256,166.177 57.336,166.117 57.433 M161.777 57.990 C 161.066 58.176,161.689 58.449,162.823 58.449 C 163.973 58.449,164.515 58.209,163.899 57.973 C 163.550 57.839,162.318 57.849,161.777 57.990 M3.976 66.700 C 3.976 68.621,4.515 68.916,4.612 67.048 L 4.672 65.905 64.262 65.855 L 123.852 65.805 123.977 66.588 C 124.161 67.737,124.652 67.826,124.652 66.710 C 124.652 66.230,124.598 65.696,124.531 65.523 C 124.422 65.237,118.920 65.209,64.193 65.209 L 3.976 65.209 3.976 66.700 M137.309 65.341 C 137.047 65.603,137.173 66.810,137.475 66.926 C 137.717 67.019,137.774 67.494,137.776 69.455 C 137.780 71.959,137.909 72.509,138.449 72.302 C 139.099 72.052,138.927 67.594,138.267 67.594 C 138.105 67.594,137.972 67.416,137.972 67.197 C 137.972 66.978,138.095 66.799,138.246 66.799 C 138.397 66.799,138.630 66.667,138.764 66.505 C 138.979 66.246,146.119 66.210,197.719 66.205 C 261.433 66.199,256.815 66.121,257.161 67.209 C 257.543 68.414,258.215 66.893,257.891 65.557 C 257.804 65.199,137.667 64.984,137.309 65.341 M270.811 65.464 C 270.666 65.638,270.663 65.811,270.802 66.011 C 270.955 66.231,271.029 66.242,271.105 66.054 C 271.185 65.856,279.858 65.805,313.535 65.805 C 351.029 65.805,355.865 65.771,355.865 65.507 C 355.865 65.091,271.156 65.048,270.811 65.464 M358.847 66.103 C 358.847 66.335,359.112 66.402,360.040 66.402 C 360.968 66.402,361.233 66.335,361.233 66.103 C 361.233 65.871,360.968 65.805,360.040 65.805 C 359.112 65.805,358.847 65.871,358.847 66.103 M362.425 66.700 C 362.425 66.921,362.657 66.998,363.320 66.998 C 363.983 66.998,364.215 66.921,364.215 66.700 C 364.215 66.479,363.983 66.402,363.320 66.402 C 362.657 66.402,362.425 66.479,362.425 66.700 M364.944 67.131 C 364.659 67.416,364.838 67.594,365.408 67.594 C 365.805 67.594,366.004 67.495,366.004 67.296 C 366.004 66.995,365.204 66.870,364.944 67.131 M366.998 67.893 C 366.998 68.101,367.208 68.191,367.694 68.191 C 368.414 68.191,368.626 67.926,368.075 67.715 C 367.517 67.501,366.998 67.587,366.998 67.893 M257.649 68.701 C 257.301 69.618,257.588 71.968,258.048 71.968 C 258.146 71.968,258.176 72.745,258.116 73.708 C 257.981 75.861,258.195 76.813,258.834 76.906 L 259.295 76.973 259.209 74.579 C 259.143 72.720,259.051 72.104,258.796 71.823 C 258.548 71.549,258.494 71.224,258.574 70.491 C 258.781 68.610,258.149 67.386,257.649 68.701 M368.920 68.323 C 368.668 68.575,368.789 68.787,369.185 68.787 C 369.406 68.787,369.583 68.655,369.583 68.489 C 369.583 68.186,369.162 68.081,368.920 68.323 M370.577 69.085 C 370.577 69.251,370.753 69.384,370.974 69.384 C 371.195 69.384,371.372 69.251,371.372 69.085 C 371.372 68.920,371.195 68.787,370.974 68.787 C 370.753 68.787,370.577 68.920,370.577 69.085 M271.214 70.312 C 271.298 72.223,271.769 72.292,271.769 70.394 C 271.769 69.257,271.710 68.986,271.462 68.986 C 271.210 68.986,271.165 69.223,271.214 70.312 M124.598 70.176 C 124.472 71.118,124.644 71.847,125.010 71.922 C 125.204 71.962,125.253 71.671,125.208 70.745 C 125.140 69.326,124.760 68.972,124.598 70.176 M371.968 69.667 C 371.968 69.852,372.138 69.980,372.382 69.980 C 372.867 69.980,372.798 69.516,372.300 69.419 C 372.103 69.381,371.968 69.482,371.968 69.667 M373.161 70.278 C 373.161 70.442,373.337 70.577,373.552 70.577 C 373.819 70.577,373.907 70.481,373.829 70.278 C 373.766 70.114,373.590 69.980,373.438 69.980 C 373.286 69.980,373.161 70.114,373.161 70.278 M4.614 72.005 C 4.651 72.922,4.760 73.457,4.920 73.510 C 5.321 73.642,5.264 70.854,4.862 70.700 C 4.600 70.600,4.564 70.790,4.614 72.005 M374.354 70.875 C 374.354 71.040,374.531 71.173,374.751 71.173 C 374.972 71.173,375.149 71.040,375.149 70.875 C 375.149 70.709,374.972 70.577,374.751 70.577 C 374.531 70.577,374.354 70.709,374.354 70.875 M375.547 71.471 C 375.547 71.637,375.723 71.769,375.944 71.769 C 376.165 71.769,376.342 71.637,376.342 71.471 C 376.342 71.306,376.165 71.173,375.944 71.173 C 375.723 71.173,375.547 71.306,375.547 71.471 M376.740 72.068 C 376.740 72.232,376.842 72.366,376.966 72.366 C 377.091 72.366,377.300 72.512,377.431 72.691 C 377.562 72.870,377.779 72.980,377.913 72.936 C 378.077 72.881,378.004 72.678,377.690 72.312 C 377.178 71.716,376.740 71.603,376.740 72.068 M138.494 72.672 C 138.287 73.210,138.355 76.675,138.583 77.273 C 139.152 78.762,139.836 75.353,139.339 73.510 C 139.055 72.459,138.708 72.114,138.494 72.672 M378.529 73.247 C 378.529 73.404,378.708 73.589,378.926 73.658 C 379.145 73.727,379.324 73.868,379.324 73.970 C 379.324 74.072,379.443 74.155,379.589 74.155 C 379.735 74.155,379.854 74.021,379.854 73.857 C 379.854 73.693,379.735 73.559,379.589 73.559 C 379.443 73.559,379.324 73.424,379.324 73.260 C 379.324 73.095,379.147 72.962,378.926 72.962 C 378.708 72.962,378.529 73.090,378.529 73.247 M271.769 75.216 C 271.769 76.584,271.892 77.137,272.197 77.137 C 272.487 77.137,272.314 74.103,272.018 74.005 C 271.836 73.945,271.769 74.270,271.769 75.216 M125.206 74.751 C 125.075 75.646,125.257 76.541,125.569 76.541 C 125.774 76.541,125.845 76.232,125.845 75.348 C 125.845 74.048,125.374 73.608,125.206 74.751 M380.517 74.553 C 380.517 74.662,380.606 74.751,380.716 74.751 C 380.825 74.751,380.915 74.855,380.915 74.981 C 380.915 75.252,382.435 76.740,382.712 76.740 C 382.817 76.740,382.903 76.829,382.903 76.938 C 382.903 77.048,383.037 77.137,383.201 77.137 C 383.365 77.137,383.499 77.003,383.499 76.839 C 383.499 76.675,383.404 76.541,383.288 76.541 C 383.173 76.541,383.142 76.644,383.220 76.770 C 383.308 76.912,383.274 76.946,383.132 76.858 C 383.006 76.780,382.903 76.542,382.903 76.330 C 382.903 76.118,382.768 75.944,382.604 75.944 C 382.440 75.944,382.306 75.810,382.306 75.646 C 382.306 75.482,382.172 75.348,382.008 75.348 C 381.844 75.348,381.710 75.214,381.710 75.050 C 381.710 74.884,381.533 74.751,381.312 74.751 C 381.093 74.751,380.915 74.662,380.915 74.553 C 380.915 74.443,380.825 74.354,380.716 74.354 C 380.606 74.354,380.517 74.443,380.517 74.553 M5.210 77.370 C 5.294 79.426,5.765 79.496,5.765 77.452 C 5.765 76.225,5.708 75.944,5.458 75.944 C 5.205 75.944,5.162 76.192,5.210 77.370 M258.921 78.055 C 258.561 80.273,258.792 81.909,259.465 81.909 C 260.023 81.909,259.974 77.979,259.410 77.416 C 259.100 77.106,259.068 77.149,258.921 78.055 M384.638 78.163 C 384.702 78.419,384.875 78.700,385.022 78.787 C 385.168 78.875,385.288 79.121,385.288 79.334 C 385.288 79.547,385.422 79.722,385.586 79.722 C 385.750 79.722,385.885 79.856,385.885 80.020 C 385.885 80.184,386.019 80.318,386.183 80.318 C 386.347 80.318,386.481 80.452,386.481 80.616 C 386.481 80.780,386.615 80.915,386.779 80.915 C 386.943 80.915,387.078 81.049,387.078 81.213 C 387.078 81.377,387.212 81.511,387.376 81.511 C 387.540 81.511,387.674 81.386,387.674 81.234 C 387.674 81.082,387.540 80.906,387.376 80.843 C 387.212 80.780,387.078 80.591,387.078 80.424 C 387.078 80.256,386.943 80.119,386.779 80.119 C 386.615 80.119,386.481 79.985,386.481 79.821 C 386.481 79.657,386.347 79.523,386.183 79.523 C 386.019 79.523,385.885 79.399,385.885 79.248 C 385.885 79.097,385.697 78.924,385.467 78.864 C 385.237 78.804,385.101 78.671,385.164 78.569 C 385.227 78.467,385.108 78.229,384.900 78.040 C 384.536 77.711,384.525 77.716,384.638 78.163 M138.983 79.612 C 138.953 80.997,139.009 81.355,139.304 81.650 C 139.613 81.959,139.654 82.300,139.599 84.160 C 139.549 85.883,139.600 86.410,139.857 86.802 C 140.099 87.170,140.188 87.861,140.218 89.578 C 140.243 91.001,140.342 91.917,140.480 92.006 C 140.616 92.092,140.740 93.141,140.798 94.701 C 140.865 96.462,140.973 97.304,141.147 97.412 C 141.319 97.518,141.409 98.177,141.430 99.475 C 141.463 101.462,141.698 102.120,142.197 101.620 C 142.750 101.067,142.427 97.614,141.822 97.614 C 141.569 97.614,141.537 97.502,141.664 97.068 C 141.968 96.025,141.878 92.770,141.531 92.237 C 141.295 91.876,141.231 91.396,141.285 90.388 C 141.364 88.886,141.079 87.511,140.617 87.173 C 140.371 86.993,140.357 86.816,140.536 86.171 C 140.934 84.735,140.676 82.235,140.092 81.869 C 139.951 81.781,139.893 81.185,139.932 80.240 C 140.005 78.497,139.869 77.932,139.377 77.932 C 139.065 77.932,139.016 78.142,138.983 79.612 M272.366 80.053 C 272.366 81.040,272.430 81.312,272.664 81.312 C 272.898 81.312,272.962 81.040,272.962 80.053 C 272.962 79.066,272.898 78.794,272.664 78.794 C 272.430 78.794,272.366 79.066,272.366 80.053 M125.807 79.861 C 125.703 81.106,125.824 81.710,126.175 81.710 C 126.399 81.710,126.447 81.428,126.401 80.384 C 126.330 78.794,125.926 78.438,125.807 79.861 M5.805 81.843 C 5.891 83.462,6.362 83.531,6.362 81.925 C 6.362 80.965,6.298 80.716,6.054 80.716 C 5.805 80.716,5.757 80.932,5.805 81.843 M387.674 82.306 C 387.674 82.527,387.806 82.704,387.972 82.704 C 388.136 82.704,388.270 82.838,388.270 83.002 C 388.270 83.166,388.405 83.300,388.569 83.300 C 388.733 83.300,388.867 83.434,388.867 83.598 C 388.867 83.762,389.015 83.897,389.196 83.897 C 389.502 83.897,389.502 83.871,389.196 83.533 C 389.015 83.333,388.865 83.087,388.863 82.986 C 388.852 82.402,387.674 81.728,387.674 82.306 M259.460 83.111 C 259.085 84.861,259.298 87.140,259.871 87.494 C 260.285 87.749,260.388 87.348,260.422 85.359 C 260.475 82.212,259.927 80.932,259.460 83.111 M272.962 84.791 C 272.962 85.807,273.026 86.083,273.260 86.083 C 273.495 86.083,273.559 85.807,273.559 84.791 C 273.559 83.775,273.495 83.499,273.260 83.499 C 273.026 83.499,272.962 83.775,272.962 84.791 M126.441 85.686 C 126.441 86.614,126.508 86.879,126.740 86.879 C 126.972 86.879,127.038 86.614,127.038 85.686 C 127.038 84.758,126.972 84.493,126.740 84.493 C 126.508 84.493,126.441 84.758,126.441 85.686 M389.463 84.791 C 389.463 84.955,389.597 85.089,389.761 85.089 C 389.925 85.089,390.060 84.955,390.060 84.791 C 390.060 84.627,389.925 84.493,389.761 84.493 C 389.597 84.493,389.463 84.627,389.463 84.791 M6.362 86.559 C 6.362 87.506,6.438 87.859,6.660 87.945 C 6.908 88.040,6.958 87.823,6.958 86.674 C 6.958 85.575,6.897 85.288,6.660 85.288 C 6.426 85.288,6.362 85.562,6.362 86.559 M390.060 85.984 C 390.060 86.148,390.194 86.282,390.358 86.282 C 390.522 86.282,390.656 86.148,390.656 85.984 C 390.656 85.820,390.522 85.686,390.358 85.686 C 390.194 85.686,390.060 85.820,390.060 85.984 M390.656 87.177 C 390.656 87.341,390.790 87.475,390.954 87.475 C 391.118 87.475,391.252 87.341,391.252 87.177 C 391.252 87.013,391.118 86.879,390.954 86.879 C 390.790 86.879,390.656 87.013,390.656 87.177 M259.966 88.519 C 259.734 89.387,259.846 90.494,260.265 91.469 C 260.598 92.242,260.663 92.681,260.568 93.494 C 260.411 94.824,260.685 96.564,261.100 96.876 C 261.372 97.081,261.394 97.308,261.241 98.370 C 261.030 99.839,261.243 101.503,261.686 101.846 C 261.949 102.050,261.966 102.264,261.797 103.217 C 261.514 104.801,261.783 106.363,262.376 106.581 C 262.943 106.791,263.080 103.000,262.531 102.275 C 262.321 101.997,262.237 101.329,262.230 99.901 C 262.220 97.733,262.103 97.018,261.756 97.018 C 261.597 97.018,261.550 96.315,261.597 94.623 C 261.651 92.691,261.603 92.135,261.349 91.747 C 261.127 91.409,261.034 90.792,261.034 89.669 C 261.034 88.118,261.020 88.072,260.560 88.072 C 260.237 88.072,260.048 88.214,259.966 88.519 M391.252 88.370 C 391.252 88.534,391.387 88.668,391.551 88.668 C 391.750 88.668,391.849 88.867,391.849 89.264 C 391.849 89.662,391.948 89.861,392.147 89.861 C 392.346 89.861,392.445 89.662,392.445 89.264 C 392.445 88.867,392.346 88.668,392.147 88.668 C 391.983 88.668,391.849 88.534,391.849 88.370 C 391.849 88.206,391.715 88.072,391.551 88.072 C 391.387 88.072,391.252 88.206,391.252 88.370 M273.599 89.994 C 273.667 91.523,274.074 91.955,274.184 90.616 C 274.289 89.339,274.169 88.668,273.835 88.668 C 273.599 88.668,273.552 88.930,273.599 89.994 M127.038 90.457 C 127.038 91.385,127.104 91.650,127.336 91.650 C 127.568 91.650,127.634 91.385,127.634 90.457 C 127.634 89.529,127.568 89.264,127.336 89.264 C 127.104 89.264,127.038 89.529,127.038 90.457 M7.196 90.429 C 6.853 90.646,6.950 93.074,7.306 93.192 C 7.490 93.252,7.555 92.883,7.555 91.766 C 7.555 90.937,7.532 90.260,7.505 90.261 C 7.478 90.263,7.339 90.338,7.196 90.429 M392.445 90.971 C 392.445 91.594,392.912 91.525,393.006 90.889 C 393.048 90.602,392.965 90.457,392.757 90.457 C 392.554 90.457,392.445 90.637,392.445 90.971 M393.042 92.429 C 393.042 93.032,393.122 93.241,393.352 93.241 C 393.588 93.241,393.647 93.066,393.600 92.510 C 393.512 91.462,393.042 91.393,393.042 92.429 M274.155 95.105 C 274.155 96.749,274.666 97.377,274.787 95.882 C 274.892 94.587,274.761 93.837,274.431 93.837 C 274.225 93.837,274.155 94.157,274.155 95.105 M310.736 95.278 C 310.736 96.339,310.798 96.620,311.034 96.620 C 311.259 96.620,311.332 96.377,311.332 95.626 L 311.332 94.632 331.213 94.632 C 348.752 94.632,351.093 94.597,351.093 94.334 C 351.093 94.170,350.937 94.033,350.746 94.031 C 350.554 94.028,341.474 94.005,330.567 93.981 L 310.736 93.936 310.736 95.278 M393.638 94.599 C 393.638 94.967,393.741 95.162,393.936 95.162 C 394.131 95.162,394.235 94.967,394.235 94.599 C 394.235 94.231,394.131 94.036,393.936 94.036 C 393.741 94.036,393.638 94.231,393.638 94.599 M126.062 95.044 C 125.710 95.337,125.641 95.502,125.803 95.664 C 125.966 95.826,126.159 95.758,126.528 95.408 C 127.380 94.599,126.975 94.284,126.062 95.044 M352.286 94.943 C 352.286 95.173,352.451 95.238,352.917 95.192 C 353.828 95.102,353.897 94.632,352.999 94.632 C 352.485 94.632,352.286 94.719,352.286 94.943 M354.076 95.527 C 354.076 95.693,354.252 95.825,354.473 95.825 C 354.694 95.825,354.871 95.693,354.871 95.527 C 354.871 95.361,354.694 95.229,354.473 95.229 C 354.252 95.229,354.076 95.361,354.076 95.527 M7.687 95.560 C 7.345 95.902,7.551 98.394,7.939 98.601 C 8.629 98.970,64.016 98.880,64.016 98.510 C 64.016 98.247,60.734 98.206,36.133 98.162 L 8.250 98.111 8.192 96.769 C 8.137 95.521,8.016 95.231,7.687 95.560 M355.268 96.123 C 355.268 96.289,355.445 96.421,355.666 96.421 C 355.887 96.421,356.064 96.289,356.064 96.123 C 356.064 95.958,355.887 95.825,355.666 95.825 C 355.445 95.825,355.268 95.958,355.268 96.123 M394.235 96.736 C 394.235 97.910,394.705 97.841,394.793 96.655 C 394.840 96.010,394.785 95.825,394.544 95.825 C 394.309 95.825,394.235 96.044,394.235 96.736 M123.906 96.670 C 124.032 97.046,124.652 97.100,124.652 96.734 C 124.652 96.550,124.482 96.421,124.238 96.421 C 123.995 96.421,123.858 96.524,123.906 96.670 M356.461 96.720 C 356.461 96.884,356.586 97.018,356.738 97.018 C 356.890 97.018,357.067 97.152,357.130 97.316 C 357.257 97.649,357.654 97.725,357.654 97.416 C 357.654 97.158,356.918 96.421,356.660 96.421 C 356.551 96.421,356.461 96.556,356.461 96.720 M122.195 97.913 C 122.132 98.077,121.943 98.211,121.776 98.211 C 121.430 98.211,121.368 98.521,121.676 98.711 C 121.877 98.836,122.853 98.054,122.859 97.763 C 122.866 97.487,122.310 97.612,122.195 97.913 M358.250 98.416 C 358.250 98.529,358.385 98.672,358.549 98.735 C 358.713 98.798,358.847 98.974,358.847 99.127 C 358.847 99.279,358.981 99.404,359.145 99.404 C 359.309 99.404,359.443 99.538,359.443 99.702 C 359.443 99.866,359.578 100.000,359.742 100.000 C 360.226 100.000,360.086 99.615,359.340 98.890 C 358.635 98.205,358.250 98.038,358.250 98.416 M274.792 99.738 C 274.860 101.271,275.233 101.635,275.410 100.343 C 275.551 99.313,275.415 98.677,275.021 98.525 C 274.784 98.435,274.744 98.650,274.792 99.738 M120.477 98.994 C 120.477 99.328,120.830 99.410,120.947 99.104 C 121.016 98.924,120.946 98.807,120.769 98.807 C 120.609 98.807,120.477 98.891,120.477 98.994 M311.332 100.066 C 311.332 101.053,311.397 101.325,311.630 101.325 C 311.864 101.325,311.928 101.053,311.928 100.066 C 311.928 99.080,311.864 98.807,311.630 98.807 C 311.397 98.807,311.332 99.080,311.332 100.066 M394.831 99.901 C 394.831 100.740,394.900 100.994,395.129 100.994 C 395.358 100.994,395.427 100.740,395.427 99.901 C 395.427 99.061,395.358 98.807,395.129 98.807 C 394.900 98.807,394.831 99.061,394.831 99.901 M119.682 99.716 C 119.682 99.902,119.817 100.003,120.013 99.965 C 120.512 99.868,120.581 99.404,120.096 99.404 C 119.852 99.404,119.682 99.532,119.682 99.716 M360.040 100.795 C 360.040 101.247,360.538 101.337,360.701 100.914 C 360.825 100.589,360.679 100.398,360.305 100.398 C 360.159 100.398,360.040 100.577,360.040 100.795 M117.893 100.895 C 117.893 101.059,117.758 101.193,117.594 101.193 C 117.430 101.193,117.296 101.327,117.296 101.491 C 117.296 101.655,117.430 101.789,117.594 101.789 C 117.758 101.789,117.893 101.655,117.893 101.491 C 117.893 101.325,118.069 101.193,118.290 101.193 C 118.511 101.193,118.688 101.060,118.688 100.895 C 118.688 100.729,118.511 100.596,118.290 100.596 C 118.069 100.596,117.893 100.729,117.893 100.895 M64.016 101.491 C 64.016 101.655,63.882 101.789,63.718 101.789 C 63.552 101.789,63.419 101.966,63.419 102.187 C 63.419 102.408,63.552 102.584,63.718 102.584 C 63.882 102.584,64.016 102.447,64.016 102.280 C 64.016 102.113,64.150 101.924,64.314 101.861 C 64.478 101.798,64.612 101.622,64.612 101.470 C 64.612 101.317,64.478 101.193,64.314 101.193 C 64.150 101.193,64.016 101.327,64.016 101.491 M142.198 101.839 C 142.025 102.057,142.001 103.206,142.114 105.830 C 142.155 106.776,142.766 106.799,142.967 105.862 C 143.420 103.744,142.889 100.965,142.198 101.839 M360.636 102.161 C 360.636 102.682,360.931 103.157,361.127 102.952 C 361.398 102.670,361.292 101.689,360.984 101.629 C 360.715 101.577,360.636 101.696,360.636 102.161 M116.103 102.087 C 116.103 102.251,115.969 102.386,115.805 102.386 C 115.641 102.386,115.507 102.520,115.507 102.684 C 115.507 102.848,115.599 102.982,115.712 102.982 C 115.825 102.982,115.969 102.848,116.031 102.684 C 116.094 102.520,116.300 102.386,116.489 102.386 C 116.678 102.386,116.832 102.251,116.832 102.087 C 116.832 101.923,116.668 101.789,116.468 101.789 C 116.267 101.789,116.103 101.923,116.103 102.087 M61.630 103.380 C 61.630 103.601,61.763 103.777,61.928 103.777 C 62.094 103.777,62.227 103.601,62.227 103.380 C 62.227 103.159,62.094 102.982,61.928 102.982 C 61.763 102.982,61.630 103.159,61.630 103.380 M275.389 104.410 C 275.457 106.062,275.825 106.443,276.015 105.057 C 276.164 103.968,276.020 103.252,275.620 103.099 C 275.380 103.007,275.341 103.233,275.389 104.410 M311.928 104.457 C 311.928 105.683,311.986 105.964,312.235 105.964 C 312.633 105.964,312.577 103.163,312.177 103.031 C 311.993 102.970,311.928 103.339,311.928 104.457 M395.427 108.654 C 395.427 113.553,395.468 114.314,395.726 114.314 C 395.984 114.314,396.024 113.565,396.024 108.769 C 396.024 104.023,395.981 103.207,395.726 103.109 C 395.465 103.009,395.427 103.705,395.427 108.654 M361.233 104.248 C 361.233 105.706,361.776 105.812,361.870 104.373 C 361.917 103.667,361.860 103.480,361.581 103.422 C 361.290 103.362,361.233 103.499,361.233 104.248 M61.034 103.860 C 61.034 104.033,61.175 104.175,61.349 104.175 C 61.522 104.175,61.628 104.069,61.585 103.939 C 61.462 103.570,61.034 103.509,61.034 103.860 M113.718 103.877 C 113.718 104.041,113.852 104.175,114.016 104.175 C 114.180 104.175,114.314 104.041,114.314 103.877 C 114.314 103.713,114.180 103.579,114.016 103.579 C 113.852 103.579,113.718 103.713,113.718 103.877 M59.841 104.452 C 59.841 104.604,59.707 104.780,59.543 104.843 C 59.379 104.906,59.245 105.050,59.245 105.163 C 59.245 105.276,59.379 105.368,59.543 105.368 C 59.707 105.368,59.841 105.278,59.841 105.169 C 59.841 105.060,59.975 104.970,60.139 104.970 C 60.305 104.970,60.437 104.793,60.437 104.573 C 60.437 104.352,60.305 104.175,60.139 104.175 C 59.975 104.175,59.841 104.300,59.841 104.452 M111.928 105.070 C 111.928 105.234,111.794 105.368,111.630 105.368 C 111.466 105.368,111.332 105.502,111.332 105.666 C 111.332 105.830,111.424 105.964,111.537 105.964 C 111.650 105.964,111.794 105.830,111.857 105.666 C 111.919 105.502,112.096 105.368,112.248 105.368 C 112.400 105.368,112.525 105.234,112.525 105.070 C 112.525 104.906,112.391 104.771,112.227 104.771 C 112.063 104.771,111.928 104.906,111.928 105.070 M58.124 105.666 C 58.061 105.830,57.885 105.964,57.732 105.964 C 57.580 105.964,57.455 106.143,57.455 106.362 C 57.455 106.583,57.588 106.759,57.753 106.759 C 57.919 106.759,58.052 106.583,58.052 106.362 C 58.052 106.141,58.184 105.964,58.350 105.964 C 58.514 105.964,58.648 105.830,58.648 105.666 C 58.648 105.502,58.556 105.368,58.443 105.368 C 58.330 105.368,58.187 105.502,58.124 105.666 M109.891 106.499 C 109.480 106.606,109.419 107.157,109.818 107.157 C 109.969 107.157,110.140 106.978,110.197 106.759 C 110.254 106.541,110.287 106.372,110.270 106.385 C 110.253 106.398,110.082 106.449,109.891 106.499 M56.113 107.030 C 55.867 107.152,55.666 107.354,55.666 107.479 C 55.666 107.605,55.478 107.756,55.247 107.817 C 54.773 107.941,54.832 108.416,55.335 108.514 C 55.531 108.552,55.666 108.450,55.666 108.265 C 55.666 108.093,55.800 107.952,55.964 107.952 C 56.130 107.952,56.262 107.776,56.262 107.555 C 56.262 107.334,56.395 107.157,56.561 107.157 C 56.725 107.157,56.859 107.068,56.859 106.958 C 56.859 106.721,56.708 106.735,56.113 107.030 M142.672 107.565 C 142.431 108.771,142.767 111.332,143.167 111.332 C 143.981 111.332,143.871 107.404,143.048 107.088 C 142.882 107.024,142.745 107.198,142.672 107.565 M262.455 108.196 C 262.319 108.803,262.251 109.511,262.304 109.769 C 262.357 110.027,262.453 110.485,262.516 110.785 C 262.595 111.159,262.757 111.332,263.026 111.332 C 263.523 111.332,263.637 108.101,263.150 107.813 C 263.002 107.726,262.841 107.528,262.792 107.373 C 262.742 107.219,262.591 107.589,262.455 108.196 M108.101 107.692 C 107.910 107.742,107.753 107.910,107.753 108.066 C 107.753 108.222,107.619 108.350,107.455 108.350 C 107.291 108.350,107.157 108.484,107.157 108.648 C 107.157 108.812,107.291 108.946,107.455 108.946 C 107.619 108.946,107.753 108.812,107.753 108.648 C 107.753 108.484,107.877 108.350,108.029 108.350 C 108.180 108.350,108.350 108.171,108.408 107.952 C 108.465 107.734,108.497 107.565,108.480 107.578 C 108.463 107.590,108.293 107.642,108.101 107.692 M53.559 108.818 C 53.329 109.053,53.180 109.356,53.227 109.493 C 53.349 109.844,53.877 109.803,53.877 109.443 C 53.877 109.279,54.011 109.145,54.175 109.145 C 54.341 109.145,54.473 108.968,54.473 108.748 C 54.473 108.242,54.094 108.271,53.559 108.818 M275.944 109.526 C 275.944 111.489,276.396 112.037,276.620 110.346 C 276.775 109.183,276.608 108.350,276.221 108.350 C 276.016 108.350,275.944 108.654,275.944 109.526 M312.525 109.725 C 312.525 110.863,312.584 111.133,312.832 111.133 C 313.228 111.133,313.172 108.531,312.773 108.399 C 312.590 108.338,312.525 108.687,312.525 109.725 M361.466 109.004 C 361.027 109.533,361.238 110.825,361.707 110.480 C 362.024 110.247,362.055 110.086,361.904 109.448 C 361.748 108.791,361.691 108.733,361.466 109.004 M105.964 109.245 C 105.964 109.409,105.830 109.543,105.666 109.543 C 105.502 109.543,105.368 109.677,105.368 109.841 C 105.368 110.005,105.502 110.139,105.666 110.139 C 105.830 110.139,105.964 110.005,105.964 109.841 C 105.964 109.677,106.098 109.543,106.262 109.543 C 106.426 109.543,106.561 109.409,106.561 109.245 C 106.561 109.081,106.426 108.946,106.262 108.946 C 106.098 108.946,105.964 109.081,105.964 109.245 M51.425 110.272 C 51.151 110.545,51.307 110.934,51.690 110.934 C 51.955 110.934,52.087 110.802,52.087 110.537 C 52.087 110.154,51.698 109.998,51.425 110.272 M103.579 111.034 C 103.579 111.198,103.713 111.332,103.877 111.332 C 104.041 111.332,104.175 111.198,104.175 111.034 C 104.175 110.870,104.041 110.736,103.877 110.736 C 103.713 110.736,103.579 110.870,103.579 111.034 M360.875 111.173 C 360.539 111.509,360.578 112.127,360.934 112.127 C 361.133 112.127,361.233 111.928,361.233 111.531 C 361.233 110.861,361.210 110.838,360.875 111.173 M49.358 111.845 C 48.713 112.581,48.696 112.638,49.119 112.670 C 49.334 112.686,49.503 112.573,49.503 112.413 C 49.503 112.256,49.682 112.127,49.901 112.127 C 50.166 112.127,50.298 111.995,50.298 111.730 C 50.298 111.186,49.891 111.236,49.358 111.845 M263.117 111.942 C 262.669 113.353,263.017 116.302,263.632 116.302 C 264.023 116.302,264.234 112.728,263.895 111.845 C 263.724 111.399,263.271 111.455,263.117 111.942 M143.340 114.293 C 143.340 117.130,143.674 117.952,144.115 116.200 C 144.552 114.466,144.254 111.730,143.629 111.730 C 143.391 111.730,143.340 112.184,143.340 114.293 M101.789 112.227 C 101.789 112.391,101.923 112.525,102.087 112.525 C 102.251 112.525,102.386 112.391,102.386 112.227 C 102.386 112.063,102.251 111.928,102.087 111.928 C 101.923 111.928,101.789 112.063,101.789 112.227 M360.288 112.671 C 360.152 112.718,360.040 112.884,360.040 113.038 C 360.040 113.193,359.906 113.320,359.742 113.320 C 359.578 113.320,359.443 113.454,359.443 113.618 C 359.443 113.782,359.309 113.917,359.145 113.917 C 358.981 113.917,358.847 114.051,358.847 114.215 C 358.847 114.379,358.981 114.513,359.145 114.513 C 359.309 114.513,359.443 114.379,359.443 114.215 C 359.443 114.051,359.573 113.917,359.732 113.917 C 359.890 113.917,360.092 113.795,360.179 113.647 C 360.266 113.499,360.438 113.343,360.560 113.300 C 360.682 113.256,360.727 113.078,360.659 112.903 C 360.592 112.728,360.425 112.624,360.288 112.671 M47.786 113.022 C 47.723 113.186,47.547 113.320,47.394 113.320 C 47.242 113.320,47.117 113.454,47.117 113.618 C 47.117 113.784,47.294 113.917,47.515 113.917 C 47.736 113.917,47.913 113.784,47.913 113.618 C 47.913 113.454,48.047 113.320,48.211 113.320 C 48.375 113.320,48.509 113.186,48.509 113.022 C 48.509 112.858,48.372 112.724,48.204 112.724 C 48.037 112.724,47.849 112.858,47.786 113.022 M100.000 113.419 C 100.000 113.583,99.866 113.718,99.702 113.718 C 99.538 113.718,99.404 113.852,99.404 114.016 C 99.404 114.180,99.538 114.314,99.702 114.314 C 99.866 114.314,100.000 114.180,100.000 114.016 C 100.000 113.834,100.185 113.718,100.476 113.718 C 100.737 113.718,101.003 113.583,101.066 113.419 C 101.152 113.196,101.033 113.121,100.590 113.121 C 100.198 113.121,100.000 113.221,100.000 113.419 M276.541 114.697 C 276.541 116.428,277.024 116.852,277.237 115.307 C 277.388 114.210,277.257 113.607,276.831 113.444 C 276.594 113.353,276.541 113.582,276.541 114.697 M313.121 114.811 C 313.121 116.004,313.181 116.302,313.419 116.302 C 313.658 116.302,313.718 116.004,313.718 114.811 C 313.718 113.618,313.658 113.320,313.419 113.320 C 313.181 113.320,313.121 113.618,313.121 114.811 M45.924 114.215 C 45.924 114.379,45.790 114.513,45.626 114.513 C 45.462 114.513,45.328 114.647,45.328 114.811 C 45.328 114.975,45.194 115.109,45.030 115.109 C 44.866 115.109,44.732 115.244,44.732 115.408 C 44.732 115.572,44.856 115.706,45.009 115.706 C 45.161 115.706,45.337 115.572,45.400 115.408 C 45.463 115.244,45.651 115.109,45.819 115.109 C 45.986 115.109,46.123 114.975,46.123 114.811 C 46.123 114.647,46.257 114.513,46.421 114.513 C 46.585 114.513,46.720 114.379,46.720 114.215 C 46.720 114.049,46.543 113.917,46.322 113.917 C 46.101 113.917,45.924 114.049,45.924 114.215 M358.557 114.897 C 358.485 115.014,358.252 115.109,358.040 115.109 C 357.828 115.109,357.654 115.234,357.654 115.386 C 357.654 115.539,357.520 115.715,357.356 115.778 C 357.192 115.841,357.058 115.984,357.058 116.097 C 357.058 116.414,357.597 116.339,357.726 116.004 C 357.789 115.840,357.977 115.706,358.145 115.706 C 358.312 115.706,358.449 115.579,358.449 115.424 C 358.449 115.269,358.561 115.103,358.698 115.054 C 358.834 115.005,358.888 114.902,358.817 114.825 C 358.746 114.748,358.629 114.781,358.557 114.897 M97.614 115.186 C 97.614 115.337,97.435 115.507,97.217 115.565 C 96.756 115.685,96.677 116.103,97.115 116.103 C 97.498 116.103,98.211 115.493,98.211 115.165 C 98.211 115.025,98.077 114.911,97.913 114.911 C 97.749 114.911,97.614 115.034,97.614 115.186 M43.539 116.004 C 43.539 116.168,43.405 116.302,43.241 116.302 C 43.077 116.302,42.942 116.436,42.942 116.600 C 42.942 116.764,43.077 116.899,43.241 116.899 C 43.405 116.899,43.539 116.764,43.539 116.600 C 43.539 116.435,43.715 116.302,43.936 116.302 C 44.157 116.302,44.334 116.170,44.334 116.004 C 44.334 115.838,44.157 115.706,43.936 115.706 C 43.715 115.706,43.539 115.838,43.539 116.004 M95.577 116.518 C 94.897 117.262,95.309 117.613,96.024 116.899 C 96.243 116.680,96.421 116.412,96.421 116.302 C 96.421 115.984,95.955 116.103,95.577 116.518 M355.268 116.600 C 355.268 116.799,355.467 116.899,355.865 116.899 C 356.262 116.899,356.461 116.799,356.461 116.600 C 356.461 116.402,356.262 116.302,355.865 116.302 C 355.467 116.302,355.268 116.402,355.268 116.600 M394.958 116.440 C 394.683 116.716,394.825 118.091,395.129 118.091 C 395.344 118.091,395.427 117.872,395.427 117.308 C 395.427 116.553,395.223 116.175,394.958 116.440 M41.750 117.197 C 41.750 117.361,41.615 117.495,41.451 117.495 C 41.287 117.495,41.153 117.629,41.153 117.793 C 41.153 117.957,41.287 118.091,41.451 118.091 C 41.615 118.091,41.750 117.957,41.750 117.793 C 41.750 117.628,41.926 117.495,42.147 117.495 C 42.368 117.495,42.545 117.362,42.545 117.197 C 42.545 117.031,42.368 116.899,42.147 116.899 C 41.926 116.899,41.750 117.031,41.750 117.197 M263.620 117.786 C 263.201 119.284,263.566 121.471,264.236 121.471 C 264.620 121.471,264.824 118.078,264.492 117.213 C 264.268 116.631,263.871 116.892,263.620 117.786 M353.479 117.184 C 353.479 117.408,353.678 117.495,354.192 117.495 C 355.090 117.495,355.021 117.026,354.110 116.936 C 353.644 116.890,353.479 116.955,353.479 117.184 M94.036 117.671 C 94.036 117.767,93.857 117.893,93.638 117.950 C 93.174 118.072,93.096 118.688,93.545 118.688 C 93.712 118.688,93.901 118.554,93.964 118.390 C 94.027 118.226,94.203 118.091,94.355 118.091 C 94.508 118.091,94.632 117.957,94.632 117.793 C 94.632 117.629,94.498 117.495,94.334 117.495 C 94.170 117.495,94.036 117.574,94.036 117.671 M143.936 119.745 C 143.936 121.588,143.994 122.047,144.235 122.139 C 144.473 122.231,144.533 122.667,144.533 124.323 C 144.533 125.920,144.601 126.449,144.831 126.640 C 145.066 126.835,145.129 127.393,145.129 129.255 C 145.129 131.176,145.185 131.644,145.427 131.737 C 145.669 131.830,145.726 132.298,145.726 134.216 C 145.726 136.413,145.753 136.581,146.106 136.581 C 146.850 136.581,146.904 132.748,146.180 131.334 C 145.998 130.980,145.933 130.524,146.009 130.144 C 146.201 129.182,145.915 127.245,145.525 126.871 C 145.223 126.581,145.207 126.390,145.394 125.290 C 145.615 123.980,145.342 121.840,144.935 121.705 C 144.822 121.667,144.785 121.168,144.846 120.512 C 144.988 119.002,144.724 117.618,144.279 117.532 C 143.971 117.472,143.936 117.695,143.936 119.745 M277.258 118.804 C 277.023 119.416,277.130 121.218,277.416 121.455 C 277.646 121.646,277.718 121.514,277.831 120.692 C 278.037 119.191,277.628 117.840,277.258 118.804 M39.364 118.986 C 39.364 119.152,39.541 119.284,39.761 119.284 C 39.982 119.284,40.159 119.152,40.159 118.986 C 40.159 118.820,39.982 118.688,39.761 118.688 C 39.541 118.688,39.364 118.820,39.364 118.986 M91.520 119.392 C 91.455 119.561,91.454 119.751,91.518 119.814 C 91.718 120.015,92.247 119.707,92.247 119.390 C 92.247 118.993,91.672 118.995,91.520 119.392 M38.243 119.583 C 38.180 119.747,38.004 119.881,37.851 119.881 C 37.699 119.881,37.575 120.015,37.575 120.179 C 37.575 120.343,37.440 120.477,37.276 120.477 C 37.112 120.477,36.978 120.611,36.978 120.775 C 36.978 120.939,37.112 121.074,37.276 121.074 C 37.440 121.074,37.575 120.939,37.575 120.775 C 37.575 120.611,37.709 120.477,37.873 120.477 C 38.037 120.477,38.171 120.343,38.171 120.179 C 38.171 120.015,38.335 119.881,38.535 119.881 C 38.736 119.881,38.900 119.747,38.900 119.583 C 38.900 119.418,38.778 119.284,38.629 119.284 C 38.479 119.284,38.306 119.418,38.243 119.583 M394.235 120.278 C 394.235 120.853,394.317 121.074,394.533 121.074 C 394.748 121.074,394.831 120.853,394.831 120.278 C 394.831 119.704,394.748 119.483,394.533 119.483 C 394.317 119.483,394.235 119.704,394.235 120.278 M89.503 120.775 C 89.017 121.279,88.934 121.672,89.314 121.667 C 89.550 121.663,90.457 120.832,90.457 120.619 C 90.457 120.294,89.874 120.389,89.503 120.775 M35.785 121.372 C 35.785 121.536,35.651 121.670,35.487 121.670 C 35.323 121.670,35.189 121.804,35.189 121.968 C 35.189 122.132,35.323 122.266,35.487 122.266 C 35.651 122.266,35.785 122.132,35.785 121.968 C 35.785 121.804,35.919 121.670,36.083 121.670 C 36.248 121.670,36.382 121.536,36.382 121.372 C 36.382 121.208,36.248 121.074,36.083 121.074 C 35.919 121.074,35.785 121.208,35.785 121.372 M87.624 122.046 C 87.433 122.240,87.276 122.503,87.276 122.631 C 87.276 122.758,87.142 122.863,86.978 122.863 C 86.814 122.863,86.680 122.994,86.680 123.155 C 86.680 123.333,86.796 123.402,86.978 123.332 C 87.142 123.269,87.276 123.138,87.276 123.040 C 87.276 122.943,87.361 122.863,87.465 122.863 C 87.757 122.863,88.678 121.945,88.532 121.799 C 88.318 121.585,87.992 121.674,87.624 122.046 M264.423 122.144 C 263.928 123.442,264.212 126.672,264.840 126.882 C 265.046 126.950,265.046 127.128,264.839 127.818 C 264.453 129.107,264.855 131.014,265.514 131.014 C 265.964 131.014,265.936 127.330,265.484 127.077 C 265.215 126.926,265.168 126.532,265.194 124.631 C 265.230 122.083,264.879 120.951,264.423 122.144 M393.638 122.283 C 393.638 123.044,394.106 122.975,394.198 122.201 C 394.243 121.825,394.170 121.670,393.950 121.670 C 393.734 121.670,393.638 121.859,393.638 122.283 M34.068 122.565 C 34.005 122.729,33.829 122.863,33.677 122.863 C 33.524 122.863,33.400 122.987,33.400 123.140 C 33.400 123.292,33.265 123.468,33.101 123.531 C 32.937 123.594,32.803 123.738,32.803 123.851 C 32.803 123.963,32.937 124.056,33.101 124.056 C 33.265 124.056,33.400 123.921,33.400 123.757 C 33.400 123.593,33.534 123.459,33.698 123.459 C 33.862 123.459,33.996 123.325,33.996 123.161 C 33.996 122.997,34.130 122.863,34.294 122.863 C 34.458 122.863,34.592 122.729,34.592 122.565 C 34.592 122.401,34.500 122.266,34.387 122.266 C 34.275 122.266,34.131 122.401,34.068 122.565 M393.042 123.956 C 393.042 124.442,393.132 124.652,393.340 124.652 C 393.548 124.652,393.638 124.442,393.638 123.956 C 393.638 123.470,393.548 123.260,393.340 123.260 C 393.132 123.260,393.042 123.470,393.042 123.956 M85.487 123.757 C 85.487 123.921,85.353 124.056,85.189 124.056 C 85.025 124.056,84.891 124.190,84.891 124.354 C 84.891 124.518,85.025 124.652,85.189 124.652 C 85.353 124.652,85.487 124.518,85.487 124.354 C 85.487 124.190,85.621 124.056,85.785 124.056 C 85.949 124.056,86.083 123.921,86.083 123.757 C 86.083 123.593,85.949 123.459,85.785 123.459 C 85.621 123.459,85.487 123.593,85.487 123.757 M277.814 123.735 C 277.636 124.198,277.819 125.710,278.062 125.790 C 278.340 125.881,278.616 124.445,278.432 123.865 C 278.284 123.398,277.969 123.332,277.814 123.735 M31.610 124.354 C 31.610 124.518,31.476 124.652,31.312 124.652 C 31.148 124.652,31.014 124.786,31.014 124.950 C 31.014 125.114,31.148 125.249,31.312 125.249 C 31.476 125.249,31.610 125.114,31.610 124.950 C 31.610 124.786,31.745 124.652,31.909 124.652 C 32.073 124.652,32.207 124.518,32.207 124.354 C 32.207 124.190,32.073 124.056,31.909 124.056 C 31.745 124.056,31.610 124.190,31.610 124.354 M83.698 124.950 C 83.698 125.114,83.564 125.249,83.400 125.249 C 83.236 125.249,83.101 125.383,83.101 125.547 C 83.101 125.711,83.236 125.845,83.400 125.845 C 83.564 125.845,83.698 125.711,83.698 125.547 C 83.698 125.383,83.832 125.249,83.996 125.249 C 84.160 125.249,84.294 125.114,84.294 124.950 C 84.294 124.786,84.160 124.652,83.996 124.652 C 83.832 124.652,83.698 124.786,83.698 124.950 M392.445 125.447 C 392.445 125.668,392.578 125.845,392.744 125.845 C 392.909 125.845,393.042 125.668,393.042 125.447 C 393.042 125.226,392.909 125.050,392.744 125.050 C 392.578 125.050,392.445 125.226,392.445 125.447 M29.821 125.547 C 29.821 125.711,29.698 125.845,29.547 125.845 C 29.397 125.845,29.162 125.979,29.026 126.143 C 28.817 126.395,28.859 126.441,29.300 126.441 C 29.631 126.441,29.821 126.332,29.821 126.143 C 29.821 125.979,29.955 125.845,30.119 125.845 C 30.283 125.845,30.417 125.711,30.417 125.547 C 30.417 125.383,30.283 125.249,30.119 125.249 C 29.955 125.249,29.821 125.383,29.821 125.547 M28.104 126.740 C 28.041 126.904,27.905 127.038,27.802 127.038 C 27.632 127.038,26.640 127.995,26.640 128.160 C 26.640 128.199,26.819 128.231,27.038 128.231 C 27.259 128.231,27.435 128.098,27.435 127.932 C 27.435 127.768,27.570 127.634,27.734 127.634 C 27.898 127.634,28.032 127.500,28.032 127.336 C 28.032 127.172,28.166 127.038,28.330 127.038 C 28.494 127.038,28.628 126.904,28.628 126.740 C 28.628 126.576,28.536 126.441,28.423 126.441 C 28.310 126.441,28.167 126.576,28.104 126.740 M81.312 126.740 C 81.312 126.904,81.446 127.038,81.610 127.038 C 81.774 127.038,81.909 126.904,81.909 126.740 C 81.909 126.576,81.774 126.441,81.610 126.441 C 81.446 126.441,81.312 126.576,81.312 126.740 M391.849 126.740 C 391.849 126.904,391.983 127.038,392.147 127.038 C 392.311 127.038,392.445 126.904,392.445 126.740 C 392.445 126.576,392.311 126.441,392.147 126.441 C 391.983 126.441,391.849 126.576,391.849 126.740 M79.523 127.932 C 79.523 128.096,79.389 128.231,79.225 128.231 C 79.061 128.231,78.926 128.365,78.926 128.529 C 78.926 128.693,79.061 128.827,79.225 128.827 C 79.389 128.827,79.523 128.693,79.523 128.529 C 79.523 128.365,79.657 128.231,79.821 128.231 C 79.985 128.231,80.119 128.096,80.119 127.932 C 80.119 127.768,79.985 127.634,79.821 127.634 C 79.657 127.634,79.523 127.768,79.523 127.932 M391.252 127.932 C 391.252 128.096,391.387 128.231,391.551 128.231 C 391.715 128.231,391.849 128.096,391.849 127.932 C 391.849 127.768,391.715 127.634,391.551 127.634 C 391.387 127.634,391.252 127.768,391.252 127.932 M278.330 129.213 C 278.330 130.813,278.827 131.185,279.059 129.757 C 279.206 128.847,279.001 128.032,278.624 128.032 C 278.397 128.032,278.330 128.302,278.330 129.213 M25.519 128.529 C 25.456 128.693,25.280 128.827,25.128 128.827 C 24.976 128.827,24.851 128.961,24.851 129.125 C 24.851 129.289,24.985 129.423,25.149 129.423 C 25.485 129.423,26.243 128.734,26.243 128.429 C 26.243 128.116,25.646 128.198,25.519 128.529 M390.656 129.026 C 390.656 129.247,390.789 129.423,390.954 129.423 C 391.120 129.423,391.252 129.247,391.252 129.026 C 391.252 128.805,391.120 128.628,390.954 128.628 C 390.789 128.628,390.656 128.805,390.656 129.026 M77.734 129.014 C 77.734 129.385,78.176 129.464,78.491 129.149 C 78.788 128.852,78.770 128.827,78.273 128.827 C 77.976 128.827,77.734 128.911,77.734 129.014 M23.929 129.722 C 23.866 129.886,23.645 130.020,23.438 130.020 C 23.231 130.020,23.062 130.154,23.062 130.318 C 23.062 130.484,23.238 130.616,23.459 130.616 C 23.680 130.616,23.857 130.484,23.857 130.318 C 23.857 130.154,23.991 130.020,24.155 130.020 C 24.319 130.020,24.453 129.886,24.453 129.722 C 24.453 129.558,24.361 129.423,24.248 129.423 C 24.135 129.423,23.992 129.558,23.929 129.722 M76.870 129.787 C 76.411 130.294,76.384 133.598,76.839 133.598 C 77.231 133.598,77.278 130.905,76.889 130.748 C 76.690 130.668,76.690 130.645,76.889 130.632 C 77.025 130.623,77.137 130.482,77.137 130.318 C 77.137 130.154,77.271 130.020,77.435 130.020 C 77.599 130.020,77.734 129.886,77.734 129.722 C 77.734 129.312,77.268 129.347,76.870 129.787 M390.060 130.219 C 390.060 130.440,389.927 130.616,389.761 130.616 C 389.597 130.616,389.463 130.750,389.463 130.915 C 389.463 131.335,389.691 131.280,390.209 130.734 C 390.726 130.189,390.786 129.821,390.358 129.821 C 390.192 129.821,390.060 129.998,390.060 130.219 M22.139 130.915 C 22.077 131.079,21.849 131.213,21.634 131.213 C 21.376 131.213,21.265 131.325,21.307 131.544 C 21.405 132.047,21.880 132.106,22.005 131.631 C 22.065 131.401,22.228 131.213,22.368 131.213 C 22.507 131.213,22.673 131.079,22.736 130.915 C 22.806 130.731,22.736 130.616,22.552 130.616 C 22.388 130.616,22.202 130.750,22.139 130.915 M265.509 131.408 C 265.013 132.210,265.406 135.863,266.023 136.193 C 266.403 136.396,266.412 136.333,266.358 133.860 C 266.303 131.350,266.031 130.564,265.509 131.408 M20.481 132.103 C 20.343 132.269,20.129 132.408,20.005 132.411 C 19.882 132.414,19.520 132.683,19.201 133.008 L 18.622 133.598 19.152 133.598 C 19.490 133.598,19.682 133.491,19.682 133.300 C 19.682 133.136,19.816 133.002,19.980 133.002 C 20.144 133.002,20.278 132.900,20.278 132.775 C 20.278 132.651,20.435 132.434,20.626 132.295 C 20.817 132.155,20.919 131.986,20.853 131.920 C 20.787 131.854,20.619 131.936,20.481 132.103 M388.270 132.704 C 388.270 132.868,388.136 133.002,387.972 133.002 C 387.808 133.002,387.674 133.136,387.674 133.300 C 387.674 133.464,387.808 133.598,387.972 133.598 C 388.136 133.598,388.270 133.464,388.270 133.300 C 388.270 133.136,388.405 133.002,388.569 133.002 C 388.733 133.002,388.867 132.868,388.867 132.704 C 388.867 132.540,388.733 132.406,388.569 132.406 C 388.405 132.406,388.270 132.540,388.270 132.704 M278.946 134.385 C 278.910 135.612,279.122 136.252,279.454 135.920 C 279.814 135.561,279.755 133.431,279.380 133.231 C 279.007 133.031,278.984 133.092,278.946 134.385 M17.766 133.897 C 17.703 134.061,17.520 134.195,17.360 134.195 C 17.006 134.195,17.088 134.821,17.458 134.945 C 17.603 134.993,17.769 134.844,17.830 134.613 C 17.890 134.383,18.063 134.195,18.214 134.195 C 18.365 134.195,18.489 134.061,18.489 133.897 C 18.489 133.733,18.352 133.598,18.185 133.598 C 18.017 133.598,17.829 133.733,17.766 133.897 M132.406 134.294 C 132.406 134.780,132.496 134.990,132.704 134.990 C 132.912 134.990,133.002 134.780,133.002 134.294 C 133.002 133.808,132.912 133.598,132.704 133.598 C 132.496 133.598,132.406 133.808,132.406 134.294 M15.245 135.805 C 15.185 136.035,15.056 136.173,14.957 136.112 C 14.859 136.051,14.778 136.132,14.778 136.291 C 14.778 136.450,14.897 136.581,15.043 136.581 C 15.189 136.581,15.308 136.501,15.308 136.405 C 15.308 136.308,15.487 136.182,15.706 136.125 C 16.211 135.993,16.230 135.388,15.729 135.388 C 15.516 135.388,15.308 135.567,15.245 135.805 M13.576 136.978 C 13.519 137.197,13.349 137.376,13.197 137.376 C 13.046 137.376,12.922 137.510,12.922 137.674 C 12.922 137.838,13.057 137.972,13.221 137.972 C 13.385 137.972,13.519 137.848,13.519 137.697 C 13.519 137.546,13.698 137.375,13.917 137.318 C 14.388 137.195,14.455 136.581,13.997 136.581 C 13.823 136.581,13.634 136.759,13.576 136.978 M266.179 137.131 C 265.695 138.379,266.059 141.352,266.695 141.352 C 267.147 141.352,267.145 136.878,266.693 136.705 C 266.487 136.626,266.321 136.764,266.179 137.131 M146.322 139.066 L 146.322 141.352 146.819 141.352 C 147.403 141.352,147.525 139.702,147.083 137.789 C 146.656 135.939,146.322 136.500,146.322 139.066 M133.002 138.674 C 133.002 139.862,133.062 140.159,133.300 140.159 C 133.536 140.159,133.598 139.874,133.598 138.789 C 133.598 137.754,133.525 137.390,133.300 137.304 C 133.052 137.208,133.002 137.436,133.002 138.674 M383.250 137.591 C 382.824 138.058,382.804 138.370,383.201 138.370 C 383.365 138.370,383.499 138.236,383.499 138.072 C 383.499 137.908,383.633 137.773,383.797 137.773 C 383.961 137.773,384.095 137.639,384.095 137.475 C 384.095 137.070,383.674 137.128,383.250 137.591 M279.744 138.356 C 279.546 138.479,279.496 138.871,279.557 139.830 C 279.686 141.864,280.084 141.961,280.261 140.003 C 280.378 138.712,280.181 138.086,279.744 138.356 M381.041 139.264 C 380.978 139.428,380.790 139.563,380.623 139.563 C 380.455 139.563,380.318 139.697,380.318 139.861 C 380.318 140.025,380.455 140.159,380.623 140.159 C 380.790 140.159,380.978 140.025,381.041 139.861 C 381.104 139.697,381.280 139.563,381.433 139.563 C 381.585 139.563,381.710 139.428,381.710 139.264 C 381.710 139.100,381.585 138.966,381.433 138.966 C 381.280 138.966,381.104 139.100,381.041 139.264 M12.922 141.352 C 12.922 142.280,12.989 142.545,13.221 142.545 C 13.453 142.545,13.519 142.280,13.519 141.352 C 13.519 140.424,13.453 140.159,13.221 140.159 C 12.989 140.159,12.922 140.424,12.922 141.352 M379.125 140.457 C 379.125 140.623,379.302 140.755,379.523 140.755 C 379.744 140.755,379.920 140.623,379.920 140.457 C 379.920 140.292,379.744 140.159,379.523 140.159 C 379.302 140.159,379.125 140.292,379.125 140.457 M378.131 141.070 C 378.131 141.243,378.237 141.350,378.367 141.306 C 378.736 141.183,378.797 140.755,378.446 140.755 C 378.273 140.755,378.131 140.897,378.131 141.070 M376.872 141.637 C 376.800 141.823,376.885 141.913,377.115 141.895 C 377.310 141.881,377.469 141.752,377.469 141.610 C 377.469 141.261,377.008 141.281,376.872 141.637 M146.918 143.816 C 146.918 145.975,147.175 146.834,147.609 146.131 C 148.131 145.287,147.795 141.551,147.197 141.551 C 146.975 141.551,146.918 142.007,146.918 143.816 M266.728 141.988 C 266.477 142.926,266.590 145.834,266.892 146.234 C 267.053 146.447,267.188 146.531,267.194 146.421 C 267.199 146.312,267.291 146.357,267.399 146.521 C 267.533 146.723,267.580 145.990,267.545 144.237 C 267.503 142.040,267.447 141.646,267.173 141.593 C 266.975 141.555,266.803 141.708,266.728 141.988 M375.547 142.346 C 375.547 142.784,375.571 142.798,376.027 142.623 C 376.478 142.450,376.416 141.948,375.944 141.948 C 375.679 141.948,375.547 142.081,375.547 142.346 M374.296 142.942 C 374.188 143.358,374.309 143.421,374.835 143.219 C 375.274 143.051,375.229 142.545,374.775 142.545 C 374.567 142.545,374.354 142.722,374.296 142.942 M133.598 144.135 C 133.598 145.240,133.660 145.527,133.897 145.527 C 134.133 145.527,134.195 145.240,134.195 144.135 C 134.195 143.031,134.133 142.744,133.897 142.744 C 133.660 142.744,133.598 143.031,133.598 144.135 M280.119 144.116 C 280.119 145.910,280.700 146.098,280.867 144.358 C 280.949 143.511,280.905 143.349,280.540 143.154 C 280.133 142.936,280.119 142.968,280.119 144.116 M372.565 143.560 C 372.565 143.860,372.654 143.945,372.879 143.858 C 373.052 143.792,373.320 143.738,373.476 143.738 C 373.631 143.738,373.757 143.603,373.757 143.439 C 373.757 143.241,373.559 143.141,373.161 143.141 C 372.687 143.141,372.565 143.227,372.565 143.560 M370.726 144.103 C 370.634 144.457,370.782 144.491,371.819 144.354 C 371.901 144.343,371.968 144.200,371.968 144.036 C 371.968 143.580,370.847 143.640,370.726 144.103 M368.390 144.689 C 368.390 144.941,368.563 145.058,368.986 145.090 C 369.467 145.127,369.583 145.058,369.583 144.735 C 369.583 144.422,369.452 144.334,368.986 144.334 C 368.546 144.334,368.390 144.427,368.390 144.689 M13.519 146.102 C 13.519 146.960,13.599 147.304,13.817 147.388 C 14.063 147.482,14.115 147.278,14.115 146.216 C 14.115 145.206,14.051 144.930,13.817 144.930 C 13.586 144.930,13.519 145.193,13.519 146.102 M365.901 145.135 C 365.824 145.260,365.850 145.452,365.959 145.561 C 366.248 145.850,367.097 145.677,367.097 145.328 C 367.097 144.967,366.104 144.807,365.901 145.135 M361.953 145.829 C 361.775 146.007,361.630 146.173,361.630 146.199 C 361.630 146.225,362.189 146.241,362.873 146.235 C 363.839 146.225,364.115 146.156,364.115 145.924 C 364.115 145.479,362.379 145.403,361.953 145.829 M317.228 146.271 C 316.830 146.916,317.231 146.928,337.324 146.873 C 355.845 146.823,357.775 146.775,357.373 146.372 C 357.164 146.163,317.356 146.064,317.228 146.271 M147.558 148.646 C 147.616 150.819,147.837 151.357,148.276 150.393 C 148.739 149.377,148.424 146.882,147.803 146.644 C 147.543 146.544,147.509 146.822,147.558 148.646 M267.331 147.453 C 267.057 147.987,267.051 148.997,267.311 150.646 C 267.387 151.124,267.516 151.292,267.809 151.292 C 268.182 151.292,268.201 151.175,268.148 149.171 C 268.088 146.914,267.856 146.428,267.331 147.453 M134.201 149.056 C 134.196 150.384,134.252 150.696,134.493 150.696 C 134.908 150.696,134.913 148.348,134.499 147.801 C 134.235 147.452,134.207 147.570,134.201 149.056 M280.847 147.649 C 280.623 147.872,280.702 150.266,280.937 150.411 C 281.287 150.628,281.505 150.084,281.508 148.981 C 281.511 148.023,281.166 147.329,280.847 147.649 M317.433 148.836 C 317.288 148.981,317.238 151.093,317.379 151.093 C 317.425 151.093,317.593 151.144,317.753 151.205 C 317.990 151.296,318.038 151.088,318.017 150.079 C 317.994 148.944,317.780 148.489,317.433 148.836 M14.156 150.829 C 14.241 152.739,14.712 152.809,14.712 150.911 C 14.712 149.773,14.653 149.503,14.404 149.503 C 14.152 149.503,14.108 149.740,14.156 150.829 M148.155 153.711 C 148.218 156.654,148.510 157.279,148.914 155.333 C 149.311 153.418,148.964 151.093,148.280 151.093 C 148.179 151.093,148.124 152.238,148.155 153.711 M267.919 152.302 C 267.552 154.139,267.865 156.262,268.503 156.262 C 268.964 156.262,268.831 151.821,268.367 151.733 C 268.144 151.690,268.007 151.865,267.919 152.302 M281.342 154.142 C 281.457 156.412,281.882 156.569,282.056 154.406 C 282.150 153.227,282.122 153.104,281.713 152.884 L 281.267 152.646 281.342 154.142 M134.791 154.158 C 134.791 155.207,134.852 155.467,135.099 155.467 C 135.350 155.467,135.396 155.241,135.347 154.240 C 135.262 152.476,134.791 152.406,134.791 154.158 M318.017 153.785 C 317.709 154.587,317.881 156.014,318.299 156.124 C 318.682 156.224,318.702 156.154,318.647 154.920 C 318.591 153.656,318.280 153.098,318.017 153.785 M14.844 154.606 C 14.679 154.771,14.669 156.716,14.832 157.141 C 15.108 157.858,15.308 157.363,15.308 155.964 C 15.308 154.593,15.193 154.257,14.844 154.606 M268.514 156.766 C 268.069 157.926,268.487 160.835,269.099 160.835 C 269.561 160.835,269.426 156.593,268.961 156.504 C 268.784 156.470,268.583 156.588,268.514 156.766 M148.708 159.046 C 148.708 161.055,148.738 161.233,149.082 161.233 C 149.702 161.233,149.933 159.190,149.493 157.604 C 149.058 156.039,148.708 156.682,148.708 159.046 M135.388 159.046 C 135.388 160.150,135.449 160.437,135.686 160.437 C 135.923 160.437,135.984 160.150,135.984 159.046 C 135.984 157.941,135.923 157.654,135.686 157.654 C 135.449 157.654,135.388 157.941,135.388 159.046 M281.982 159.294 C 282.002 160.255,282.076 160.537,282.306 160.537 C 282.533 160.537,282.619 160.240,282.664 159.294 C 282.717 158.180,282.683 158.052,282.340 158.052 C 282.000 158.052,281.960 158.191,281.982 159.294 M318.590 159.267 C 318.406 160.492,318.518 161.116,318.936 161.195 C 319.385 161.281,319.439 159.333,319.005 158.740 C 318.747 158.387,318.716 158.426,318.590 159.267 M15.349 160.968 C 15.433 162.879,15.905 162.948,15.905 161.050 C 15.905 159.913,15.846 159.642,15.597 159.642 C 15.345 159.642,15.300 159.879,15.349 160.968 M269.228 161.132 C 269.306 161.216,269.289 161.436,269.190 161.622 C 269.090 161.807,268.995 162.578,268.977 163.335 C 268.958 164.092,268.899 164.913,268.844 165.159 L 268.744 165.606 209.834 165.606 C 156.544 165.606,150.893 165.577,150.611 165.294 C 150.392 165.075,150.298 164.601,150.298 163.716 C 150.298 162.267,150.045 161.431,149.607 161.431 C 149.161 161.431,149.157 165.761,149.602 165.932 C 149.766 165.995,149.901 166.171,149.901 166.323 C 149.901 166.560,158.754 166.600,209.940 166.600 L 269.980 166.600 269.980 164.023 C 269.980 161.551,269.962 161.436,269.533 161.213 C 269.287 161.085,269.149 161.049,269.228 161.132 M282.655 162.763 C 282.422 163.199,282.516 164.573,282.795 164.804 C 283.196 165.137,283.347 164.753,283.263 163.607 C 283.207 162.833,282.868 162.364,282.655 162.763 M135.984 164.385 C 135.984 165.153,135.895 165.837,135.785 165.905 C 135.387 166.151,135.585 166.600,136.091 166.600 L 136.596 166.600 136.539 164.877 C 136.465 162.657,135.984 162.231,135.984 164.385 M319.209 163.924 C 319.141 164.102,319.085 164.642,319.085 165.126 C 319.085 165.609,318.996 166.004,318.887 166.004 C 318.777 166.004,318.688 166.144,318.688 166.315 C 318.688 166.538,318.844 166.609,319.235 166.564 C 319.772 166.502,319.781 166.478,319.781 165.126 C 319.781 163.799,319.491 163.190,319.209 163.924 M15.905 165.414 C 15.905 166.561,15.922 166.600,16.425 166.600 C 16.874 166.600,16.925 166.540,16.802 166.153 C 16.723 165.907,16.614 165.421,16.559 165.073 C 16.370 163.859,15.905 164.101,15.905 165.414 M283.214 166.182 C 283.100 166.366,283.535 166.600,283.991 166.600 C 284.134 166.600,284.303 166.466,284.366 166.302 C 284.494 165.968,283.415 165.856,283.214 166.182 "\n stroke="none" fill="#9488c4" fill-rule="evenodd"></path>\n <path id="path3"\n d="M156.660 21.554 C 156.660 21.709,156.548 21.881,156.412 21.936 C 156.275 21.991,157.147 22.033,158.350 22.029 C 159.553 22.025,160.374 21.979,160.174 21.928 C 159.961 21.873,159.856 21.718,159.920 21.553 C 160.007 21.325,159.712 21.272,158.344 21.272 C 157.024 21.272,156.660 21.333,156.660 21.554 M162.964 22.266 C 163.021 22.485,163.147 22.664,163.244 22.664 C 163.452 22.664,163.459 22.601,163.299 22.183 C 163.124 21.727,162.841 21.797,162.964 22.266 M164.754 22.863 C 164.811 23.082,164.928 23.260,165.015 23.260 C 165.101 23.260,165.125 23.082,165.068 22.863 C 165.010 22.644,164.893 22.465,164.807 22.465 C 164.720 22.465,164.696 22.644,164.754 22.863 M147.763 24.994 C 147.425 25.115,147.448 25.646,147.792 25.646 C 148.092 25.646,148.382 25.113,148.152 24.983 C 148.075 24.940,147.900 24.945,147.763 24.994 M170.126 25.566 C 169.872 25.821,170.247 26.243,170.728 26.243 L 171.234 26.243 170.775 25.845 C 170.256 25.394,170.285 25.407,170.126 25.566 M175.547 31.887 C 175.547 32.224,176.084 32.463,176.248 32.198 C 176.313 32.094,176.310 31.918,176.243 31.809 C 176.059 31.512,175.547 31.569,175.547 31.887 M176.143 33.071 C 176.143 33.226,176.322 33.400,176.541 33.457 C 176.759 33.514,176.938 33.483,176.938 33.388 C 176.938 33.293,176.759 33.119,176.541 33.002 C 176.230 32.836,176.143 32.851,176.143 33.071 M176.740 34.287 C 176.740 34.460,176.912 34.592,177.137 34.592 C 177.356 34.592,177.535 34.551,177.535 34.500 C 177.535 34.449,177.356 34.312,177.137 34.195 C 176.820 34.025,176.740 34.044,176.740 34.287 M177.336 35.991 C 177.336 36.276,177.757 36.438,177.963 36.232 C 178.090 36.105,178.015 36.000,177.747 35.930 C 177.521 35.871,177.336 35.898,177.336 35.991 M142.147 37.668 C 142.147 38.906,142.197 39.134,142.445 39.038 C 142.670 38.952,142.744 38.588,142.744 37.553 C 142.744 36.468,142.682 36.183,142.445 36.183 C 142.207 36.183,142.147 36.480,142.147 37.668 M177.932 38.090 C 177.932 38.244,178.111 38.370,178.330 38.370 C 178.549 38.370,178.728 38.291,178.728 38.194 C 178.728 38.098,178.549 37.972,178.330 37.915 C 178.072 37.847,177.932 37.908,177.932 38.090 M142.744 42.346 C 142.744 42.455,142.878 42.545,143.042 42.545 C 143.206 42.545,143.340 42.455,143.340 42.346 C 143.340 42.237,143.206 42.147,143.042 42.147 C 142.878 42.147,142.744 42.237,142.744 42.346 M143.340 44.334 C 143.340 44.443,143.474 44.533,143.638 44.533 C 143.802 44.533,143.936 44.443,143.936 44.334 C 143.936 44.225,143.802 44.135,143.638 44.135 C 143.474 44.135,143.340 44.225,143.340 44.334 M178.069 45.655 C 177.994 45.730,177.934 45.934,177.935 46.107 C 177.938 46.363,177.971 46.370,178.112 46.147 C 178.211 45.991,178.392 45.939,178.532 46.026 C 178.691 46.124,178.748 46.084,178.691 45.915 C 178.587 45.600,178.260 45.464,178.069 45.655 M177.427 47.727 C 177.355 47.844,177.350 47.993,177.415 48.058 C 177.481 48.124,177.535 48.076,177.535 47.952 C 177.535 47.823,177.677 47.781,177.866 47.853 C 178.088 47.939,178.149 47.904,178.053 47.748 C 177.873 47.458,177.599 47.448,177.427 47.727 M145.129 47.913 C 145.129 48.022,145.263 48.111,145.427 48.111 C 145.591 48.111,145.726 48.022,145.726 47.913 C 145.726 47.803,145.591 47.714,145.427 47.714 C 145.263 47.714,145.129 47.803,145.129 47.913 M146.322 49.708 C 146.322 49.923,146.456 50.099,146.620 50.099 C 146.784 50.099,146.918 49.975,146.918 49.822 C 146.918 49.670,146.784 49.494,146.620 49.431 C 146.417 49.353,146.322 49.442,146.322 49.708 M175.199 51.833 C 174.900 51.940,174.864 52.485,175.155 52.485 C 175.360 52.485,175.662 51.928,175.522 51.808 C 175.481 51.773,175.335 51.784,175.199 51.833 M172.493 54.573 C 172.415 54.775,172.503 54.871,172.770 54.871 C 172.985 54.871,173.161 54.737,173.161 54.573 C 173.161 54.409,173.036 54.274,172.884 54.274 C 172.732 54.274,172.556 54.409,172.493 54.573 M152.353 55.169 C 152.353 55.333,152.514 55.467,152.711 55.467 C 152.948 55.467,153.030 55.366,152.955 55.169 C 152.892 55.005,152.730 54.871,152.596 54.871 C 152.462 54.871,152.353 55.005,152.353 55.169 M153.678 55.765 C 153.678 55.929,153.767 56.064,153.877 56.064 C 153.986 56.064,154.076 55.929,154.076 55.765 C 154.076 55.601,153.986 55.467,153.877 55.467 C 153.767 55.467,153.678 55.601,153.678 55.765 M155.070 56.362 C 155.070 56.526,155.159 56.660,155.268 56.660 C 155.378 56.660,155.467 56.526,155.467 56.362 C 155.467 56.198,155.378 56.064,155.268 56.064 C 155.159 56.064,155.070 56.198,155.070 56.362 M159.245 57.555 C 159.245 57.719,159.379 57.853,159.543 57.853 C 159.707 57.853,159.841 57.719,159.841 57.555 C 159.841 57.391,159.707 57.256,159.543 57.256 C 159.379 57.256,159.245 57.391,159.245 57.555 M165.606 57.555 C 165.606 57.719,165.726 57.853,165.871 57.853 C 166.017 57.853,166.137 57.719,166.137 57.555 C 166.137 57.391,166.017 57.256,165.871 57.256 C 165.726 57.256,165.606 57.391,165.606 57.555 M291.899 65.954 C 303.352 65.983,322.095 65.983,333.549 65.954 C 345.002 65.926,335.631 65.903,312.724 65.903 C 289.816 65.903,280.445 65.926,291.899 65.954 M358.052 66.094 C 358.052 66.420,359.122 66.686,359.865 66.545 C 360.189 66.484,360.104 66.447,359.592 66.429 C 359.074 66.410,358.847 66.311,358.847 66.103 C 358.847 65.938,358.670 65.805,358.449 65.805 C 358.231 65.805,358.052 65.935,358.052 66.094 M123.927 67.195 C 123.949 67.873,124.040 68.104,124.304 68.154 C 124.724 68.234,124.778 67.686,124.373 67.455 C 124.220 67.368,124.050 67.073,123.996 66.799 C 123.941 66.526,123.910 66.704,123.927 67.195 M362.065 66.750 C 362.111 66.995,362.335 67.106,362.825 67.125 C 363.345 67.146,363.382 67.131,362.972 67.063 C 362.671 67.013,362.425 66.843,362.425 66.687 C 362.425 66.530,362.329 66.402,362.212 66.402 C 362.095 66.402,362.028 66.558,362.065 66.750 M364.649 67.346 C 364.689 67.554,364.914 67.707,365.211 67.726 C 365.679 67.757,365.681 67.754,365.243 67.661 C 364.945 67.598,364.819 67.462,364.889 67.280 C 364.949 67.125,364.904 66.998,364.790 66.998 C 364.676 66.998,364.613 67.155,364.649 67.346 M366.600 67.879 C 366.600 68.177,367.339 68.513,367.543 68.308 C 367.608 68.244,367.512 68.191,367.329 68.191 C 367.147 68.191,366.998 68.057,366.998 67.893 C 366.998 67.729,366.909 67.594,366.799 67.594 C 366.690 67.594,366.600 67.723,366.600 67.879 M271.173 68.489 C 271.173 68.790,271.286 68.986,271.460 68.986 C 271.660 68.986,271.770 69.274,271.822 69.930 L 271.897 70.875 271.932 69.746 C 271.958 68.947,271.877 68.526,271.656 68.304 C 271.235 67.884,271.173 67.908,271.173 68.489 M368.626 68.536 C 368.662 68.727,368.870 68.900,369.088 68.923 C 369.425 68.957,369.430 68.948,369.121 68.858 C 368.909 68.796,368.803 68.635,368.866 68.472 C 368.925 68.317,368.880 68.191,368.766 68.191 C 368.653 68.191,368.589 68.346,368.626 68.536 M370.179 69.072 C 370.179 69.369,370.917 69.706,371.122 69.501 C 371.186 69.437,371.090 69.384,370.908 69.384 C 370.726 69.384,370.577 69.250,370.577 69.085 C 370.577 68.921,370.487 68.787,370.378 68.787 C 370.268 68.787,370.179 68.915,370.179 69.072 M371.833 69.680 C 371.857 69.911,372.037 70.092,372.269 70.116 C 372.555 70.145,372.572 70.129,372.328 70.056 C 372.144 70.001,371.948 69.805,371.892 69.620 C 371.820 69.377,371.803 69.393,371.833 69.680 M4.648 70.070 C 4.587 70.229,4.595 70.452,4.666 70.567 C 4.898 70.942,5.169 70.786,5.169 70.278 C 5.169 69.739,4.827 69.603,4.648 70.070 M373.026 70.276 C 373.049 70.508,373.230 70.688,373.462 70.712 C 373.748 70.741,373.765 70.725,373.521 70.652 C 373.337 70.597,373.140 70.401,373.085 70.216 C 373.013 69.973,372.996 69.989,373.026 70.276 M374.218 70.872 C 374.242 71.104,374.423 71.285,374.654 71.308 C 374.941 71.338,374.957 71.321,374.714 71.249 C 374.529 71.194,374.333 70.997,374.278 70.813 C 374.205 70.569,374.189 70.586,374.218 70.872 M124.515 71.769 C 124.550 72.425,125.149 72.847,125.149 72.217 C 125.149 72.080,125.060 71.973,124.950 71.980 C 124.841 71.986,124.690 71.785,124.614 71.533 C 124.509 71.182,124.485 71.238,124.515 71.769 M375.411 71.469 C 375.435 71.701,375.615 71.881,375.847 71.905 C 376.134 71.934,376.150 71.918,375.907 71.845 C 375.722 71.790,375.526 71.594,375.471 71.409 C 375.398 71.166,375.382 71.182,375.411 71.469 M376.604 72.065 C 376.628 72.297,376.808 72.477,377.040 72.501 C 377.327 72.531,377.343 72.514,377.100 72.442 C 376.915 72.386,376.719 72.190,376.664 72.006 C 376.591 71.762,376.575 71.779,376.604 72.065 M271.769 73.444 C 271.769 73.702,271.904 73.965,272.068 74.028 C 272.274 74.107,272.377 74.467,272.401 75.193 L 272.435 76.243 272.514 75.352 C 272.617 74.182,272.426 73.227,272.062 73.087 C 271.855 73.008,271.769 73.112,271.769 73.444 M379.128 74.006 C 379.126 74.240,379.272 74.349,379.573 74.338 C 379.871 74.328,379.921 74.285,379.722 74.209 C 379.558 74.147,379.358 73.997,379.277 73.877 C 379.187 73.742,379.130 73.791,379.128 74.006 M5.169 75.547 C 5.169 75.768,5.302 75.944,5.467 75.944 C 5.633 75.944,5.765 75.768,5.765 75.547 C 5.765 75.326,5.633 75.149,5.467 75.149 C 5.302 75.149,5.169 75.326,5.169 75.547 M125.122 76.342 C 125.150 77.252,125.659 77.658,125.807 76.889 C 125.847 76.682,125.753 76.541,125.575 76.541 C 125.402 76.541,125.237 76.309,125.185 75.994 C 125.136 75.693,125.108 75.850,125.122 76.342 M382.836 76.673 C 382.636 76.874,382.678 77.336,382.896 77.336 C 383.146 77.336,384.493 78.683,384.493 78.933 C 384.493 79.039,384.621 79.125,384.777 79.125 C 384.933 79.125,385.103 79.282,385.155 79.473 C 385.207 79.665,385.240 79.540,385.228 79.197 C 385.214 78.773,385.124 78.604,384.949 78.671 C 384.800 78.729,384.692 78.627,384.692 78.429 C 384.692 77.933,383.870 77.145,383.350 77.141 C 383.104 77.139,382.903 77.042,382.903 76.927 C 382.903 76.811,383.006 76.780,383.132 76.858 C 383.274 76.946,383.308 76.912,383.220 76.770 C 383.055 76.504,383.016 76.494,382.836 76.673 M272.465 78.330 C 272.303 78.592,272.541 78.965,272.777 78.819 C 272.881 78.754,272.977 79.167,272.997 79.760 C 273.031 80.808,273.032 80.809,273.109 79.936 C 273.231 78.563,272.873 77.670,272.465 78.330 M5.765 80.318 C 5.765 80.539,5.898 80.716,6.064 80.716 C 6.229 80.716,6.362 80.539,6.362 80.318 C 6.362 80.097,6.229 79.920,6.064 79.920 C 5.898 79.920,5.765 80.097,5.765 80.318 M125.673 81.447 C 125.658 81.795,125.787 82.220,125.959 82.391 C 126.379 82.812,126.441 82.788,126.441 82.207 C 126.441 81.908,126.328 81.710,126.157 81.710 C 126.001 81.710,125.834 81.508,125.786 81.262 C 125.723 80.931,125.693 80.979,125.673 81.447 M272.962 83.002 C 272.962 83.311,273.075 83.499,273.260 83.499 C 273.487 83.499,273.567 83.774,273.594 84.642 L 273.630 85.785 273.707 84.792 C 273.749 84.245,273.729 83.507,273.662 83.152 C 273.517 82.377,272.962 82.258,272.962 83.002 M388.867 84.195 C 388.867 84.359,388.947 84.493,389.044 84.493 C 389.142 84.493,389.277 84.717,389.346 84.990 C 389.464 85.461,390.060 85.710,390.060 85.288 C 390.060 85.179,389.925 85.089,389.761 85.089 C 389.563 85.089,389.463 84.891,389.463 84.493 C 389.463 84.095,389.364 83.897,389.165 83.897 C 389.001 83.897,388.867 84.031,388.867 84.195 M6.362 84.797 C 6.362 85.101,6.475 85.288,6.660 85.288 C 6.824 85.288,6.958 85.119,6.958 84.912 C 6.958 84.705,6.824 84.484,6.660 84.421 C 6.445 84.338,6.362 84.443,6.362 84.797 M126.279 85.918 C 126.259 86.538,126.297 87.187,126.363 87.359 C 126.536 87.810,127.038 87.748,127.038 87.276 C 127.038 87.058,126.908 86.879,126.750 86.879 C 126.545 86.879,126.441 86.580,126.389 85.835 L 126.316 84.791 126.279 85.918 M389.924 85.982 C 389.948 86.214,390.128 86.394,390.360 86.418 C 390.647 86.447,390.663 86.431,390.420 86.358 C 390.235 86.303,390.039 86.107,389.984 85.922 C 389.911 85.679,389.895 85.695,389.924 85.982 M273.559 88.256 C 273.559 88.483,273.687 88.668,273.844 88.668 C 274.000 88.668,274.169 88.914,274.218 89.215 C 274.268 89.515,274.296 89.360,274.281 88.869 C 274.253 87.924,273.559 87.335,273.559 88.256 M7.091 89.596 C 7.018 89.669,6.958 89.900,6.958 90.109 C 6.958 90.625,7.438 90.441,7.519 89.895 C 7.580 89.477,7.362 89.324,7.091 89.596 M126.920 90.754 C 126.935 91.721,127.004 91.957,127.286 92.011 C 127.478 92.047,127.634 91.981,127.634 91.863 C 127.634 91.746,127.505 91.650,127.346 91.650 C 127.142 91.650,127.036 91.349,126.980 90.606 C 126.904 89.601,126.902 89.606,126.920 90.754 M7.609 91.252 C 7.609 91.745,7.648 91.946,7.695 91.700 C 7.742 91.454,7.742 91.051,7.695 90.805 C 7.648 90.559,7.609 90.760,7.609 91.252 M274.155 93.425 C 274.155 93.651,274.283 93.837,274.440 93.837 C 274.597 93.837,274.765 94.083,274.815 94.384 C 274.864 94.684,274.892 94.529,274.878 94.038 C 274.849 93.093,274.155 92.504,274.155 93.425 M321.436 93.986 C 326.502 94.016,334.733 94.016,339.727 93.986 C 344.721 93.956,340.577 93.932,330.517 93.932 C 320.457 93.932,316.371 93.956,321.436 93.986 M350.746 93.974 C 350.937 94.024,351.093 94.193,351.093 94.349 C 351.093 94.505,351.219 94.632,351.373 94.632 C 351.555 94.632,351.616 94.493,351.549 94.235 C 351.476 93.955,351.289 93.844,350.921 93.860 C 350.584 93.875,350.522 93.916,350.746 93.974 M353.048 94.578 C 353.522 94.637,353.679 94.741,353.601 94.944 C 353.519 95.157,353.665 95.229,354.181 95.229 C 354.662 95.229,354.871 95.319,354.871 95.527 C 354.871 95.726,355.070 95.825,355.467 95.825 C 355.821 95.825,356.064 95.929,356.064 96.081 C 356.064 96.222,356.237 96.350,356.448 96.366 C 356.849 96.396,357.527 96.971,357.713 97.440 C 357.789 97.631,357.826 97.607,357.837 97.360 C 357.846 97.165,357.719 96.954,357.555 96.891 C 357.391 96.828,357.256 96.652,357.256 96.500 C 357.256 96.347,357.078 96.223,356.859 96.223 C 356.640 96.223,356.461 96.142,356.461 96.043 C 356.461 95.945,356.193 95.770,355.865 95.656 C 355.537 95.542,355.268 95.354,355.268 95.239 C 355.268 95.124,354.965 95.030,354.594 95.030 C 354.178 95.030,353.875 94.916,353.805 94.732 C 353.731 94.540,353.457 94.445,353.038 94.465 L 352.386 94.497 353.048 94.578 M7.555 95.123 C 7.555 95.478,7.637 95.582,7.853 95.499 C 8.017 95.436,8.151 95.216,8.151 95.009 C 8.151 94.802,8.017 94.632,7.853 94.632 C 7.668 94.632,7.555 94.819,7.555 95.123 M8.205 96.421 C 8.205 96.914,8.244 97.115,8.291 96.869 C 8.339 96.623,8.339 96.220,8.291 95.974 C 8.244 95.728,8.205 95.929,8.205 96.421 M124.508 95.904 C 124.423 96.047,124.220 96.219,124.056 96.286 C 123.892 96.352,124.064 96.388,124.438 96.365 C 124.812 96.341,125.152 96.221,125.192 96.098 C 125.299 95.770,124.690 95.597,124.508 95.904 M310.736 97.018 C 310.736 97.239,310.868 97.416,311.034 97.416 C 311.199 97.416,311.332 97.239,311.332 97.018 C 311.332 96.797,311.199 96.620,311.034 96.620 C 310.868 96.620,310.736 96.797,310.736 97.018 M122.527 97.283 C 122.288 97.402,122.046 97.682,121.990 97.905 C 121.900 98.266,121.915 98.275,122.135 97.982 C 122.271 97.801,122.595 97.622,122.855 97.584 C 123.116 97.546,123.366 97.403,123.411 97.266 C 123.507 96.973,123.136 96.980,122.527 97.283 M394.483 97.547 C 394.137 97.687,394.172 98.012,394.533 98.012 C 394.697 98.012,394.831 97.878,394.831 97.714 C 394.831 97.550,394.809 97.423,394.781 97.431 C 394.754 97.440,394.620 97.492,394.483 97.547 M274.838 98.032 C 274.757 98.164,274.823 98.369,274.987 98.489 C 275.150 98.609,275.336 98.842,275.399 99.006 C 275.470 99.188,275.521 99.101,275.531 98.782 C 275.549 98.168,275.073 97.653,274.838 98.032 M22.217 98.161 C 29.898 98.190,42.468 98.190,50.149 98.161 C 57.831 98.132,51.546 98.109,36.183 98.109 C 20.820 98.109,14.535 98.132,22.217 98.161 M358.499 98.149 C 358.690 98.199,358.847 98.320,358.847 98.417 C 358.847 98.515,359.026 98.690,359.245 98.807 C 359.514 98.951,359.642 98.954,359.642 98.814 C 359.642 98.701,359.518 98.608,359.365 98.608 C 359.213 98.608,359.037 98.474,358.974 98.310 C 358.911 98.146,358.700 98.022,358.505 98.035 C 358.173 98.057,358.173 98.064,358.499 98.149 M120.338 98.877 C 120.250 99.025,120.045 99.197,119.881 99.259 C 119.710 99.324,119.821 99.379,120.141 99.388 C 120.503 99.398,120.651 99.326,120.563 99.183 C 120.488 99.061,120.549 98.883,120.700 98.788 C 120.883 98.672,120.895 98.613,120.736 98.611 C 120.604 98.610,120.425 98.729,120.338 98.877 M359.801 99.375 C 359.943 99.465,360.074 99.726,360.091 99.956 C 360.108 100.185,360.283 100.415,360.479 100.466 C 360.909 100.578,360.959 100.234,360.537 100.072 C 360.373 100.009,360.239 99.788,360.239 99.581 C 360.239 99.354,360.101 99.206,359.891 99.208 C 359.631 99.210,359.609 99.253,359.801 99.375 M118.489 100.184 C 118.489 100.286,118.333 100.409,118.141 100.459 C 117.950 100.509,118.074 100.561,118.418 100.573 C 118.807 100.588,119.086 100.484,119.157 100.298 C 119.235 100.095,119.147 100.000,118.880 100.000 C 118.665 100.000,118.489 100.083,118.489 100.184 M64.016 100.895 C 64.016 101.059,64.150 101.193,64.314 101.193 C 64.478 101.193,64.612 101.059,64.612 100.895 C 64.612 100.731,64.478 100.596,64.314 100.596 C 64.150 100.596,64.016 100.731,64.016 100.895 M394.831 101.271 C 394.831 101.423,394.965 101.599,395.129 101.662 C 395.332 101.740,395.427 101.652,395.427 101.385 C 395.427 101.170,395.293 100.994,395.129 100.994 C 394.965 100.994,394.831 101.119,394.831 101.271 M311.459 101.331 C 311.222 101.568,311.331 101.988,311.630 101.988 C 311.794 101.988,311.928 101.859,311.928 101.702 C 311.928 101.369,311.645 101.145,311.459 101.331 M64.364 101.782 C 64.172 101.968,64.016 102.237,64.016 102.379 C 64.016 102.522,64.205 102.398,64.436 102.104 C 64.921 101.487,64.876 101.283,64.364 101.782 M62.823 102.672 C 62.823 103.081,63.235 103.281,63.429 102.967 C 63.518 102.822,63.548 102.632,63.494 102.544 C 63.327 102.274,62.823 102.370,62.823 102.672 M275.348 102.674 C 275.348 102.833,275.469 103.034,275.617 103.121 C 275.765 103.209,275.937 103.415,275.999 103.579 C 276.076 103.782,276.117 103.740,276.127 103.446 C 276.136 103.209,276.089 102.873,276.022 102.700 C 275.871 102.306,275.348 102.286,275.348 102.674 M114.314 103.158 C 114.314 103.254,114.135 103.380,113.917 103.437 C 113.687 103.497,113.529 103.696,113.542 103.908 C 113.563 104.241,113.573 104.242,113.656 103.926 C 113.716 103.695,113.942 103.579,114.329 103.579 C 114.713 103.579,114.911 103.477,114.911 103.280 C 114.911 103.116,114.776 102.982,114.612 102.982 C 114.448 102.982,114.314 103.061,114.314 103.158 M361.352 103.148 C 361.289 103.251,361.420 103.382,361.644 103.441 C 361.891 103.506,362.022 103.461,361.977 103.327 C 361.877 103.028,361.494 102.918,361.352 103.148 M61.534 103.810 C 61.618 104.030,61.539 104.171,61.297 104.234 C 60.986 104.314,60.982 104.331,61.271 104.351 C 61.715 104.381,61.934 104.001,61.641 103.710 C 61.463 103.534,61.438 103.558,61.534 103.810 M112.525 104.351 C 112.525 104.447,112.346 104.573,112.127 104.630 C 111.898 104.690,111.739 104.889,111.753 105.101 C 111.774 105.434,111.784 105.435,111.867 105.119 C 111.927 104.888,112.152 104.771,112.539 104.771 C 112.924 104.771,113.121 104.670,113.121 104.473 C 113.121 104.309,112.987 104.175,112.823 104.175 C 112.659 104.175,112.525 104.254,112.525 104.351 M59.841 105.136 C 59.841 105.263,59.573 105.368,59.245 105.368 C 58.847 105.368,58.648 105.467,58.648 105.666 C 58.648 105.830,58.514 105.964,58.350 105.964 C 58.186 105.964,58.059 106.121,58.067 106.312 C 58.077 106.520,58.123 106.560,58.183 106.412 C 58.239 106.275,58.500 106.163,58.764 106.163 C 59.059 106.163,59.245 106.048,59.245 105.865 C 59.245 105.701,59.373 105.567,59.531 105.567 C 59.855 105.567,60.141 105.204,59.960 105.023 C 59.895 104.958,59.841 105.008,59.841 105.136 M110.083 106.222 C 110.024 106.374,110.143 106.491,110.375 106.509 C 110.694 106.533,110.722 106.485,110.527 106.251 C 110.236 105.900,110.207 105.898,110.083 106.222 M311.928 106.378 C 311.928 106.863,312.393 106.794,312.490 106.296 C 312.528 106.099,312.426 105.964,312.241 105.964 C 312.057 105.964,311.928 106.134,311.928 106.378 M56.859 106.892 C 56.859 107.038,56.993 107.157,57.157 107.157 C 57.321 107.157,57.455 107.038,57.455 106.892 C 57.455 106.746,57.321 106.627,57.157 106.627 C 56.993 106.627,56.859 106.746,56.859 106.892 M108.366 107.437 L 107.886 107.704 108.416 107.704 C 108.733 107.704,108.946 107.594,108.946 107.430 C 108.946 107.104,108.968 107.104,108.366 107.437 M275.944 107.938 C 275.944 108.164,276.072 108.350,276.228 108.350 C 276.384 108.350,276.556 108.506,276.611 108.698 C 276.665 108.889,276.694 108.733,276.675 108.352 C 276.636 107.565,275.944 107.173,275.944 107.938 M52.813 109.596 C 52.484 109.837,52.479 109.887,52.763 110.122 C 53.025 110.340,53.097 110.331,53.197 110.069 C 53.402 109.535,53.214 109.303,52.813 109.596 M104.103 110.437 C 104.025 110.640,104.114 110.736,104.380 110.736 C 104.595 110.736,104.771 110.601,104.771 110.437 C 104.771 110.273,104.647 110.139,104.494 110.139 C 104.342 110.139,104.166 110.273,104.103 110.437 M361.519 110.630 C 361.143 110.914,361.144 110.922,361.581 110.928 C 361.848 110.932,362.028 110.815,362.028 110.636 C 362.028 110.268,361.998 110.267,361.519 110.630 M50.919 110.990 C 50.588 111.320,50.648 111.531,51.072 111.531 C 51.519 111.531,51.778 111.011,51.403 110.867 C 51.260 110.812,51.042 110.867,50.919 110.990 M312.525 111.431 C 312.525 111.595,312.659 111.730,312.823 111.730 C 312.987 111.730,313.121 111.595,313.121 111.431 C 313.121 111.267,312.987 111.133,312.823 111.133 C 312.659 111.133,312.525 111.267,312.525 111.431 M102.314 111.630 C 102.236 111.833,102.325 111.928,102.591 111.928 C 102.806 111.928,102.982 111.794,102.982 111.630 C 102.982 111.466,102.857 111.332,102.705 111.332 C 102.553 111.332,102.377 111.466,102.314 111.630 M361.233 111.814 C 361.233 111.970,361.076 112.139,360.885 112.189 C 360.623 112.257,360.647 112.286,360.984 112.303 C 361.307 112.320,361.431 112.215,361.431 111.928 C 361.431 111.710,361.387 111.531,361.332 111.531 C 361.277 111.531,361.233 111.658,361.233 111.814 M276.541 112.878 C 276.541 113.073,276.720 113.385,276.938 113.572 C 277.408 113.974,277.556 113.222,277.097 112.763 C 276.758 112.424,276.541 112.468,276.541 112.878 M46.720 114.215 C 46.720 114.379,46.809 114.513,46.918 114.513 C 47.028 114.513,47.117 114.379,47.117 114.215 C 47.117 114.051,47.028 113.917,46.918 113.917 C 46.809 113.917,46.720 114.051,46.720 114.215 M98.012 114.600 C 98.012 114.763,98.182 114.873,98.410 114.856 C 98.628 114.839,98.807 114.711,98.807 114.570 C 98.807 114.429,98.628 114.314,98.410 114.314 C 98.191 114.314,98.012 114.443,98.012 114.600 M394.831 116.170 C 394.831 116.315,394.965 116.435,395.129 116.435 C 395.293 116.435,395.427 116.315,395.427 116.170 C 395.427 116.024,395.293 115.905,395.129 115.905 C 394.965 115.905,394.831 116.024,394.831 116.170 M313.167 116.538 C 313.290 116.907,313.718 116.968,313.718 116.617 C 313.718 116.444,313.576 116.302,313.403 116.302 C 313.230 116.302,313.124 116.408,313.167 116.538 M354.793 117.180 C 354.859 117.353,355.001 117.495,355.107 117.495 C 355.369 117.495,355.205 117.043,354.908 116.944 C 354.763 116.896,354.718 116.987,354.793 117.180 M93.840 117.644 C 93.842 117.859,93.899 117.908,93.989 117.773 C 94.069 117.653,94.269 117.504,94.433 117.441 C 94.633 117.365,94.583 117.322,94.284 117.312 C 93.984 117.301,93.838 117.410,93.840 117.644 M41.750 117.793 C 41.750 117.992,41.551 118.091,41.153 118.091 C 40.755 118.091,40.557 118.191,40.557 118.390 C 40.557 118.554,40.691 118.688,40.855 118.688 C 41.019 118.688,41.153 118.609,41.153 118.512 C 41.153 118.416,41.332 118.290,41.551 118.233 C 41.886 118.145,42.149 117.495,41.849 117.495 C 41.794 117.495,41.750 117.629,41.750 117.793 M315.905 117.793 C 315.905 117.957,316.039 118.091,316.203 118.091 C 316.367 118.091,316.501 117.957,316.501 117.793 C 316.501 117.629,316.367 117.495,316.203 117.495 C 316.039 117.495,315.905 117.629,315.905 117.793 M277.153 118.439 C 277.162 118.740,277.214 118.874,277.269 118.738 C 277.413 118.380,277.690 118.432,277.795 118.837 C 277.845 119.028,277.897 118.894,277.909 118.539 C 277.928 118.017,277.856 117.893,277.535 117.893 C 277.230 117.893,277.141 118.020,277.153 118.439 M92.186 118.815 C 92.116 118.885,92.104 119.015,92.159 119.105 C 92.283 119.305,92.843 119.109,92.843 118.865 C 92.843 118.661,92.375 118.626,92.186 118.815 M394.235 119.284 C 394.235 119.394,394.369 119.483,394.533 119.483 C 394.697 119.483,394.831 119.394,394.831 119.284 C 394.831 119.175,394.697 119.085,394.533 119.085 C 394.369 119.085,394.235 119.175,394.235 119.284 M38.875 119.469 C 38.721 119.719,39.176 119.984,39.336 119.737 C 39.406 119.630,39.597 119.492,39.761 119.429 C 39.938 119.362,39.841 119.309,39.525 119.300 C 39.230 119.291,38.938 119.368,38.875 119.469 M90.187 120.179 C 90.110 120.378,90.195 120.477,90.442 120.477 C 90.646 120.477,90.864 120.343,90.927 120.179 C 91.003 119.980,90.918 119.881,90.671 119.881 C 90.468 119.881,90.249 120.015,90.187 120.179 M37.575 120.759 C 37.575 120.914,37.463 121.086,37.326 121.141 C 37.139 121.216,37.137 121.245,37.319 121.257 C 37.452 121.265,37.656 121.093,37.773 120.875 C 37.918 120.605,37.920 120.477,37.780 120.477 C 37.667 120.477,37.575 120.604,37.575 120.759 M35.785 121.968 C 35.785 122.167,35.586 122.266,35.189 122.266 C 34.791 122.266,34.592 122.366,34.592 122.565 C 34.592 122.729,34.727 122.863,34.891 122.863 C 35.055 122.863,35.189 122.773,35.189 122.664 C 35.189 122.555,35.320 122.465,35.480 122.465 C 35.640 122.465,35.867 122.286,35.984 122.068 C 36.128 121.798,36.131 121.670,35.991 121.670 C 35.878 121.670,35.785 121.804,35.785 121.968 M277.870 122.792 C 277.639 123.024,277.714 123.694,277.955 123.545 C 278.076 123.470,278.258 123.532,278.360 123.682 C 278.489 123.875,278.527 123.784,278.486 123.375 C 278.430 122.802,278.137 122.525,277.870 122.792 M33.996 123.161 C 33.996 123.325,33.862 123.459,33.698 123.459 C 33.534 123.459,33.400 123.552,33.400 123.665 C 33.400 123.805,33.528 123.802,33.797 123.658 C 34.143 123.473,34.372 122.863,34.095 122.863 C 34.041 122.863,33.996 122.997,33.996 123.161 M84.979 123.940 C 84.767 124.095,84.660 124.289,84.742 124.371 C 84.824 124.453,84.891 124.415,84.891 124.288 C 84.891 124.160,85.025 124.056,85.189 124.056 C 85.353 124.056,85.487 123.966,85.487 123.857 C 85.487 123.597,85.437 123.605,84.979 123.940 M32.207 124.354 C 32.207 124.518,32.073 124.652,31.909 124.652 C 31.745 124.652,31.610 124.745,31.610 124.858 C 31.610 124.997,31.738 124.995,32.008 124.851 C 32.354 124.666,32.582 124.056,32.306 124.056 C 32.251 124.056,32.207 124.190,32.207 124.354 M392.445 124.851 C 392.445 124.960,392.580 125.050,392.744 125.050 C 392.908 125.050,393.042 124.960,393.042 124.851 C 393.042 124.742,392.908 124.652,392.744 124.652 C 392.580 124.652,392.445 124.742,392.445 124.851 M30.417 125.577 C 30.417 125.911,30.446 125.910,31.122 125.559 L 31.673 125.273 31.045 125.291 C 30.660 125.302,30.417 125.413,30.417 125.577 M29.821 126.143 C 29.821 126.399,29.326 126.551,28.777 126.465 C 28.695 126.452,28.628 126.576,28.628 126.740 C 28.628 127.107,28.628 127.107,29.374 126.735 C 29.968 126.438,30.395 125.845,30.014 125.845 C 29.908 125.845,29.821 125.979,29.821 126.143 M81.909 126.021 C 81.909 126.117,81.730 126.243,81.511 126.300 C 81.281 126.360,81.123 126.559,81.136 126.771 C 81.157 127.104,81.168 127.105,81.250 126.789 C 81.311 126.558,81.536 126.441,81.923 126.441 C 82.308 126.441,82.505 126.340,82.505 126.143 C 82.505 125.979,82.371 125.845,82.207 125.845 C 82.043 125.845,81.909 125.924,81.909 126.021 M80.119 127.237 C 80.119 127.346,80.007 127.437,79.871 127.439 C 79.498 127.444,78.677 128.386,78.794 128.675 C 78.856 128.829,78.901 128.792,78.911 128.579 C 78.919 128.387,79.061 128.231,79.225 128.231 C 79.389 128.231,79.523 128.096,79.523 127.932 C 79.523 127.734,79.722 127.634,80.119 127.634 C 80.517 127.634,80.716 127.535,80.716 127.336 C 80.716 127.172,80.582 127.038,80.417 127.038 C 80.253 127.038,80.119 127.127,80.119 127.237 M278.330 127.620 C 278.330 127.846,278.457 128.032,278.612 128.032 C 278.767 128.032,278.943 128.144,279.003 128.280 C 279.063 128.417,279.093 128.261,279.069 127.934 C 279.018 127.227,278.330 126.935,278.330 127.620 M26.243 128.457 C 26.243 128.582,26.086 128.810,25.895 128.965 C 25.581 129.219,25.590 129.225,25.994 129.030 C 26.375 128.845,26.642 128.231,26.342 128.231 C 26.287 128.231,26.243 128.333,26.243 128.457 M77.038 129.474 C 76.600 129.932,76.472 130.108,76.752 129.865 C 77.033 129.622,77.394 129.423,77.555 129.423 C 77.716 129.423,77.847 129.245,77.847 129.026 C 77.847 128.807,77.844 128.631,77.840 128.635 C 77.836 128.638,77.475 129.016,77.038 129.474 M390.457 129.125 C 390.457 129.289,390.368 129.423,390.258 129.423 C 390.149 129.423,390.060 129.513,390.060 129.622 C 390.060 129.732,390.194 129.821,390.358 129.821 C 390.543 129.821,390.656 129.633,390.656 129.324 C 390.656 129.051,390.611 128.827,390.557 128.827 C 390.502 128.827,390.457 128.961,390.457 129.125 M24.456 129.771 C 24.458 129.995,24.512 130.038,24.605 129.891 C 24.686 129.765,24.975 129.621,25.249 129.570 C 25.669 129.492,25.646 129.473,25.099 129.451 C 24.605 129.430,24.454 129.505,24.456 129.771 M22.736 130.915 C 22.673 131.079,22.507 131.213,22.368 131.213 C 22.228 131.213,22.063 131.414,22.001 131.660 C 21.899 132.067,21.912 132.076,22.149 131.759 C 22.292 131.568,22.552 131.412,22.726 131.412 C 22.900 131.412,23.113 131.290,23.201 131.142 C 23.288 130.994,23.494 130.823,23.658 130.761 C 23.830 130.696,23.722 130.641,23.403 130.632 C 23.084 130.623,22.802 130.742,22.736 130.915 M20.803 132.107 C 20.725 132.310,20.814 132.406,21.080 132.406 C 21.295 132.406,21.471 132.271,21.471 132.107 C 21.471 131.943,21.347 131.809,21.194 131.809 C 21.042 131.809,20.866 131.943,20.803 132.107 M387.922 132.686 C 387.676 132.945,387.475 133.257,387.475 133.378 C 387.475 133.499,387.386 133.598,387.276 133.598 C 387.167 133.598,387.078 133.740,387.078 133.913 C 387.078 134.438,387.570 134.104,387.637 133.533 C 387.672 133.241,387.818 133.002,387.962 133.002 C 388.106 133.002,388.271 132.823,388.328 132.604 C 388.456 132.114,388.466 132.112,387.922 132.686 M76.392 133.050 C 76.426 133.501,76.547 133.704,76.793 133.726 C 77.017 133.745,77.039 133.723,76.855 133.665 C 76.695 133.615,76.514 133.311,76.453 132.990 C 76.347 132.432,76.344 132.435,76.392 133.050 M279.100 132.439 C 278.918 132.913,279.038 133.314,279.361 133.314 C 279.623 133.314,279.720 133.195,279.680 132.925 C 279.632 132.600,279.182 132.223,279.100 132.439 M18.489 133.763 C 18.489 133.853,18.757 133.888,19.085 133.840 C 19.414 133.791,19.682 133.718,19.682 133.675 C 19.682 133.633,19.414 133.598,19.085 133.598 C 18.757 133.598,18.489 133.672,18.489 133.763 M132.243 134.095 C 132.199 134.946,132.407 135.586,132.727 135.586 C 132.878 135.586,133.002 135.452,133.002 135.288 C 133.002 135.124,132.873 134.990,132.716 134.990 C 132.531 134.990,132.402 134.725,132.352 134.245 C 132.286 133.618,132.269 133.594,132.243 134.095 M386.481 134.493 C 386.481 134.657,386.347 134.791,386.183 134.791 C 386.019 134.791,385.885 134.925,385.885 135.089 C 385.885 135.253,385.750 135.388,385.586 135.388 C 385.422 135.388,385.288 135.522,385.288 135.686 C 385.288 135.850,385.154 135.984,384.990 135.984 C 384.826 135.984,384.692 136.118,384.692 136.282 C 384.692 136.446,384.522 136.581,384.316 136.581 C 384.109 136.581,383.888 136.715,383.825 136.879 C 383.743 137.092,383.844 137.177,384.178 137.177 C 384.486 137.177,384.683 137.034,384.755 136.759 C 384.824 136.494,384.952 136.396,385.107 136.492 C 385.267 136.591,385.298 136.559,385.200 136.399 C 385.104 136.245,385.201 136.117,385.465 136.048 C 385.693 135.988,385.827 135.854,385.763 135.749 C 385.699 135.645,385.834 135.511,386.063 135.451 C 386.293 135.390,386.481 135.218,386.481 135.066 C 386.481 134.915,386.613 134.791,386.773 134.791 C 386.951 134.791,387.020 134.675,386.951 134.493 C 386.888 134.329,386.756 134.195,386.659 134.195 C 386.561 134.195,386.481 134.329,386.481 134.493 M16.587 135.012 C 16.512 135.134,16.571 135.308,16.719 135.399 C 16.971 135.555,17.286 135.304,17.293 134.940 C 17.298 134.708,16.739 134.765,16.587 135.012 M15.308 136.367 C 15.308 136.468,15.152 136.592,14.960 136.642 C 14.686 136.714,14.702 136.738,15.038 136.756 C 15.273 136.769,15.516 136.645,15.579 136.481 C 15.642 136.317,15.607 136.183,15.501 136.183 C 15.395 136.183,15.308 136.266,15.308 136.367 M279.523 137.913 C 279.523 138.265,279.607 138.380,279.808 138.303 C 279.965 138.243,280.137 138.300,280.190 138.431 C 280.243 138.561,280.294 138.432,280.302 138.144 C 280.313 137.780,280.197 137.589,279.920 137.517 C 279.601 137.433,279.523 137.511,279.523 137.913 M132.839 138.991 C 132.787 140.045,133.012 140.954,133.325 140.954 C 133.475 140.954,133.598 140.775,133.598 140.557 C 133.598 140.338,133.469 140.159,133.311 140.159 C 133.111 140.159,133.001 139.871,132.949 139.215 C 132.888 138.433,132.869 138.395,132.839 138.991 M12.922 139.761 C 12.922 139.982,13.055 140.159,13.221 140.159 C 13.439 140.159,13.528 140.412,13.554 141.103 L 13.588 142.048 13.666 141.169 C 13.709 140.686,13.692 140.082,13.628 139.827 C 13.486 139.261,12.922 139.209,12.922 139.761 M379.854 139.695 C 379.625 139.924,379.709 140.159,380.020 140.159 C 380.184 140.159,380.318 140.025,380.318 139.861 C 380.318 139.550,380.083 139.466,379.854 139.695 M280.119 142.623 C 280.119 142.791,280.305 143.028,280.533 143.150 C 280.901 143.347,280.939 143.321,280.881 142.910 C 280.807 142.393,280.119 142.133,280.119 142.623 M133.438 144.533 C 133.420 145.025,133.459 145.629,133.525 145.875 C 133.673 146.429,134.195 146.467,134.195 145.924 C 134.195 145.706,134.066 145.527,133.908 145.527 C 133.708 145.527,133.598 145.239,133.546 144.583 L 133.471 143.638 133.438 144.533 M370.378 144.015 C 370.378 144.167,370.502 144.339,370.653 144.397 C 370.847 144.471,370.899 144.389,370.829 144.120 C 370.714 143.680,370.378 143.601,370.378 144.015 M13.519 144.539 C 13.519 144.754,13.653 144.930,13.817 144.930 C 14.030 144.930,14.124 145.171,14.147 145.775 C 14.176 146.550,14.186 146.565,14.261 145.947 C 14.368 145.070,14.194 144.407,13.819 144.263 C 13.614 144.184,13.519 144.272,13.519 144.539 M367.992 144.732 C 367.992 144.950,368.082 145.129,368.191 145.129 C 368.300 145.129,368.390 144.950,368.390 144.732 C 368.390 144.513,368.300 144.334,368.191 144.334 C 368.082 144.334,367.992 144.513,367.992 144.732 M365.360 145.288 C 365.300 145.520,365.382 145.654,365.593 145.670 C 365.790 145.685,365.919 145.544,365.919 145.312 C 365.919 144.830,365.485 144.811,365.360 145.288 M361.133 145.726 C 360.934 146.047,361.187 146.272,361.747 146.272 C 362.118 146.272,362.191 146.222,361.999 146.098 C 361.776 145.954,361.781 145.891,362.028 145.729 C 362.262 145.575,362.212 145.532,361.791 145.530 C 361.497 145.528,361.201 145.616,361.133 145.726 M316.700 146.597 C 316.700 146.910,316.840 147.108,317.113 147.179 C 317.441 147.265,317.498 147.218,317.388 146.954 C 317.311 146.770,317.245 146.508,317.239 146.372 C 317.222 145.904,316.700 146.122,316.700 146.597 M355.417 146.264 C 355.664 146.311,356.066 146.311,356.312 146.264 C 356.558 146.216,356.357 146.177,355.865 146.177 C 355.373 146.177,355.171 146.216,355.417 146.264 M280.716 147.250 C 280.716 147.541,280.775 147.721,280.847 147.649 C 280.918 147.577,281.097 147.618,281.244 147.740 C 281.455 147.915,281.511 147.857,281.511 147.461 C 281.511 147.048,281.196 146.720,280.799 146.720 C 280.753 146.720,280.716 146.958,280.716 147.250 M14.259 148.630 C 14.004 148.885,14.106 149.503,14.403 149.503 C 14.602 149.503,14.713 149.791,14.764 150.447 L 14.839 151.392 14.875 150.287 C 14.909 149.225,14.572 148.318,14.259 148.630 M134.032 149.528 C 133.979 150.582,134.205 151.491,134.518 151.491 C 134.668 151.491,134.791 151.312,134.791 151.093 C 134.791 150.875,134.662 150.696,134.504 150.696 C 134.304 150.696,134.194 150.408,134.142 149.751 C 134.081 148.970,134.062 148.931,134.032 149.528 M317.296 151.491 C 317.296 151.756,317.429 151.889,317.694 151.889 C 318.166 151.889,318.227 151.387,317.777 151.214 C 317.321 151.039,317.296 151.053,317.296 151.491 M281.394 152.408 C 281.482 153.008,282.107 153.171,282.107 152.594 C 282.107 152.228,282.002 152.087,281.727 152.087 C 281.491 152.087,281.365 152.209,281.394 152.408 M14.712 154.169 C 14.712 154.523,14.794 154.628,15.010 154.545 C 15.250 154.453,15.315 154.639,15.344 155.496 L 15.380 156.561 15.456 155.580 C 15.498 155.040,15.480 154.392,15.416 154.138 C 15.259 153.514,14.712 153.537,14.712 154.169 M134.630 154.473 C 134.612 154.856,134.652 155.370,134.718 155.616 C 134.851 156.114,135.388 156.233,135.388 155.765 C 135.388 155.601,135.259 155.467,135.101 155.467 C 134.908 155.467,134.789 155.191,134.738 154.622 C 134.669 153.856,134.659 153.842,134.630 154.473 M317.893 156.461 C 317.893 156.761,317.996 156.868,318.241 156.821 C 318.432 156.784,318.588 156.622,318.588 156.461 C 318.588 156.300,318.432 156.138,318.241 156.101 C 317.996 156.054,317.893 156.162,317.893 156.461 M281.909 157.654 C 281.909 157.919,282.041 158.052,282.306 158.052 C 282.571 158.052,282.704 157.919,282.704 157.654 C 282.704 157.389,282.571 157.256,282.306 157.256 C 282.041 157.256,281.909 157.389,281.909 157.654 M135.224 159.369 C 135.170 160.325,135.407 161.233,135.711 161.233 C 135.861 161.233,135.984 161.054,135.984 160.835 C 135.984 160.616,135.855 160.437,135.697 160.437 C 135.504 160.437,135.386 160.161,135.334 159.592 C 135.277 158.955,135.250 158.900,135.224 159.369 M15.308 159.329 C 15.308 159.501,15.438 159.642,15.596 159.642 C 15.801 159.642,15.906 159.944,15.962 160.686 C 16.028 161.561,16.038 161.521,16.022 160.439 C 16.007 159.377,15.943 159.137,15.656 159.083 C 15.444 159.042,15.308 159.139,15.308 159.329 M318.489 161.450 C 318.489 161.658,318.616 161.829,318.771 161.829 C 318.926 161.829,319.097 161.941,319.153 162.078 C 319.208 162.214,319.260 162.090,319.269 161.803 C 319.280 161.438,319.163 161.247,318.887 161.175 C 318.592 161.098,318.489 161.169,318.489 161.450 M282.552 162.308 C 282.527 162.615,282.628 162.738,282.908 162.738 C 283.397 162.738,283.416 162.395,282.944 162.100 C 282.645 161.913,282.582 161.946,282.552 162.308 M15.905 163.991 C 15.905 164.103,16.031 164.266,16.186 164.354 C 16.340 164.441,16.509 164.781,16.560 165.109 C 16.619 165.480,16.644 165.368,16.627 164.813 C 16.604 164.026,15.905 163.231,15.905 163.991 M135.717 165.697 C 135.652 165.866,135.469 166.004,135.311 166.004 C 135.153 166.004,134.978 166.116,134.922 166.252 C 134.842 166.451,134.786 166.451,134.646 166.253 C 134.324 165.799,16.736 165.800,16.854 166.254 C 16.941 166.586,19.836 166.603,76.216 166.598 L 135.487 166.592 135.734 166.064 C 135.869 165.774,135.947 165.503,135.907 165.463 C 135.867 165.423,135.781 165.528,135.717 165.697 M318.765 165.807 C 318.642 165.930,312.285 166.020,301.499 166.053 C 288.054 166.093,284.409 166.156,284.344 166.352 C 284.278 166.549,287.792 166.600,301.474 166.600 C 316.193 166.600,318.688 166.560,318.688 166.319 C 318.688 166.164,318.800 165.997,318.936 165.948 C 319.073 165.900,319.134 165.804,319.072 165.736 C 319.010 165.668,318.872 165.700,318.765 165.807 "\n stroke="none" fill="#b3b3b3" fill-rule="evenodd"></path>\n <path id="path4"\n d="M153.678 22.287 C 153.678 22.656,153.583 22.697,152.883 22.630 C 152.206 22.565,152.087 22.611,152.087 22.933 C 152.087 23.256,151.983 23.296,151.392 23.200 C 150.785 23.101,150.696 23.139,150.696 23.497 C 150.696 23.846,150.608 23.889,150.099 23.787 C 149.598 23.687,149.503 23.730,149.503 24.061 C 149.503 24.277,149.592 24.453,149.702 24.453 C 149.811 24.453,149.901 24.364,149.901 24.254 C 149.901 24.145,150.073 24.056,150.284 24.056 C 150.495 24.056,150.802 23.921,150.966 23.757 C 151.130 23.593,151.443 23.459,151.661 23.459 C 151.880 23.459,152.193 23.325,152.357 23.161 C 152.521 22.997,152.939 22.863,153.285 22.863 C 153.741 22.863,153.942 22.756,154.015 22.476 C 154.071 22.263,154.264 22.050,154.444 22.002 C 154.624 21.954,154.525 21.905,154.225 21.892 C 153.794 21.874,153.678 21.958,153.678 22.287 M162.256 22.002 C 162.436 22.050,162.632 22.273,162.690 22.498 C 162.781 22.843,162.923 22.895,163.594 22.831 C 164.229 22.771,164.410 22.827,164.483 23.107 C 164.549 23.359,164.772 23.459,165.268 23.459 C 165.701 23.459,166.004 23.571,166.076 23.757 C 166.139 23.921,166.417 24.056,166.694 24.056 C 166.970 24.056,167.197 24.128,167.197 24.216 C 167.197 24.305,167.537 24.527,167.952 24.710 C 168.368 24.894,169.061 25.358,169.493 25.742 C 169.925 26.127,170.390 26.441,170.527 26.441 C 170.664 26.441,170.775 26.531,170.775 26.640 C 170.775 26.750,170.910 26.839,171.074 26.839 C 171.238 26.839,171.372 26.705,171.372 26.541 C 171.372 26.344,171.175 26.243,170.797 26.243 C 170.469 26.243,170.172 26.114,170.107 25.944 C 170.044 25.780,169.856 25.646,169.688 25.646 C 169.521 25.646,169.384 25.512,169.384 25.348 C 169.384 25.184,169.250 25.050,169.085 25.050 C 168.921 25.050,168.787 24.874,168.787 24.657 C 168.787 24.331,168.691 24.284,168.219 24.378 C 167.766 24.469,167.630 24.412,167.548 24.098 C 167.469 23.795,167.324 23.727,166.923 23.803 C 166.499 23.885,166.402 23.828,166.402 23.501 C 166.402 23.150,166.306 23.112,165.635 23.202 C 164.986 23.289,164.853 23.244,164.764 22.901 C 164.673 22.556,164.543 22.512,163.869 22.603 C 163.187 22.694,163.065 22.652,162.970 22.289 C 162.895 22.002,162.713 21.876,162.394 21.892 C 162.092 21.907,162.044 21.945,162.256 22.002 M156.720 22.216 C 157.682 22.252,159.203 22.252,160.099 22.215 C 160.996 22.179,160.209 22.149,158.350 22.149 C 156.491 22.149,155.757 22.179,156.720 22.216 M148.455 25.075 C 148.062 25.501,147.792 25.635,147.511 25.545 C 147.205 25.448,147.117 25.512,147.117 25.832 C 147.117 26.110,146.989 26.243,146.720 26.243 C 146.499 26.243,146.322 26.375,146.322 26.541 C 146.322 26.705,146.188 26.839,146.024 26.839 C 145.828 26.839,145.726 27.035,145.726 27.414 C 145.726 27.742,145.597 28.038,145.427 28.104 C 145.263 28.167,145.129 28.355,145.129 28.523 C 145.129 28.690,144.973 28.834,144.781 28.843 C 144.555 28.853,144.524 28.895,144.694 28.963 C 144.958 29.069,146.513 27.508,146.518 27.131 C 146.520 27.019,146.711 26.795,146.943 26.634 C 147.175 26.474,147.482 26.230,147.624 26.093 C 147.767 25.957,147.935 25.845,147.998 25.845 C 148.120 25.845,148.641 25.339,149.080 24.793 C 149.543 24.217,149.039 24.445,148.455 25.075 M171.700 27.143 C 171.846 27.524,172.565 27.938,172.565 27.641 C 172.565 27.528,172.430 27.435,172.266 27.435 C 172.102 27.435,171.968 27.301,171.968 27.137 C 171.968 26.973,171.882 26.839,171.776 26.839 C 171.670 26.839,171.636 26.976,171.700 27.143 M172.565 28.201 C 172.565 28.294,172.833 28.576,173.161 28.827 C 173.489 29.078,173.757 29.368,173.757 29.470 C 173.757 29.690,174.982 31.481,175.199 31.577 C 175.281 31.614,175.348 31.759,175.348 31.901 C 175.348 32.042,175.482 32.269,175.646 32.406 C 175.810 32.542,175.944 32.818,175.944 33.019 C 175.944 33.221,176.123 33.481,176.342 33.598 C 176.612 33.743,176.740 33.745,176.740 33.605 C 176.740 33.492,176.605 33.400,176.441 33.400 C 176.257 33.400,176.143 33.213,176.143 32.912 C 176.143 32.645,175.996 32.343,175.815 32.242 C 175.603 32.123,175.526 31.909,175.598 31.635 C 175.682 31.314,175.618 31.213,175.329 31.213 C 175.121 31.213,174.950 31.076,174.950 30.908 C 174.950 30.741,174.809 30.550,174.637 30.484 C 174.418 30.400,174.361 30.218,174.446 29.877 C 174.542 29.497,174.480 29.367,174.163 29.284 C 173.940 29.226,173.757 29.055,173.757 28.903 C 173.757 28.752,173.623 28.628,173.459 28.628 C 173.295 28.628,173.161 28.494,173.161 28.330 C 173.161 28.166,173.027 28.032,172.863 28.032 C 172.699 28.032,172.565 28.108,172.565 28.201 M144.548 29.402 C 144.540 29.554,144.376 29.797,144.185 29.942 C 143.854 30.193,143.855 30.206,144.191 30.212 C 144.579 30.219,144.828 29.783,144.667 29.380 C 144.589 29.186,144.560 29.191,144.548 29.402 M143.952 30.751 C 143.943 30.989,143.780 31.224,143.588 31.274 C 143.262 31.360,143.263 31.367,143.595 31.388 C 143.980 31.414,144.233 30.980,144.070 30.573 C 144.014 30.433,143.961 30.513,143.952 30.751 M143.370 32.256 C 143.349 32.773,143.249 33.002,143.042 33.002 C 142.878 33.002,142.744 33.136,142.744 33.300 C 142.744 33.464,142.876 33.598,143.038 33.598 C 143.389 33.598,143.603 32.874,143.485 32.082 C 143.412 31.593,143.395 31.618,143.370 32.256 M176.564 34.205 C 176.551 34.374,176.648 34.620,176.779 34.751 C 177.069 35.041,177.535 35.066,177.535 34.791 C 177.535 34.682,177.362 34.592,177.152 34.592 C 176.941 34.592,176.728 34.436,176.678 34.245 C 176.608 33.977,176.582 33.968,176.564 34.205 M142.825 37.575 C 142.825 39.488,142.855 40.271,142.892 39.314 C 142.928 38.357,142.928 36.792,142.892 35.835 C 142.855 34.878,142.825 35.661,142.825 37.575 M177.157 35.795 C 177.134 36.389,177.467 36.793,177.857 36.643 C 178.242 36.496,178.199 36.221,177.797 36.255 C 177.598 36.271,177.405 36.081,177.320 35.785 L 177.177 35.288 177.157 35.795 M177.765 37.799 C 177.733 38.538,178.135 39.110,178.520 38.872 C 178.860 38.662,178.756 38.370,178.343 38.370 C 178.057 38.370,177.937 38.203,177.877 37.724 L 177.797 37.078 177.765 37.799 M178.399 42.147 C 178.399 43.077,178.434 43.457,178.476 42.992 C 178.517 42.527,178.517 41.767,178.476 41.302 C 178.434 40.837,178.399 41.218,178.399 42.147 M142.744 41.934 C 142.744 42.051,142.878 42.147,143.042 42.147 C 143.267 42.147,143.340 42.390,143.340 43.141 C 143.340 43.892,143.413 44.135,143.638 44.135 C 143.854 44.135,143.936 44.356,143.936 44.930 C 143.936 45.505,144.019 45.726,144.235 45.726 C 144.433 45.726,144.533 45.924,144.533 46.322 C 144.533 46.720,144.632 46.918,144.831 46.918 C 144.997 46.918,145.129 47.095,145.129 47.316 C 145.129 47.537,145.262 47.714,145.427 47.714 C 145.613 47.714,145.726 47.901,145.726 48.211 C 145.726 48.520,145.838 48.708,146.024 48.708 C 146.188 48.708,146.322 48.845,146.322 49.012 C 146.322 49.180,146.456 49.368,146.620 49.431 C 146.790 49.496,146.918 49.793,146.918 50.121 C 146.918 50.499,147.020 50.696,147.217 50.696 C 147.381 50.696,147.515 50.830,147.515 50.994 C 147.515 51.158,147.649 51.292,147.813 51.292 C 147.977 51.292,148.111 51.200,148.111 51.087 C 148.111 50.974,147.977 50.831,147.813 50.768 C 147.649 50.705,147.515 50.529,147.515 50.376 C 147.515 50.224,147.425 50.099,147.316 50.099 C 147.207 50.099,147.117 49.962,147.117 49.794 C 147.117 49.627,146.849 49.227,146.521 48.907 C 146.193 48.586,145.924 48.227,145.924 48.110 C 145.924 47.870,145.110 46.656,144.881 46.554 C 144.799 46.518,144.732 46.269,144.732 46.001 C 144.732 45.733,144.597 45.463,144.433 45.400 C 144.251 45.330,144.135 45.028,144.135 44.621 C 144.135 44.251,144.009 43.886,143.851 43.797 C 143.688 43.706,143.539 43.256,143.503 42.745 C 143.446 41.948,142.744 41.197,142.744 41.934 M177.854 45.444 C 177.788 45.617,177.745 46.042,177.760 46.388 L 177.786 47.018 177.911 46.322 C 178.000 45.824,178.134 45.634,178.382 45.654 C 178.572 45.669,178.728 45.557,178.728 45.405 C 178.728 45.025,178.003 45.056,177.854 45.444 M177.270 47.449 C 177.197 47.522,177.137 47.796,177.137 48.059 C 177.137 48.322,177.003 48.672,176.839 48.836 C 176.675 49.000,176.541 49.306,176.541 49.517 C 176.541 49.728,176.451 49.901,176.342 49.901 C 175.988 49.901,176.132 50.448,176.511 50.547 C 176.822 50.628,176.876 50.531,176.859 49.924 C 176.844 49.385,176.917 49.210,177.152 49.227 C 177.392 49.243,177.462 49.058,177.450 48.431 C 177.438 47.770,177.502 47.620,177.783 47.642 C 177.975 47.657,178.131 47.590,178.131 47.493 C 178.131 47.287,177.465 47.253,177.270 47.449 M174.982 51.784 C 174.637 52.164,174.354 52.656,174.354 52.877 C 174.354 53.099,174.259 53.280,174.143 53.280 C 174.028 53.280,173.990 53.372,174.059 53.485 C 174.289 53.857,175.143 52.835,175.019 52.336 C 174.955 52.081,174.999 51.889,175.121 51.889 C 175.238 51.889,175.430 51.710,175.547 51.491 C 175.854 50.917,175.697 50.999,174.982 51.784 M149.901 53.280 C 149.901 53.608,150.032 53.677,150.646 53.674 L 151.392 53.669 150.895 53.280 C 150.255 52.780,149.901 52.780,149.901 53.280 M172.528 54.232 C 171.833 54.744,171.399 55.467,171.788 55.467 C 171.887 55.467,171.968 55.378,171.968 55.268 C 171.968 54.895,172.762 54.274,173.239 54.274 C 173.501 54.274,173.766 54.140,173.829 53.976 C 174.012 53.499,173.345 53.630,172.528 54.232 M151.292 54.069 C 151.292 54.182,151.420 54.274,151.576 54.274 C 151.732 54.274,151.900 54.431,151.950 54.622 C 152.034 54.943,152.043 54.944,152.064 54.629 C 152.077 54.442,151.909 54.193,151.690 54.076 C 151.420 53.931,151.292 53.929,151.292 54.069 M152.485 54.816 C 152.649 54.878,152.855 55.050,152.942 55.198 C 153.030 55.346,153.320 55.467,153.588 55.467 C 153.889 55.467,154.076 55.581,154.076 55.765 C 154.076 55.972,154.284 56.064,154.757 56.064 C 155.234 56.064,155.469 56.168,155.541 56.412 C 155.621 56.683,155.634 56.672,155.603 56.362 C 155.576 56.092,155.393 55.944,155.033 55.903 C 154.741 55.869,154.395 55.712,154.265 55.555 C 154.134 55.397,153.856 55.268,153.647 55.268 C 153.439 55.268,153.216 55.134,153.153 54.970 C 153.090 54.806,152.847 54.679,152.613 54.688 C 152.319 54.698,152.280 54.738,152.485 54.816 M170.632 55.556 C 170.547 55.705,170.254 55.858,169.982 55.895 C 169.505 55.962,169.127 56.660,169.568 56.660 C 169.685 56.660,169.781 56.531,169.781 56.374 C 169.781 56.188,170.037 56.066,170.511 56.026 C 171.274 55.962,171.607 55.600,171.087 55.401 C 170.921 55.337,170.716 55.407,170.632 55.556 M156.511 56.596 C 156.812 56.646,157.058 56.815,157.058 56.971 C 157.058 57.128,157.154 57.256,157.271 57.256 C 157.886 57.256,157.295 56.558,156.658 56.533 C 156.138 56.512,156.101 56.527,156.511 56.596 M167.881 56.753 C 167.669 56.914,167.077 57.048,166.567 57.051 C 166.057 57.055,165.497 57.112,165.324 57.178 C 164.925 57.332,164.912 57.853,165.308 57.853 C 165.472 57.853,165.606 57.719,165.606 57.555 C 165.606 57.320,165.882 57.256,166.899 57.256 C 167.887 57.256,168.191 57.190,168.191 56.972 C 168.191 56.816,168.392 56.649,168.638 56.602 C 169.045 56.523,169.049 56.513,168.676 56.488 C 168.451 56.473,168.093 56.593,167.881 56.753 M158.897 57.204 C 159.553 57.256,159.841 57.366,159.841 57.566 C 159.841 57.724,159.975 57.853,160.139 57.853 C 160.303 57.853,160.437 57.767,160.437 57.661 C 160.437 57.318,159.688 57.057,158.810 57.093 L 157.952 57.129 158.897 57.204 M4.902 65.954 C 4.851 66.036,31.550 66.081,64.234 66.053 L 123.658 66.003 123.661 66.948 C 123.665 68.274,123.837 68.787,124.278 68.787 C 124.771 68.787,124.761 68.266,124.266 68.136 C 123.954 68.055,123.867 67.828,123.818 66.970 L 123.757 65.905 64.376 65.855 C 31.716 65.827,4.952 65.872,4.902 65.954 M354.523 65.942 C 354.714 65.992,355.027 65.992,355.219 65.942 C 355.410 65.892,355.253 65.851,354.871 65.851 C 354.488 65.851,354.332 65.892,354.523 65.942 M357.256 66.082 C 357.256 66.434,357.592 66.560,358.894 66.694 C 360.037 66.811,359.982 66.706,358.797 66.508 C 358.335 66.431,358.052 66.274,358.052 66.094 C 358.052 65.935,357.873 65.805,357.654 65.805 C 357.435 65.805,357.256 65.930,357.256 66.082 M272.117 66.151 C 272.691 66.191,273.631 66.191,274.205 66.151 C 274.779 66.110,274.309 66.078,273.161 66.078 C 272.013 66.078,271.543 66.110,272.117 66.151 M286.928 66.153 C 289.525 66.184,293.775 66.184,296.372 66.153 C 298.969 66.122,296.844 66.096,291.650 66.096 C 286.456 66.096,284.332 66.122,286.928 66.153 M302.343 66.151 C 302.920 66.191,303.815 66.191,304.331 66.150 C 304.846 66.109,304.374 66.076,303.280 66.077 C 302.187 66.077,301.765 66.110,302.343 66.151 M323.211 66.151 C 323.894 66.190,325.012 66.190,325.696 66.151 C 326.379 66.112,325.820 66.081,324.453 66.081 C 323.086 66.081,322.527 66.112,323.211 66.151 M333.663 66.153 C 337.251 66.183,343.067 66.183,346.585 66.153 C 350.103 66.123,347.167 66.098,340.060 66.098 C 332.952 66.098,330.074 66.123,333.663 66.153 M361.630 66.783 C 361.630 67.161,362.699 67.586,362.970 67.315 C 363.035 67.250,362.886 67.197,362.639 67.197 C 362.357 67.197,362.151 67.049,362.085 66.799 C 361.953 66.292,361.630 66.281,361.630 66.783 M4.619 67.197 C 4.619 67.580,4.660 67.736,4.710 67.545 C 4.760 67.353,4.760 67.040,4.710 66.849 C 4.660 66.658,4.619 66.814,4.619 67.197 M363.686 67.139 C 363.887 67.190,364.223 67.404,364.432 67.612 C 364.640 67.821,364.923 67.989,365.060 67.986 C 365.198 67.983,365.153 67.890,364.960 67.777 C 364.769 67.666,364.612 67.445,364.612 67.286 C 364.612 67.089,364.409 67.005,363.966 67.021 C 363.595 67.034,363.476 67.084,363.686 67.139 M271.370 67.606 C 271.115 67.774,271.129 67.843,271.466 68.100 C 271.724 68.297,271.907 68.756,271.998 69.438 C 272.132 70.435,272.135 70.423,272.093 69.136 C 272.046 67.694,271.854 67.289,271.370 67.606 M366.317 67.774 C 366.119 68.089,366.670 68.597,367.185 68.575 C 367.395 68.566,367.354 68.494,367.057 68.350 C 366.816 68.234,366.591 67.994,366.556 67.817 C 366.503 67.550,366.462 67.543,366.317 67.774 M368.191 68.493 C 368.191 68.916,369.124 69.325,369.418 69.032 C 369.581 68.868,369.524 68.840,369.202 68.924 C 368.869 69.011,368.737 68.937,368.653 68.615 C 368.526 68.129,368.191 68.041,368.191 68.493 M370.035 69.185 C 370.068 69.552,370.210 69.697,370.577 69.741 C 371.068 69.799,372.372 70.363,372.565 70.599 C 372.619 70.667,372.888 70.783,373.161 70.857 C 373.575 70.970,373.600 70.956,373.310 70.775 C 373.119 70.655,372.962 70.425,372.962 70.265 C 372.962 70.050,372.826 70.007,372.453 70.100 C 372.041 70.204,371.922 70.146,371.831 69.796 C 371.740 69.450,371.613 69.385,371.197 69.473 C 370.628 69.592,370.306 69.447,370.115 68.986 C 370.044 68.816,370.010 68.901,370.035 69.185 M4.573 69.562 C 4.573 69.832,4.668 69.931,4.857 69.858 C 5.060 69.781,5.167 69.939,5.230 70.411 C 5.292 70.880,5.311 70.813,5.293 70.181 C 5.267 69.241,4.573 68.645,4.573 69.562 M124.286 71.483 C 124.253 72.534,124.618 73.328,125.020 73.080 C 125.374 72.861,125.290 72.407,124.901 72.438 C 124.626 72.459,124.528 72.256,124.435 71.471 L 124.317 70.477 124.286 71.483 M373.969 70.886 C 373.959 71.196,374.223 71.414,375.048 71.781 C 375.648 72.048,376.140 72.333,376.141 72.416 C 376.142 72.498,376.269 72.565,376.423 72.565 C 376.604 72.565,376.666 72.425,376.599 72.169 C 376.519 71.862,376.386 71.801,376.009 71.895 C 375.625 71.992,375.499 71.929,375.412 71.597 C 375.327 71.269,375.198 71.203,374.830 71.295 C 374.459 71.389,374.316 71.313,374.169 70.946 C 373.997 70.516,373.980 70.511,373.969 70.886 M271.769 72.754 C 271.769 72.857,271.912 73.022,272.085 73.119 C 272.276 73.226,272.464 73.725,272.558 74.372 C 272.679 75.207,272.719 75.292,272.736 74.751 C 272.779 73.430,272.544 72.565,272.141 72.565 C 271.937 72.565,271.769 72.650,271.769 72.754 M377.137 72.962 C 377.254 73.181,377.481 73.360,377.641 73.360 C 377.801 73.360,377.932 73.449,377.932 73.559 C 377.932 73.668,378.050 73.757,378.195 73.757 C 378.339 73.757,378.758 74.026,379.125 74.354 C 379.493 74.682,380.001 74.950,380.254 74.950 C 380.508 74.950,380.716 75.051,380.716 75.175 C 380.716 75.426,385.965 80.716,386.214 80.716 C 386.300 80.716,386.083 80.452,385.730 80.130 C 385.378 79.809,385.089 79.451,385.089 79.335 C 385.089 79.220,384.955 79.125,384.791 79.125 C 384.627 79.125,384.493 79.039,384.493 78.933 C 384.493 78.683,383.146 77.336,382.896 77.336 C 382.790 77.336,382.704 77.202,382.704 77.038 C 382.704 76.874,382.617 76.740,382.512 76.740 C 382.208 76.740,380.915 75.366,380.915 75.043 C 380.915 74.883,380.790 74.751,380.638 74.751 C 380.485 74.751,380.313 74.628,380.256 74.478 C 380.189 74.304,379.964 74.240,379.638 74.302 C 379.258 74.375,379.125 74.317,379.125 74.079 C 379.125 73.902,378.983 73.757,378.808 73.757 C 378.634 73.757,378.445 73.579,378.388 73.362 C 378.309 73.058,378.174 72.994,377.810 73.085 C 377.458 73.174,377.336 73.122,377.336 72.884 C 377.336 72.709,377.243 72.565,377.130 72.565 C 376.991 72.565,376.993 72.693,377.137 72.962 M5.169 74.737 C 5.169 74.964,5.298 75.149,5.455 75.149 C 5.627 75.149,5.775 75.406,5.827 75.795 C 5.876 76.159,5.903 76.007,5.889 75.449 C 5.864 74.426,5.169 73.739,5.169 74.737 M124.884 75.981 C 124.847 77.250,125.126 78.205,125.498 78.082 C 125.915 77.945,125.923 77.173,125.508 77.207 C 125.210 77.232,125.129 77.034,125.033 76.044 L 124.918 74.851 124.884 75.981 M5.816 77.435 C 5.818 77.873,5.858 78.028,5.906 77.781 C 5.954 77.534,5.952 77.176,5.902 76.986 C 5.852 76.796,5.813 76.998,5.816 77.435 M272.366 77.926 C 272.366 78.187,272.462 78.281,272.656 78.206 C 272.961 78.089,273.093 78.439,273.225 79.722 C 273.284 80.297,273.302 80.257,273.328 79.486 C 273.346 78.974,273.273 78.325,273.166 78.045 C 272.938 77.444,272.366 77.359,272.366 77.926 M5.765 79.608 C 5.765 79.780,5.894 79.920,6.051 79.920 C 6.223 79.920,6.371 80.178,6.424 80.567 C 6.482 80.999,6.503 80.918,6.486 80.320 C 6.462 79.454,5.765 78.766,5.765 79.608 M125.477 81.150 C 125.443 82.454,125.703 83.300,126.138 83.300 C 126.551 83.300,126.522 82.769,126.097 82.531 C 125.859 82.398,125.715 81.980,125.629 81.179 L 125.506 80.020 125.477 81.150 M386.531 81.191 C 386.722 81.337,386.879 81.602,386.879 81.781 C 386.879 81.961,386.968 82.107,387.078 82.107 C 387.187 82.107,387.276 82.238,387.276 82.399 C 387.276 82.559,387.455 82.786,387.674 82.903 C 387.944 83.047,388.072 83.049,388.072 82.910 C 388.072 82.796,387.927 82.704,387.750 82.704 C 387.519 82.704,387.460 82.584,387.541 82.274 C 387.667 81.792,386.981 80.919,386.481 80.924 C 386.240 80.927,386.250 80.978,386.531 81.191 M273.095 82.041 C 272.868 82.267,272.949 82.505,273.251 82.505 C 273.535 82.505,273.672 82.984,273.823 84.493 C 273.867 84.930,273.904 84.769,273.924 84.059 C 273.968 82.506,273.578 81.558,273.095 82.041 M388.270 83.499 C 388.656 83.748,388.867 83.748,388.867 83.499 C 388.867 83.390,388.666 83.302,388.419 83.303 C 388.058 83.306,388.029 83.343,388.270 83.499 M6.362 83.972 C 6.362 84.138,6.487 84.346,6.641 84.433 C 6.794 84.521,6.964 84.816,7.018 85.089 C 7.073 85.363,7.103 85.185,7.087 84.694 C 7.059 83.835,6.362 83.142,6.362 83.972 M388.691 84.223 C 388.678 84.458,388.802 84.701,388.966 84.764 C 389.130 84.827,389.264 84.792,389.264 84.686 C 389.264 84.580,389.182 84.493,389.080 84.493 C 388.979 84.493,388.855 84.336,388.805 84.145 C 388.733 83.871,388.709 83.887,388.691 84.223 M389.280 85.222 C 389.247 85.713,389.967 86.677,390.358 86.666 C 390.709 86.656,390.701 86.633,390.285 86.467 C 389.947 86.331,389.844 86.168,389.919 85.883 C 389.984 85.635,389.924 85.487,389.759 85.487 C 389.615 85.487,389.451 85.375,389.396 85.239 C 389.327 85.067,389.291 85.062,389.280 85.222 M126.077 86.108 C 126.028 87.460,126.228 88.220,126.661 88.334 C 126.933 88.405,127.038 88.327,127.038 88.053 C 127.038 87.845,126.905 87.674,126.743 87.674 C 126.429 87.674,126.291 87.259,126.180 85.984 L 126.111 85.189 126.077 86.108 M273.559 87.452 C 273.559 87.659,273.736 87.873,273.956 87.930 C 274.291 88.018,274.359 88.217,274.387 89.196 C 274.414 90.132,274.436 90.203,274.502 89.563 C 274.640 88.201,274.388 87.078,273.944 87.078 C 273.699 87.078,273.559 87.214,273.559 87.452 M390.984 88.364 C 390.922 88.525,391.033 88.771,391.229 88.911 C 391.426 89.051,391.639 89.299,391.702 89.463 C 391.783 89.671,391.822 89.633,391.833 89.337 C 391.843 89.072,391.700 88.874,391.450 88.809 C 391.185 88.739,391.092 88.599,391.174 88.388 C 391.240 88.214,391.250 88.072,391.196 88.072 C 391.141 88.072,391.046 88.203,390.984 88.364 M6.958 89.244 C 6.958 89.513,7.053 89.613,7.242 89.541 C 7.436 89.466,7.554 89.609,7.617 89.994 C 7.677 90.361,7.699 90.280,7.681 89.763 C 7.652 88.902,6.958 88.404,6.958 89.244 M391.650 90.084 C 391.650 90.187,391.784 90.322,391.948 90.385 C 392.131 90.456,392.247 90.757,392.247 91.164 C 392.247 91.530,392.368 91.901,392.516 91.988 C 392.664 92.076,392.835 92.281,392.897 92.445 C 392.963 92.618,393.017 92.514,393.026 92.197 C 393.036 91.836,392.940 91.650,392.744 91.650 C 392.530 91.650,392.445 91.432,392.445 90.878 C 392.445 90.273,392.359 90.083,392.048 90.002 C 391.829 89.945,391.650 89.982,391.650 90.084 M126.676 90.792 C 126.632 91.814,126.926 92.644,127.331 92.644 C 127.771 92.644,127.703 92.112,127.248 91.993 C 126.948 91.915,126.846 91.678,126.787 90.926 C 126.712 89.961,126.712 89.961,126.676 90.792 M274.155 92.507 C 274.155 92.824,274.291 93.031,274.542 93.097 C 274.859 93.179,274.942 93.410,275.002 94.362 L 275.074 95.527 275.092 94.334 C 275.114 92.850,274.933 92.168,274.494 92.084 C 274.249 92.037,274.155 92.154,274.155 92.507 M392.870 93.296 C 392.854 93.624,392.964 93.896,393.141 93.964 C 393.335 94.038,393.439 94.347,393.439 94.842 C 393.439 95.301,393.554 95.671,393.726 95.767 C 393.914 95.872,394.034 96.339,394.074 97.117 C 394.127 98.150,394.831 99.181,394.831 98.225 C 394.831 98.108,394.697 98.012,394.533 98.012 C 394.298 98.012,394.235 97.736,394.235 96.720 C 394.235 95.704,394.171 95.427,393.936 95.427 C 393.711 95.427,393.638 95.185,393.638 94.440 C 393.638 93.668,393.576 93.476,393.356 93.560 C 393.173 93.630,393.042 93.506,392.985 93.206 C 392.907 92.795,392.894 92.805,392.870 93.296 M127.187 93.795 C 126.996 93.834,126.839 93.949,126.839 94.050 C 126.839 94.152,126.708 94.235,126.548 94.235 C 126.388 94.235,126.161 94.414,126.044 94.632 C 125.899 94.902,125.897 95.030,126.037 95.030 C 126.150 95.030,126.243 94.884,126.243 94.707 C 126.243 94.453,126.372 94.410,126.847 94.504 C 127.275 94.590,127.483 94.542,127.561 94.337 C 127.723 93.916,127.583 93.713,127.187 93.795 M310.617 93.915 C 310.558 94.068,310.546 94.538,310.590 94.959 C 310.666 95.697,310.670 95.690,310.702 94.793 C 310.735 93.869,310.742 93.860,311.481 93.783 L 312.227 93.705 311.475 93.672 C 310.990 93.650,310.685 93.737,310.617 93.915 M350.128 93.785 C 351.240 93.843,351.465 93.916,351.551 94.243 C 351.664 94.676,352.087 94.779,352.087 94.374 C 352.087 93.818,351.602 93.638,350.209 93.677 L 348.807 93.716 350.128 93.785 M7.555 94.235 C 7.555 94.453,7.676 94.632,7.825 94.632 C 7.991 94.632,8.177 95.033,8.308 95.676 L 8.522 96.720 8.421 95.626 C 8.366 95.025,8.277 94.376,8.223 94.185 C 8.087 93.706,7.555 93.745,7.555 94.235 M353.429 94.440 C 353.675 94.538,353.877 94.712,353.877 94.825 C 353.877 94.937,354.180 95.030,354.551 95.030 C 354.968 95.030,355.270 95.144,355.340 95.328 C 355.403 95.492,355.561 95.626,355.691 95.626 C 355.831 95.626,355.781 95.466,355.567 95.229 C 355.369 95.010,355.035 94.831,354.826 94.831 C 354.616 94.831,354.311 94.697,354.147 94.533 C 353.983 94.369,353.653 94.240,353.415 94.247 L 352.982 94.260 353.429 94.440 M125.329 95.306 C 125.271 95.458,125.072 95.544,124.888 95.496 C 124.696 95.447,124.446 95.584,124.302 95.817 C 124.165 96.040,124.133 96.223,124.232 96.223 C 124.330 96.223,124.458 96.100,124.516 95.949 C 124.582 95.775,124.808 95.711,125.133 95.773 C 125.554 95.854,125.646 95.796,125.646 95.451 C 125.646 94.971,125.486 94.898,125.329 95.306 M356.238 95.806 C 356.389 95.901,356.456 96.071,356.387 96.182 C 356.312 96.304,356.417 96.344,356.653 96.282 C 357.094 96.167,356.740 95.623,356.227 95.629 C 356.018 95.632,356.020 95.668,356.238 95.806 M310.570 96.753 C 310.552 97.209,310.591 97.723,310.657 97.896 C 310.830 98.347,311.332 98.285,311.332 97.813 C 311.332 97.594,311.203 97.416,311.046 97.416 C 310.861 97.416,310.732 97.150,310.682 96.670 L 310.604 95.924 310.570 96.753 M357.263 96.450 C 357.259 96.630,357.391 96.828,357.555 96.891 C 357.719 96.954,357.853 97.104,357.853 97.225 C 357.853 97.503,358.248 97.896,358.698 98.067 C 358.889 98.139,359.046 98.291,359.046 98.403 C 359.046 98.516,359.202 98.606,359.394 98.602 C 359.725 98.597,359.725 98.587,359.394 98.394 C 359.202 98.282,359.046 98.058,359.046 97.896 C 359.046 97.734,358.912 97.550,358.748 97.487 C 358.583 97.424,358.449 97.248,358.449 97.096 C 358.449 96.944,358.275 96.819,358.062 96.819 C 357.848 96.819,357.583 96.663,357.471 96.471 C 357.291 96.163,357.268 96.160,357.263 96.450 M122.410 97.098 C 122.112 97.336,121.869 97.638,121.869 97.771 C 121.869 97.903,121.683 98.012,121.457 98.012 C 121.230 98.012,120.920 98.124,120.768 98.260 C 120.616 98.397,120.348 98.630,120.173 98.778 C 119.998 98.925,119.906 99.098,119.969 99.161 C 120.032 99.224,120.203 99.111,120.350 98.911 C 120.500 98.706,120.718 98.611,120.850 98.693 C 121.096 98.844,122.058 98.066,122.064 97.711 C 122.066 97.600,122.393 97.368,122.791 97.196 C 123.258 96.994,123.415 96.845,123.233 96.775 C 123.078 96.715,122.708 96.861,122.410 97.098 M8.174 97.565 C 8.156 97.909,8.254 98.007,8.598 97.989 C 8.915 97.973,8.948 97.940,8.710 97.877 C 8.525 97.829,8.334 97.638,8.286 97.453 C 8.223 97.215,8.190 97.248,8.174 97.565 M274.884 97.349 C 274.686 97.547,274.724 98.052,274.928 97.926 C 275.232 97.739,275.516 98.283,275.598 99.209 L 275.676 100.099 275.711 99.168 C 275.762 97.807,275.344 96.889,274.884 97.349 M359.642 98.999 C 359.642 99.112,359.787 99.205,359.964 99.205 C 360.194 99.205,360.260 99.337,360.195 99.674 C 360.130 100.013,360.193 100.138,360.421 100.122 C 360.648 100.106,360.735 100.278,360.734 100.746 C 360.732 101.142,360.831 101.392,360.989 101.392 C 361.130 101.392,361.326 101.593,361.425 101.839 C 361.561 102.177,361.608 102.202,361.618 101.941 C 361.636 101.433,360.421 99.210,360.003 98.986 C 359.762 98.858,359.642 98.862,359.642 98.999 M119.390 99.462 C 119.305 99.658,119.291 99.874,119.359 99.942 C 119.561 100.144,119.724 99.861,119.631 99.469 C 119.548 99.122,119.538 99.121,119.390 99.462 M394.715 100.694 C 394.729 102.041,394.784 102.292,395.080 102.348 C 395.504 102.429,395.552 101.879,395.141 101.648 C 394.956 101.545,394.826 101.062,394.776 100.297 C 394.718 99.406,394.702 99.506,394.715 100.694 M64.016 100.099 C 64.016 100.390,64.130 100.596,64.291 100.596 C 65.023 100.596,64.596 102.560,63.861 102.578 C 63.720 102.582,63.555 102.718,63.492 102.881 C 63.415 103.082,63.224 103.139,62.902 103.059 C 62.575 102.977,62.424 103.024,62.422 103.209 C 62.416 103.643,61.468 104.430,61.115 104.295 C 60.904 104.214,60.763 104.306,60.694 104.572 C 60.637 104.791,60.476 104.970,60.336 104.970 C 60.196 104.970,60.031 105.104,59.968 105.268 C 59.905 105.432,59.716 105.567,59.549 105.567 C 59.382 105.567,59.245 105.701,59.245 105.865 C 59.245 106.047,59.059 106.163,58.769 106.163 C 58.507 106.163,58.242 106.297,58.179 106.461 C 58.116 106.625,57.927 106.759,57.760 106.759 C 57.592 106.759,57.455 106.849,57.455 106.958 C 57.455 107.068,57.187 107.157,56.859 107.157 C 56.404 107.157,56.262 107.247,56.262 107.538 C 56.262 107.748,56.151 107.964,56.014 108.019 C 55.827 108.095,55.825 108.124,56.007 108.135 C 56.140 108.144,56.340 107.980,56.452 107.771 C 56.572 107.546,56.797 107.428,57.005 107.481 C 57.211 107.534,57.627 107.322,58.014 106.967 C 58.376 106.634,58.768 106.362,58.885 106.362 C 59.001 106.362,59.437 106.071,59.852 105.716 C 60.267 105.360,61.059 104.756,61.613 104.374 C 62.167 103.991,62.621 103.574,62.622 103.448 C 62.623 103.322,62.783 103.260,62.977 103.310 C 63.196 103.368,63.645 103.111,64.170 102.625 C 65.058 101.806,65.053 101.829,64.695 100.050 C 64.570 99.429,64.016 99.470,64.016 100.099 M311.172 100.729 C 311.150 101.404,311.188 102.097,311.254 102.270 C 311.407 102.670,311.928 102.682,311.928 102.286 C 311.928 102.122,311.799 101.988,311.640 101.988 C 311.426 101.988,311.333 101.667,311.280 100.746 L 311.210 99.503 311.172 100.729 M117.893 100.398 C 117.622 100.726,117.265 100.996,117.100 100.998 C 116.934 101.001,116.611 101.157,116.381 101.346 C 115.911 101.732,115.616 102.386,115.911 102.386 C 116.017 102.386,116.103 102.196,116.103 101.965 C 116.103 101.642,116.196 101.568,116.501 101.648 C 116.720 101.705,116.966 101.642,117.048 101.507 C 117.130 101.373,117.353 101.205,117.545 101.134 C 117.736 101.064,117.893 100.870,117.893 100.702 C 117.893 100.535,118.027 100.398,118.191 100.398 C 118.355 100.398,118.489 100.315,118.489 100.213 C 118.489 100.112,118.646 99.988,118.837 99.938 C 119.128 99.862,119.120 99.844,118.785 99.824 C 118.563 99.811,118.166 100.066,117.893 100.398 M275.348 101.988 C 275.348 102.207,275.480 102.386,275.642 102.386 C 275.956 102.386,276.095 102.800,276.206 104.076 C 276.260 104.696,276.282 104.622,276.309 103.741 C 276.327 103.119,276.255 102.381,276.148 102.100 C 275.918 101.496,275.348 101.416,275.348 101.988 M114.416 102.805 C 114.090 103.121,113.934 103.380,114.069 103.380 C 114.204 103.380,114.314 103.290,114.314 103.181 C 114.314 103.072,114.583 102.982,114.911 102.982 C 115.374 102.982,115.507 102.894,115.507 102.584 C 115.507 102.041,115.125 102.119,114.416 102.805 M361.233 102.861 C 361.233 103.012,361.388 103.124,361.579 103.109 C 361.826 103.089,361.960 103.280,362.050 103.777 C 362.162 104.405,362.177 104.418,362.200 103.913 C 362.215 103.605,362.134 103.181,362.021 102.969 C 361.784 102.526,361.233 102.451,361.233 102.861 M311.770 105.302 C 311.748 106.195,311.782 107.062,311.845 107.228 C 312.000 107.631,312.525 107.411,312.525 106.943 C 312.525 106.701,312.425 106.611,312.235 106.684 C 312.000 106.774,311.933 106.502,311.878 105.237 L 311.810 103.678 311.770 105.302 M111.882 104.576 C 111.583 104.902,111.225 105.169,111.087 105.170 C 110.948 105.170,110.477 105.486,110.040 105.871 C 108.894 106.880,108.787 106.958,108.557 106.958 C 108.443 106.958,108.171 107.137,107.952 107.356 C 107.734 107.575,107.638 107.753,107.739 107.753 C 107.841 107.753,108.058 107.619,108.222 107.455 C 108.386 107.291,108.706 107.157,108.932 107.157 C 109.166 107.157,109.344 107.028,109.344 106.859 C 109.344 106.695,109.481 106.561,109.648 106.561 C 109.816 106.561,110.004 106.426,110.067 106.262 C 110.133 106.092,110.429 105.964,110.757 105.964 C 111.136 105.964,111.332 105.862,111.332 105.666 C 111.332 105.502,111.421 105.368,111.531 105.368 C 111.640 105.368,111.730 105.225,111.730 105.051 C 111.730 104.877,111.909 104.687,112.127 104.630 C 112.346 104.573,112.525 104.454,112.525 104.365 C 112.525 104.277,112.681 104.163,112.873 104.113 C 113.165 104.037,113.157 104.019,112.823 104.003 C 112.604 103.992,112.181 104.250,111.882 104.576 M395.314 108.748 C 395.314 111.317,395.342 112.368,395.377 111.083 C 395.412 109.799,395.412 107.696,395.377 106.412 C 395.342 105.127,395.314 106.178,395.314 108.748 M361.829 107.149 C 361.829 108.512,361.844 108.555,362.236 108.345 C 362.790 108.049,362.740 105.910,362.177 105.802 C 361.872 105.744,361.829 105.911,361.829 107.149 M275.944 107.053 C 275.944 107.341,276.090 107.546,276.342 107.612 C 276.682 107.701,276.745 107.899,276.774 108.977 C 276.804 110.045,276.821 110.102,276.888 109.344 C 277.015 107.916,276.784 106.817,276.333 106.699 C 276.031 106.620,275.944 106.699,275.944 107.053 M107.042 108.088 C 106.815 108.133,106.347 108.427,106.002 108.742 C 105.657 109.057,105.217 109.366,105.024 109.427 C 104.434 109.616,103.132 110.891,103.244 111.169 C 103.313 111.342,103.354 111.313,103.364 111.083 C 103.373 110.892,103.517 110.736,103.684 110.736 C 103.852 110.736,104.040 110.601,104.103 110.437 C 104.166 110.273,104.432 110.139,104.693 110.139 C 104.984 110.139,105.169 110.023,105.169 109.841 C 105.169 109.677,105.303 109.543,105.467 109.543 C 105.631 109.543,105.765 109.409,105.765 109.245 C 105.765 109.046,105.964 108.946,106.362 108.946 C 106.759 108.946,106.958 108.847,106.958 108.648 C 106.958 108.484,107.092 108.350,107.256 108.350 C 107.420 108.350,107.555 108.260,107.555 108.151 C 107.555 108.042,107.532 107.964,107.505 107.979 C 107.478 107.994,107.269 108.043,107.042 108.088 M54.618 108.763 C 54.687 109.026,54.616 109.145,54.391 109.145 C 54.211 109.145,54.012 109.279,53.949 109.443 C 53.886 109.607,53.719 109.742,53.579 109.742 C 53.438 109.742,53.266 109.891,53.196 110.073 C 53.104 110.312,53.008 110.344,52.852 110.188 C 52.598 109.934,52.035 110.092,52.206 110.369 C 52.392 110.669,51.286 111.575,50.867 111.466 C 50.664 111.413,50.497 111.462,50.497 111.576 C 50.497 111.908,49.517 112.724,49.118 112.724 C 48.918 112.724,48.707 112.903,48.650 113.121 C 48.504 113.679,48.825 113.616,49.466 112.961 C 49.766 112.654,50.165 112.343,50.354 112.271 C 50.542 112.199,50.696 112.047,50.696 111.935 C 50.696 111.822,50.834 111.730,51.002 111.730 C 51.410 111.730,52.485 110.923,52.485 110.617 C 52.485 110.484,52.642 110.416,52.834 110.466 C 53.040 110.520,53.428 110.324,53.779 109.989 C 54.106 109.676,54.709 109.216,55.119 108.968 C 56.019 108.423,56.015 108.457,55.191 108.415 C 54.618 108.386,54.533 108.438,54.618 108.763 M312.366 110.371 C 312.344 111.210,312.380 112.037,312.447 112.210 C 312.620 112.661,313.121 112.599,313.121 112.127 C 313.121 111.909,312.991 111.730,312.832 111.730 C 312.611 111.730,312.526 111.386,312.474 110.288 L 312.405 108.847 312.366 110.371 M362.055 110.288 C 362.034 110.793,361.941 110.934,361.630 110.934 C 361.412 110.934,361.233 111.015,361.233 111.115 C 361.233 111.379,362.044 111.122,362.160 110.822 C 362.214 110.681,362.218 110.358,362.170 110.104 C 362.103 109.752,362.076 109.796,362.055 110.288 M101.819 111.641 C 101.562 111.897,101.398 112.223,101.455 112.365 C 101.522 112.532,101.565 112.501,101.575 112.276 C 101.583 112.085,101.705 111.928,101.844 111.928 C 101.984 111.928,102.252 111.750,102.439 111.531 C 102.923 110.966,102.404 111.057,101.819 111.641 M361.431 111.995 C 361.431 112.197,361.271 112.326,361.020 112.326 C 360.695 112.326,360.637 112.412,360.740 112.738 C 360.865 113.130,359.484 114.712,359.016 114.712 C 358.927 114.712,358.798 114.935,358.730 115.209 C 358.661 115.482,358.478 115.706,358.322 115.706 C 358.167 115.706,357.988 115.840,357.925 116.004 C 357.860 116.174,357.563 116.302,357.235 116.302 C 356.856 116.302,356.660 116.404,356.660 116.600 C 356.660 116.815,356.440 116.899,355.871 116.899 C 355.266 116.899,355.108 116.965,355.192 117.185 C 355.274 117.400,355.089 117.490,354.440 117.547 L 353.579 117.624 354.502 117.659 C 355.162 117.684,355.457 117.609,355.539 117.396 C 355.606 117.220,355.905 117.097,356.262 117.097 C 356.620 117.097,356.919 116.974,356.986 116.799 C 357.049 116.635,357.317 116.501,357.582 116.501 C 357.847 116.501,358.116 116.367,358.179 116.203 C 358.242 116.039,358.395 115.904,358.520 115.904 C 358.645 115.903,359.061 115.529,359.443 115.074 C 359.826 114.618,360.340 114.023,360.586 113.753 C 360.833 113.483,361.034 113.141,361.034 112.993 C 361.034 112.845,361.117 112.724,361.219 112.724 C 361.443 112.724,361.715 111.947,361.549 111.781 C 361.484 111.716,361.431 111.812,361.431 111.995 M276.541 112.179 C 276.541 112.317,276.720 112.541,276.938 112.678 C 277.259 112.878,277.343 113.165,277.373 114.167 L 277.410 115.408 277.485 114.314 C 277.593 112.733,277.406 111.928,276.929 111.928 C 276.716 111.928,276.541 112.041,276.541 112.179 M99.714 113.198 C 99.280 113.584,99.003 113.986,99.065 114.142 C 99.141 114.332,99.178 114.309,99.189 114.066 C 99.198 113.874,99.339 113.718,99.503 113.718 C 99.667 113.718,99.801 113.583,99.801 113.419 C 99.801 113.211,100.011 113.121,100.497 113.121 C 100.983 113.121,101.193 113.031,101.193 112.823 C 101.193 112.318,100.507 112.492,99.714 113.198 M47.984 113.618 C 47.921 113.782,47.701 113.917,47.494 113.917 C 47.287 113.917,47.117 114.051,47.117 114.215 C 47.117 114.379,46.980 114.513,46.812 114.513 C 46.645 114.513,46.245 114.781,45.924 115.109 C 45.580 115.462,45.135 115.706,44.838 115.706 C 44.561 115.706,44.334 115.795,44.334 115.905 C 44.334 116.285,43.536 116.899,43.042 116.899 C 42.732 116.899,42.545 117.011,42.545 117.197 C 42.545 117.361,42.411 117.495,42.247 117.495 C 42.083 117.495,41.948 117.638,41.948 117.812 C 41.948 117.986,41.769 118.175,41.551 118.233 C 41.332 118.290,41.153 118.416,41.153 118.512 C 41.153 118.609,40.940 118.688,40.679 118.688 C 40.373 118.688,40.169 118.828,40.101 119.085 C 39.981 119.545,40.314 119.631,40.485 119.185 C 40.548 119.021,40.737 118.887,40.904 118.887 C 41.072 118.887,41.458 118.627,41.762 118.309 C 42.066 117.991,42.490 117.675,42.705 117.607 C 42.921 117.538,43.318 117.284,43.589 117.041 C 44.197 116.495,44.698 116.160,45.278 115.909 C 45.524 115.803,45.726 115.634,45.726 115.535 C 45.726 115.436,45.882 115.297,46.074 115.227 C 46.750 114.979,47.515 114.489,47.515 114.303 C 47.515 114.200,47.639 114.115,47.790 114.115 C 47.941 114.115,48.112 113.936,48.169 113.718 C 48.290 113.255,48.152 113.181,47.984 113.618 M97.700 114.566 C 97.128 115.184,96.958 115.507,97.205 115.507 C 97.321 115.507,97.416 115.373,97.416 115.209 C 97.416 115.045,97.550 114.911,97.714 114.911 C 97.878 114.911,98.012 114.783,98.012 114.626 C 98.012 114.470,98.213 114.303,98.459 114.256 C 98.845 114.181,98.852 114.166,98.509 114.146 C 98.290 114.133,97.926 114.322,97.700 114.566 M312.961 115.678 C 312.927 117.158,312.971 117.391,313.370 117.811 L 313.817 118.283 332.913 118.287 C 352.031 118.290,352.485 118.276,352.485 117.654 C 352.485 117.567,344.389 117.495,334.493 117.495 C 318.633 117.495,316.501 117.530,316.501 117.793 C 316.501 117.957,316.367 118.091,316.203 118.091 C 316.039 118.091,315.905 117.957,315.905 117.793 C 315.905 117.572,315.673 117.495,315.010 117.495 C 314.347 117.495,314.115 117.572,314.115 117.793 C 314.115 117.957,314.037 118.091,313.941 118.091 C 313.846 118.091,313.767 117.863,313.767 117.585 C 313.767 117.306,313.625 116.971,313.451 116.839 C 313.235 116.675,313.114 116.195,313.067 115.308 C 313.003 114.086,312.997 114.106,312.961 115.678 M394.718 115.591 C 394.651 115.855,394.639 116.236,394.691 116.436 C 394.767 116.729,394.789 116.712,394.808 116.352 C 394.821 116.097,394.959 115.905,395.129 115.905 C 395.295 115.905,395.427 115.728,395.427 115.507 C 395.427 114.945,394.863 115.011,394.718 115.591 M95.869 115.893 C 95.201 116.504,95.093 116.700,95.427 116.700 C 95.537 116.700,95.626 116.555,95.626 116.378 C 95.626 116.143,95.759 116.082,96.123 116.152 C 96.540 116.232,96.620 116.171,96.620 115.778 C 96.620 115.192,96.640 115.189,95.869 115.893 M93.965 117.187 C 93.404 117.707,93.318 117.893,93.638 117.893 C 93.748 117.893,93.837 117.747,93.837 117.570 C 93.837 117.317,93.966 117.272,94.433 117.366 C 94.935 117.466,95.030 117.423,95.030 117.092 C 95.030 116.560,94.601 116.598,93.965 117.187 M277.137 117.495 C 277.137 117.760,277.270 117.893,277.535 117.893 C 277.890 117.893,277.936 118.037,277.969 119.235 C 278.006 120.569,278.006 120.571,278.081 119.483 C 278.190 117.902,278.002 117.097,277.526 117.097 C 277.270 117.097,277.137 117.233,277.137 117.495 M92.843 118.185 C 92.843 118.364,92.727 118.432,92.541 118.361 C 92.127 118.202,91.193 119.161,91.312 119.622 C 91.394 119.937,91.408 119.932,91.430 119.583 C 91.455 119.173,92.243 118.688,92.883 118.688 C 93.108 118.688,93.241 118.541,93.241 118.290 C 93.241 118.072,93.151 117.893,93.042 117.893 C 92.932 117.893,92.843 118.024,92.843 118.185 M394.116 118.963 C 394.058 119.115,394.045 119.629,394.088 120.106 L 394.165 120.974 394.200 120.030 C 394.225 119.338,394.314 119.085,394.533 119.085 C 394.697 119.085,394.831 118.996,394.831 118.887 C 394.831 118.585,394.237 118.649,394.116 118.963 M39.364 119.682 C 39.364 119.791,39.140 119.881,38.867 119.881 C 38.593 119.881,38.370 119.966,38.370 120.069 C 38.370 120.517,37.440 121.252,37.014 121.140 C 36.769 121.076,36.581 121.119,36.581 121.239 C 36.581 121.530,35.692 122.465,35.415 122.465 C 35.290 122.465,35.189 122.555,35.189 122.664 C 35.189 122.773,34.976 122.863,34.715 122.863 C 34.408 122.863,34.205 123.003,34.137 123.260 C 34.014 123.730,34.244 123.780,34.592 123.360 C 34.729 123.196,34.931 123.062,35.043 123.062 C 35.154 123.062,35.502 122.793,35.815 122.465 C 36.129 122.137,36.508 121.869,36.658 121.869 C 36.808 121.869,37.367 121.467,37.899 120.976 C 38.431 120.485,39.014 120.083,39.193 120.082 C 39.373 120.080,39.572 119.945,39.635 119.781 C 39.697 119.617,39.662 119.483,39.556 119.483 C 39.450 119.483,39.364 119.573,39.364 119.682 M89.947 119.934 C 89.374 120.552,89.204 120.875,89.451 120.875 C 89.567 120.875,89.662 120.741,89.662 120.577 C 89.662 120.413,89.796 120.278,89.960 120.278 C 90.124 120.278,90.258 120.189,90.258 120.080 C 90.258 119.970,90.398 119.881,90.568 119.881 C 90.739 119.881,90.823 119.791,90.755 119.682 C 90.574 119.388,90.403 119.441,89.947 119.934 M88.745 121.160 C 88.684 121.318,88.503 121.395,88.342 121.334 C 88.181 121.272,87.880 121.389,87.672 121.595 C 87.077 122.184,86.710 122.465,86.534 122.465 C 86.311 122.465,85.088 123.597,85.096 123.796 C 85.099 123.884,85.229 123.788,85.385 123.583 C 85.565 123.345,85.816 123.248,86.074 123.316 C 86.298 123.374,86.481 123.346,86.481 123.252 C 86.481 122.992,87.391 122.068,87.647 122.068 C 87.771 122.068,87.873 121.926,87.873 121.754 C 87.873 121.508,88.003 121.468,88.469 121.571 C 88.983 121.683,89.066 121.644,89.066 121.288 C 89.066 120.810,88.904 120.746,88.745 121.160 M393.572 121.206 C 393.499 121.279,393.439 121.627,393.439 121.980 C 393.439 122.367,393.321 122.667,393.141 122.736 C 392.956 122.807,392.843 123.109,392.843 123.531 C 392.843 123.953,392.729 124.255,392.545 124.326 C 392.360 124.397,392.247 124.700,392.247 125.122 C 392.247 125.543,392.133 125.846,391.948 125.917 C 391.772 125.985,391.661 126.256,391.677 126.584 C 391.700 127.053,391.717 127.069,391.790 126.690 C 391.838 126.444,392.005 126.243,392.161 126.243 C 392.360 126.243,392.445 126.004,392.445 125.447 C 392.445 124.873,392.528 124.652,392.744 124.652 C 392.959 124.652,393.042 124.431,393.042 123.857 C 393.042 123.283,393.125 123.062,393.340 123.062 C 393.555 123.062,393.638 122.841,393.638 122.266 C 393.638 121.692,393.721 121.471,393.936 121.471 C 394.100 121.471,394.235 121.382,394.235 121.272 C 394.235 121.049,393.775 121.003,393.572 121.206 M277.734 122.443 C 277.734 122.679,277.863 122.808,278.082 122.791 C 278.361 122.769,278.452 122.977,278.546 123.857 L 278.663 124.950 278.693 123.956 C 278.709 123.410,278.668 122.761,278.602 122.515 C 278.453 121.958,277.734 121.899,277.734 122.443 M33.472 123.955 C 33.397 124.150,33.204 124.213,32.909 124.139 C 32.568 124.053,32.434 124.126,32.352 124.439 C 32.223 124.930,32.449 124.962,33.092 124.541 C 33.522 124.259,33.926 123.658,33.685 123.658 C 33.631 123.658,33.535 123.792,33.472 123.955 M84.294 124.056 C 84.294 124.165,84.163 124.254,84.003 124.254 C 83.843 124.254,83.614 124.456,83.495 124.702 C 83.296 125.112,83.302 125.120,83.566 124.792 C 83.763 124.548,84.005 124.473,84.330 124.554 C 84.716 124.651,84.805 124.597,84.805 124.265 C 84.805 124.041,84.690 123.857,84.550 123.857 C 84.409 123.857,84.294 123.946,84.294 124.056 M31.687 125.137 C 31.605 125.350,31.416 125.443,31.185 125.382 C 30.981 125.329,30.865 125.367,30.926 125.466 C 30.988 125.566,30.809 125.734,30.529 125.840 C 30.249 125.947,30.020 126.121,30.020 126.228 C 30.020 126.406,29.235 126.828,28.380 127.110 C 28.188 127.173,28.035 127.383,28.038 127.578 C 28.044 127.915,28.058 127.915,28.309 127.584 C 28.454 127.393,28.710 127.237,28.878 127.237 C 29.045 127.237,29.470 126.968,29.821 126.640 C 30.172 126.312,30.588 126.044,30.745 126.044 C 31.114 126.044,32.130 125.106,31.953 124.929 C 31.879 124.855,31.759 124.948,31.687 125.137 M82.505 125.348 C 82.369 125.512,82.180 125.646,82.085 125.646 C 81.763 125.646,80.914 126.511,80.927 126.825 C 80.935 127.022,81.006 126.972,81.120 126.690 C 81.218 126.444,81.436 126.243,81.604 126.243 C 81.771 126.243,81.909 126.159,81.909 126.057 C 81.909 125.955,82.154 125.843,82.454 125.808 C 82.782 125.770,83.025 125.607,83.065 125.398 C 83.145 124.971,82.840 124.944,82.505 125.348 M278.463 126.574 C 278.206 126.831,278.334 127.191,278.718 127.292 C 279.046 127.377,279.117 127.604,279.176 128.756 L 279.246 130.119 279.285 128.665 C 279.331 126.949,278.980 126.057,278.463 126.574 M79.651 127.235 C 79.292 127.598,79.293 127.605,79.701 127.498 C 79.931 127.438,80.119 127.317,80.119 127.228 C 80.119 127.139,80.276 127.026,80.467 126.976 C 80.756 126.900,80.748 126.883,80.417 126.874 C 80.199 126.868,79.854 127.030,79.651 127.235 M27.513 128.118 C 27.419 128.361,27.246 128.425,26.911 128.341 C 26.621 128.268,26.441 128.311,26.441 128.453 C 26.441 128.811,25.470 129.622,25.039 129.622 C 24.826 129.622,24.652 129.701,24.652 129.798 C 24.652 129.894,24.473 130.020,24.254 130.077 C 24.036 130.135,23.857 130.324,23.857 130.498 C 23.857 130.673,23.732 130.815,23.580 130.815 C 23.428 130.815,23.251 130.949,23.189 131.113 C 23.126 131.277,22.902 131.412,22.692 131.412 C 22.481 131.412,22.257 131.546,22.195 131.710 C 22.132 131.874,21.943 132.008,21.776 132.008 C 21.608 132.008,21.471 132.097,21.471 132.207 C 21.471 132.316,21.203 132.406,20.875 132.406 C 20.411 132.406,20.278 132.494,20.278 132.803 C 20.278 133.022,20.309 133.201,20.347 133.201 C 20.561 133.201,21.670 132.551,21.670 132.426 C 21.670 132.344,22.050 132.086,22.515 131.852 C 22.980 131.619,23.583 131.156,23.855 130.823 C 24.127 130.491,24.519 130.219,24.727 130.219 C 24.934 130.219,25.309 129.997,25.561 129.725 C 25.813 129.454,26.382 129.042,26.827 128.810 C 27.666 128.373,27.955 128.087,27.758 127.891 C 27.695 127.828,27.585 127.930,27.513 128.118 M390.696 128.072 C 390.565 128.203,390.464 128.449,390.473 128.618 C 390.483 128.823,390.522 128.843,390.589 128.678 C 390.644 128.541,390.816 128.429,390.971 128.429 C 391.126 128.429,391.252 128.295,391.252 128.131 C 391.252 127.772,391.021 127.747,390.696 128.072 M77.575 128.668 C 77.443 128.799,77.339 129.000,77.342 129.115 C 77.345 129.230,77.437 129.171,77.546 128.984 C 77.667 128.777,77.871 128.693,78.070 128.770 C 78.288 128.853,78.348 128.818,78.251 128.662 C 78.068 128.366,77.875 128.368,77.575 128.668 M390.109 129.169 C 389.973 129.218,389.861 129.420,389.861 129.618 C 389.861 129.816,389.589 130.269,389.257 130.624 C 388.611 131.315,388.582 131.667,389.161 131.780 C 389.468 131.839,389.502 131.756,389.394 131.214 C 389.289 130.687,389.335 130.561,389.663 130.475 C 389.914 130.409,390.060 130.203,390.060 129.914 C 390.060 129.662,390.171 129.417,390.308 129.368 C 390.445 129.319,390.512 129.234,390.457 129.180 C 390.403 129.125,390.246 129.120,390.109 129.169 M76.356 129.707 C 76.107 129.972,75.962 130.285,76.035 130.403 C 76.219 130.700,76.594 130.671,76.483 130.368 C 76.433 130.231,76.576 129.918,76.800 129.672 C 77.023 129.426,77.117 129.225,77.008 129.225 C 76.898 129.225,76.605 129.442,76.356 129.707 M278.926 132.085 C 278.926 132.416,279.032 132.552,279.274 132.533 C 279.562 132.510,279.642 132.728,279.737 133.797 L 279.852 135.089 279.883 133.797 C 279.924 132.156,279.778 131.610,279.301 131.610 C 279.039 131.610,278.926 131.753,278.926 132.085 M385.338 135.083 C 382.929 137.514,382.714 137.773,383.101 137.773 C 383.211 137.773,383.300 137.684,383.300 137.575 C 383.300 137.270,384.058 136.581,384.394 136.581 C 384.558 136.581,384.692 136.446,384.692 136.282 C 384.692 136.118,384.826 135.984,384.990 135.984 C 385.154 135.984,385.288 135.850,385.288 135.686 C 385.288 135.522,385.422 135.388,385.586 135.388 C 385.750 135.388,385.885 135.253,385.885 135.089 C 385.885 134.925,386.019 134.791,386.183 134.791 C 386.347 134.791,386.481 134.657,386.481 134.493 C 386.481 134.132,386.806 134.097,386.946 134.443 C 387.001 134.580,387.053 134.446,387.062 134.145 C 387.070 133.844,387.167 133.598,387.276 133.598 C 387.386 133.598,387.475 133.469,387.475 133.310 C 387.475 133.151,387.632 132.931,387.823 132.819 C 388.014 132.708,388.082 132.618,387.972 132.621 C 387.863 132.623,386.677 133.731,385.338 135.083 M19.682 133.499 C 19.682 133.683,19.495 133.797,19.197 133.797 C 18.930 133.797,18.652 133.893,18.580 134.009 C 18.352 134.379,18.670 134.470,19.201 134.186 C 19.758 133.888,20.237 133.201,19.888 133.201 C 19.775 133.201,19.682 133.335,19.682 133.499 M76.216 133.466 C 76.285 133.666,76.342 133.867,76.342 133.913 C 76.342 133.959,76.543 133.989,76.789 133.980 C 77.078 133.970,77.131 133.927,76.938 133.858 C 76.774 133.799,76.516 133.605,76.365 133.426 C 76.114 133.130,76.101 133.133,76.216 133.466 M131.610 133.863 C 131.610 134.009,131.677 134.195,131.759 134.276 C 131.841 134.358,131.998 134.841,132.108 135.351 C 132.320 136.336,133.002 136.830,133.002 135.999 C 133.002 135.772,132.878 135.586,132.727 135.586 C 132.426 135.586,132.214 134.996,132.209 134.145 C 132.208 133.793,132.101 133.598,131.909 133.598 C 131.745 133.598,131.610 133.718,131.610 133.863 M17.893 134.692 C 17.893 134.856,17.756 134.990,17.588 134.990 C 17.421 134.990,17.236 135.114,17.178 135.266 C 17.117 135.425,16.909 135.500,16.689 135.443 C 16.442 135.378,16.259 135.468,16.171 135.698 C 15.936 136.309,15.293 136.822,14.892 136.717 C 14.644 136.652,14.513 136.720,14.513 136.916 C 14.513 137.080,14.334 137.261,14.115 137.318 C 13.897 137.375,13.718 137.546,13.718 137.697 C 13.718 137.848,13.539 137.972,13.320 137.972 C 13.101 137.972,12.922 138.062,12.922 138.171 C 12.922 138.507,13.481 138.391,13.756 137.999 C 13.899 137.795,14.332 137.459,14.718 137.252 C 15.368 136.904,15.663 136.689,16.394 136.034 C 16.547 135.897,16.790 135.784,16.934 135.782 C 17.188 135.779,17.864 135.153,18.167 134.642 C 18.248 134.505,18.219 134.394,18.103 134.394 C 17.987 134.394,17.893 134.528,17.893 134.692 M279.523 137.096 C 279.523 137.270,279.702 137.460,279.920 137.517 C 280.266 137.607,280.323 137.805,280.356 139.039 L 280.393 140.457 280.467 139.264 C 280.572 137.576,280.394 136.779,279.911 136.779 C 279.688 136.779,279.523 136.914,279.523 137.096 M381.140 138.773 C 380.488 139.368,380.383 139.563,380.716 139.563 C 380.825 139.563,380.915 139.434,380.915 139.277 C 380.915 139.102,381.158 138.967,381.545 138.929 C 382.214 138.863,382.513 138.492,382.043 138.311 C 381.889 138.252,381.482 138.460,381.140 138.773 M13.041 138.715 C 12.818 138.938,12.922 139.364,13.199 139.364 C 13.553 139.364,13.710 139.781,13.747 140.821 C 13.771 141.482,13.795 141.532,13.864 141.065 C 14.058 139.753,13.525 138.231,13.041 138.715 M379.356 139.861 C 379.100 140.131,378.937 140.465,378.992 140.603 C 379.055 140.757,379.100 140.720,379.110 140.507 C 379.118 140.316,379.215 140.159,379.324 140.159 C 379.433 140.159,379.702 139.980,379.920 139.761 C 380.157 139.525,380.217 139.365,380.070 139.367 C 379.933 139.369,379.612 139.591,379.356 139.861 M132.786 140.804 C 132.923 141.472,133.598 141.857,133.598 141.267 C 133.598 141.095,133.464 140.954,133.300 140.954 C 133.135 140.954,133.002 140.778,133.002 140.557 C 133.002 140.338,132.924 140.159,132.828 140.159 C 132.733 140.159,132.714 140.449,132.786 140.804 M377.757 141.004 C 377.773 141.321,377.806 141.353,377.868 141.116 C 377.917 140.931,378.108 140.740,378.293 140.691 C 378.530 140.629,378.498 140.596,378.181 140.580 C 377.837 140.562,377.739 140.660,377.757 141.004 M376.609 141.460 C 376.545 141.629,376.547 141.822,376.616 141.891 C 376.684 141.959,376.740 141.872,376.740 141.698 C 376.740 141.524,376.896 141.340,377.087 141.290 C 377.414 141.205,377.413 141.198,377.081 141.176 C 376.886 141.163,376.674 141.291,376.609 141.460 M280.252 141.882 C 280.019 142.115,280.108 142.297,280.506 142.401 C 280.823 142.484,280.907 142.714,280.966 143.666 L 281.038 144.831 281.076 143.529 C 281.117 142.114,280.751 141.383,280.252 141.882 M375.078 142.048 C 374.914 142.212,374.612 142.346,374.408 142.346 C 374.027 142.346,373.559 142.697,373.559 142.982 C 373.559 143.070,373.693 143.141,373.857 143.141 C 374.021 143.141,374.155 143.007,374.155 142.843 C 374.155 142.644,374.354 142.545,374.751 142.545 C 375.136 142.545,375.348 142.444,375.348 142.260 C 375.348 142.104,375.549 141.937,375.795 141.890 C 376.239 141.804,376.239 141.803,375.809 141.777 C 375.571 141.762,375.242 141.884,375.078 142.048 M372.096 143.241 C 371.928 143.409,371.442 143.539,370.982 143.539 C 370.387 143.539,370.132 143.633,370.038 143.887 C 369.967 144.078,369.827 144.291,369.725 144.359 C 369.623 144.427,369.762 144.483,370.033 144.483 C 370.430 144.483,370.506 144.405,370.421 144.082 C 370.324 143.710,370.389 143.688,371.341 143.780 C 372.229 143.865,372.366 143.831,372.366 143.523 C 372.366 143.314,372.549 143.134,372.813 143.083 C 373.257 142.997,373.257 142.996,372.827 142.969 C 372.589 142.955,372.260 143.077,372.096 143.241 M13.519 143.827 C 13.519 143.986,13.661 144.195,13.836 144.293 C 14.010 144.390,14.232 144.775,14.329 145.148 C 14.484 145.741,14.494 145.705,14.412 144.864 C 14.294 143.664,13.519 142.764,13.519 143.827 M367.657 144.483 C 367.589 144.674,367.497 144.898,367.453 144.980 C 367.408 145.062,367.512 145.129,367.682 145.129 C 367.856 145.129,367.992 144.960,367.992 144.744 C 367.992 144.444,368.159 144.341,368.738 144.280 L 369.483 144.202 368.632 144.169 C 367.981 144.143,367.752 144.217,367.657 144.483 M133.312 145.405 C 133.365 146.048,133.457 146.652,133.516 146.747 C 133.692 147.033,134.195 146.939,134.195 146.620 C 134.195 146.456,134.065 146.322,133.906 146.322 C 133.726 146.322,133.571 146.041,133.495 145.577 C 133.281 144.267,133.211 144.201,133.312 145.405 M365.003 145.038 C 364.806 145.275,364.802 145.399,364.985 145.582 C 365.168 145.765,365.247 145.720,365.335 145.385 C 365.420 145.061,365.631 144.933,366.173 144.875 L 366.899 144.798 366.078 144.765 C 365.548 144.743,365.167 144.840,365.003 145.038 M360.266 145.541 C 359.877 145.697,359.838 145.781,360.041 146.026 C 360.394 146.450,361.196 146.413,361.161 145.974 C 361.138 145.686,361.356 145.606,362.425 145.511 L 363.718 145.397 362.227 145.375 C 361.407 145.363,360.524 145.438,360.266 145.541 M316.573 146.223 C 316.365 146.765,316.678 147.515,317.113 147.515 C 317.336 147.515,317.463 147.425,317.396 147.316 C 317.328 147.207,317.144 147.117,316.986 147.117 C 316.411 147.117,316.649 146.157,317.247 146.067 L 317.793 145.984 317.240 145.954 C 316.910 145.936,316.641 146.045,316.573 146.223 M280.716 146.507 C 280.716 146.609,280.895 146.750,281.113 146.819 C 281.457 146.928,281.516 147.138,281.549 148.373 L 281.588 149.801 281.659 148.515 C 281.751 146.869,281.614 146.322,281.110 146.322 C 280.893 146.322,280.716 146.406,280.716 146.507 M14.248 148.045 C 14.045 148.248,14.090 148.747,14.300 148.617 C 14.582 148.443,14.791 148.902,14.929 150.000 L 15.053 150.994 15.081 149.963 C 15.121 148.501,14.718 147.574,14.248 148.045 M317.140 150.398 C 317.094 152.106,317.240 152.724,317.668 152.642 C 318.161 152.546,318.204 151.889,317.717 151.889 C 317.355 151.889,317.307 151.741,317.245 150.447 L 317.176 149.006 317.140 150.398 M133.924 150.578 C 133.984 151.224,134.079 151.872,134.135 152.019 C 134.294 152.433,134.791 152.334,134.791 151.889 C 134.791 151.670,134.664 151.491,134.508 151.491 C 134.325 151.491,134.153 151.122,134.020 150.447 L 133.816 149.404 133.924 150.578 M281.445 151.425 C 281.174 151.696,281.325 152.087,281.701 152.087 C 282.041 152.087,282.098 152.254,282.159 153.429 L 282.228 154.771 282.267 153.416 C 282.314 151.794,281.952 150.918,281.445 151.425 M14.712 153.380 C 14.712 153.544,14.844 153.678,15.006 153.678 C 15.320 153.678,15.459 154.093,15.570 155.368 C 15.630 156.064,15.643 156.035,15.672 155.132 C 15.691 154.565,15.619 153.872,15.512 153.591 C 15.304 153.044,14.712 152.887,14.712 153.380 M317.735 155.467 C 317.716 156.178,317.754 156.965,317.822 157.216 C 317.975 157.788,318.564 157.720,318.650 157.121 C 318.699 156.776,318.632 156.712,318.312 156.796 C 317.944 156.892,317.906 156.789,317.842 155.538 L 317.772 154.175 317.735 155.467 M134.530 155.567 C 134.683 156.631,135.388 157.284,135.388 156.362 C 135.388 156.198,135.266 156.064,135.118 156.064 C 134.970 156.064,134.751 155.773,134.632 155.417 C 134.417 154.775,134.417 154.776,134.530 155.567 M281.909 156.958 C 281.909 157.124,282.085 157.256,282.306 157.256 C 282.664 157.256,282.708 157.402,282.742 158.698 L 282.780 160.139 282.852 158.853 C 282.944 157.207,282.807 156.660,282.302 156.660 C 282.085 156.660,281.909 156.794,281.909 156.958 M15.308 158.544 C 15.308 158.832,15.454 159.038,15.706 159.103 C 16.036 159.190,16.108 159.387,16.130 160.270 C 16.145 160.854,16.198 161.115,16.248 160.849 C 16.433 159.865,16.107 158.298,15.694 158.190 C 15.395 158.112,15.308 158.191,15.308 158.544 M318.331 160.537 C 318.286 162.040,318.426 162.561,318.905 162.687 C 319.114 162.741,319.284 162.712,319.284 162.622 C 319.284 162.236,319.023 161.829,318.775 161.829 C 318.587 161.829,318.487 161.460,318.437 160.586 L 318.367 159.344 318.331 160.537 M135.258 161.032 C 135.289 161.741,135.984 162.232,135.984 161.545 C 135.984 161.373,135.856 161.233,135.700 161.233 C 135.543 161.233,135.373 161.031,135.321 160.785 C 135.269 160.539,135.241 160.650,135.258 161.032 M282.549 161.666 C 282.571 161.959,282.637 162.194,282.696 162.189 C 283.181 162.146,283.287 162.337,283.352 163.370 L 283.424 164.513 283.461 163.165 C 283.493 162.041,283.441 161.795,283.151 161.688 C 282.960 161.618,282.737 161.464,282.656 161.347 C 282.575 161.229,282.527 161.373,282.549 161.666 M15.905 163.415 C 15.905 163.611,16.078 163.816,16.290 163.872 C 16.594 163.951,16.689 164.179,16.738 164.939 L 16.799 165.905 76.186 165.955 L 135.572 166.005 135.789 165.557 C 135.985 165.153,135.979 165.143,135.724 165.458 C 135.322 165.956,17.030 165.906,16.964 165.408 C 16.942 165.244,16.869 164.694,16.803 164.186 C 16.678 163.235,15.905 162.571,15.905 163.415 M318.877 164.811 L 318.787 165.706 300.932 165.706 C 291.112 165.706,283.284 165.764,283.536 165.835 C 283.789 165.906,291.791 165.973,301.318 165.984 C 320.508 166.006,319.174 166.105,319.039 164.676 L 318.967 163.917 318.877 164.811 "\n stroke="none" fill="#c4c4c4" fill-rule="evenodd"></path>\n </g>\n</svg>',afterpay:'<svg version="1.0" class="payment-source__icon" xmlns="http://www.w3.org/2000/svg"\n width="52%" height="50px" viewBox="0 0 2560.000000 479.000000"\n preserveAspectRatio="xMidYMid meet">\n\n<g transform="translate(0.000000,479.000000) scale(0.100000,-0.100000)"\nfill="#000000" stroke="none">\n<path d="M23109 4775 c-248 -49 -462 -233 -538 -462 -26 -79 -45 -241 -36\n-317 8 -72 32 -123 78 -163 19 -17 114 -74 211 -128 166 -92 179 -97 222 -92\n28 3 55 14 71 28 45 42 53 77 53 232 0 133 2 147 23 178 32 49 81 71 142 66\n44 -4 140 -55 770 -406 396 -222 728 -410 739 -419 10 -9 25 -31 32 -49 31\n-72 7 -142 -63 -187 -36 -23 -1291 -723 -1398 -780 -89 -47 -179 -28 -225 46\n-16 27 -20 51 -20 133 0 251 -66 414 -226 564 -218 204 -552 253 -815 120\n-204 -102 -1724 -959 -1776 -1001 -105 -83 -180 -197 -224 -338 -30 -96 -32\n-261 -5 -360 39 -142 139 -289 255 -374 57 -42 1653 -934 1766 -987 351 -165\n781 -17 950 326 53 107 69 181 69 325 1 194 -16 216 -284 364 -189 104 -218\n112 -277 76 -61 -37 -67 -57 -73 -235 -4 -133 -8 -166 -23 -188 -27 -42 -75\n-67 -128 -67 -40 0 -79 19 -340 164 -306 170 -1022 569 -1121 625 -32 18 -67\n46 -79 62 -40 57 -34 143 14 186 12 12 236 140 497 286 1036 577 980 547 1027\n547 50 0 87 -16 122 -54 23 -25 26 -37 33 -174 10 -173 24 -239 78 -348 87\n-178 266 -317 475 -369 133 -33 321 -17 448 37 29 12 297 159 597 326 300 167\n684 381 854 475 172 96 335 194 370 223 211 174 297 472 211 730 -35 105 -75\n173 -149 251 -71 77 -121 111 -316 220 -80 44 -442 246 -805 448 -362 202\n-695 385 -740 406 -137 65 -295 84 -446 54z"/>\n<path d="M4055 4669 c-334 -32 -519 -171 -585 -440 -17 -66 -23 -129 -27 -291\nl-6 -208 -183 0 -184 0 0 -280 0 -280 185 0 185 0 0 -1000 0 -1000 335 0 335\n0 0 1000 0 1000 429 0 430 0 3 -732 c4 -719 4 -735 26 -813 51 -184 139 -302\n276 -369 136 -67 265 -86 579 -86 l207 0 0 284 0 284 -128 4 c-110 3 -134 7\n-177 28 -53 27 -88 70 -105 129 -6 22 -10 271 -10 654 l0 617 205 0 205 0 0\n280 0 280 -205 0 -205 0 0 310 0 310 -335 0 -335 0 0 -310 0 -310 -430 0 -430\n0 0 113 c1 191 29 259 128 305 51 23 72 27 195 30 l137 4 0 249 0 249 -212 -1\nc-117 -1 -253 -6 -303 -10z"/>\n<path d="M1180 3769 c-572 -43 -1039 -469 -1157 -1056 -27 -133 -24 -414 5\n-550 101 -470 404 -821 830 -963 434 -144 879 -59 1181 227 l71 68 0 -162 0\n-163 325 0 325 0 0 1280 0 1280 -325 0 -325 0 0 -156 0 -156 -67 62 c-182 167\n-409 270 -628 285 -44 3 -91 7 -105 9 -14 1 -72 -1 -130 -5z m435 -623 c242\n-82 412 -268 471 -513 23 -94 23 -276 -1 -368 -53 -210 -183 -374 -371 -468\n-113 -57 -180 -72 -334 -71 -125 0 -141 2 -223 31 -120 42 -189 85 -277 173\n-88 89 -131 157 -173 277 -25 75 -31 107 -35 213 -5 152 15 248 80 380 59 120\n178 239 300 300 130 64 207 81 358 76 104 -3 139 -8 205 -30z"/>\n<path d="M7550 3769 c-611 -42 -1096 -452 -1222 -1034 -27 -128 -35 -370 -14\n-500 31 -207 96 -378 202 -537 188 -283 476 -466 847 -540 91 -18 146 -22 297\n-22 199 0 308 14 470 61 363 104 662 360 802 685 20 47 40 98 44 112 l6 26\n-339 0 -339 0 -49 -62 c-93 -117 -230 -206 -375 -245 -49 -13 -102 -18 -210\n-17 -129 0 -154 3 -225 27 -133 44 -242 119 -318 219 -49 65 -100 174 -117\n248 -6 30 -14 63 -17 73 -4 16 49 17 1011 17 l1015 0 8 38 c12 61 6 270 -12\n371 -73 422 -323 758 -700 942 -233 114 -478 158 -765 138z m335 -589 c192\n-60 328 -185 400 -367 12 -32 26 -75 29 -95 l7 -38 -661 0 c-363 0 -660 4\n-660 8 0 5 7 33 16 63 63 213 238 379 464 439 103 28 302 23 405 -10z"/>\n<path d="M10505 3770 c-162 -15 -292 -76 -412 -196 l-83 -81 0 118 0 119 -325\n0 -325 0 0 -1280 0 -1280 335 0 334 0 3 822 3 823 23 66 c98 291 365 379 707\n232 44 -19 86 -37 93 -40 9 -4 12 64 12 320 l0 325 -63 21 c-57 19 -88 25\n-202 34 -16 2 -61 0 -100 -3z"/>\n<path d="M12570 3769 c-152 -11 -268 -43 -405 -112 -102 -51 -161 -93 -257\n-186 l-78 -74 0 166 0 167 -325 0 -325 0 0 -1805 0 -1805 340 0 340 0 0 671 0\n672 48 -45 c299 -280 733 -361 1164 -218 179 60 331 153 474 292 263 254 398\n583 397 968 -1 289 -73 531 -228 765 -204 305 -564 518 -914 541 -47 3 -97 6\n-111 8 -14 1 -68 -1 -120 -5z m126 -600 c350 -64 604 -396 581 -759 -8 -120\n-28 -193 -80 -300 -54 -111 -185 -247 -292 -302 -263 -136 -558 -111 -792 66\n-112 85 -210 236 -250 386 -22 82 -24 290 -4 369 71 279 272 476 546 536 75\n17 212 19 291 4z"/>\n<path d="M15375 3768 c-516 -36 -956 -382 -1119 -881 -51 -158 -61 -228 -61\n-437 0 -151 4 -214 18 -279 61 -285 166 -483 356 -672 230 -231 494 -347 831\n-366 314 -17 604 86 818 291 l82 79 0 -167 0 -166 325 0 325 0 0 1280 0 1280\n-325 0 -325 0 0 -162 0 -161 -70 69 c-221 217 -510 316 -855 292z m355 -603\nc335 -71 560 -356 560 -713 0 -132 -20 -224 -77 -342 -39 -81 -58 -108 -132\n-180 -95 -94 -175 -142 -301 -182 -108 -33 -302 -33 -410 0 -128 40 -206 88\n-300 182 -147 147 -212 305 -212 520 -1 314 169 571 452 684 114 46 289 59\n420 31z"/>\n<path d="M17294 3558 c46 -95 291 -593 545 -1106 l461 -932 -320 -691 c-176\n-380 -320 -692 -320 -695 0 -2 156 -3 346 -2 l345 3 820 1795 c450 987 819\n1796 819 1797 0 2 -158 2 -352 1 l-352 -3 -325 -733 c-179 -402 -328 -729\n-332 -725 -3 5 -147 335 -320 735 l-314 728 -392 0 -392 0 83 -172z"/>\n</g>\n</svg>'},fa="afterpay",ma="zipmoney";function va(e){return pa[e]}var ga="50px",Ca="320px",ya="10px",ba="pointer",Ea="#b2fce4",wa="none",_a="afterpay-checkout-button",ka=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;this.createWidgetStructure(null===(t=null==e?void 0:e.customisation)||void 0===t?void 0:t.base),this.widget=new Jr("#".concat(_a),null==e?void 0:e.instruction_token,null==e?void 0:e.payload.gateway_id),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.setMeta(null==e?void 0:e.payload.meta),da.hide(),ha.expired.subscribe((function(){n.widget.close(),da.hide()})),this.widget.on("finish",(function(e){var t;globalThis.expired||da.show(),null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",ott_token:e.payment_source_token}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.on("error",(function(e){var t;globalThis.expired||da.show(),null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.event)||"error in afterpay checkout widget"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"createWidgetStructure",value:function(e){var t=document.createElement("button");t.id=_a,t.type="button";var n=(null==e?void 0:e.height)||ga;t.style.marginLeft="auto",t.style.height=n,t.style.width=(null==e?void 0:e.width)||Ca,t.style.borderRadius=(null==e?void 0:e.borderRadius)||ya,t.style.border=wa,t.style.backgroundColor=(null==e?void 0:e.background_color)||Ea,t.style.padding="0",t.style.cursor=ba,t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.innerHTML="".concat(va(fa));var i=document.createElement("div");i.style.width="100%",i.style.padding="10px",i.style.paddingTop="0";var r=document.getElementById(this.formSelector.split("#").join(""));i.appendChild(t),r.appendChild(i)}}])}(la);ka=ne([ua("instruction.afterpay_checkout_form.show")],ka);var Sa="300px",Ta=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){this.setStyles(),this.widget=new ws(this.formSelector,e.payload.charge_token,e.payload.meta),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.load()}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"setStyles",value:function(){var e=document.createElement("div");e.id="button",e.style.width=Sa;var t=document.getElementById(this.formSelector.split("#").join(""));t.appendChild(e),t.style.textAlign="right",t.style.display="flex",t.style.justifyContent="right"}}])}(la);Ta=ne([ua("instruction.afterpay_wallet_form.show")],Ta);var Ma=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t=this;this.setStyles(),this.widget=new ws(this.formSelector,null==e?void 0:e.payload.charge_token,null==e?void 0:e.payload.meta),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.load(),da.hide(),this.widget.onPaymentSuccessful((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",message:"The payment was successful"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentError((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.data.message)||"error in apple pay widget"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentInReview((function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"in_review",message:"The payment is on fraud review"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"setStyles",value:function(){var e=document.getElementById(this.formSelector.split("#").join(""));e.style.textAlign="right",e.style.display="flex",e.style.justifyContent="right"}}])}(la);Ma=ne([ua("instruction.applepay_wallet_form.show")],Ma);var Aa=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;this.widget=new aa(this.formSelector,null==e?void 0:e.instruction_token,"not_configured","bank_account"),(null===(t=e.payload.customisation)||void 0===t?void 0:t.base)&&this.widget.setStyles(e.payload.customisation.base),this.widget.setEnv(this.getEnv(null==e?void 0:e.instruction_token)),this.widget.load(),this.widget.useAutoResize(),this.widget.on("finish",(function(e){n.api.checkout().callback({event:"callback.bank_account_form.ott_created",payload:{ott_token:e.payment_source}}).then((function(e){return console.info("callback.bank_account_form.ott_created: ok")})).catch((function(e){return console.error("callback.bank_account_form.ott_created: error",e)}))})),this.widget.on("validationError",(function(e){n.api.checkout().callback({event:"callback.bank_account_form.ott_created",payload:{message:"Validation error during form submission process"}}).then((function(e){return console.info("callback.bank_account_form.ott_created: ok")})).catch((function(e){return console.error("callback.bank_account_form.ott_created: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}}])}(la);Aa=ne([ua("instruction.bank_account_form.show")],Aa);for(var Na,Oa=function(e){var t,n,i=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}(e),r=i[0],o=i[1],s=new Ra(function(e,t,n){return 3*(t+n)/4-n}(0,r,o)),a=0,c=o>0?r-4:r;for(n=0;n<c;n+=4)t=Ia[e.charCodeAt(n)]<<18|Ia[e.charCodeAt(n+1)]<<12|Ia[e.charCodeAt(n+2)]<<6|Ia[e.charCodeAt(n+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===o&&(t=Ia[e.charCodeAt(n)]<<2|Ia[e.charCodeAt(n+1)]>>4,s[a++]=255&t);1===o&&(t=Ia[e.charCodeAt(n)]<<10|Ia[e.charCodeAt(n+1)]<<4|Ia[e.charCodeAt(n+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},Ia=[],Ra="undefined"!=typeof Uint8Array?Uint8Array:Array,xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pa=0;Pa<64;++Pa)Ia[xa.charCodeAt(Pa)]=Pa;Ia["-".charCodeAt(0)]=62,Ia["_".charCodeAt(0)]=63,function(e){e.HTML="html",e.URL="url",e.STANDALONE_3DS="standalone_3ds"}(Na||(Na={}));var La,Da=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t=this,n=this.decodeBase64Token(e.payload._3ds_token),i=new sr(this.formSelector,e.payload._3ds_token);i.setEnv(this.getEnv(e.instruction_token)),i.on("chargeAuth",(function(){return da.show()})),i.on("chargeAuthChallenge",(function(){n.format===Na.STANDALONE_3DS&&(da.hide(),t.observeIframeAndResize())})),i.on("chargeAuthDecoupled",(function(){n.format===Na.STANDALONE_3DS&&(da.hide(),t.observeIframeAndResize())})),i.on("chargeAuthSuccess",(function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",message:"The authentication was successful"}}).then((function(){return console.info("callback.child_widget.status: - chargeAuthSuccess")})).catch((function(e){return console.error("callback.child_widget.status - chargeAuthSuccess: error",e)})),da.show()})),i.on("chargeAuthReject",(function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:"The authentication was not successful"}}).then((function(){return console.info("callback.child_widget.status: - chargeAuthReject")})).catch((function(e){return console.error("callback.child_widget.status - chargeAuthReject: error",e)})),da.show()})),i.on("error",(function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.event)||"error in 3ds widget"}}).then((function(){return console.info("callback.child_widget.status: - errorEvent")})).catch((function(e){return console.error("callback.child_widget.status - errorEvent: error",e)})),da.show()})),i.load(),n.format!==Na.STANDALONE_3DS&&da.hide()}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"decodeBase64Token",value:function(e){try{var t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(4*Math.ceil(e.length/4),"="),n=Oa(t),i=(new TextDecoder).decode(n);return JSON.parse(i)}catch(e){throw console.error("Failed to decode _3ds_token:",e),e}}},{key:"observeIframeAndResize",value:function(){var e=document.querySelector("#standaloneWidget");e&&(e.style.display="flex",e.style.justifyContent="center");var t=document.querySelector("#paydock_authorization_iframe");if(t){var n=new MutationObserver((function(){var e=t.querySelector("iframe");e&&(e.style.width="100%",e.style.height="500px",e.style.border="none",e.style.display="block",console.info("3DS iframe resized",e),n.disconnect())}));n.observe(t,{childList:!0,subtree:!0})}else console.warn("Container not found")}}])}(la);Da=ne([ua("instruction.canvas_3ds_form.show")],Da),function(e){e.BTN_COLOR="#00A040",e.BORDER_COLOR="#BDBDBD",e.BG_COLOR="#EFF2F7",e.TEXT_COLOR="#000000",e.FONT_FAMILY="sans-serif",e.FONT_SIZE="16px"}(La||(La={}));var Ua=function(t){function r(){return i(this,r),n(this,r,arguments)}return d(r,t),o(r,[{key:"handle",value:function(t){var n,i=this;if(this.widget=new aa(this.formSelector,null==t?void 0:t.instruction_token,"not_configured","card",e.PURPOSE.CARD_PAYMENT_SOURCE_WITH_CVV),this.widget.setStyles(c({button_color:La.BTN_COLOR,background_color:La.BG_COLOR,border_color:La.BORDER_COLOR,text_color:La.TEXT_COLOR,font_size:La.FONT_SIZE,font_family:La.FONT_FAMILY},(null===(n=t.payload.customisation)||void 0===n?void 0:n.base)||{})),this.widget.setFormFields(["card_name*","expire_month*","expire_year*","card_ccv*"]),t.payload.form_fields){var r=Object.entries(t.payload.form_fields).reduce((function(e,t){var n=m(t,2),i=n[0],r=n[1];return"enable"===r?[].concat(g(e),[i]):"required"===r?[].concat(g(e),[i+"*"]):void 0}),[]);this.widget.setFormFields(r)}this.widget.setEnv(this.getEnv(t.instruction_token)),this.widget.load(),this.widget.useAutoResize(),this.widget.on("afterLoad",(function(e){i.timeoutId=setTimeout((function(){da.hide()}),500)})),this.widget.on("submit",(function(e){return da.show()})),this.widget.on("finish",(function(e){var n,r=new Ni(t.instruction_token);null===(n=i.checkoutWidget)||void 0===n||n.fetchInstruction(),i.api.checkout().callback({event:"callback.card_form.ott_created",payload:{status:"success",ott_token:e.payment_source,browser_details:r.getBrowserDetails()}}).then((function(e){return console.info("callback.card_form.ott_created: ok")})).catch((function(e){return console.error("callback.card_form.ott_created: error",e)}))})),this.widget.on("validationError",(function(e){var t;null===(t=i.checkoutWidget)||void 0===t||t.fetchInstruction(),i.api.checkout().callback({event:"callback.card_form.ott_created",payload:{status:"error",message:e.event}}).then((function(e){return console.info("callback.card_form.ott_created: ok")})).catch((function(e){return console.error("callback.card_form.ott_created: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML="",clearTimeout(this.timeoutId)}}])}(la);Ua=ne([ua("instruction.card_form.show")],Ua);var Fa={card:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="card" type="radio" name="radio-group" />\n <h2 class="payment-source__title">Pay with Credit or Debit card</h2>\n </div>\n </li>\n </label>',bank_account:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="bank_account" type="radio" name="radio-group" />\n <h2 class="payment-source__title">Pay Bank Account</h2>\n </div>\n </li>\n </label>',paypal_wallet:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="paypal_wallet" type="radio" name="radio-group">\n <svg xmlns="http://www.w3.org/2000/svg" height="28" viewBox="0 0 338.667 89.785" xmlns:v="https://vecta.io/nano"><g transform="translate(936.898 -21.779)"><path clip-path="none" d="M-828.604 39.734c-.697 0-1.289.506-1.398 1.195l-8.068 51.165a1.31 1.31 0 0 0 1.294 1.513h9.568c.696 0 1.289-.507 1.398-1.195l2.37-15.025c.108-.688.701-1.195 1.398-1.195h8.699c10.164 0 18.792-7.416 20.368-17.465 1.589-10.134-6.328-18.971-17.549-18.993zm9.301 11.422h6.96c5.73 0 7.596 3.381 7.006 7.12-.59 3.747-3.488 6.507-9.031 6.507h-7.084zm45.788 3.478c-2.416.009-5.196.504-8.317 1.804-7.159 2.984-10.597 9.151-12.057 13.647 0 0-4.647 13.717 5.852 21.253 0 0 9.737 7.255 20.698-.447l-.189 1.203a1.31 1.31 0 0 0 1.292 1.513h9.083c.697 0 1.289-.507 1.398-1.195l5.525-35.038a1.31 1.31 0 0 0-1.292-1.515h-9.083c-.697 0-1.29.507-1.398 1.195l-.297 1.886s-3.967-4.333-11.216-4.306zm.297 11.067c1.043 0 1.997.144 2.853.419 3.919 1.258 6.141 5.023 5.498 9.104-.793 5.025-4.914 8.725-10.199 8.725-1.042 0-1.996-.143-2.853-.418-3.918-1.258-6.154-5.023-5.511-9.104.793-5.025 4.927-8.727 10.212-8.727z" fill="#003087"/><path clip-path="none" d="M-697.804 39.734c-.697 0-1.289.506-1.398 1.195l-8.068 51.165a1.31 1.31 0 0 0 1.294 1.513h9.568c.696 0 1.289-.507 1.398-1.195l2.37-15.025c.108-.688.701-1.195 1.398-1.195h8.699c10.164 0 18.791-7.416 20.366-17.465 1.59-10.134-6.326-18.971-17.547-18.993zm9.301 11.422h6.96c5.73 0 7.596 3.381 7.006 7.12-.59 3.747-3.487 6.507-9.031 6.507h-7.084zm45.787 3.478c-2.416.009-5.196.504-8.317 1.804-7.159 2.984-10.597 9.151-12.057 13.647 0 0-4.645 13.717 5.854 21.253 0 0 9.735 7.255 20.697-.447l-.189 1.203a1.31 1.31 0 0 0 1.294 1.513h9.082c.697 0 1.289-.507 1.398-1.195l5.527-35.038a1.31 1.31 0 0 0-1.294-1.515h-9.083c-.697 0-1.29.507-1.398 1.195l-.297 1.886s-3.967-4.333-11.216-4.306zm.297 11.067c1.043 0 1.997.144 2.853.419 3.919 1.258 6.141 5.023 5.498 9.104-.793 5.025-4.914 8.725-10.199 8.725-1.042 0-1.996-.143-2.853-.418-3.918-1.258-6.154-5.023-5.511-9.104.793-5.025 4.927-8.727 10.212-8.727z" fill="#0070e0"/><path clip-path="none" d="M-745.92 55.859c-.72 0-1.232.703-1.012 1.388l9.958 30.901-9.004 14.562c-.437.707.071 1.62.902 1.62h10.642a1.77 1.77 0 0 0 1.513-.854l27.811-46.007c.427-.707-.083-1.611-.909-1.611h-10.641a1.77 1.77 0 0 0-1.522.869l-10.947 18.482-5.557-18.345c-.181-.597-.732-1.006-1.355-1.006z" fill="#003087"/><path clip-path="none" d="M-609.107 39.734c-.696 0-1.289.507-1.398 1.195l-8.07 51.163a1.31 1.31 0 0 0 1.294 1.515h9.568c.696 0 1.289-.507 1.398-1.195l8.068-51.165a1.31 1.31 0 0 0-1.292-1.513z" fill="#0070e0"/><path clip-path="none" d="M-908.37 39.734a2.59 2.59 0 0 0-2.556 2.185l-4.247 26.936c.198-1.258 1.282-2.185 2.556-2.185h12.445c12.525 0 23.153-9.137 25.095-21.519a20.76 20.76 0 0 0 .245-2.793c-3.183-1.669-6.922-2.624-11.019-2.624z" fill="#001c64"/><path clip-path="none" d="M-874.832 42.359a20.76 20.76 0 0 1-.245 2.793c-1.942 12.382-12.571 21.519-25.095 21.519h-12.445c-1.273 0-2.358.926-2.556 2.185l-3.905 24.752-2.446 15.528a2.1 2.1 0 0 0 2.075 2.43h13.508a2.59 2.59 0 0 0 2.556-2.185l3.558-22.567a2.59 2.59 0 0 1 2.558-2.185h7.953c12.525 0 23.153-9.137 25.095-21.519 1.379-8.788-3.047-16.784-10.611-20.75z" fill="#0070e0"/><path clip-path="none" d="M-923.716 21.779c-1.273 0-2.358.926-2.556 2.183l-10.6 67.216c-.201 1.276.785 2.43 2.077 2.43h15.719l3.903-24.752 4.247-26.936a2.59 2.59 0 0 1 2.556-2.185h22.519c4.098 0 7.836.956 11.019 2.624.218-11.273-9.084-20.58-21.873-20.58z" fill="#003087"/></g></svg>\n </div>\n </li>\n </label>',googlepay_wallet:'<label class="payment-source">\n <li class="payment-source">\n <div max-height: "28px" class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="googlepay_wallet" type="radio" name="radio-group" />\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n width="80px" height="38px" viewBox="0 0 80 38.1" xml:space="preserve">\n <style type="text/css">\n .st0{fill:#5F6368;}\n .st1{fill:#4285F4;}\n .st2{fill:#34A853;}\n .st3{fill:#FBBC04;}\n .st4{fill:#EA4335;}\n </style>\n <path class="st0" d="M37.8,19.7V29h-3V6h7.8c1.9,0,3.7,0.7,5.1,2c1.4,1.2,2.1,3,2.1,4.9c0,1.9-0.7,3.6-2.1,4.9c-1.4,1.3-3.1,2-5.1,2\n L37.8,19.7L37.8,19.7z M37.8,8.8v8h5c1.1,0,2.2-0.4,2.9-1.2c1.6-1.5,1.6-4,0.1-5.5c0,0-0.1-0.1-0.1-0.1c-0.8-0.8-1.8-1.3-2.9-1.2\n L37.8,8.8L37.8,8.8z"/>\n <path class="st0" d="M56.7,12.8c2.2,0,3.9,0.6,5.2,1.8s1.9,2.8,1.9,4.8V29H61v-2.2h-0.1c-1.2,1.8-2.9,2.7-4.9,2.7\n c-1.7,0-3.2-0.5-4.4-1.5c-1.1-1-1.8-2.4-1.8-3.9c0-1.6,0.6-2.9,1.8-3.9c1.2-1,2.9-1.4,4.9-1.4c1.8,0,3.2,0.3,4.3,1v-0.7\n c0-1-0.4-2-1.2-2.6c-0.8-0.7-1.8-1.1-2.9-1.1c-1.7,0-3,0.7-3.9,2.1l-2.6-1.6C51.8,13.8,53.9,12.8,56.7,12.8z M52.9,24.2\n c0,0.8,0.4,1.5,1,1.9c0.7,0.5,1.5,0.8,2.3,0.8c1.2,0,2.4-0.5,3.3-1.4c1-0.9,1.5-2,1.5-3.2c-0.9-0.7-2.2-1.1-3.9-1.1\n c-1.2,0-2.2,0.3-3,0.9C53.3,22.6,52.9,23.3,52.9,24.2z"/>\n <path class="st0" d="M80,13.3l-9.9,22.7h-3l3.7-7.9l-6.5-14.7h3.2l4.7,11.3h0.1l4.6-11.3H80z"/>\n <path class="st1" d="M25.9,17.7c0-0.9-0.1-1.8-0.2-2.7H13.2v5.1h7.1c-0.3,1.6-1.2,3.1-2.6,4v3.3H22C24.5,25.1,25.9,21.7,25.9,17.7z"\n />\n <path class="st2" d="M13.2,30.6c3.6,0,6.6-1.2,8.8-3.2l-4.3-3.3c-1.2,0.8-2.7,1.3-4.5,1.3c-3.4,0-6.4-2.3-7.4-5.5H1.4v3.4\n C3.7,27.8,8.2,30.6,13.2,30.6z"/>\n <path class="st3" d="M5.8,19.9c-0.6-1.6-0.6-3.4,0-5.1v-3.4H1.4c-1.9,3.7-1.9,8.1,0,11.9L5.8,19.9z"/>\n <path class="st4" d="M13.2,9.4c1.9,0,3.7,0.7,5.1,2l0,0l3.8-3.8c-2.4-2.2-5.6-3.5-8.8-3.4c-5,0-9.6,2.8-11.8,7.3l4.4,3.4\n C6.8,11.7,9.8,9.4,13.2,9.4z"/>\n </svg>\n </div>\n </li>\n </label>',flypay:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="flypay" type="radio" name="radio-group" />\n <div class="payment-source__icon">\n <svg xmlns="http://www.w3.org/2000/svg" height="38" viewBox="0 0 82 40" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18.2312 5.46959C18.2312 4.98803 18.6216 4.59766 19.1031 4.59766H77.3212C80.3349 4.59766 82.5618 7.40629 81.8747 10.3406L77.3202 29.7913C76.5899 32.9099 73.8086 35.1152 70.6056 35.1152H34.1637C33.6822 35.1152 33.2918 34.7248 33.2918 34.2432C33.2918 33.7617 33.6822 33.3713 34.1637 33.3713H70.6056C72.9986 33.3713 75.0766 31.7237 75.6222 29.3937L80.1768 9.94303C80.6077 8.10286 79.2111 6.34151 77.3212 6.34151H19.1031C18.6216 6.34151 18.2312 5.95114 18.2312 5.46959Z" fill="black"/>\n <path d="M4.29622 16.0912V27.204H0V13.6759C0 7.20014 3.7341 4.69238 7.7376 4.69238H11.5729V8.47799H7.7376C4.9845 8.47799 4.29622 11.0155 4.29622 12.2865H9.44925V16.0912H4.29622Z" fill="black"/>\n <path d="M17.2811 4.677L13.0007 5.78525V27.1886H17.2811V4.677Z" fill="black"/>\n <path d="M32.9749 29.2495V12.2073L28.7738 13.4755V19.579C28.7738 22.2741 28.0128 23.5424 25.9202 23.5424C23.8275 23.5424 23.1458 21.957 23.1458 20.1339V12.2073L19.1033 13.4755V20.451C19.1033 22.0363 19.3601 24.0179 21.2435 25.7618C23.3944 27.7535 27.0299 27.4 28.7738 26.7923V28.3776C28.7738 31.9287 27.7433 33.1336 25.0482 33.1336V36.9384C30.3591 36.9384 32.9749 33.9262 32.9749 29.2495Z" fill="black"/>\n <path d="M67.6141 27.1889H64.1264L65.6302 21.3583L62.72 12.2192H66.1873L68.0897 18.311L73.1558 12.2192H76.809L69.0409 21.6442L67.6141 27.1889Z" fill="black"/>\n <path d="M58.3963 23.8804H52.1572L50.166 27.1889H46.5293L56.4376 12.2192H59.9253L62.1448 27.1889H58.7363L58.3963 23.8804ZM57.8959 21.006L57.3095 16.3293L54.2181 21.006H57.8959Z" fill="black"/>\n <path d="M39.0708 27.1886H35.6699L39.1218 12.219H45.2077C49.3432 12.219 50.6898 15.7935 49.2718 19.256C47.7393 22.9981 43.469 22.5543 40.1532 22.5543L39.0708 27.1886ZM40.6637 19.8061C42.0281 19.8061 43.578 19.9845 44.8707 19.4997C46.1635 19.015 46.6087 18.4033 46.6087 16.9632C46.6087 15.3689 45.0509 15.2193 43.8905 15.2193H41.6848L40.6637 19.8061Z" fill="black"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M23.2249 0.713641C23.2249 0.319643 23.5443 0.000244169 23.9382 0.000244203L47.7181 0.000246282C48.1121 0.000246316 48.4315 0.319645 48.4315 0.713643C48.4315 1.10764 48.1121 1.42704 47.7181 1.42704L23.9382 1.42704C23.5443 1.42704 23.2249 1.10764 23.2249 0.713641Z" fill="black"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M39.2368 38.6028C39.2368 38.2088 39.5562 37.8894 39.9502 37.8894L63.7301 37.8894C64.1241 37.8894 64.4435 38.2088 64.4435 38.6028C64.4435 38.9968 64.1241 39.3162 63.7301 39.3162L39.9502 39.3162C39.5562 39.3162 39.2368 38.9968 39.2368 38.6028Z" fill="black"/>\n </svg>\n </div>\n </div>\n </li>\n </label>',zip_checkout:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="zip_checkout" type="radio" name="radio-group" />\n <svg height="30" viewBox="0 0 768 285" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0)">\n <path d="M19.53 227.27L26.19 281.53H259.36L251.73 219.39H143.01L142.06 211.69L242.19 141.72L235.5 87.3601H2.34998L9.97998 149.49H118.88L119.83 157.26L19.53 227.27Z" fill="black"/>\n <path d="M262.59 87.3601L286.44 281.53H519.78L495.93 87.3601H262.59Z" fill="#AA8FFF"/>\n <path d="M764.47 157.26C759.09 113.62 724.81 87.1701 678.21 87.3601H523L546.84 281.54H616.67L611.89 242.7H685.78C743.93 242.69 770.54 206.46 764.47 157.26ZM678.23 188.26L605.23 188.34L599.51 141.74L672.92 141.8C690.18 142.01 699.01 151.73 700.44 165.03C701.32 173.59 697.4 188.25 678.23 188.25V188.26Z" fill="black"/>\n <path d="M332.303 61.5598C344.584 48.3762 342.443 26.4212 327.522 12.522C312.601 -1.37727 290.549 -1.95741 278.269 11.2262C265.988 24.4098 268.129 46.3647 283.05 60.264C297.971 74.1632 320.023 74.7434 332.303 61.5598Z" fill="black"/>\n </g>\n <defs>\n <clipPath id="clip0">\n <rect width="768" height="285" fill="white"/>\n </clipPath>\n </defs>\n </svg>\n </div>\n </li>\n ',applepay_wallet:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="applepay_wallet" type="radio" name="radio-group" />\n <svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n width="78px" height="32px" viewBox="0 0 512 210.2" xml:space="preserve">\n <path id="XMLID_34_" d="M93.6,27.1C87.6,34.2,78,39.8,68.4,39c-1.2-9.6,3.5-19.8,9-26.1c6-7.3,16.5-12.5,25-12.9\n C103.4,10,99.5,19.8,93.6,27.1 M102.3,40.9c-13.9-0.8-25.8,7.9-32.4,7.9c-6.7,0-16.8-7.5-27.8-7.3c-14.3,0.2-27.6,8.3-34.9,21.2\n c-15,25.8-3.9,64,10.6,85c7.1,10.4,15.6,21.8,26.8,21.4c10.6-0.4,14.8-6.9,27.6-6.9c12.9,0,16.6,6.9,27.8,6.7\n c11.6-0.2,18.9-10.4,26-20.8c8.1-11.8,11.4-23.3,11.6-23.9c-0.2-0.2-22.4-8.7-22.6-34.3c-0.2-21.4,17.5-31.6,18.3-32.2\n C123.3,42.9,107.7,41.3,102.3,40.9 M182.6,11.9v155.9h24.2v-53.3h33.5c30.6,0,52.1-21,52.1-51.4c0-30.4-21.1-51.2-51.3-51.2H182.6z\n M206.8,32.3h27.9c21,0,33,11.2,33,30.9c0,19.7-12,31-33.1,31h-27.8V32.3z M336.6,169c15.2,0,29.3-7.7,35.7-19.9h0.5v18.7h22.4V90.2\n c0-22.5-18-37-45.7-37c-25.7,0-44.7,14.7-45.4,34.9h21.8c1.8-9.6,10.7-15.9,22.9-15.9c14.8,0,23.1,6.9,23.1,19.6v8.6l-30.2,1.8\n c-28.1,1.7-43.3,13.2-43.3,33.2C298.4,155.6,314.1,169,336.6,169z M343.1,150.5c-12.9,0-21.1-6.2-21.1-15.7c0-9.8,7.9-15.5,23-16.4\n l26.9-1.7v8.8C371.9,140.1,359.5,150.5,343.1,150.5z M425.1,210.2c23.6,0,34.7-9,44.4-36.3L512,54.7h-24.6l-28.5,92.1h-0.5\n l-28.5-92.1h-25.3l41,113.5l-2.2,6.9c-3.7,11.7-9.7,16.2-20.4,16.2c-1.9,0-5.6-0.2-7.1-0.4v18.7C417.3,210,423.3,210.2,425.1,210.2z\n "/>\n </svg>\n </div>\n </li>\n </label>',afterpay_wallet:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="afterpay_wallet" type="radio" name="radio-group">\n '.concat(va(fa),"\n </div>\n </li>\n </label>"),afterpay_checkout:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="afterpay_checkout" type="radio" name="radio-group">\n '.concat(va(fa),"\n </div>\n </li>\n </label>")},Ha="applepay_wallet",ja=["card","afterpay_checkout","applepay_wallet","googlepay_wallet","paypal_wallet","zip_checkout"],Ba=function(){return o((function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];i(this,e),this.methods=n,this.styles=r,this.chosen=o,this.window=window,this.env=X,a||(this.container=new Di(t),this.iFrame=new Ui(this.container),this.setEnv(s),this.init())}),[{key:"init",value:function(){var e=this;this.setPaymentMethodsOrder(),this.setStylesToStandaloneWidget(),new Promise((function(t,n){var i,r=[],o=s(e.methods);try{for(o.s();!(i=o.n()).done;){var a=i.value;(a!==Ha||e.isApplePaySupported())&&r.push(Fa[a])}}catch(e){o.e(e)}finally{o.f()}t(r.join(" "))})).then((function(t){var n=e.setStyles(t);da.show(),e.iFrame.loadFromHtml(n);var i=e.iFrame.getElement(),r=i.contentDocument||i.contentWindow.document;"complete"===r.readyState?(e.setListenerButtons(r),e.iFrame.setIframeHeight(i,r,".wrap")):e.iFrame.getElement().addEventListener("load",(function(t){e.setListenerButtons(r),e.iFrame.setIframeHeight(i,r,".wrap")}))}))}},{key:"setListenerButtons",value:function(e){var t=this,n="";da.hide();var i,r=s(e.querySelectorAll("[pm-button]"));try{for(r.s();!(i=r.n()).done;){i.value.addEventListener("click",(function(e){var i=e.target.getAttribute("pm-button");n===i||t.disablePaymentMethodOptions||(t.chosen(i),n=i,da.show())}))}}catch(e){r.e(e)}finally{r.f()}}},{key:"setEnv",value:function(e){var t=De.validateJWT(e);if(!t)throw new Error("Invalid instruction token.");return De.extractEnv(t.body)}},{key:"setStyles",value:function(e){var t,n,i,r,o,s,a="\n<style>\n @import url('https://fonts.cdnfonts.com/css/segoe-ui-4');\n @import url('https://fonts.cdnfonts.com/css/droid-sans-2');\n @import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');\n @import url('https://fonts.googleapis.com/css2?family=Cantarell&family=Fira+Sans&family=Oxygen&family=Roboto&family=Ubuntu&display=swap');\n \n /* RESET DEFAULT STYLES */\n *,\n *:before,\n *:after {\n box-sizing: border-box;\n }\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video,\n input {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n\n body {\n line-height: 1;\n }\n\n ol,\n ul {\n list-style: none;\n }\n\n ul {\n padding: 0;\n margin: 0;\n }\n\n /* MAIN STYLES */\n .wrap {\n padding: 10px;\n background-color: {{background_color}};\n }\n\n .widget-body {\n background-color: #fff;\n border: 1px solid {{border_color}};\n }\n\n .payment-source {\n cursor: pointer;\n padding: 1em 0.8em;\n display: flex;\n align-items: center;\n height: 70px;\n }\n\n .payment-source:not(:last-child) {\n border-bottom: 1px solid {{border_color}};\n }\n\n .payment-source__wrap {\n display: flex;\n align-items: center;\n font-family: {{font_family}};\n font-size: {{font_size}};\n color: {{text_color}}\n }\n\n .payment-source__radio {\n margin-right: 2em;\n width: 18px;\n min-width: 18px;\n height: 18px;\n border: 1px solid {{button_color}};\n border-radius: 50%;\n appearance: none;\n cursor: pointer;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n }\n }\n\n .payment-source__radio::before {\n content: \"\";\n display: block;\n width: 100%;\n height: 100%;\n background-color: #fff;\n border-radius: 50%;\n }\n\n .payment-source__radio:checked::before {\n border: 4px solid {{button_color}};\n outline: 1px solid {{button_color}};\n }\n\n .payment-source__title {\n margin-right: 2em;\n font-weight: 400;\n line-height: 1.2;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n font-size: 14px;\n }\n }\n\n .payment-source__icon {\n margin-right: 2em;\n max-height: 35px;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n }\n }\n\n .payment-source .card__scheme {\n margin-left: auto;\n display: flex;\n align-items: center;\n }\n\n .payment-source .card__scheme__item:not(:last-child) {\n margin-right: 10px;\n }\n\n .payment-source .card__scheme__img {\n max-width: 50px;\n\n @media screen and (max-width: 460px) {\n max-width: 40px;\n }\n\n @media screen and (max-width: 410px) {\n max-width: 30px;\n }\n }\n\n .payment-source__form {\n margin-top: 1em;\n margin-bottom: 1em;\n margin-left: calc(2em + 18px);\n\n @media screen and (max-width: 380px) {\n margin-left: calc(1em + 18px);\n }\n }\n\n .payment-source__form .form-group:not(:last-child) {\n margin-bottom: 1.5em;\n }\n\n .payment-source__form .form-control {\n padding: 10px 2px 10px 10px;\n height: 40px;\n background: #F9F9F9;\n border: 1px solid {{border_color}};\n }\n\n .payment-source__form .form-control:not(:last-child) {\n margin-right: 1.5em;\n }\n\n .payment-source__form .form-control.col-12 {\n width: calc(100% - 1.5em);\n }\n\n .payment-source__form .form-control.col-3 {\n width: calc(33.33% - 1.5em);\n }\n\n .footer__pay-btn {\n margin-left: auto;\n padding: 10px 2em;\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #F6F0EB;\n font-size: 16px;\n background-color: {{button_color}};\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.10);\n border: none;\n border-radius: 6px;\n cursor: pointer;\n }\n\n .footer__pay-btn--paypal {\n padding: 5px 2em;\n background-color: #FFC43A;\n }\n\n .footer__pay-btn--gpay {\n font-size: 22px;\n }\n\n .footer__pay-btn--gpay img {\n margin-left: 5px;\n }\n\n .footer__pay-btn img {\n max-height: 100%;\n }\n</style>\n<main class=\"wrap\">\n <div class=\"widget-body\">\n <ul class=\"payment-sources__list\">\n {{paymentMethods}}\n </ul>\n </div>\n</main>\n</div>\n".replace("{{paymentMethods}}",e),c=null===document||void 0===document?void 0:document.querySelector(dc.LIST);return c&&(c.style.backgroundColor=this.styles.background_color||La.BG_COLOR),a=(null===(t=this.styles)||void 0===t?void 0:t.button_color)?a.replace(/{{button_color}}/g,this.styles.button_color):a.replace(/{{button_color}}/g,La.BTN_COLOR),a=(null===(n=this.styles)||void 0===n?void 0:n.border_color)?a.replace(/{{border_color}}/g,this.styles.border_color):a.replace(/{{border_color}}/g,La.BORDER_COLOR),a=(null===(i=this.styles)||void 0===i?void 0:i.background_color)?a.replace(/{{background_color}}/g,this.styles.background_color):a.replace(/{{background_color}}/g,La.BG_COLOR),a=(null===(r=this.styles)||void 0===r?void 0:r.font_family)?a.replace(/{{font_family}}/g,this.styles.font_family):a.replace(/{{font_family}}/g,La.FONT_FAMILY),a=(null===(o=this.styles)||void 0===o?void 0:o.font_size)?a.replace(/{{font_size}}/g,this.styles.font_size):a.replace(/{{font_size}}/g,La.FONT_SIZE),a=(null===(s=this.styles)||void 0===s?void 0:s.text_color)?a.replace(/{{text_color}}/g,this.styles.text_color):a.replace(/{{text_color}}/g,La.TEXT_COLOR)}},{key:"isApplePaySupported",value:function(){return window.ApplePaySession&&ApplePaySession.canMakePayments()}},{key:"setStylesToStandaloneWidget",value:function(){document.querySelector(dc.WIDGETS).style.backgroundColor=this.styles.background_color||La.BG_COLOR}},{key:"setPaymentMethodsOrder",value:function(){var e;if(!(null===(e=this.methods)||void 0===e?void 0:e.length))return this.methods;this.methods.sort((function(e,t){return ja.indexOf(e)-ja.indexOf(t)}))}},{key:"disablePaymentMethod",value:function(){var e;this.disablePaymentMethodOptions=!0;var t=null===document||void 0===document?void 0:document.querySelector("".concat(dc.LIST," iframe")),n=t.contentDocument||(null===(e=null==t?void 0:t.contentWindow)||void 0===e?void 0:e.document);if(n){var i,r=s(this.queryAllPaymentSource(n));try{for(r.s();!(i=r.n()).done;){i.value.style.cursor="not-allowed"}}catch(e){r.e(e)}finally{r.f()}var o,a=s(this.queryAllPaymentSourceRadioButtons(n));try{for(a.s();!(o=a.n()).done;){var c,l=o.value,u=s(this.queryAllPaymentSource(n));try{for(u.s();!(c=u.n()).done;){c.value.style.cursor="not-allowed"}}catch(e){u.e(e)}finally{u.f()}l.style.cursor="not-allowed",l.checked||(l.style.border="9px solid #EBEBE4"),l.disabled=!0,l.classList.add("disabled")}}catch(e){a.e(e)}finally{a.f()}}}},{key:"queryAllPaymentSource",value:function(e){return e.querySelectorAll(".payment-source")}},{key:"queryAllPaymentSourceRadioButtons",value:function(e){return e.querySelectorAll('input[type="radio"].payment-source__radio')}}])}(),za=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e,t){var n;new Ba("",[""],{},(function(){}),e.instruction_token,!0).disablePaymentMethod(),e.next_instruction&&(null===(n=this.checkoutWidget)||void 0===n||n.fetchInstruction()),"expired"===e.payload.status&&(globalThis.expired=!0,da.hide())}},{key:"destroy",value:function(){}}])}(la);za=ne([ua("instruction.disable_payment_method_event.emit")],za);var Wa=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;document.addEventListener(no.NAMESPACE,(function(e){switch(e.detail.type){case no.TYPES.FINTERPRINT_TOKEN_READY:n.api.checkout().callback({event:"callback.fraud_service.status",payload:{status:"success",fraud_service_token:e.detail.payload.token}}).then((function(){return console.info("callback.fraud_service.status: ok")})).catch((function(e){console.error("callback.fraud_service.status: ok",e),da.hide()}));break;case no.TYPES.FINGERPRINT_TOKEN_ERROR:n.api.checkout().callback({event:"callback.fraud_service.status",payload:{status:"error",message:e.detail.payload.code||"error in fraud service widget"}}).then((function(){return console.info("callback.fraud_service.status: ok")})).catch((function(e){da.hide(),console.error("callback.fraud_service.status: error",e)}));break;default:throw new Error("".concat(no.NAMESPACE," emitted an unsupported event: ").concat(JSON.stringify(e.detail),"."))}})),this.fps=new Co({environmentId:this.getEnv(e.instruction_token),mode:"live"}),this.fps.withAccessTokenStrategy(e.instruction_token).withForter({providerId:e.payload.gateway_id,csp:!1}),e.next_instruction&&(null===(t=this.checkoutWidget)||void 0===t||t.fetchInstruction())}},{key:"destroy",value:function(){}}])}(la);Wa=ne([ua("instruction.fraud_service.show")],Wa);var Va={TEXT_COLOR:"text_color",FONT_SIZE:"font_size",FONT_FAMILY:"font_family"},Ga=function(){return o((function e(t,n,r,o){i(this,e),this.title=n,this.message=r,this.type=o,this.window=window,this.env=X,this.container=new Di(t),this.iFrame=new Ui(this.container),this.link=new Pi("/message-widget"),this.link.setParams({title:n,message:r,type:o}),this.event=new Hi(window)}),[{key:"setEnv",value:function(e){this.link.setEnv(e)}},{key:"setStyles",value:function(e){for(var t in e)e[t]&&(-1!==yo.values(Va).indexOf(t)?this.link.setParams(a({},t,e[t])):console.warn("Widget::setStyle[s: unsupported style param ".concat(t)))}},{key:"load",value:function(){this.iFrame.load(this.link.getUrl(),{title:"Message widget"})}},{key:"useAutoResize",value:function(){var e=this;this.event.on(Fi.RESIZE,this.link.getParams().widget_id,(function(t){e.iFrame.getElement()&&(e.iFrame.getElement().scrolling="no",t.height&&e.iFrame.setStyle("height",t.height+2+"px"))}))}}])}(),qa=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n,i,r,o,s,a,c,l,u,d,h,p=this,f=new Ga(this.formSelector,null===(t=null==e?void 0:e.payload)||void 0===t?void 0:t.title,null===(n=null==e?void 0:e.payload)||void 0===n?void 0:n.message,null===(i=null==e?void 0:e.payload)||void 0===i?void 0:i.type);f.useAutoResize(),f.setEnv(this.getEnv(e.instruction_token)),f.setStyles({text_color:(null===(s=null===(o=null===(r=null==e?void 0:e.payload)||void 0===r?void 0:r.customisation)||void 0===o?void 0:o.base)||void 0===s?void 0:s.text_color)||La.TEXT_COLOR,font_size:(null===(l=null===(c=null===(a=null==e?void 0:e.payload)||void 0===a?void 0:a.customisation)||void 0===c?void 0:c.base)||void 0===l?void 0:l.font_size)||La.FONT_SIZE,font_family:(null===(h=null===(d=null===(u=null==e?void 0:e.payload)||void 0===u?void 0:u.customisation)||void 0===d?void 0:d.base)||void 0===h?void 0:h.font_family)||La.FONT_FAMILY}),f.load(),setTimeout((function(){var t;da.hide(),e.next_instruction&&(null===(t=p.checkoutWidget)||void 0===t||t.fetchInstruction())}),1500)}},{key:"destroy",value:function(){}}])}(la);qa=ne([ua("instruction.generic.show_message")],qa);var Ya=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t=this;this.setStyles(),this.widget=new ws(this.formSelector,null==e?void 0:e.payload.charge_token,null==e?void 0:e.payload.meta),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.load(),da.hide(),this.widget.onPaymentSuccessful((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",message:"The payment was successful"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentError((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.data.message)||"error in google pay widget"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentInReview((function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"in_review",message:"The payment is on fraud review"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"setStyles",value:function(){var e=document.getElementById(this.formSelector.split("#").join(""));e.style.textAlign="right",e.style.display="flex",e.style.justifyContent="right"}}])}(la);Ya=ne([ua("instruction.googlepay_wallet_form.show")],Ya);var Ka=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e,t){var n,i,r=null===(n=null==e?void 0:e.payload)||void 0===n?void 0:n.status,o=null==e?void 0:e.payload;switch(r){case"success":t.emit("paymentSuccessful",o);break;case"failure":t.emit("paymentFailure",o);break;case"expired":t.emit("paymentExpired",o)}null===(i=this.checkoutWidget)||void 0===i||i.finaliseCheckout()}},{key:"destroy",value:function(){}}])}(la);Ka=ne([ua("instruction.merchant_event.emit")],Ka);var Xa=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;new Ba(this.selector,e.payload.allowed_payment_method_types,(null===(t=e.payload.customisation)||void 0===t?void 0:t.base)||{},(function(e){var t;null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.payment_methods.chosen",payload:{payment_method_type:e}}).then((function(e){return console.info("callback.payment_methods.chosen: ok")})).catch((function(e){console.error("callback.payment_methods.chosen: error"),da.hide()}))}),e.instruction_token)}},{key:"destroy",value:function(){}}])}(la);Xa=ne([ua("instruction.payment_methods.show")],Xa);var $a=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t=this;this.setStyles(),this.widget=new ws(this.formSelector,null==e?void 0:e.payload.charge_token,null==e?void 0:e.payload.meta),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.load(),da.hide(),this.widget.onPaymentSuccessful((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",message:"The payment was successful"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: success",e)}))})),this.widget.onPaymentError((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.data.message)||"error in paypal widget"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentInReview((function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"in_review",message:"The payment is on fraud review"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))}))}},{key:"setStyles",value:function(){var e=document.getElementById(this.formSelector.split("#").join(""));e.style.textAlign="right",e.style.display="flex",e.style.justifyContent="right"}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}}])}(la);$a=ne([ua("instruction.paypal_wallet_form.show")],$a);var Ja="50px",Za="320px",Qa="10px",ec="pointer",tc="#1A0726",nc="none",ic="zip-checkout-button",rc=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;this.createWidgetStructure(null===(t=null==e?void 0:e.customisation)||void 0===t?void 0:t.base),this.widget=new $r("#".concat(ic),null==e?void 0:e.instruction_token,null==e?void 0:e.payload.gateway_id),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.setMeta(null==e?void 0:e.payload.meta),da.hide(),this.widget.on("finish",(function(e){var t;globalThis.expired||da.show(),null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",ott_token:e.payment_source_token}}).then((function(e){return console.info("callback.child_widget.status: ok")})).catch((function(e){console.error("callback.zip_checkout_form.ott_created: error",e),da.hide()}))})),this.widget.on("error",(function(e){var t;globalThis.expired||da.show(),null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.event)||"error in zip checkout widget"}}).then((function(e){return console.info("callback.child_widget.status: ok")})).catch((function(e){da.hide(),console.error("callback.zip_checkout_form.ott_created: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"createWidgetStructure",value:function(e){var t=document.createElement("button");t.id=ic,t.type="button",t.style.marginLeft="auto";var n=(null==e?void 0:e.height)||Ja;t.style.height=n,t.style.width=(null==e?void 0:e.width)||Za,t.style.borderRadius=(null==e?void 0:e.borderRadius)||Qa,t.style.border=nc,t.style.backgroundColor=(null==e?void 0:e.background_color)||tc,t.style.padding="0",t.style.cursor=ec,t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.innerHTML=va(ma).replace("{{iconHeight}}",n);var i=document.createElement("div");i.style.width="100%",i.style.padding="10px",i.style.paddingTop="0";var r=document.getElementById(this.formSelector.split("#").join(""));i.appendChild(t),r.appendChild(i)}}])}(la);rc=ne([ua("instruction.zip_checkout_form.show")],rc);var oc=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t)}(ca);function sc(e){switch(e){case 1:case 2:return new oc;default:return null}}oc=ne([function(e){return function(t){return function(t){function r(){var t;return i(this,r),(t=n(this,r,arguments)).instructions=e,t}return d(r,t),o(r)}(t)}}([ka,Ta,Ma,Aa,Da,Ua,Wa,qa,Ya,Ka,Xa,$a,rc,rc,za])],oc);var ac,cc="paymentSuccessful",lc="paymentFailure",uc="paymentExpired",dc={LIST:"#list",WIDGETS:"#standaloneWidget"},hc={"max-width":"640px","min-width":"200px",display:"flex",margin:"auto"},pc={"max-width":"640px","min-width":"200px",margin:"auto",position:"relative"},fc=function(){return o((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i(this,e),this.formSelector=t,this.intentToken=n,this.debug=r,this.window=window,this.requestInFlight=!1,this.inTimeoutRange=!1,this.checkoutFinished=!1;try{if(this.eventEmitter=new ir,this.intentTokenPayload=this.extractIntentTokenPayload(n),this.instructions=this.initContractVersion(this.intentTokenPayload.version),this.api=new er(this.intentToken,Ei.TOKEN),this.checkoutApi=new Qi(this.api),this.setEnv(this.intentTokenPayload.env,this.intentTokenPayload.env_alias),this.debug)return;this.createWidgetStructure(),this.setupTimeoutTimer(),this.fetchInstruction(),this.ready()}catch(e){console.error(e.message)}}),[{key:"fetchInstruction",value:function(){var e=this;this.checkoutFinished||(this.requestInFlight=!0,this.checkoutApi.instructions().subscribe({next:function(t){e.isTimeoutInstruction(t)?e.handleTimeoutInstructions(t):(e.handleInstruction(t),e.inTimeoutRange&&!e.requestInFlight&&e.fetchInstruction(),e.requestInFlight=!1)},error:function(e){console.error("Error while listening to instructions:",e)}}))}},{key:"finaliseCheckout",value:function(){this.timeoutTimer&&clearTimeout(this.timeoutTimer),this.checkoutFinished=!0}},{key:"setupTimeoutTimer",value:function(){var e=this;this.timeoutTimer=setTimeout((function(){e.inTimeoutRange=!0,e.fetchInstruction()}),885e3)}},{key:"extractIntentTokenPayload",value:function(e){var t=De.validateJWT(e);if(!t)throw new Error("Intent token is broken or expired. Please, issue new one.");var n=De.extractData(t.body);if(!this.validateJWTWhitelistedDomains(n.whitelist_domains))throw new Error("Intent Token is not valid for current domain");if(!(n&&n.intent_id&&n.version&&n.env&&n.env_alias))throw new Error("Inconsistent structure of intent token. Please, be sure that you are using correct token.");return n}},{key:"validateJWTWhitelistedDomains",value:function(e){return!e||e.includes(window.location.hostname)}},{key:"ready",value:function(){this.checkoutApi.status(this.intentTokenPayload.intent_id).then((function(e){if(!(null==e?void 0:e.status))throw new Error("Checkout Intent Status structure inconsistent");if("active"!==e.status)throw new Error("Checkout Intent is not active")})),this.checkoutApi.callback({event:"callback.generic.ready",payload:{platform:"web",sdk_version:this.api.ctx.sdkVersion}}).then((function(){return da.hide()})).catch((function(e){return console.error(e)}))}},{key:"initContractVersion",value:function(e){var t=sc(e);if(!t)throw Error("Specified version of checkout in API, does not supported by this version of SDK");return t}},{key:"isTimeoutInstruction",value:function(e){var t,n;return"expired"===(null===(t=e.payload)||void 0===t?void 0:t.status)||"Session expired"===(null===(n=e.paload)||void 0===n?void 0:n.title)}},{key:"handleInstruction",value:function(e){var t;null===(t=this.currentInstruction)||void 0===t||t.destroy(),this.currentInstruction=this.getInstructionFromResponse(e),this.currentInstruction.handle(this.extractInstructionPayloadFromResponse(e),this.eventEmitter)}},{key:"handleTimeoutInstructions",value:function(e){this.getInstructionFromResponse(e).handle(this.extractInstructionPayloadFromResponse(e),this.eventEmitter)}},{key:"getInstructionFromResponse",value:function(e){if(!(null==e?void 0:e.event))throw new Error("Instruction structure inconsistent");var t=this.instructions.getInstruction(e.event);if(!t)throw new Error("Unsupported instruction");return new t(dc.LIST,dc.WIDGETS,this.api,this)}},{key:"extractInstructionPayloadFromResponse",value:function(e){return e&&(null==e?void 0:e.instruction_token)?e:c(c({},e),{instruction_token:this.intentToken})}},{key:"setEnv",value:function(e,t){this.api.setEnv(e,t)}},{key:"onPaymentSuccessful",value:function(e){return this.eventEmitter.subscribe(cc,e)}},{key:"onPaymentFailure",value:function(e){return this.eventEmitter.subscribe(lc,e)}},{key:"onPaymentExpired",value:function(e){return this.eventEmitter.subscribe(uc,e)}},{key:"createWidgetStructure",value:function(){var e=document.createElement("div");e.setAttribute("id",dc.LIST.split("#").join("")),this.setStyles(e,hc);var t=document.createElement("div");t.setAttribute("id",dc.WIDGETS.split("#").join("")),this.setStyles(t,hc),document.getElementById(this.formSelector.split("#").join(""))||console.error("Element with selector",this.formSelector,"not found");var n=document.getElementById(this.formSelector.split("#").join(""));this.setStyles(n,pc),n.innerHTML="\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 200px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget button {\n width: 100% !important;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .paypal-buttons {\n margin: 0 10px 10px 10px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 10px;\n max-width: 320px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .gpay-card-info-container-fill {\n margin: 0 10px 5px 10px;\n }\n }\n \n apple-pay-button {\n padding: 0 10px 20px;\n max-width: 320px;\n }\n \n @media screen and (max-width: 450px) {\n apple-pay-button {\n max-width: 100%;\n }\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n",n.appendChild(e),n.appendChild(t)}},{key:"setStyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])}}])}(),mc=o((function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"test";i(this,e);var c=sc(r),l=null==c?void 0:c.getInstruction(o);if(!l)throw new Error("unsupported instruction");new l(t,n,new er(a,Ei.TOKEN)).handle(s)}));!function(e){e.UNAVAILABLE="unavailable",e.ERROR="error",e.PAYMENT_SUCCESSFUL="paymentSuccessful",e.PAYMENT_ERROR="paymentError",e.PAYMENT_IN_REVIEW="paymentInReview",e.ON_CLICK="onClick",e.ON_CHECKOUT_CLOSE="onCheckoutClose",e.ON_SHIPPING_ADDRESS_CHANGE="onShippingAddressChange",e.ON_SHIPPING_OPTIONS_CHANGE="onShippingOptionsChange"}(ac||(ac={}));var vc,gc=function(){return o((function e(t,n,r,o,s){i(this,e),this.env=X,this.onShippingOptionsChangeHandlerRegistered=!1,this.eventEmitter=new ir,this.container=new Di(t),this.api=new er(n,this.getApiAuthType(n)),this.gatewayId=r,this.meta=o,this.validateRequiredMetaFields(s)}),[{key:"getApiAuthType",value:function(e){return De.validateJWT(e)?Ei.TOKEN:Ei.PUBLIC_KEY}},{key:"setEnv",value:function(e,t){this.env=e,this.api.setEnv(e,t)}},{key:"onClick",value:function(e){if("function"==typeof e)return this.eventEmitter.subscribe(ac.ON_CLICK,e);this.handleOnError(new Error("onClick event handler is required to return the wallet token string."))}},{key:"onPaymentSuccessful",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ac.PAYMENT_SUCCESSFUL,e):new Promise((function(e){return t.eventEmitter.subscribe(ac.PAYMENT_SUCCESSFUL,(function(t){return e(t)}))}))}},{key:"onPaymentInReview",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ac.PAYMENT_IN_REVIEW,e):new Promise((function(e){return t.eventEmitter.subscribe(ac.PAYMENT_IN_REVIEW,(function(t){return e(t)}))}))}},{key:"onPaymentError",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ac.PAYMENT_ERROR,e):new Promise((function(e){return t.eventEmitter.subscribe(ac.PAYMENT_ERROR,(function(t){return e(t)}))}))}},{key:"onCheckoutClose",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ac.ON_CHECKOUT_CLOSE,e):new Promise((function(e){return t.eventEmitter.subscribe(ac.ON_CHECKOUT_CLOSE,(function(t){return e(t)}))}))}},{key:"onShippingAddressChange",value:function(e){if("function"==typeof e)return this.eventEmitter.subscribe(ac.ON_SHIPPING_ADDRESS_CHANGE,e);this.handleOnError(new Error("onShippingAddressChange event handler is required to return the wallet token string or reject."))}},{key:"onShippingOptionsChange",value:function(e){if("function"==typeof e)return this.onShippingOptionsChangeHandlerRegistered=!0,this.eventEmitter.subscribe(ac.ON_SHIPPING_OPTIONS_CHANGE,e);this.handleOnError(new Error("onShippingOptionsChange event handler is required to return the wallet token string or reject."))}},{key:"onUnavailable",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ac.UNAVAILABLE,e):new Promise((function(e){return t.eventEmitter.subscribe(ac.UNAVAILABLE,(function(t){return e(t)}))}))}},{key:"onError",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ac.ERROR,e):new Promise((function(e){return t.eventEmitter.subscribe(ac.ERROR,(function(t){return e(t)}))}))}},{key:"getGatewayWalletConfig",value:function(){var e=this,t="gatewayConfig-".concat(this.gatewayId),n=localStorage.getItem(t);return new Promise((function(i,r){if(n){var o=JSON.parse(atob(n)),s=o.data,a=o.timestamp;if(Date.now()-a<864e5)return i(JSON.parse(s))}e.api.gateway().getWalletConfig(e.gatewayId).then((function(e){var n=btoa(JSON.stringify({data:JSON.stringify(e),timestamp:Date.now()}));return localStorage.setItem(t,n),i(e)})).catch(r)}))}},{key:"executeWalletCallback",value:function(e){var t=this;return this.api.charge().walletCallback(e).catch((function(e){var n;throw t.eventEmitter.emit(ac.PAYMENT_ERROR,{event:ac.PAYMENT_ERROR,chargeId:null===(n=t.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:t.eventDataFromApiError(e)}),t.handleOnError(e),e}))}},{key:"executeWalletCapture",value:function(e){var t=this;return this.api.charge().walletCapture(e).then((function(e){var n,i="inreview"===e.status?ac.PAYMENT_IN_REVIEW:ac.PAYMENT_SUCCESSFUL;return t.eventEmitter.emit(i,{event:i,chargeId:null===(n=t.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:e}),e})).catch((function(e){var n;throw t.eventEmitter.emit(ac.PAYMENT_ERROR,{event:ac.PAYMENT_ERROR,chargeId:null===(n=t.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:t.eventDataFromApiError(e)}),e}))}},{key:"handleMerchantOnExpressButtonClickEvent",value:function(){var e=this;return this.eventEmitter.emitWithResult(ac.ON_CLICK,{event:ac.ON_CLICK}).then((function(t){var n;if(!t||0===t.length){var i=new Error("No result from onClick event");throw e.handleOnError(i),i}var r=t[0];if(e.setWalletToken(r),e.chargeWalletTokenMeta.charge.amount!==e.meta.amount){var o=new Error("Wallet meta amount (".concat(e.chargeWalletTokenMeta.charge.amount,") and charge amount (").concat(e.meta.amount,') do not match. Consider using "setMeta" SDK method to update the amount.'));throw e.handleOnError(o),o}if(e.chargeWalletTokenMeta.charge.currency!==e.meta.currency){var s=new Error("Wallet meta currency (".concat(e.chargeWalletTokenMeta.charge.currency,") and charge currency (").concat(e.meta.currency,') do not match. Consider using "setMeta" SDK method to update the currency.'));throw e.handleOnError(s),s}if((null===(n=e.chargeWalletTokenMeta.charge.shipping)||void 0===n?void 0:n.options)&&e.chargeWalletTokenMeta.charge.shipping.options.length>0&&!e.onShippingOptionsChangeHandlerRegistered){var a=new Error('There is no event handler registered for shipping options change. Consider using "onShippingOptionsChange" SDK method to register the event handler.');throw e.handleOnError(a),a}}))}},{key:"handleMerchantOnShippingChangedEvent",value:function(e){return ie(this,void 0,void 0,p().mark((function t(){var n=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.eventEmitter.emitWithResult(e.event,e).then((function(e){if(!e||0===e.length){var t=new Error("No result from shippingUpdate event");throw n.handleOnError(t),t}var i=e[0];return i.token&&n.setWalletToken(i.token,{skipApiAuth:!0}),i})));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"setWalletToken",value:function(e,t){var n=De.validateJWT(e);return n?(this.chargeWalletTokenMeta=De.extractMeta(n.body),this.chargeWalletTokenMeta?void(!0!==(null==t?void 0:t.skipApiAuth)&&(this.api.auth=e,this.api.authType=Ei.TOKEN)):this.handleOnError(new Error("Invalid charge token"))):this.handleOnError(new Error("Invalid charge token"))}},{key:"handleCheckoutClose",value:function(){var e,t=null===(e=this.chargeWalletTokenMeta)||void 0===e?void 0:e.charge.id;this.eventEmitter.emit(ac.ON_CHECKOUT_CLOSE,c({event:ac.ON_CHECKOUT_CLOSE},t&&{chargeId:t}))}},{key:"handleOnUnavailable",value:function(){this.eventEmitter.emit(ac.UNAVAILABLE,{event:ac.UNAVAILABLE})}},{key:"handleOnError",value:function(e){var t;e&&console.error(e);var n=null===(t=this.chargeWalletTokenMeta)||void 0===t?void 0:t.charge.id;this.eventEmitter.emit(ac.ERROR,c(c({event:ac.ERROR},n&&{chargeId:n}),{data:e}))}},{key:"eventDataFromApiError",value:function(e){var t,n,i,r;return{message:(null===(t=null==e?void 0:e.error)||void 0===t?void 0:t.message)||(null==e?void 0:e.message)||(null===(n=null==e?void 0:e.error_summary)||void 0===n?void 0:n.message),code:(null===(i=null==e?void 0:e.error)||void 0===i?void 0:i.code)||(null==e?void 0:e.code)||(null===(r=null==e?void 0:e.error_summary)||void 0===r?void 0:r.code)}}},{key:"validateRequiredMetaFields",value:function(e){var t=this;if(!this.meta)throw new Error("Meta is required");if("number"!=typeof this.meta.amount)throw new Error("meta.amount needs to be numeric");if("string"!=typeof this.meta.currency)throw new Error("meta.amount needs to be a string");e.forEach((function(e){var n,i=e.split("."),r=t.meta,o=s(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(void 0===r[a]||null===r[a])throw new Error("Meta field ".concat(e," is required"));r=r[a]}}catch(e){o.e(e)}finally{o.f()}}))}}])}();!function(e){e.AVAILABLE="available",e.STORE_PICKUP="store_pickup"}(vc||(vc={}));var Cc,yc,bc=["paymentCredentialsAvailable"],Ec=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r,o,s,["amount_label","country"]])).onApplePayButtonClicked=function(){a.paymentSession=new ApplePaySession(14,a.createRequest()),a.paymentSession.onvalidatemerchant=a.onValidateMerchant,a.paymentSession.onpaymentauthorized=a.onPaymentAuthorized,a.paymentSession.oncancel=a.onCancelPayment,a.paymentSession.onshippingmethodselected=a.onApplePayShippingMethodUpdate,a.paymentSession.onshippingcontactselected=a.onApplePayShippingContactUpdate,a.paymentSession.begin()},a.onValidateMerchant=function(e){a.handleMerchantOnExpressButtonClickEvent().then((function(){a.getMerchantSession().then((function(e){a.paymentSession.completeMerchantValidation(e)})).catch((function(){a.paymentSession.abort(),a.handleCheckoutClose()}))})).catch((function(){a.paymentSession.abort(),a.handleCheckoutClose()}))},a.onPaymentAuthorized=function(e){var t=e.payment,n=t.token,i=t.billingContact,r=t.shippingContact;a.executeWalletCapture({customer:{first_name:null==i?void 0:i.givenName,last_name:null==i?void 0:i.familyName,email:(null==i?void 0:i.emailAddress)||(null==r?void 0:r.emailAddress),phone:(null==i?void 0:i.phoneNumber)||(null==r?void 0:r.phoneNumber),payment_source:{wallet_type:lr.APPLE,address_line1:null==i?void 0:i.addressLines[0],address_line2:null==i?void 0:i.addressLines[1],address_country:null==i?void 0:i.countryCode,address_city:null==i?void 0:i.locality,address_postcode:null==i?void 0:i.postalCode,address_state:null==i?void 0:i.administrativeArea,ref_token:n.paymentData?JSON.stringify(n.paymentData):"",wallet_express:!0}}}).then((function(){a.paymentSession.completePayment(ApplePaySession.STATUS_SUCCESS)})).catch((function(){a.paymentSession.completePayment(ApplePaySession.STATUS_FAILURE)}))},a.onCancelPayment=function(){return a.handleCheckoutClose()},a.onApplePayShippingContactUpdate=function(e){return ie(a,void 0,void 0,p().mark((function t(){var n,i=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.handleMerchantOnShippingChangedEvent({event:ac.ON_SHIPPING_ADDRESS_CHANGE,chargeId:null===(n=this.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:this.parseShippingContactUpdateEvent(e)}).then((function(e){var t,n,r,o,s,a,c=[],l=[];(null===(r=null===(n=null===(t=i.chargeWalletTokenMeta.charge)||void 0===t?void 0:t.shipping)||void 0===n?void 0:n.options)||void 0===r?void 0:r.length)>0&&(l=i.parseShippingMethod(i.chargeWalletTokenMeta.charge.shipping.options)),(null===(o=e.error)||void 0===o?void 0:o.code)&&(c=[i.formatErrorFields(e.error)]),i.paymentSession.completeShippingContactSelection({newTotal:{label:i.meta.amount_label,amount:String(null!==(a=null===(s=i.chargeWalletTokenMeta.charge.shipping)||void 0===s?void 0:s.amount)&&void 0!==a?a:i.chargeWalletTokenMeta.charge.amount)},newShippingMethods:l,errors:c})})));case 1:case"end":return t.stop()}}),t,this)})))},a.onApplePayShippingMethodUpdate=function(e){return ie(a,void 0,void 0,p().mark((function t(){var n,i=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.handleMerchantOnShippingChangedEvent({event:ac.ON_SHIPPING_OPTIONS_CHANGE,chargeId:null===(n=this.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:this.parseShippingMethodUpdateEvent(e)}).then((function(e){var t,n;i.paymentSession.completeShippingMethodSelection({newTotal:{label:i.meta.amount_label,amount:String(null!==(n=null===(t=i.chargeWalletTokenMeta.charge.shipping)||void 0===t?void 0:t.amount)&&void 0!==n?n:i.chargeWalletTokenMeta.charge.amount)}})})));case 1:case"end":return t.stop()}}),t,this)})))},a}return d(t,e),o(t,[{key:"load",value:function(){var e=this;if(!window.Promise)return this.handleOnUnavailable();if(null===customElements||void 0===customElements?void 0:customElements.get("apple-pay-button"))return this.onScriptLoaded();var t=document.createElement("script");t.src="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",t.type="text/javascript",t.crossOrigin="anonymous",t.onload=function(){e.onScriptLoaded()},t.onerror=function(t){console.error("ApplePayWalletButtonExpress: Error loading ApplePay script",t),e.handleOnUnavailable()},document.head.appendChild(t)}},{key:"onScriptLoaded",value:function(){var e=this;this.getGatewayWalletConfig().then((function(t){if(!(t&&"MasterCard"===t.type&&t.credentials&&t.credentials.apple&&t.credentials.apple.merchant))throw new Error("Invalid configuration");return e.checkAvailability(t)})).then((function(t){return t?e.mount():e.handleOnUnavailable()})).catch((function(t){t&&e.handleOnError(t),e.handleOnUnavailable()}))}},{key:"setMeta",value:function(e){this.meta=e}},{key:"checkAvailability",value:function(e){var t=this;return new Promise((function(n,i){var r;window.ApplePaySession&&ApplePaySession||n(!1);var o=bc;(null===(r=t.meta.apple_pay_capabilities)||void 0===r?void 0:r.length)>0&&(o=t.formatCapabilities(t.meta.apple_pay_capabilities)),ApplePaySession.applePayCapabilities(e.credentials[lr.APPLE].merchant).then((function(e){var t=o.includes(null==e?void 0:e.paymentCredentialStatus);n(t)})).catch((function(e){return n(!1)}))}))}},{key:"mount",value:function(){var e,t,n=document.createElement("style");n.innerHTML="\n apple-pay-button {\n display: inline-block;\n --apple-pay-button-width: 100%;\n --apple-pay-button-height: 40px;\n --apple-pay-button-border-radius: 5px;\n --apple-pay-button-padding: 5px 0px;\n }\n ",document.head.appendChild(n);var i=this.container.getElement(),r="".concat((null===(e=this.meta.style)||void 0===e?void 0:e.button_style)||"black"),o="".concat((null===(t=this.meta.style)||void 0===t?void 0:t.button_type)||"plain");i.innerHTML='<apple-pay-button buttonstyle="'.concat(r,'" type="').concat(o,'" tabindex="0"></apple-pay-button>');var s=i.querySelector("apple-pay-button");if(!s)return console.error("ApplePayWalletButtonExpress: Query selector does not found <apple-pay-button> element"),void this.handleOnUnavailable();s.addEventListener("click",this.onApplePayButtonClicked.bind(this))}},{key:"createRequest",value:function(){var e,t,n,i,r;return this.meta.shipping_editing_mode&&(r=this.meta.shipping_editing_mode===vc.AVAILABLE?"available":"storePickup"),c(c({countryCode:this.meta.country,currencyCode:this.meta.currency,merchantCapabilities:this.meta.merchant_capabilities||["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:this.meta.supported_networks||["visa","masterCard","amex","discover"],requiredBillingContactFields:this.meta.required_billing_contact_fields||["email","name","phone","postalAddress"],requiredShippingContactFields:this.meta.required_shipping_contact_fields,supportedCountries:this.meta.supported_countries,total:{label:this.meta.amount_label,amount:null===(e=this.meta.amount)||void 0===e?void 0:e.toFixed(2),type:"final"}},r&&{shippingContactEditingMode:r}),{shippingContact:this.parseShippingContact(),shippingMethods:this.parseShippingMethod(null===(i=null===(n=null===(t=this.chargeWalletTokenMeta)||void 0===t?void 0:t.charge)||void 0===n?void 0:n.shipping)||void 0===i?void 0:i.options)})}},{key:"getMerchantSession",value:function(){return this.executeWalletCallback({request_type:"CREATE_SESSION",wallet_type:lr.APPLE,session_id:window.location.hostname})}},{key:"formatCapabilities",value:function(e){var t={credentials_available:"paymentCredentialsAvailable",credentials_status_unknown:"paymentCredentialStatusUnknown",credentials_unavailable:"paymentCredentialsUnavailable"};return e.map((function(e){return t[e]||e}))}},{key:"parseShippingContact",value:function(){var e,t,n,i,r;return(null===(t=null===(e=this.chargeWalletTokenMeta)||void 0===e?void 0:e.charge)||void 0===t?void 0:t.shipping)?c(c({},(null===(r=null===(i=null===(n=this.chargeWalletTokenMeta)||void 0===n?void 0:n.charge)||void 0===i?void 0:i.shipping)||void 0===r?void 0:r.contact)&&{phoneNumber:this.chargeWalletTokenMeta.charge.shipping.contact.phone,emailAddress:this.chargeWalletTokenMeta.charge.shipping.contact.email,givenName:this.chargeWalletTokenMeta.charge.shipping.contact.first_name,familyName:this.chargeWalletTokenMeta.charge.shipping.contact.last_name}),{addressLines:[this.chargeWalletTokenMeta.charge.shipping.address_line1,this.chargeWalletTokenMeta.charge.shipping.address_line2,this.chargeWalletTokenMeta.charge.shipping.address_line3].filter(Boolean),locality:this.chargeWalletTokenMeta.charge.shipping.address_city,postalCode:this.chargeWalletTokenMeta.charge.shipping.address_postcode,administrativeArea:this.chargeWalletTokenMeta.charge.shipping.address_state,country:this.chargeWalletTokenMeta.charge.shipping.address_country,countryCode:this.chargeWalletTokenMeta.charge.shipping.address_country}):{}}},{key:"parseShippingMethod",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return{label:e.label,detail:e.detail,amount:e.amount,identifier:e.id}}))}},{key:"parseShippingMethodUpdateEvent",value:function(e){return{shipping_option_id:e.shippingMethod.identifier,label:e.shippingMethod.label,detail:e.shippingMethod.detail,amount:e.shippingMethod.amount}}},{key:"parseShippingContactUpdateEvent",value:function(e){var t,n,i,r,o,s,a,l,u,d,h,p,f,m,v,g,C,y,b,E,w,_;return c(c(c({contact:{phone:null!==(o=null===(r=null===(i=null===(n=null===(t=this.chargeWalletTokenMeta)||void 0===t?void 0:t.charge)||void 0===n?void 0:n.shipping)||void 0===i?void 0:i.contact)||void 0===r?void 0:r.phone)&&void 0!==o?o:e.shippingContact.phoneNumber,email:null!==(d=null===(u=null===(l=null===(a=null===(s=this.chargeWalletTokenMeta)||void 0===s?void 0:s.charge)||void 0===a?void 0:a.shipping)||void 0===l?void 0:l.contact)||void 0===u?void 0:u.email)&&void 0!==d?d:e.shippingContact.emailAddress,first_name:null!==(v=null===(m=null===(f=null===(p=null===(h=this.chargeWalletTokenMeta)||void 0===h?void 0:h.charge)||void 0===p?void 0:p.shipping)||void 0===f?void 0:f.contact)||void 0===m?void 0:m.first_name)&&void 0!==v?v:e.shippingContact.givenName,last_name:null!==(E=null===(b=null===(y=null===(C=null===(g=this.chargeWalletTokenMeta)||void 0===g?void 0:g.charge)||void 0===C?void 0:C.shipping)||void 0===y?void 0:y.contact)||void 0===b?void 0:b.last_name)&&void 0!==E?E:e.shippingContact.familyName}},(null===(w=e.shippingContact.addressLines)||void 0===w?void 0:w[0])&&{address_line1:e.shippingContact.addressLines[0]}),(null===(_=e.shippingContact.addressLines)||void 0===_?void 0:_[1])&&{address_line2:e.shippingContact.addressLines[1]}),{address_city:e.shippingContact.locality,address_postcode:e.shippingContact.postalCode,address_state:e.shippingContact.administrativeArea,address_country:e.shippingContact.countryCode})}},{key:"formatErrorFields",value:function(e){var t={phone:"phoneNumber",email:"emailAddress",phonetic_name:"phoneticName",address_lines:"addressLines",address_city:"locality",address_postcode:"postalCode",address_state:"administrativeArea",address_country:"country",address_country_code:"countryCode"}[e.field]||e.field,n={address_error:"addressUnserviceable",shipping_contact_invalid:"shippingContactInvalid",billing_contact_invalid:"billingContactInvalid"}[e.code]||"unknown";return new ApplePayError(n,t,e.message)}}])}(gc),wc=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r,o,s,[]])).shippingRequested=!1,a}return d(t,e),o(t,[{key:"load",value:function(){var e=this;if(!window.Promise)return this.handleOnUnavailable();this.getGatewayWalletConfig().then((function(t){if(!t||"Paypal"!==t.type||!t.credentials||!t.credentials.client_auth)throw new Error("Invalid configuration");e.config=t,e.renderPaypalButton()})).catch((function(t){t&&e.handleOnError(t),e.handleOnUnavailable()}))}},{key:"setMeta",value:function(e){this.meta=e,this.renderPaypalButton()}},{key:"renderPaypalButton",value:function(){!0===this.meta.standalone?this.renderPaypalStandaloneComponent():this.renderPaypalCommonComponent()}},{key:"renderPaypalCommonComponent",value:function(){var e,t,n=this,i=(null===(e=this.container.getElement())||void 0===e?void 0:e.id)||"",r=document.createElement("script");r.src="https://www.paypal.com/sdk/js?client-id=".concat(null===(t=this.config.credentials)||void 0===t?void 0:t.client_auth,"¤cy=").concat(this.meta.currency).concat(!0===this.meta.pay_later?"&enable-funding=paylater&disable-funding=card":"&disable-funding=credit,card").concat(this.meta.capture?"":"&intent=authorize"),r.async=!0,r.onload=function(){window.paypal?(n.paypal=window.paypal,n.paypal.Buttons(c({},n.paypalSharedProps())).render("#".concat(i))):n.handleOnUnavailable()},document.head.appendChild(r)}},{key:"renderPaypalStandaloneComponent",value:function(){var e,t,n,i=this,r=(null===(e=this.container.getElement())||void 0===e?void 0:e.id)||"",o=document.createElement("script");o.src="https://www.paypal.com/sdk/js?client-id=".concat(null===(t=this.config.credentials)||void 0===t?void 0:t.client_auth,"¤cy=").concat(this.meta.currency,"&components=buttons,funding-eligibility,messages&enable-funding=paylater").concat(this.meta.capture?"":"&intent=authorize").concat("live"===(null===(n=this.config)||void 0===n?void 0:n.mode)?"":"&buyer-country=AU"),o.async=!0,o.onload=function(){var e;if(window.paypal){i.paypal=window.paypal;var t=!!i.meta.pay_later,n=i.paypal.Buttons(c({fundingSource:t?i.paypal.FUNDING.PAYLATER:i.paypal.FUNDING.PAYPAL},i.paypalSharedProps()));if(n.isEligible()){if(n.render("#".concat(r)),t&&!i.meta.hide_message)i.paypal.Messages(c({amount:i.meta.amount,currency:i.meta.currency,placement:"payment"},(null===(e=i.meta.style)||void 0===e?void 0:e.messages)&&{style:i.meta.style.messages})).render("#".concat(r))}else i.handleOnUnavailable()}else i.handleOnUnavailable()},document.head.appendChild(o)}},{key:"paypalSharedProps",value:function(){var e=this;return c(c({},this.meta.style&&{style:this.meta.style}),{onClick:function(t,n){return e.handleMerchantOnExpressButtonClickEvent().then((function(){return n.resolve()})).catch((function(){return e.handleCheckoutClose(),n.reject()}))},createOrder:function(){return new Promise((function(t,n){var i,r;if(!e.api.auth)return n(new Error("Wallet Token not injected. Please handle onClick correctly."));var o=null===(r=null===(i=e.chargeWalletTokenMeta)||void 0===i?void 0:i.charge)||void 0===r?void 0:r.shipping;if(o){var s=["address_line1","address_city","address_country","address_state","address_postcode"].every((function(e){return Boolean(o[e])}));e.shippingRequested=!s}return e.executeWalletCallback({request_type:"CREATE_TRANSACTION",request_shipping:e.shippingRequested}).then((function(e){t(e.id)})).catch((function(e){n(e)}))}))},onApprove:function(t){return e.pendingApprovalPromise||(e.pendingApprovalPromise=e.executeWalletCapture({payment_method_id:t.orderID,customer:{payment_source:{external_payer_id:t.payerID,wallet_express:!0}}}).finally((function(){e.pendingApprovalPromise=void 0}))),e.pendingApprovalPromise},onCancel:function(){return e.handleCheckoutClose()},onError:function(){},onShippingAddressChange:function(t,n){return e.handleShippingAddressUpdate(t,n)},onShippingOptionsChange:function(t,n){return e.handleShippingOptionsUpdate(t,n)}})}},{key:"handleShippingAddressUpdate",value:function(e,t){return ie(this,void 0,void 0,p().mark((function n(){var i;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.shippingRequested){n.next=2;break}return n.abrupt("return");case 2:return n.abrupt("return",this.handleMerchantOnShippingChangedEvent({event:ac.ON_SHIPPING_ADDRESS_CHANGE,chargeId:null===(i=this.chargeWalletTokenMeta)||void 0===i?void 0:i.charge.id,data:{address_city:e.shippingAddress.city,address_state:e.shippingAddress.state,address_postcode:e.shippingAddress.postalCode,address_country:e.shippingAddress.countryCode}}).then((function(n){var i;if(null===(i=n.error)||void 0===i?void 0:i.code){var r=n.error.code.toUpperCase(),o=e.errors[r];return o?t.reject(o):t.reject()}})).catch((function(e){return t.reject(e)})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"handleShippingOptionsUpdate",value:function(e,t){return ie(this,void 0,void 0,p().mark((function n(){var i;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.handleMerchantOnShippingChangedEvent({event:ac.ON_SHIPPING_OPTIONS_CHANGE,chargeId:null===(i=this.chargeWalletTokenMeta)||void 0===i?void 0:i.charge.id,data:{shipping_option_id:e.selectedShippingOption.id,amount:e.selectedShippingOption.amount.value}}).then((function(n){var i;if(null===(i=n.error)||void 0===i?void 0:i.code){var r=n.error.code.toUpperCase(),o=e.errors[r];return o?t.reject(o):t.reject()}})).catch((function(e){return t.reject(e)})));case 1:case"end":return n.stop()}}),n,this)})))}}])}(gc);!function(e){e.ON_ERROR="ON_ERROR"}(Cc||(Cc={})),function(e){e.PROMISE_NOT_ENABLED="promise_not_enabled",e.SCRIPT_ERROR="script_error"}(yc||(yc={}));var _c,kc,Sc=function(){function e(t,n,r){i(this,e),this.eventEmitter=t,this.flowId=n,this.config=r}return o(e,[{key:"collectDeviceData",value:function(){return window.Promise||this.eventEmitter.emit(Cc.ON_ERROR,{error_code:yc.PROMISE_NOT_ENABLED}),this.correlationId=Ii.generate().replace(/-/g,""),this.appendPaypalSavePaymentSourceComponent()}},{key:"appendPaypalSavePaymentSourceComponent",value:function(){var e,t=this,n=document.createElement("script");n.type="application/json",n.setAttribute("fncls","fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99");var i=c(c({f:this.correlationId,s:this.flowId?this.flowId:Ii.generate(),cb1:"paydockPayPalDataCollectorServiceCallbackPostOne",cb2:"paydockPayPalDataCollectorServiceCallbackPostTwo"},this.isSandbox&&{sandbox:this.isSandbox}),(null===(e=this.config)||void 0===e?void 0:e.mouse_movement)&&{mm:this.config.mouse_movement});n.textContent=JSON.stringify(i,null,4);var r=document.createElement("script");return r.type="text/javascript",r.src="https://c.paypal.com/da/r/fb.js",r.onerror=function(){return t.onError()},document.body.appendChild(n),document.body.appendChild(r),this.setupCallbacks()}},{key:"setupCallbacks",value:function(){var e=this;return new Promise((function(t,n){var i=new Promise((function(e){window.paydockPayPalDataCollectorServiceCallbackPostOne=function(){e()}})),r=new Promise((function(e){window.paydockPayPalDataCollectorServiceCallbackPostTwo=function(){e()}}));Promise.all([i,r]).then((function(){t({correlation_id:e.correlationId})})).catch(n)}))}},{key:"onError",value:function(){this.eventEmitter.emit(Cc.ON_ERROR,{error_code:yc.SCRIPT_ERROR})}},{key:"setEnv",value:function(e){this.isSandbox="live"!==e}}],[{key:"fromConfig",value:function(t,n,i){return new e(t,n,i)}}])}(),Tc=function(){return o((function e(t,n){i(this,e),this.eventEmitter=new ir,this.service=Sc.fromConfig(this.eventEmitter,t,n)}),[{key:"collectDeviceData",value:function(){try{return this.service.collectDeviceData()}catch(e){throw this.eventEmitter.emit(Cc.ON_ERROR,null),e}}},{key:"onError",value:function(e){return this.eventEmitter.subscribe(Cc.ON_ERROR,e)}},{key:"setEnv",value:function(e){this.service.setEnv(e)}}])}(),Mc="ON_SUCCESS",Ac="ON_ERROR",Nc="ON_CANCEL";!function(e){e.UNAVAILABLE="unavailable",e.ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR="onPaypalVaultSetupTokenError",e.ON_GET_ID_TOKEN_ERROR="onGetIdTokenError",e.ON_GET_WALLET_CONFIG_ERROR="onGetWalletConfigError",e.ON_GET_SETUP_TOKEN_ERROR="onGetSetupTokenError",e.ON_ONE_TIME_TOKEN_ERROR="onOneTimeTokenError"}(_c||(_c={})),function(e){e.ON_SUCCESS="ON_SUCCESS",e.ON_ERROR="ON_ERROR",e.ON_CANCEL="ON_CANCEL"}(kc||(kc={}));var Oc=function(){function e(t,n,r,o){i(this,e),this.publicKey=t,this.gatewayId=n,this.eventEmitter=r,this.config=o,this.api=new er(t,this.getApiAuthType(t))}return o(e,[{key:"getApiAuthType",value:function(e){return De.validateJWT(e)?Ei.TOKEN:Ei.PUBLIC_KEY}},{key:"setEnv",value:function(e,t){this.api.setEnv(e,t)}},{key:"load",value:function(e){var t=this;window.Promise||this.eventEmitter.emit(Ac,{error_code:_c.UNAVAILABLE}),Promise.all([this.getWalletConfig(),this.getIdToken()]).then((function(){return t.renderPaypalSavePaymentSourceComponent(e)})).catch((function(e){throw e}))}},{key:"renderPaypalSavePaymentSourceComponent",value:function(e){var t,n=this,i=(null===(t=e.getElement())||void 0===t?void 0:t.id)||"",r=document.createElement("script");r.src="https://www.paypal.com/sdk/js?client-id=".concat(this.getClientAuthFromWalletConfig()),r.setAttribute("data-user-id-token",this.idToken),r.async=!0,r.onload=function(){if(window.paypal){n.paypal=window.paypal;var e=n.paypal.Buttons(c(c({createVaultSetupToken:function(){return n.getSetupToken()},onApprove:function(e){var t=e.vaultSetupToken;n.onObtainedVaultSetupToken(t)},onError:function(e){n.onErrorVaultSetupToken(e)},onCancel:function(){n.onCancelVaultSetupToken()}},n.config.style&&{style:n.config.style}),n.config.message&&{message:n.config.message}));e.isEligible()?e.render("#".concat(i)):n.eventEmitter.emit(Ac,{error_code:_c.UNAVAILABLE})}else n.eventEmitter.emit(Ac,{error_code:_c.UNAVAILABLE})},document.head.appendChild(r)}},{key:"getClientAuthFromWalletConfig",value:function(){var e;return(null===(e=this.walletConfig)||void 0===e?void 0:e.credentials).client_auth}},{key:"getSetupToken",value:function(){var e=this;return this.api.getClientPromise("POST","/v1/payment_sources/setup-tokens").send({gateway_id:this.gatewayId}).then((function(e){return e.setup_token})).catch((function(t){return e.eventEmitter.emit(Ac,c({error_code:_c.ON_GET_SETUP_TOKEN_ERROR},e.extractErrorDetails(t))),Promise.reject(t)}))}},{key:"onObtainedVaultSetupToken",value:function(e){var t=this;return this.api.getClientPromise("POST","/v1/payment_sources/setup-tokens/:setup_token/tokens".replace(":setup_token",e)).send({gateway_id:this.gatewayId}).then((function(e){t.eventEmitter.emit(Mc,{token:e.token,email:e.email})})).catch((function(){t.eventEmitter.emit(Ac,{error_code:_c.ON_ONE_TIME_TOKEN_ERROR})}))}},{key:"onErrorVaultSetupToken",value:function(e){this.eventEmitter.emit(Ac,c({error_code:_c.ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR},this.extractErrorDetails(e)))}},{key:"onCancelVaultSetupToken",value:function(){this.eventEmitter.emit(Nc)}},{key:"getIdToken",value:function(){var e=this;return this.api.getClientPromise("POST","/v1/payment_sources/oauth-tokens").send({gateway_id:this.gatewayId}).then((function(t){e.idToken=t.id_token})).catch((function(t){e.eventEmitter.emit(Ac,c({error_code:_c.ON_GET_ID_TOKEN_ERROR},e.extractErrorDetails(t)))}))}},{key:"getWalletConfig",value:function(){var e=this;return this.api.gateway().getWalletConfig(this.gatewayId).then((function(t){e.walletConfig=t})).catch((function(t){e.eventEmitter.emit(Ac,c({error_code:_c.ON_GET_WALLET_CONFIG_ERROR},e.extractErrorDetails(t)))}))}},{key:"extractErrorDetails",value:function(e){var t,n,i,r,o,s,a=null!==(r=null===(i=null===(n=null===(t=null==e?void 0:e.details)||void 0===t?void 0:t.messages)||void 0===n?void 0:n[0])||void 0===i?void 0:i.gateway_specific_description)&&void 0!==r?r:null===(s=null===(o=null==e?void 0:e.details)||void 0===o?void 0:o.messages)||void 0===s?void 0:s[0],l=null==e?void 0:e.message;return c(c({},a&&{details:a}),l&&{message:l})}}],[{key:"fromConfig",value:function(t,n,i,r){return new e(t,n,i,r)}}])}(),Ic=function(){return o((function e(t,n,r,o){i(this,e),this.eventEmitter=new ir,this.container=new Di(t),this.service=Oc.fromConfig(n,r,this.eventEmitter,o)}),[{key:"load",value:function(){try{this.service.load(this.container)}catch(e){throw this.eventEmitter.emit(kc.ON_ERROR,null),e}}},{key:"setEnv",value:function(e,t){this.service.setEnv(e,t)}},{key:"onSuccess",value:function(e){return this.eventEmitter.subscribe(kc.ON_SUCCESS,e)}},{key:"onError",value:function(e){return this.eventEmitter.subscribe(kc.ON_ERROR,e)}},{key:"onCancel",value:function(e){return this.eventEmitter.subscribe(kc.ON_CANCEL,e)}}])}();window.postMessage("PAYDOCK_PAYMENTS_WIDGET_LOADED");class Rc{constructor(e,t){if(!e.onEnd)throw new Error("onEnd handler is required");if(!t)throw new Error("ms duration is required");this.onEnd=e.onEnd,this.initialMs=t,this.startTimestamp=Date.now(),this.timer=this.create(this.onEnd,t)}create(e,t){return this.timer&&this.clear(),setTimeout((()=>e?e():this.onEnd()),t||this.initialMs)}clear(){clearTimeout(this.timer),this.timer=null}end(){this.clear(),this.onEnd()}isValid(){return this.initialMs-(Date.now()-this.startTimestamp)>0}}function xc(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];mn("visibilitychange",(function(){if(t)return void("hidden"===document.visibilityState&&e());e(document.visibilityState)}),arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0)}class Pc extends Rc{constructor(e,t){super(e,t),this.onPause="function"==typeof e.onPause?e.onPause:()=>{},this.onRefresh="function"==typeof e.onRefresh?e.onRefresh:()=>{},this.onResume="function"==typeof e.onResume?e.onResume:()=>{},this.readStorage=e.readStorage,this.remainingMs=void 0,e.refreshEvents||(e.refreshEvents=["click","keydown","scroll"]);try{this.abortController=new AbortController}catch(e){}if(He&&e.ee){if(e.ee){this.ee=e.ee;const t=function(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=i?.leading||!1;let o;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];r&&void 0===o&&(e.apply(t,s),o=setTimeout((()=>{o=clearTimeout(o)}),n)),r||(clearTimeout(o),o=setTimeout((()=>{e.apply(t,s)}),n))}}(this.refresh.bind(this),500,{leading:!0});this.refreshHandler=n=>{e.refreshEvents.includes(n?.[0]?.type)&&t()},e.ee.on("fn-end",this.refreshHandler)}xc((e=>{"hidden"===e?this.pause():this.resume()}),!1,!1,this.abortController?.signal)}}abort(){this.clear(),this.abortController?.abort(),this.refreshHandler&&(this.ee.removeEventListener("fn-end",this.refreshHandler),this.refreshHandler=this.ee=null)}pause(){this.onPause(),clearTimeout(this.timer),this.remainingMs=this.initialMs-(Date.now()-this.startTimestamp)}resume(){try{const t=this.readStorage(),n="string"==typeof t?JSON.parse(t):t;e(n.expiresAt)||e(n.inactiveAt)?this.end():(this.refresh(),this.onResume())}catch(e){this.end()}function e(e){return Date.now()>e}}refresh(e,t){this.clear(),this.timer=this.create(e,t),this.startTimestamp=Date.now(),this.remainingMs=void 0,this.onRefresh()}}const Lc="nr@original:".concat(Wt);var Dc=Object.prototype.hasOwnProperty,Uc=!1;function Fc(e,t){return e||(e=Gt),n.inPlace=function(e,t,i,r,o){i||(i="");const s="-"===i.charAt(0);for(let a=0;a<t.length;a++){const c=t[a],l=e[c];jc(l)||(e[c]=n(l,s?c+i:i,r,c,o))}},n.flag=Lc,n;function n(t,n,r,o,s){return jc(t)?t:(n||(n=""),a[Lc]=t,function(e,t,n){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t,t}})})),t}catch(e){Hc([e],n)}for(var i in e)Dc.call(e,i)&&(t[i]=e[i])}(t,a,e),a);function a(){var a,c,l,u;try{c=this,a=[...arguments],l="function"==typeof r?r(a,c):r||{}}catch(t){Hc([t,"",[a,c,o],l],e)}i(n+"start",[a,c,o],l,s);try{return u=t.apply(c,a)}catch(e){throw i(n+"err",[a,c,e],l,s),e}finally{i(n+"end",[a,c,u],l,s)}}}function i(n,i,r,o){if(!Uc||t){var s=Uc;Uc=!0;try{e.emit(n,i,r,t,o)}catch(t){Hc([t,n,i,r],e)}Uc=s}}}function Hc(e,t){t||(t=Gt);try{t.emit("internal-error",e)}catch(e){}}function jc(e){return!(e&&"function"==typeof e&&e.apply&&!e[Lc])}const Bc={},zc=Be.XMLHttpRequest,Wc="addEventListener",Vc="removeEventListener",Gc="nr@wrapped:".concat(Vt);function qc(e){var t=function(e){return(e||Gt).get("events")}(e);if(Bc[t.debugId]++)return t;Bc[t.debugId]=1;var n=Fc(t,!0);function i(e){n.inPlace(e,[Wc,Vc],"-",r)}function r(e,t){return e[1]}return"getPrototypeOf"in Object&&(He&&Yc(document,i),Yc(Be,i),Yc(zc.prototype,i)),t.on(Wc+"-start",(function(e,t){var i=e[1];if(null!==i&&("function"==typeof i||"object"==typeof i)){var r=it(i,Gc,(function(){var e={object:function(){if("function"!=typeof i.handleEvent)return;return i.handleEvent.apply(i,arguments)},function:i}[typeof i];return e?n(e,"fn-",null,e.name||"anonymous"):i}));this.wrapped=e[1]=r}})),t.on(Vc+"-start",(function(e){e[1]=this.wrapped||e[1]})),t}function Yc(e,t){let n=e;for(;"object"==typeof n&&!Object.prototype.hasOwnProperty.call(n,Wc);)n=Object.getPrototypeOf(n);for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];n&&t(n,...r)}const Kc={value:"",inactiveAt:0,expiresAt:0,updatedAt:Date.now(),sessionReplayMode:bt,sessionReplaySentFirstChunk:!1,sessionTraceMode:bt,traceHarvestStarted:!1,serverTimeDiff:null,custom:{}};class Xc{constructor(e){const{agentIdentifier:t,key:n,storage:i}=e;if(!t||!n||!i)throw new Error("Missing required field(s):".concat(t?"":" agentID").concat(n?"":" key").concat(i?"":" storage"));this.agentIdentifier=t,this.storage=i,this.state={},this.key=n,this.ee=Gt.get(t),qc(this.ee),this.setup(e),He&&fn("storage",(e=>{if(e.key===this.lookupKey){const t="string"==typeof e.newValue?JSON.parse(e.newValue):e.newValue;this.sync(t),this.ee.emit(gt,[yt,this.state])}}))}setup(e){let{value:t=zt(16),expiresMs:n=dt,inactiveMs:i=ht}=e;const r={serverTimeDiff:this.state.serverTimeDiff||Kc.serverTimeDiff};this.state={},this.sync({...Kc,...r}),this.state.value=t,this.expiresMs=n,this.inactiveMs=i;const o=this.read();n?(this.state.expiresAt=o?.expiresAt||this.getFutureTimestamp(n),this.expiresTimer=new Rc({onEnd:()=>{this.collectSM("expired"),this.collectSM("duration"),this.reset()}},this.state.expiresAt-Date.now())):this.state.expiresAt=1/0,i?(this.state.inactiveAt=o?.inactiveAt||this.getFutureTimestamp(i),this.inactiveTimer=new Pc({onEnd:()=>{this.collectSM("inactive"),this.collectSM("duration"),this.reset()},onRefresh:this.refresh.bind(this),onResume:()=>{this.ee.emit(vt)},onPause:()=>{this.initialized&&this.ee.emit(ft),this.write(ot(this.state,Kc))},ee:this.ee,refreshEvents:["click","keydown","scroll"],readStorage:()=>this.storage.get(this.lookupKey)},this.state.inactiveAt-Date.now())):this.state.inactiveAt=1/0,this.isNew||=!Object.keys(o).length,this.isNew?this.write(ot(this.state,Kc),!0):this.sync(o),this.initialized=!0,this.ee.emit(pt,[this.isNew])}get lookupKey(){return"".concat("NRBA","_").concat(this.key)}sync(e){Object.assign(this.state,e)}read(){try{const e=this.storage.get(this.lookupKey);if(!e)return{};const t="string"==typeof e?JSON.parse(e):e;return this.isInvalid(t)?{}:this.isExpired(t.expiresAt)?(this.collectSM("expired"),this.collectSM("duration",t,!0),this.reset()):this.isExpired(t.inactiveAt)?(this.collectSM("inactive"),this.collectSM("duration",t,!0),this.reset()):t}catch(e){return rt("Failed to read from storage API",e),{}}}write(e){try{if(!e||"object"!=typeof e)return;return e.updatedAt=Date.now(),this.sync(e),this.storage.set(this.lookupKey,Hn(this.state)),this.ee.emit(gt,[Ct,this.state]),e}catch(e){return rt("Failed to write to the storage API",e),null}}reset(){try{return this.initialized&&this.ee.emit(mt),this.storage.remove(this.lookupKey),this.inactiveTimer?.abort?.(),this.expiresTimer?.clear?.(),delete this.isNew,this.setup({agentIdentifier:this.agentIdentifier,key:this.key,storage:this.storage,expiresMs:this.expiresMs,inactiveMs:this.inactiveMs}),this.read()}catch(e){return{}}}refresh(){const e=this.read();this.write({...e,inactiveAt:this.getFutureTimestamp(this.inactiveMs)})}isExpired(e){return Date.now()>e}isInvalid(e){return!Object.keys(Kc).every((t=>Object.keys(e).includes(t)))}collectSM(e,t,n){let i,r;"duration"===e&&(i=this.getDuration(t,n),r="Session/Duration/Ms"),"expired"===e&&(r="Session/Expired/Seen"),"inactive"===e&&(r="Session/Inactive/Seen"),r&&Kt(Jn,[r,i],void 0,Qt.metrics,this.ee)}getDuration(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state,t=arguments.length>1?arguments[1]:void 0;const n=e.expiresAt-this.expiresMs;return(t?Date.now():e.updatedAt)-n}getFutureTimestamp(e){return Date.now()+e}syncCustomAttribute(e,t){if(He)if(null===t){const t=this.read();t.custom&&(delete t.custom[e],this.write({...t}))}else{const n=this.read();this.custom={...n?.custom||{},[e]:t},this.write({...n,custom:this.custom})}}}class $c{get(e){try{return localStorage.getItem(e)||void 0}catch(e){return""}}set(e,t){try{return null==t?this.remove(e):localStorage.setItem(e,t)}catch(e){}}remove(e){try{localStorage.removeItem(e)}catch(e){}}}let Jc=0;var Zc=Object.freeze({__proto__:null,setupAgentSession:function(e){const t=Ut(e);if(Jc++)return t.session;const n=Tt(e).session;t.session=new Xc({agentIdentifier:e,key:"SESSION",storage:new $c,expiresMs:n?.expiresMs,inactiveMs:n?.inactiveMs});const i=t.session.state.custom,r=ct(e);i&&(r.jsAttributes={...r.jsAttributes,...i});const o=Gt.get(e);return Jt("api-setCustomAttribute",((e,n,i)=>{t.session.syncCustomAttribute(n,i)}),"session",o),Jt("api-setUserId",((e,n,i)=>{t.session.syncCustomAttribute(n,i)}),"session",o),sn(e,"session"),t.session}});var Qc=Object.freeze({__proto__:null,lazyFeatureLoader:function(e,t){if("aggregate"===t)switch(e){case Qt.ajax:return Promise.resolve().then((function(){return zl}));case Qt.jserrors:return Promise.resolve().then((function(){return iu}));case Qt.metrics:return Promise.resolve().then((function(){return ku}));case Qt.pageAction:return Promise.resolve().then((function(){return Su}));case Qt.pageViewEvent:return Promise.resolve().then((function(){return Qd}));case Qt.pageViewTiming:return Promise.resolve().then((function(){return sh}));case Qt.sessionReplay:return Promise.resolve().then((function(){return dh}));case Qt.sessionTrace:return Promise.resolve().then((function(){return yh}));case Qt.spa:return Promise.resolve().then((function(){return $h}));case Qt.softNav:return Promise.resolve().then((function(){return dp}));default:throw new Error("Attempted to load unsupported agent feature: ".concat(e," ").concat(t))}}});var el=Object.freeze({__proto__:null,setAPI:function(e){var t=Gt.get(e),n={finished:En((function(e,n){var r=n?n-Xe:e;Kt(Zn,["finished",{time:r}],void 0,Qt.metrics,t),i(e,{name:"finished",start:r+Xe,origin:"nr"}),Kt("api-addPageAction",[r,"finished"],void 0,Qt.pageAction,t)})),setErrorHandler:function(t,n){Ut(e).onerror=n},addToTrace:i,addRelease:function(t,n,i){if(++r>10)return;Ut(e).releaseIds[n.slice(-200)]=(""+i).slice(-200)}};function i(e,n){n&&"object"==typeof n&&n.name&&n.start&&Kt("bstApi",[{n:n.name,s:n.start-Xe,e:(n.end||n.start)-Xe,o:n.origin||"",t:"api"}],void 0,Qt.sessionTrace,t)}Object.entries(n).forEach((e=>{let[n,i]=e;return Jt("api-"+n,i,"api",t)}));var r=0}});function tl(){let{isFinalHarvest:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&He&&Ke?il:nl}function nl(e){let{url:t,body:n=null,sync:i,method:r="POST",headers:o=[{key:"content-type",value:"text/plain"}]}=e;const s=new XMLHttpRequest;s.open(r,t,!i);try{"withCredentials"in s&&(s.withCredentials=!0)}catch(e){}return o.forEach((e=>{s.setRequestHeader(e.key,e.value)})),s.send(n),s}function il(e){let{url:t,body:n}=e;try{return window.navigator.sendBeacon.bind(window.navigator)(t,n)}catch(e){return!1}}var rl={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},ol=Xt(rl,(function(e){return e})),sl=new RegExp(ol.join("|"),"g");function al(e){return rl[e]}function cl(e){return null==e?"null":encodeURIComponent(e).replace(sl,al)}function ll(e,t){var n=0,i="";return Xt(e,(function(e,r){var o,s,a=[];if("string"==typeof r||!Array.isArray(r)&&null!=r&&r.toString().length)o="&"+e+"="+cl(r),n+=o.length,i+=o;else if(Array.isArray(r)&&r.length){for(n+=9,s=0;s<r.length&&(o=cl(Hn(r[s])),n+=o.length,!(void 0!==t&&n>=t));s++)a.push(o);i+="&"+e+"=%5B"+a.join(",")+"%5D"}})),i}function ul(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).includes(e)?"":t&&"string"==typeof t?"&"+e+"="+cl(t):""}function dl(){return""+location}var hl=/([^?#]*)[^#]*(#[^?]*|$).*/,pl=/([^?#]*)().*/;function fl(e,t){return e.replace(t?hl:pl,"$1$2")}function ml(){return Boolean("file:"===Be?.location?.protocol)}var vl={regex:/^file:\/\/(.*)/,replacement:atob("ZmlsZTovL09CRlVTQ0FURUQ=")};class gl extends li{shouldObfuscate(){return Cl(this.sharedContext.agentIdentifier).length>0}obfuscateString(e){if(!e||"string"!=typeof e)return e;for(var t=Cl(this.sharedContext.agentIdentifier),n=e,i=0;i<t.length;i++){var r=t[i].regex,o=t[i].replacement||"*";n=n.replace(r,o)}return n}}function Cl(e){var t=[],n=At(e,"obfuscate")||[];return t=t.concat(n),ml()&&t.push(vl),t}function yl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return e&&"object"==typeof e?(Object.keys(e).forEach((r=>{"object"==typeof e[r]?yl(e[r],t,n,i):typeof e[r]!==n||i.includes(r)||(e[r]=t(e[r]))})),e):e}const bl={};class El extends li{constructor(e){super(e),this.tooManyRequestsDelay=At(this.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,this.obfuscator=new gl(this.sharedContext),this._events={}}sendX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=tl({isFinalHarvest:e.opts?.unload}),n={retry:!e.opts?.unload&&t===nl,isFinalHarvest:!0===e.opts?.unload},i=this.createPayload(e.endpoint,n);return(this.obfuscator.shouldObfuscate()?this.obfuscateAndSend.bind(this):this._send.bind(this))({...e,payload:i,submitMethod:t})}send(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(this.obfuscator.shouldObfuscate()?this.obfuscateAndSend.bind(this):this._send.bind(this))(e)}obfuscateAndSend(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{payload:n={}}=t;return yl(n,(function(){return e.obfuscator.obfuscateString(...arguments)}),"string",["e"]),this._send({...t,payload:n})}_send(e){let{endpoint:t,payload:n={},opts:i={},submitMethod:r,cbFinished:o,customUrl:s,raw:a,includeBaseParams:c=!0}=e;const l=ct(this.sharedContext.agentIdentifier);if(!l.errorBeacon)return!1;const u=Ut(this.sharedContext.agentIdentifier);let{body:d,qs:h}=this.cleanPayload(n);if(0===Object.keys(d).length&&!i?.sendEmptyBody)return o&&o({sent:!1}),!1;const p=Tt(this.sharedContext.agentIdentifier),f=!1===p.ssl?"http":"https",m=p.proxy.beacon||l.errorBeacon,v="rum"!==t?"/".concat(t):"";let g="".concat(f,"://").concat(m).concat(v,"/1/").concat(l.licenseKey);s&&(g=s),a&&(g="".concat(f,"://").concat(m,"/").concat(t));const C=!a&&c?this.baseQueryString(h,t):"";let y=ll(h,u.maxBytes);r||(r=tl({isFinalHarvest:i.unload})),""===C&&y.startsWith("&")&&(y=y.substring(1));const b="".concat(g,"?").concat(C).concat(y);!!h?.attributes?.includes("gzip")||(d="events"===t?d.e:Hn(d),d.length>75e4&&1===(bl[t]=(bl?.[t]||0)+1)&&rt("The Browser Agent is attempting to send a very large payload to /".concat(t,". This is usually tied to large amounts of custom attributes. Please check your configurations."))),d&&0!==d.length&&"{}"!==d&&"[]"!==d||(d="");const E=[];E.push({key:"content-type",value:"text/plain"});let w=r({url:b,body:d,sync:i.unload&&(je||Ye),headers:E});if(!i.unload&&o&&r===nl){const e=this;w.addEventListener("loadend",(function(){const t={sent:0!==this.status,status:this.status,xhr:this,fullUrl:b};429===this.status?(t.retry=!0,t.delay=e.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(t.retry=!0),i.needResponse&&(t.responseText=this.responseText),o(t)}),pn(!1))}return Ut(this.sharedContext.agentIdentifier).harvestCount++,w}baseQueryString(e,t){const n=Ut(this.sharedContext.agentIdentifier),i=ct(this.sharedContext.agentIdentifier),r=fl(dl()),o=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(r):r,s=1===n?.session?.state.sessionReplayMode&&"jserrors"!==t,a=["a="+i.applicationID,ul("sa",i.sa?""+i.sa:""),ul("v",xt),wl(i),ul("ct",n.customTransaction),"&rst="+Fe(),"&ck=0","&s="+(n.session?.state.value||"0"),ul("ref",o),ul("ptid",n.ptid?""+n.ptid:"")];return s&&a.push(ul("hr","1",e)),a.join("")}createPayload(e,t){const n=this._events[e],i={body:{},qs:{}};if(Array.isArray(n)&&n.length>0)for(let e=0;e<n.length;e++){const r=n[e](t);r&&(i.body={...i.body,...r.body||{}},i.qs={...i.qs,...r.qs||{}})}return i}cleanPayload(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e=>"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||Array.isArray(e)?e:"string"==typeof e?e.length>0?e:null:Object.entries(e||{}).reduce(((e,t)=>{let[n,i]=t;return("number"==typeof i||"string"==typeof i&&i.length>0||"object"==typeof i&&Object.keys(i||{}).length>0)&&(e[n]=i),e}),{});return{body:t(e.body),qs:t(e.qs)}}on(e,t){Array.isArray(this._events[e])||(this._events[e]=[]),this._events[e].push(t)}}function wl(e){return e.transactionName?ul("to",e.transactionName):ul("t",e.tNamePlain||"Unnamed Transaction")}if(je){Be.cleanupTasks=[];const e=Be.close;Be.close=()=>{for(let e of Be.cleanupTasks)e();e()}}function _l(e){He?(xc(e,!0),fn("pagehide",e)):je&&Be.cleanupTasks.push(e)}class kl extends li{constructor(e,t,n){super(n),this.endpoint=e,this.opts=t||{},this.started=!1,this.timeoutHandle=null,this.aborted=!1,this.harvesting=!1,this.harvest=new El(this.sharedContext),_l(this.unload.bind(this)),this.sharedContext?.ee.on(mt,(()=>this.runHarvest({forceNoRetry:!0})))}unload(){this.aborted||(this.opts.onUnload&&this.opts.onUnload(),this.runHarvest({unload:!0}))}startTimer(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}stopTimer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.aborted=e,this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}scheduleHarvest(e,t){this.timeoutHandle||(null==e&&(e=this.interval),this.timeoutHandle=setTimeout((()=>{this.timeoutHandle=null,this.runHarvest(t)}),1e3*e))}runHarvest(e){if(this.aborted)return;this.harvesting=!0;const t=t=>{this.harvesting=!1,e?.forceNoRetry&&(t.retry=!1),this.onHarvestFinished(e,t)};let n,i,r=[];if(this.opts.getPayload){if(n=tl({isFinalHarvest:e?.unload}),!n)return!1;const t=!e?.unload&&n===nl;if(i=this.opts.getPayload({retry:t,...e}),!i)return void(this.started&&this.scheduleHarvest());i="[object Array]"===Object.prototype.toString.call(i)?i:[i],r.push(...i)}let o=e=>this.harvest.sendX(e);r.length?o=this.opts.raw?e=>this.harvest._send(e):e=>this.harvest.send(e):r.push(void 0),r.forEach((i=>{o({endpoint:this.endpoint,payload:i,opts:e,submitMethod:n,cbFinished:t,customUrl:this.opts.customUrl,raw:this.opts.raw})})),this.started&&this.scheduleHarvest()}onHarvestFinished(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){const n=t.delay||this.opts.retryDelay;this.started&&n?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(n,e)):!this.started&&n&&this.scheduleHarvest(n,e)}}}var Sl=[];function Tl(e){if(function(e){return void 0===e.hostname}(e))return!1;if(0===Sl.length)return!0;for(var t=0;t<Sl.length;t++){var n=Sl[t];if("*"===n.hostname)return!1;if(Ml(n.hostname,e.hostname)&&Al(n.pathname,e.pathname))return!1}return!0}function Ml(e,t){return!(e.length>t.length)&&t.indexOf(e)===t.length-e.length}function Al(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}const Nl=Qt.ajax;class Ol extends un{constructor(){super(...arguments),this.checkConfiguration()}waitForFlags(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(((t,n)=>{function i(t){return e.map((e=>t[e]?t[e]:0))}ri[this.agentIdentifier]?t(i(ri[this.agentIdentifier])):this.ee.on("rumresp",(function(){t(i(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}))}))}))}drain(){sn(this.agentIdentifier,this.featureName),this.drained=!0}checkConfiguration(){if(!Ft(this.agentIdentifier)){let e={...tt().info?.jsAttributes};try{e={...e,...ct(this.agentIdentifier)?.jsAttributes}}catch(e){}ai({agentIdentifier:this.agentIdentifier},{...tt(),info:{...tt().info,jsAttributes:e},runtime:Ut(this.agentIdentifier)})}}}function Il(){let{body:e,query:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e||t)try{const n=function(e){if(!e)return;Array.isArray(e)||(e=[e]);const t=[],n=[];for(let i of e){const e=Rl(i);e&&(t.push(e.operationName),n.push(e.operationType))}if(!n.length)return;return{operationName:t.join(","),operationType:n.join(","),operationFramework:"GraphQL"}}(xl(e));if(n)return n;const i=Rl(function(e){if(!e||"string"!=typeof e)return;const t=new URLSearchParams(e);return xl(Object.fromEntries(t))}(t));if(i)return i}catch(e){}}function Rl(e){if("object"!=typeof e||!e.query||"string"!=typeof e.query)return;const t=e.query.trim().match(/^(query|mutation|subscription)\s?(\w*)/),n=t?.[1];if(!n)return;return{operationName:e.operationName||t?.[2]||"Anonymous",operationType:n,operationFramework:"GraphQL"}}function xl(e){let t;if(!e||"string"!=typeof e&&"object"!=typeof e)return;if(t="string"==typeof e?JSON.parse(e):e,!function(e){return e?.constructor==={}.constructor}(t)&&!Array.isArray(t))return;let n=!1;return n=Array.isArray(t)?t.some((e=>Pl(e))):Pl(t),n?t:void 0}function Pl(e){return!("object"!=typeof e||!e.query||"string"!=typeof e.query)}var Ll=Object.prototype.hasOwnProperty;function Dl(e,t,n){return e||0===e||""===e?t(e)+(n?",":""):"!"}function Ul(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function Fl(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},n=0;return function(i){if(void 0===i||""===i)return"";var r=new gl({agentIdentifier:e});i=String(i),r.shouldObfuscate()&&(i=r.obfuscateString(i));return Ll.call(t,i)?Ul(t[i],!0):(t[i]=n++,function(e){return"'"+e.replace(jl,"\\$1")}(i))}}function Hl(e,t){var n=[];return Xt(e,(function(e,i){if(!(n.length>=64)){var r,o=5;switch(e=t(e),typeof i){case"object":i?r=t(Hn(i)):o=9;break;case"number":o=6,r=i%1?i:i+".";break;case"boolean":o=i?7:8;break;case"undefined":o=9;break;default:r=t(i)}n.push([o,e+(r?","+r:"")])}})),n}var jl=/([,\\;])/g;class Bl{constructor(e,t){this.addString=Fl(t.agentIdentifier),this.events=e,this.payload="bel.7;";for(let n=0;n<e.length;n++){const i=e[n],r=[Ul(i.startTime),Ul(i.endTime-i.startTime),Ul(0),Ul(0),this.addString(i.method),Ul(i.status),this.addString(i.domain),this.addString(i.path),Ul(i.requestSize),Ul(i.responseSize),"fetch"===i.type?1:"",this.addString(0),Dl(i.spanId,this.addString,!0)+Dl(i.traceId,this.addString,!0)+Dl(i.spanTimestamp,Ul,!1)];let o="2,";const s=Hl({...ct(t.agentIdentifier).jsAttributes||{},...i.gql||{}},this.addString);r.unshift(Ul(s.length)),o+=r.join(","),s&&s.length>0&&(o+=";"+s.join(";")),n+1<e.length&&(o+=";"),this.payload+=o}this.tooBig=2*this.payload.length>t.MAX_PAYLOAD_SIZE}}var zl=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=Nl;#r;#o;#s;constructor(e,t){super(e,t,Nl),this.#r=ct(e),this.#o=Ut(e),this.#s=Tt(e);const n=this.#s.ajax.harvestTimeSeconds||10;this.MAX_PAYLOAD_SIZE=this.#s.ajax.maxPayloadSize||1e6,function(e){if(Sl=[],e&&e.length)for(var t=0;t<e.length;t++){let n=e[t];if(!n)continue;0===n.indexOf("http://")?n=n.substring(7):0===n.indexOf("https://")&&(n=n.substring(8));const i=n.indexOf("/");let r,o;i>0?(r=n.substring(0,i),o=n.substring(i)):(r=n,o="");let[s]=r.split(":");Sl.push({hostname:s,pathname:o})}}(this.#o.denyList),this.ajaxEvents=[],this.spaAjaxEvents={},this.sentAjaxEvents=[];const i=this;this.ee.on("interactionDone",((e,t)=>{this.spaAjaxEvents[e.id]&&(t||this.spaAjaxEvents[e.id].forEach((e=>this.ajaxEvents.push(e))),delete this.spaAjaxEvents[e.id])})),Jt("returnAjax",(e=>this.ajaxEvents.push(e)),this.featureName,this.ee),Jt("xhr",(function(){i.storeXhr(...arguments,this)}),this.featureName,this.ee),this.waitForFlags([]).then((()=>{new kl("events",{onFinished:this.onEventsHarvestFinished.bind(this),getPayload:this.prepareHarvest.bind(this)},this).startTimer(n),this.drain()}))}storeXhr(e,t,n,i,r,o){let s;t.time=n,s=e.cat?Hn([e.status,e.cat]):Hn([e.status,e.host,e.pathname]);const a=Tl(e),c=this.#s.feature_flags?.includes("ajax_metrics_deny_list");if(!a&&c||this.aggregator.store("xhr",s,e,t),!a)return void(e.hostname===this.#r.errorBeacon||this.#s.proxy?.beacon&&e.hostname===this.#s.proxy.beacon?(Kt(Jn,["Ajax/Events/Excluded/Agent"],void 0,Qt.metrics,this.ee),c&&Kt(Jn,["Ajax/Metrics/Excluded/Agent"],void 0,Qt.metrics,this.ee)):(Kt(Jn,["Ajax/Events/Excluded/App"],void 0,Qt.metrics,this.ee),c&&Kt(Jn,["Ajax/Metrics/Excluded/App"],void 0,Qt.metrics,this.ee)));Kt("bstXhrAgg",["xhr",s,e,t],void 0,Qt.sessionTrace,this.ee);const l={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:r,startTime:n,endTime:i,callbackDuration:t.cbTime};o.dt&&(l.spanId=o.dt.spanId,l.traceId=o.dt.traceId,l.spanTimestamp=this.#o.timeKeeper.correctAbsoluteTimestamp(o.dt.timestamp)),l.gql=e.gql=Il({body:o.body,query:o.parsedOrigin?.search}),l.gql&&Kt(Jn,["Ajax/Events/GraphQL/Bytes-Added",Hn(l.gql).length],void 0,Qt.metrics,this.ee);if(Boolean(et(this.agentIdentifier)?.features?.[Qt.softNav]))Kt("ajax",[l],void 0,Qt.softNav,this.ee);else if(o.spaNode){const e=o.spaNode.interaction.id;this.spaAjaxEvents[e]=this.spaAjaxEvents[e]||[],this.spaAjaxEvents[e].push(l)}else this.ajaxEvents.push(l)}prepareHarvest(e){if(e=e||{},0===this.ajaxEvents.length)return null;const t=this.#a(this.ajaxEvents),n=[];for(let e=0;e<t.length;e++)n.push({body:{e:t[e]}});return e.retry&&(this.sentAjaxEvents=this.ajaxEvents),this.ajaxEvents=[],n}onEventsHarvestFinished(e){e.retry&&this.sentAjaxEvents.length>0&&(this.ajaxEvents.unshift(...this.sentAjaxEvents),this.sentAjaxEvents=[])}#a(e,t){t=t||1;const n=[],i=e.length/t,r=function(e,t){t=t||e.length;const n=[];for(let i=0,r=e.length;i<r;i+=t)n.push(new Bl(e.slice(i,i+t),this));return n}.call(this,e,i);let o=!1;for(let e=0;e<r.length;e++){const t=r[e];if(t.tooBig){if(t.events.length>1){o=!0;break}}else n.push(t.payload)}return o?this.#a(e,++t):n}}});const Wl=/([a-z0-9]+)$/i;function Vl(e){if(!e)return;const t=e.match(Wl);return t?t[1]:void 0}var Gl=/^\n+|\n+$/g;function ql(e){return function(e){var t;if(e.length>100){var n=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+n+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(e).replace(Gl,"")}function Yl(e){if("string"!=typeof e)return"";const t=fl(e);return t===fl(Ve)?"<inline>":t}var Kl=/function (.+?)\s*\(/,Xl=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,$l=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,Jl=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,Zl=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function Ql(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t=e.stack.split("\n").reduce(eu,{frames:[],stackLines:[],wrapperSeen:!1});return t.frames.length?{mode:"stack",name:e.name||tu(e),message:e.message,stackString:ql(t.stackLines),frames:t.frames}:null}(e),t)return t}catch(e){}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||tu(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:t+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var n=Yl(e.sourceURL),i=t+": "+e.message+"\n at "+n;e.line&&(i+=":"+e.line,e.column&&(i+=":"+e.column));return{mode:"sourceline",name:t,message:e.message,stackString:i,frames:[{url:n,line:e.line,column:e.column}]}}(e),t)return t}catch(e){}try{if(t=function(e){var t=e.name||tu(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){}return{mode:"failed",stackString:"",frames:[]}}function eu(e,t){let n=function(e){var t=e.match($l);t||(t=e.match(Xl));if(t)return{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null};if(e.match(Jl)||e.match(Zl)||"anonymous"===e)return{func:"evaluated code"}}(t);if(!n)return e.stackLines.push(t),e;var i;if((i=n.func)&&i.indexOf("nrWrapper")>=0&&(e.wrapperSeen=!0),!e.wrapperSeen){let i=Yl(n.url);i!==n.url&&(t=t.replace(n.url,i),n.url=i),e.stackLines.push(t),e.frames.push(n)}return e}function tu(e){var t=Kl.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function nu(e){var t=0;if(!e||!e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}var iu=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=_n;constructor(e,t){var n;super(e,t,_n),n=this,this.stackReported={},this.observedAt={},this.pageviewReported={},this.bufferedErrorsUnderSpa={},this.currentBody=void 0,this.errorOnPage=!1,this.ee.on("interactionDone",((e,t)=>this.onInteractionDone(e,t))),Jt("err",(function(){return n.storeError(...arguments)}),this.featureName,this.ee),Jt("ierr",(function(){return n.storeError(...arguments)}),this.featureName,this.ee),Jt("softNavFlush",((e,t,n)=>this.onSoftNavNotification(e,t,n)),this.featureName,this.ee);const i=At(this.agentIdentifier,"jserrors.harvestTimeSeconds")||10;this.waitForFlags(["err"]).then((e=>{let[t]=e;if(t){const e=new kl("jserrors",{onFinished:function(){return n.onHarvestFinished(...arguments)}},this);e.harvest.on("jserrors",(function(){return n.onHarvestStarted(...arguments)})),e.startTimer(i),this.drain()}else this.blocked=!0,rn(this.agentIdentifier,this.featureName)}))}onHarvestStarted(e){var t=this.aggregator.take(["err","ierr","xhr"]);e.retry&&(this.currentBody=t);var n={body:t,qs:{}},i=Hn(Ut(this.agentIdentifier).releaseIds);return"{}"!==i&&(n.qs.ri=i),t&&t.err&&t.err.length&&(this.#c(t.err),this.errorOnPage||(n.qs.pve="1",this.errorOnPage=!0)),n}onHarvestFinished(e){e.retry&&this.currentBody&&(Xt(this.currentBody,((e,t)=>{for(var n=0;n<t.length;n++){var i=t[n],r=this.getBucketName(e,i.params,i.custom);this.aggregator.merge(e,r,i.metrics,i.params,i.custom)}})),this.currentBody=null)}nameHash(e){return nu("".concat(e.exceptionClass,"_").concat(e.message,"_").concat(e.stack_trace||e.browser_stack_hash))}getBucketName(e,t,n){return"xhr"===e?nu(Hn(t))+":"+nu(Hn(n)):this.nameHash(t)+":"+nu(Hn(n))}buildCanonicalStackString(e){for(var t="",n=0;n<e.frames.length;n++){var i=e.frames[n],r=Vl(i.func);t&&(t+="\n"),r&&(t+=r+"@"),"string"==typeof i.url&&(t+=i.url),i.line&&(t+=":"+i.line)}return t}storeError(e,t,n,i,r){if(!e)return;t=t||Fe();const o=Ut(this.agentIdentifier);let s;if(!n&&o.onerror&&(s=o.onerror(e),s&&("string"!=typeof s.group||!s.group.length)))return;var a=Ql(e);const c={stackHash:nu(this.buildCanonicalStackString(a)),exceptionClass:a.name,request_uri:Be?.location.pathname};a.message&&(c.message=""+a.message),s?.group&&(c.errorGroup=s.group),r&&(c.hasReplay=r);var l,u=nu("".concat(a.name,"_").concat(a.message,"_").concat(a.stackString,"_").concat(c.hasReplay?1:0));this.stackReported[u]?c.browser_stack_hash=nu(a.stackString):(this.stackReported[u]=!0,c.stack_trace=(l=a.stackString).length>65530?l.substr(0,65530):l,this.observedAt[u]=o.timeKeeper.convertRelativeTimestamp(t)),c.releaseIds=Hn(o.releaseIds),this.pageviewReported[u]||(c.pageview=1,this.pageviewReported[u]=!0),c.firstOccurrenceTimestamp=this.observedAt[u],c.timestamp=o.timeKeeper.convertRelativeTimestamp(t);const d=[n?"ierr":"err",u,c,{time:t},i];if(Kt("trace-jserror",d,void 0,Qt.sessionTrace,this.ee),this.blocked)return;e?.__newrelic?.[this.agentIdentifier]&&(c._interactionId=e.__newrelic[this.agentIdentifier].interactionId,c._interactionNodeId=e.__newrelic[this.agentIdentifier].interactionNodeId);Boolean(et(this.agentIdentifier)?.features[Qt.softNav])?Kt("jserror",[c,t],void 0,Qt.softNav,this.ee):Kt("spa-jserror",d,void 0,Qt.spa,this.ee),c.browserInteractionId&&!c._softNavFinished?(this.bufferedErrorsUnderSpa[c.browserInteractionId]??=[],this.bufferedErrorsUnderSpa[c.browserInteractionId].push(d)):null!=c._interactionId?(this.bufferedErrorsUnderSpa[c._interactionId]=this.bufferedErrorsUnderSpa[c._interactionId]||[],this.bufferedErrorsUnderSpa[c._interactionId].push(d)):this.#l(d,void 0!==c.browserInteractionId,c._softNavAttributes)}#l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[i,r,o,s,a]=e;const c={};t?(Object.entries(n).forEach((e=>{let[t,n]=e;return u(t,n)})),r+=o.browserInteractionId,delete o._softNavAttributes,delete o._softNavFinished):(Object.entries(ct(this.agentIdentifier).jsAttributes).forEach((e=>{let[t,n]=e;return u(t,n)})),delete o.browserInteractionId),a&&Object.entries(a).forEach((e=>{let[t,n]=e;return u(t,n)}));const l=r+":"+nu(Hn(c));function u(e,t){c[e]=t&&"object"==typeof t?Hn(t):t}this.aggregator.store(i,l,o,s,c)}onInteractionDone(e,t){this.bufferedErrorsUnderSpa[e.id]&&!this.blocked&&(this.bufferedErrorsUnderSpa[e.id].forEach((n=>{var i={};const r=n[4];Xt(e.root.attrs.custom,a),Xt(r,a);var o=n[2];t&&(o.browserInteractionId=e.root.attrs.id,o._interactionNodeId&&(o.parentNodeId=o._interactionNodeId.toString())),delete o._interactionId,delete o._interactionNodeId;var s=(t?n[1]+e.root.attrs.id:n[1])+":"+nu(Hn(i));function a(e,t){i[e]=t&&"object"==typeof t?Hn(t):t}this.aggregator.store(n[0],s,o,n[3],i)})),delete this.bufferedErrorsUnderSpa[e.id])}onSoftNavNotification(e,t,n){this.blocked||(this.bufferedErrorsUnderSpa[e]?.forEach((e=>this.#l(e,t,n))),delete this.bufferedErrorsUnderSpa[e])}#c(e){const t={errorHashes:e.map((e=>e.params.stackHash))};this.ee.emit("cfc.".concat(this.featureName),[t]),e.find((e=>e.params.hasReplay))&&!t.hasReplay&&e.forEach((e=>{delete e.params.hasReplay}))}}});const ru="React",ou="NextJS",su="Vue",au="NuxtJS",cu="Angular",lu="AngularUniversal",uu="Svelte",du="SvelteKit",hu="Preact",pu="PreactSSR",fu="AngularJS",mu="Backbone",vu="Ember",gu="Meteor",Cu="Zepto",yu="Jquery",bu="MooTools",Eu="Qwik",wu="Electron";function _u(){if(!He)return[];const e=[];try{(function(){try{return Object.prototype.hasOwnProperty.call(window,"React")||Object.prototype.hasOwnProperty.call(window,"ReactDOM")||Object.prototype.hasOwnProperty.call(window,"ReactRedux")||document.querySelector("[data-reactroot], [data-reactid]")||(()=>{const e=document.querySelectorAll("body > div");for(let t=0;t<e.length;t++)if(Object.prototype.hasOwnProperty.call(e[t],"_reactRootContainer"))return!0})()}catch(e){return!1}})()&&(e.push(ru),function(){try{return Object.prototype.hasOwnProperty.call(window,"next")&&Object.prototype.hasOwnProperty.call(window.next,"version")}catch(e){return!1}}()&&e.push(ou)),function(){try{return Object.prototype.hasOwnProperty.call(window,"Vue")}catch(e){return!1}}()&&(e.push(su),function(){try{return Object.prototype.hasOwnProperty.call(window,"$nuxt")&&Object.prototype.hasOwnProperty.call(window.$nuxt,"nuxt")}catch(e){return!1}}()&&e.push(au)),function(){try{return Object.prototype.hasOwnProperty.call(window,"ng")||document.querySelector("[ng-version]")}catch(e){return!1}}()&&(e.push(cu),function(){try{return document.querySelector("[ng-server-context]")}catch(e){return!1}}()&&e.push(lu)),function(){try{return Object.prototype.hasOwnProperty.call(window,"__svelte")}catch(e){return!1}}()&&(e.push(uu),function(){try{return!!Object.keys(window).find((e=>e.startsWith("__sveltekit")))}catch(e){return!1}}()&&e.push(du)),function(){try{return Object.prototype.hasOwnProperty.call(window,"preact")}catch(e){return!1}}()&&(e.push(hu),function(){try{return document.querySelector('script[type="__PREACT_CLI_DATA__"]')}catch(e){return!1}}()&&e.push(pu)),function(){try{return Object.prototype.hasOwnProperty.call(window,"angular")||document.querySelector(".ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]")||document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')}catch(e){return!1}}()&&e.push(fu),Object.prototype.hasOwnProperty.call(window,"Backbone")&&e.push(mu),Object.prototype.hasOwnProperty.call(window,"Ember")&&e.push(vu),Object.prototype.hasOwnProperty.call(window,"Meteor")&&e.push(gu),Object.prototype.hasOwnProperty.call(window,"Zepto")&&e.push(Cu),Object.prototype.hasOwnProperty.call(window,"jQuery")&&e.push(yu),Object.prototype.hasOwnProperty.call(window,"MooTools")&&e.push(bu),Object.prototype.hasOwnProperty.call(window,"qwikevents")&&e.push(Eu),function(){try{return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}catch(e){return!1}}()&&e.push(wu)}catch(e){}return e}var ku=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=$n;constructor(e,t){super(e,t,$n),this.waitForFlags(["err"]).then((e=>{let[t]=e;if(t){new kl("jserrors",{onUnload:()=>this.unload()},this).harvest.on("jserrors",(()=>({body:this.aggregator.take(["cm","sm"])}))),this.drain()}else this.blocked=!0,rn(this.agentIdentifier,this.featureName)})),Jt(Jn,this.storeSupportabilityMetrics.bind(this),this.featureName,this.ee),Jt(Zn,this.storeEventMetrics.bind(this),this.featureName,this.ee),this.singleChecks(),this.eachSessionChecks()}storeSupportabilityMetrics(e,t){if(this.blocked)return;const n={name:e};this.aggregator.storeMetric("sm",e,n,t)}storeEventMetrics(e,t){if(this.blocked)return;const n={name:e};this.aggregator.store("cm",e,n,t)}singleChecks(){const{distMethod:e,loaderType:t}=Ut(this.agentIdentifier),{proxy:n,privacy:i,page_view_timing:r}=Tt(this.agentIdentifier);if(t&&this.storeSupportabilityMetrics("Generic/LoaderType/".concat(t,"/Detected")),e&&this.storeSupportabilityMetrics("Generic/DistMethod/".concat(e,"/Detected")),He){this.storeSupportabilityMetrics("Generic/Runtime/Browser/Detected");const e=document?.currentScript?.nonce;e&&""!==e&&this.storeSupportabilityMetrics("Generic/Runtime/Nonce/Detected"),function(e){if(vn())return e();mn("DOMContentLoaded",e)}((()=>{_u().forEach((e=>{this.storeSupportabilityMetrics("Framework/"+e+"/Detected")}))})),i.cookies_enabled||this.storeSupportabilityMetrics("Config/SessionTracking/Disabled"),r.long_task&&this.storeSupportabilityMetrics("Config/LongTask/Enabled")}else je?this.storeSupportabilityMetrics("Generic/Runtime/Worker/Detected"):this.storeSupportabilityMetrics("Generic/Runtime/Unknown/Detected");ml()&&this.storeSupportabilityMetrics("Generic/FileProtocol/Detected");const o=Cl(this.agentIdentifier);o.length>0&&this.storeSupportabilityMetrics("Generic/Obfuscate/Detected"),o.length>0&&!function(e){for(var t=!1,n=!1,i=0;i<e.length;i++){"regex"in e[i]?"string"==typeof e[i].regex||e[i].regex instanceof RegExp||(rt('An obfuscation replacement rule contains a "regex" value with an invalid type (must be a string or RegExp)'),n=!0):(rt('An obfuscation replacement rule was detected missing a "regex" value.'),n=!0);var r=e[i].replacement;r&&"string"!=typeof r&&(rt('An obfuscation replacement rule contains a "replacement" value with an invalid type (must be a string)'),t=!0)}return!t&&!n}(o)&&this.storeSupportabilityMetrics("Generic/Obfuscate/Invalid"),n.assets&&this.storeSupportabilityMetrics("Config/AssetsUrl/Changed"),n.beacon&&this.storeSupportabilityMetrics("Config/BeaconUrl/Changed")}eachSessionChecks(){He&&fn("pageshow",(e=>{e?.persisted&&this.storeSupportabilityMetrics("Generic/BFCache/PageRestored")}))}unload(){try{if(this.resourcesSent)return;this.resourcesSent=!0;const e=["beacon","fetch","xmlhttprequest"],t=["nr-data.net","newrelic.com","nr-local.net","localhost"];function n(e){return t.some((t=>e.name.indexOf(t)>=0))}function i(t){return e.includes(t.initiatorType)}if((performance?.getEntriesByType("resource")||[]).forEach((e=>{n(e)?i(e)?this.storeSupportabilityMetrics("Generic/Resources/Ajax/Internal"):this.storeSupportabilityMetrics("Generic/Resources/Non-Ajax/Internal"):i(e)?this.storeSupportabilityMetrics("Generic/Resources/Ajax/External"):this.storeSupportabilityMetrics("Generic/Resources/Non-Ajax/External")})),"undefined"!=typeof performance){const r=performance.getEntriesByType("mark"),o=performance.getEntriesByType("measure");this.storeSupportabilityMetrics("Generic/Performance/Mark/Seen",r.length),this.storeSupportabilityMetrics("Generic/Performance/Measure/Seen",o.length)}}catch(s){}}}});var Su=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=vi;constructor(e,t){var n;super(e,t,vi),n=this,this.eventsPerMinute=240,this.harvestTimeSeconds=At(this.agentIdentifier,"page_action.harvestTimeSeconds")||At(this.agentIdentifier,"ins.harvestTimeSeconds")||30,this.eventsPerHarvest=this.eventsPerMinute*this.harvestTimeSeconds/60,this.referrerUrl=void 0,this.currentEvents=void 0,this.events=[],this.att=ct(this.agentIdentifier).jsAttributes,He&&document.referrer&&(this.referrerUrl=fl(document.referrer)),Jt("api-addPageAction",(function(){return n.addPageAction(...arguments)}),this.featureName,this.ee),this.waitForFlags(["ins"]).then((e=>{let[t]=e;if(t){const e=new kl("ins",{onFinished:function(){return n.onHarvestFinished(...arguments)}},this);e.harvest.on("ins",(function(){return n.onHarvestStarted(...arguments)})),e.startTimer(this.harvestTimeSeconds,0),this.drain()}else this.blocked=!0,rn(this.agentIdentifier,this.featureName)}))}onHarvestStarted(e){const{userAttributes:t,atts:n}=ct(this.agentIdentifier);var i={qs:{ua:t,at:n},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],i}onHarvestFinished(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}addPageAction(e,t,n){if(this.events.length>=this.eventsPerHarvest||this.blocked)return;var i,r,o={};He&&window.document.documentElement&&(i=window.document.documentElement.clientWidth,r=window.document.documentElement.clientHeight);const s=Ut(this.agentIdentifier);var a={timestamp:s.timeKeeper.convertRelativeTimestamp(e),timeSinceLoad:e/1e3,browserWidth:i,browserHeight:r,referrerUrl:this.referrerUrl,currentUrl:fl(""+location),pageUrl:fl(s.origin),eventType:"PageAction"};function c(e,t){o[e]=t&&"object"==typeof t?Hn(t):t}Xt(a,c),Xt(ct(this.agentIdentifier).jsAttributes,c),n&&"object"==typeof n&&Xt(n,c),o.actionName=t||"",this.events.push(o)}}}),Tu="Start",Mu="End",Au="unloadEvent",Nu="redirect",Ou="domainLookup",Iu="onnect",Ru="response",xu="loadEvent",Pu="domContentLoadedEvent";const Lu=[];function Du(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t)return n.of=e,Fu(n.of,n,"n",!0),Fu(t[Au+Tu],n,"u",i),Fu(t[Nu+Tu],n,"r",i),Fu(t[Au+Mu],n,"ue",i),Fu(t[Nu+Mu],n,"re",i),Fu(t["fetch"+Tu],n,"f",i),Fu(t[Ou+Tu],n,"dn",i),Fu(t[Ou+Mu],n,"dne",i),Fu(t["c"+Iu+Tu],n,"c",i),Fu(t["secureC"+Iu+"ion"+Tu],n,"s",i),Fu(t["c"+Iu+Mu],n,"ce",i),Fu(t["request"+Tu],n,"rq",i),Fu(t[Ru+Tu],n,"rp",i),Fu(t[Ru+Mu],n,"rpe",i),Fu(t.domLoading,n,"dl",i),Fu(t.domInteractive,n,"di",i),Fu(t[Pu+Tu],n,"ds",i),Fu(t[Pu+Mu],n,"de",i),Fu(t.domComplete,n,"dc",i),Fu(t[xu+Tu],n,"l",i),Fu(t[xu+Mu],n,"le",i),n}function Uu(e,t){var n;return Fu("number"==typeof(n=e.type)?n:{navigate:void 0,reload:1,back_forward:2,prerender:3}[n],t,"ty"),Fu(e.redirectCount,t,"rc"),t}function Fu(e,t,n,i){if("number"==typeof e&&e>0){if(i){const n=t?.of>0?t.of:0;e=Math.max(e-n,0)}e=Math.round(e),t[n]=e,Lu.push(e)}else Lu.push(void 0)}function Hu(e){const t=[],n=Ze();try{Object.keys(n.initializedAgents[e].features).forEach((e=>{switch(e){case Qt.ajax:t.push("xhr");break;case Qt.jserrors:t.push("err");break;case Qt.pageAction:t.push("ins");break;case Qt.sessionTrace:t.push("stn");break;case Qt.softNav:case Qt.spa:t.push("spa")}}))}catch(e){}return t}var ju,Bu,zu,Wu,Vu,Gu=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},qu=function(e){if("loading"===document.readyState)return"loading";var t=Gu();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},Yu=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Ku=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var i=e,r=i.id?"#"+i.id:Yu(i)+(i.classList&&i.classList.value&&i.classList.value.trim()&&i.classList.value.trim().length?"."+i.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+r.length>(t||100)-1)return n||r;if(n=n?r+">"+n:r,i.id)break;e=i.parentNode}}catch(e){}return n},Xu=-1,$u=function(){return Xu},Ju=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Xu=t.timeStamp,e(t))}),!0)},Zu=function(){var e=Gu();return e&&e.activationStart||0},Qu=function(e,t){var n=Gu(),i="navigate";return $u()>=0?i="back-forward-cache":n&&(document.prerendering||Zu()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},ed=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},td=function(e,t,n,i){var r,o;return function(s){t.value>=0&&(s||i)&&((o=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},nd=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},id=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},rd=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},od=-1,sd=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},ad=function(e){"hidden"===document.visibilityState&&od>-1&&(od="visibilitychange"===e.type?e.timeStamp:0,ld())},cd=function(){addEventListener("visibilitychange",ad,!0),addEventListener("prerenderingchange",ad,!0)},ld=function(){removeEventListener("visibilitychange",ad,!0),removeEventListener("prerenderingchange",ad,!0)},ud=function(){return od<0&&(od=sd(),cd(),Ju((function(){setTimeout((function(){od=sd(),cd()}),0)}))),{get firstHiddenTime(){return od}}},dd=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},hd=[1800,3e3],pd=function(e,t){t=t||{},dd((function(){var n,i=ud(),r=Qu("FCP"),o=ed("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=Math.max(e.startTime-Zu(),0),r.entries.push(e),n(!0)))}))}));o&&(n=td(e,r,hd,t.reportAllChanges),Ju((function(i){r=Qu("FCP"),n=td(e,r,hd,t.reportAllChanges),nd((function(){r.value=performance.now()-i.timeStamp,n(!0)}))})))}))},fd=[.1,.25],md={passive:!0,capture:!0},vd=new Date,gd=function(e,t){ju||(ju=t,Bu=e,zu=new Date,bd(removeEventListener),Cd())},Cd=function(){if(Bu>=0&&Bu<zu-vd){var e={entryType:"first-input",name:ju.type,target:ju.target,cancelable:ju.cancelable,startTime:ju.timeStamp,processingStart:ju.timeStamp+Bu};Wu.forEach((function(t){t(e)})),Wu=[]}},yd=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){gd(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,md),removeEventListener("pointercancel",i,md)};addEventListener("pointerup",n,md),addEventListener("pointercancel",i,md)}(t,e):gd(t,e)}},bd=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,yd,md)}))},Ed=[100,300],wd=function(e,t){t=t||{},dd((function(){var n,i=ud(),r=Qu("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=function(e){e.forEach(o)},a=ed("first-input",s);n=td(e,r,Ed,t.reportAllChanges),a&&id(rd((function(){s(a.takeRecords()),a.disconnect()}))),a&&Ju((function(){var i;r=Qu("FID"),n=td(e,r,Ed,t.reportAllChanges),Wu=[],Bu=-1,ju=null,bd(addEventListener),i=o,Wu.push(i),Cd()}))}))},_d=0,kd=1/0,Sd=0,Td=function(e){e.forEach((function(e){e.interactionId&&(kd=Math.min(kd,e.interactionId),Sd=Math.max(Sd,e.interactionId),_d=Sd?(Sd-kd)/7+1:0)}))},Md=function(){return Vu?_d:performance.interactionCount||0},Ad=[200,500],Nd=0,Od=function(){return Md()-Nd},Id=[],Rd={},xd=function(e){var t=Id[Id.length-1],n=Rd[e.interactionId];if(n||Id.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};Rd[i.id]=i,Id.push(i)}Id.sort((function(e,t){return t.latency-e.latency})),Id.splice(10).forEach((function(e){delete Rd[e.id]}))}},Pd=function(e,t){t=t||{},dd((function(){var n;"interactionCount"in performance||Vu||(Vu=ed("event",Td,{type:"event",buffered:!0,durationThreshold:0}));var i,r=Qu("INP"),o=function(e){e.forEach((function(e){e.interactionId&&xd(e),"first-input"===e.entryType&&!Id.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&xd(e)}));var t,n=(t=Math.min(Id.length-1,Math.floor(Od()/50)),Id[t]);n&&n.latency!==r.value&&(r.value=n.latency,r.entries=n.entries,i())},s=ed("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=td(e,r,Ad,t.reportAllChanges),s&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),id((function(){o(s.takeRecords()),r.value<0&&Od()>0&&(r.value=0,r.entries=[]),i(!0)})),Ju((function(){Id=[],Nd=Md(),r=Qu("INP"),i=td(e,r,Ad,t.reportAllChanges)})))}))},Ld=[2500,4e3],Dd={},Ud=[800,1800],Fd=function e(t){document.prerendering?dd((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},Hd=function(e,t){t=t||{};var n=Qu("TTFB"),i=td(e,n,Ud,t.reportAllChanges);Fd((function(){var r=Gu();if(r){var o=r.responseStart;if(o<=0||o>performance.now())return;n.value=Math.max(o-Zu(),0),n.entries=[r],i(!0),Ju((function(){n=Qu("TTFB",0),(i=td(e,n,Ud,t.reportAllChanges))(!0)}))}}))};const jd="fp",Bd="fcp",zd="fi",Wd="lcp",Vd="cls",Gd="inp",qd="lt",Yd="ttfb";class Kd{#u=new Set;history=[];constructor(e,t){this.name=e,this.attrs={},this.roundingMethod="function"==typeof t?t:Math.floor}update(e){let{value:t,attrs:n={}}=e;if(null==t||t<0)return;const i={value:this.roundingMethod(t),name:this.name,attrs:n};this.history.push(i),this.#u.forEach((e=>{try{e(i)}catch(e){}}))}get current(){return this.history[this.history.length-1]||{value:void 0,name:this.name,attrs:{}}}get isValid(){return this.current.value>=0}subscribe(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("function"==typeof e)return this.#u.add(e),this.isValid&&t&&this.history.forEach((t=>{e(t)})),()=>{this.#u.delete(e)}}}const Xd=new Kd(Bd);if(He)if(qe)try{if(!We){performance.getEntriesByType("paint").forEach((e=>{"first-contentful-paint"===e.name&&Xd.update({value:Math.floor(e.startTime)})}))}}catch(ju){}else!function(e,t){pd((function(t){!function(e){if(e.entries.length){var t=Gu(),n=e.entries[e.entries.length-1];if(t){var i=t.activationStart||0,r=Math.max(0,t.responseStart-i);return void(e.attribution={timeToFirstByte:r,firstByteToFCP:e.value-r,loadState:qu(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:qu($u())}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n}=e;if(We||Xd.isValid)return;const i={timeToFirstByte:n.timeToFirstByte,firstByteToFCP:n.firstByteToFCP,loadState:n.loadState};Xd.update({value:t,attrs:i})}));const $d=new Kd(jd);if(He){const e=e=>{e.forEach((e=>{"first-paint"!==e.name||$d.isValid||(t.disconnect(),$d.update({value:e.startTime}))}))};let t;try{PerformanceObserver.supportedEntryTypes.includes("paint")&&!We&&(t=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))})),t.observe({type:"paint",buffered:!0}))}catch(ju){}}const Jd=new Kd(Yd);if(He&&"undefined"!=typeof PerformanceNavigationTiming&&!Ge&&window===window.parent)!function(e,t){Hd((function(t){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,i=Math.max(t.domainLookupStart-n,0),r=Math.max(t.connectStart-n,0),o=Math.max(t.requestStart-n,0);e.attribution={waitingTime:i,dnsTime:r-i,connectionTime:o-r,requestTime:e.value-o,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n}=e;Jd.isValid||Jd.update({value:t,attrs:{navigationEntry:n.navigationEntry}})}));else if(!Jd.isValid){const e={};for(let t in Be?.performance?.timing||{})e[t]=Math.max(Be?.performance?.timing[t]-Xe,0);Jd.update({value:e.responseStart,attrs:{navigationEntry:e}})}class Zd{#d;#h;#p;#f=!1;constructor(e){this.#d=Ut(e)?.session,this.processStoredDiff()}get ready(){return this.#f}get correctedOriginTime(){return this.#h}processRumRequest(e,t,n){if(this.processStoredDiff(),this.#f)return;const i=e.getResponseHeader("Date");if(!i)throw new Error("Missing date header on rum response.");const r=t+(n-t)/2;if(this.#h=Math.floor(Date.parse(i)-r),this.#p=Xe-this.#h,isNaN(this.#h))throw new Error("Date header invalid format.");this.#d?.write({serverTimeDiff:this.#p}),this.#f=!0}convertRelativeTimestamp(e){return Math.floor(this.#h+e)}correctAbsoluteTimestamp(e){return Math.floor(e-this.#p)}processStoredDiff(){const e=this.#d?.read()?.serverTimeDiff;"number"!=typeof e||isNaN(e)||(this.#p=e,this.#h=Xe-this.#p,this.#f=!0)}}var Qd=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=qn;constructor(e,t){super(e,t,qn),this.timeToFirstByte=0,this.firstByteToWindowLoad=0,this.firstByteToDomContent=0,this.timeKeeper=new Zd(this.agentIdentifier),He?Jd.subscribe((e=>{let{value:t,attrs:n}=e;const i=n.navigationEntry;this.timeToFirstByte=Math.max(t,this.timeToFirstByte),this.firstByteToWindowLoad=Math.max(Math.round(i.loadEventEnd-this.timeToFirstByte),this.firstByteToWindowLoad),this.firstByteToDomContent=Math.max(Math.round(i.domContentLoadedEventEnd-this.timeToFirstByte),this.firstByteToDomContent),this.sendRum()})):this.sendRum()}sendRum(){const e=ct(this.agentIdentifier),t=Ut(this.agentIdentifier),n=new El(this);if(!e.beacon)return;e.queueTime&&this.aggregator.store("measures","qt",{value:e.queueTime}),e.applicationTime&&this.aggregator.store("measures","ap",{value:e.applicationTime}),this.aggregator.store("measures","be",{value:this.timeToFirstByte}),this.aggregator.store("measures","fe",{value:this.firstByteToWindowLoad}),this.aggregator.store("measures","dc",{value:this.firstByteToDomContent});const i={tt:e.ttGuid,us:e.user,ac:e.account,pr:e.product,af:Hu(this.agentIdentifier).join(","),...Object.entries(this.aggregator.get("measures")||{}).reduce(((e,t)=>{let[n,i]=t;return e[n]=i.params?.value,e}),{}),xx:e.extra,ua:e.userAttributes,at:e.atts};let r;if(t.session&&(i.fsh=Number(t.session.isNew)),"object"==typeof e.jsAttributes&&Object.keys(e.jsAttributes).length>0&&(r={ja:e.jsAttributes}),Be.performance)if("undefined"!=typeof PerformanceNavigationTiming){const e=Be?.performance?.getEntriesByType("navigation")?.[0],t={timing:Du(Xe,e,{}),navigation:Uu(e,{})};i.perf=Hn(t)}else if("undefined"!=typeof PerformanceTiming){const e={timing:Du(Xe,Be.performance.timing,{},!0),navigation:Uu(Be.performance.navigation,{})};i.perf=Hn(e)}i.fp=$d.current.value,i.fcp=Xd.current.value,this.timeKeeper?.ready&&(i.timestamp=this.timeKeeper.convertRelativeTimestamp(Fe()));const o=Fe();n.send({endpoint:"rum",payload:{qs:i,body:r},opts:{needResponse:!0,sendEmptyBody:!0},cbFinished:e=>{let{status:n,responseText:i,xhr:r}=e;const s=Fe();if(n>=400||0===n)this.ee.abort();else{try{if(this.timeKeeper.processRumRequest(r,o,s),!this.timeKeeper.ready)throw new Error("TimeKeeper not ready");t.timeKeeper=this.timeKeeper}catch(e){return Kt(Jn,["PVE/NRTime/Calculation/Failed"],void 0,Qt.metrics,this.ee),sn(this.agentIdentifier,Qt.metrics,!0),this.ee.abort(),void rt("Could not calculate New Relic server time. Agent shutting down.",e)}try{const{app:e,...n}=JSON.parse(i);t.appMetadata=e,oi(n,this.agentIdentifier),this.drain()}catch(e){this.ee.abort(),rt("RUM call failed. Agent shutting down.",e)}}}})}}});const eh=Qt.pageViewTiming,th=new Kd(Vd,(e=>e));He&&function(e,t){!function(e,t){t=t||{},pd(rd((function(){var n,i=Qu("CLS",0),r=0,o=[],s=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=o[0],n=o[o.length-1];r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e])}})),r>i.value&&(i.value=r,i.entries=o,n())},a=ed("layout-shift",s);a&&(n=td(e,i,fd,t.reportAllChanges),id((function(){s(a.takeRecords()),n(!0)})),Ju((function(){r=0,i=Qu("CLS",0),n=td(e,i,fd,t.reportAllChanges),nd((function(){return n()}))})),setTimeout(n,0))})))}((function(t){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(i=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||i[0];if(n)return void(e.attribution={largestShiftTarget:Ku(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:qu(t.startTime)})}}var i;e.attribution={}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n,id:i}=e;const r={metricId:i,largestShiftTarget:n.largestShiftTarget,largestShiftTime:n.largestShiftTime,largestShiftValue:n.largestShiftValue,loadState:n.loadState};th.update({value:t,attrs:r})}),{reportAllChanges:!0});const nh=new Kd(zd);He&&function(e,t){wd((function(t){!function(e){var t=e.entries[0];e.attribution={eventTarget:Ku(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:qu(t.startTime)}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n}=e;if(We||nh.isValid)return;const i={type:n.eventType,fid:Math.round(t),eventTarget:n.eventTarget,loadState:n.loadState};nh.update({value:n.eventTime,attrs:i})}));const ih=new Kd(Gd);He&&function(e,t){Pd((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0],n=e.entries.find((function(e){return e.target}));e.attribution={eventTarget:Ku(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:qu(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n,id:i}=e;const r={metricId:i,eventTarget:n.eventTarget,eventType:n.eventType,eventTime:n.eventTime,loadState:n.loadState};ih.update({value:t,attrs:r})}));const rh=new Kd(Wd);He&&function(e,t){!function(e,t){t=t||{},dd((function(){var n,i=ud(),r=Qu("LCP"),o=function(e){var t=e[e.length-1];t&&t.startTime<i.firstHiddenTime&&(r.value=Math.max(t.startTime-Zu(),0),r.entries=[t],n())},s=ed("largest-contentful-paint",o);if(s){n=td(e,r,Ld,t.reportAllChanges);var a=rd((function(){Dd[r.id]||(o(s.takeRecords()),s.disconnect(),Dd[r.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(a,0)}),!0)})),id(a),Ju((function(i){r=Qu("LCP"),n=td(e,r,Ld,t.reportAllChanges),nd((function(){r.value=performance.now()-i.timeStamp,Dd[r.id]=!0,n(!0)}))}))}}))}((function(t){!function(e){if(e.entries.length){var t=Gu();if(t){var n=t.activationStart||0,i=e.entries[e.entries.length-1],r=i.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===i.url}))[0],o=Math.max(0,t.responseStart-n),s=Math.max(o,r?(r.requestStart||r.startTime)-n:0),a=Math.max(s,r?r.responseEnd-n:0),c=Math.max(a,i?i.startTime-n:0),l={element:Ku(i.element),timeToFirstByte:o,resourceLoadDelay:s-o,resourceLoadTime:a-s,elementRenderDelay:c-a,navigationEntry:t,lcpEntry:i};return i.url&&(l.url=i.url),r&&(l.lcpResourceEntry=r),void(e.attribution=l)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(t),e(t)}),t)}((e=>{let t,{value:n,attribution:i}=e;if(We||rh.isValid)return;const r=i.lcpEntry;r&&(t={size:r.size,eid:r.id,element:i.element,timeToFirstByte:i.timeToFirstByte,resourceLoadDelay:i.resourceLoadDelay,resourceLoadTime:i.resourceLoadTime,elementRenderDelay:i.elementRenderDelay},i.url&&(t.elUrl=fl(i.url)),r.element?.tagName&&(t.elTag=r.element.tagName)),rh.update({value:n,attrs:t})}));const oh=new Kd(qd);if(He){const e=e=>{e.forEach((e=>{oh.update({value:e.duration,attrs:{ltFrame:e.name,ltStart:e.startTime,ltCtr:e.attribution[0].containerType,..."window"!==e.attribution[0].containerType&&{ltCtrSrc:e.attribution[0].containerSrc,ltCtrId:e.attribution[0].containerId,ltCtrName:e.attribution[0].containerName}}})}))};let t;try{PerformanceObserver.supportedEntryTypes.includes("longtask")&&(t=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))})),t.observe({type:"longtask",buffered:!0}))}catch(ju){}t&&_l((()=>{e(t.takeRecords())}))}var sh=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=eh;#m=e=>{let{name:t,value:n,attrs:i}=e;this.addTiming(t,n,i)};constructor(e,t){var n;super(e,t,eh),n=this,this.timings=[],this.timingsSent=[],this.curSessEndRecorded=!1,!0===At(this.agentIdentifier,"page_view_timing.long_task")&&oh.subscribe(this.#m),Jt("docHidden",(e=>this.endCurrentSession(e)),this.featureName,this.ee),Jt("winPagehide",(e=>this.recordPageUnload(e)),this.featureName,this.ee);const i=At(this.agentIdentifier,"page_view_timing.initialHarvestSeconds")||10,r=At(this.agentIdentifier,"page_view_timing.harvestTimeSeconds")||30;this.waitForFlags([]).then((()=>{$d.subscribe(this.#m),Xd.subscribe(this.#m),nh.subscribe(this.#m),rh.subscribe(this.#m),ih.subscribe(this.#m),Jd.subscribe((e=>{let{attrs:t}=e;this.addTiming("load",Math.round(t.navigationEntry.loadEventEnd))})),xc((()=>{const{name:e,value:t,attrs:n}=th.current;void 0!==t&&this.addTiming(e,1e3*t,n)}),!0);const e=new kl("events",{onFinished:function(){return n.onHarvestFinished(...arguments)},getPayload:function(){return n.prepareHarvest(...arguments)}},this);e.startTimer(r,i),this.drain()}))}endCurrentSession(e){this.curSessEndRecorded||(this.addTiming("pageHide",e,null),this.curSessEndRecorded=!0)}recordPageUnload(e){this.addTiming("unload",e,null),this.endCurrentSession(e)}addTiming(e,t,n){(function(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!t)return;t.type&&(e["net-type"]=t.type);t.effectiveType&&(e["net-etype"]=t.effectiveType);t.rtt&&(e["net-rtt"]=t.rtt);t.downlink&&(e["net-dlink"]=t.downlink)})(n=n||{}),e!==Vd&&th.current.value>=0&&(n.cls=th.current.value),this.timings.push({name:e,value:t,attrs:n}),Kt("pvtAdded",[e,t,n],void 0,Qt.sessionTrace,this.ee)}onHarvestFinished(e){e.retry&&this.timingsSent.length>0&&(this.timings.unshift(...this.timingsSent),this.timingsSent=[])}appendGlobalCustomAttributes(e){var t=e.attrs||{},n=ct(this.agentIdentifier).jsAttributes||{},i=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];Xt(n,(function(e,n){i.indexOf(e)<0&&(t[e]=n)}))}prepareHarvest(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var n=0;n<this.timings.length;n++)this.timingsSent.push(this.timings[n]);return this.timings=[],{body:{e:t}}}}getPayload(e){for(var t=Fl(this.agentIdentifier),n="bel.6;",i=0;i<e.length;i++){var r=e[i];n+="e,",n+=t(r.name)+",",n+=Dl(r.value,Ul,!1)+",",this.appendGlobalCustomAttributes(r);var o=Hl(r.attrs,t);o&&o.length>0&&(n+=Ul(o.length)+";"+o.join(";")),i+1<e.length&&(n+=";")}return n}}});let ah;const ch=new Promise((e=>{ah=e})),lh=Object.freeze({onReplayReady:ah,sessionReplayInitialized:ch});const uh=new class{#v=new WeakSet;#g=[];invalidStylesheetsDetected=!1;failedToFix=0;evaluate(){let e=0;if(He)for(let t=0;t<Object.keys(document.styleSheets).length;t++)if(!this.#v.has(document.styleSheets[t])){this.#v.add(document.styleSheets[t]);try{document.styleSheets[t].cssRules}catch(n){if(!document.styleSheets[t].href)return;e++,this.#g.push(this.#C(document.styleSheets[t]))}}return e&&(this.invalidStylesheetsDetected=!0),e}async fix(){await Promise.all(this.#g),this.#g=[];const e=this.failedToFix;return this.failedToFix=0,e}async#C(e){if(e?.href)try{const t=await Rt.FETCH.bind(window)(e.href);if(!t.ok)return void this.failedToFix++;const n=await t.text();try{const t=new CSSStyleSheet;await t.replace(n),Object.defineProperty(e,"cssRules",{get:()=>t.cssRules}),Object.defineProperty(e,"rules",{get:()=>t.rules})}catch(t){Object.defineProperty(e,"cssText",{get:()=>n}),this.failedToFix++}}catch(e){this.failedToFix++}}};var dh=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=kn;mode=bt;constructor(e,t,n){super(e,t,kn),this.harvestTimeSeconds=At(this.agentIdentifier,"session_replay.harvestTimeSeconds")||60,this.initialized=!1,this.blocked=!1,this.gzipper=void 0,this.u8=void 0,this.entitled=!1,this.timeKeeper=void 0,this.recorder=n?.recorder,this.errorNoticed=n?.errorNoticed||!1,Kt(Jn,["Config/SessionReplay/Enabled"],void 0,Qt.metrics,this.ee),this.ee.on("cfc.".concat(Qt.jserrors),(e=>{e.hasReplay=!(!this.scheduler?.started||!this.recorder||this.mode!==Et||this.blocked||!this.entitled)})),this.ee.on(mt,(()=>{this.abort(Rn)})),this.ee.on(ft,(()=>{this.recorder?.stopRecording()})),this.ee.on(vt,(()=>{if(!this.recorder)return;const{session:e}=Ut(this.agentIdentifier);this.mode=e.state.sessionReplayMode,this.initialized&&this.mode!==bt&&this.recorder?.startRecording()})),this.ee.on(gt,((e,t)=>{this.recorder&&this.initialized&&!this.blocked&&e===yt&&(this.mode!==bt&&t.sessionReplayMode===bt&&this.abort(Dn),this.mode=t.sessionReplay)})),this.scheduler=new kl("browser/blobs",{onFinished:this.onHarvestFinished.bind(this),retryDelay:this.harvestTimeSeconds,getPayload:this.prepareHarvest.bind(this),raw:!0},this),Jt(Tn,(()=>{this.forceStop(this.mode!==wt)}),this.featureName,this.ee),Jt(An,(e=>{this.handleError(e)}),this.featureName,this.ee);const{error_sampling_rate:i,sampling_rate:r,autoStart:o,block_selector:s,mask_text_selector:a,mask_all_inputs:c,inline_stylesheet:l,inline_images:u,collect_fonts:d}=At(this.agentIdentifier,"session_replay");this.waitForFlags(["srs","sr"]).then((e=>{let[t,n]=e;if(this.entitled=!!n,!this.entitled)return rn(this.agentIdentifier,this.featureName),void(this.recorder?.recording&&(this.abort(Un),Kt(Jn,["SessionReplay/EnabledNotEntitled/Detected"],void 0,Qt.metrics,this.ee)));this.drain(),this.initializeRecording(t)})).then((()=>{if(this.mode===bt)for(this.recorder?.stopRecording();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.();lh.onReplayReady(this.mode)})),o||Kt(Jn,["Config/SessionReplay/AutoStart/Modified"],void 0,Qt.metrics,this.ee),!0===d&&Kt(Jn,["Config/SessionReplay/CollectFonts/Modified"],void 0,Qt.metrics,this.ee),!0!==l&&Kt(Jn,["Config/SessionReplay/InlineStylesheet/Modified"],void 0,Qt.metrics,this.ee),!0===u&&Kt(Jn,["Config/SessionReplay/InlineImages/Modifed"],void 0,Qt.metrics,this.ee),!0!==c&&Kt(Jn,["Config/SessionReplay/MaskAllInputs/Modified"],void 0,Qt.metrics,this.ee),"[data-nr-block]"!==s&&Kt(Jn,["Config/SessionReplay/BlockSelector/Modified"],void 0,Qt.metrics,this.ee),"*"!==a&&Kt(Jn,["Config/SessionReplay/MaskTextSelector/Modified"],void 0,Qt.metrics,this.ee),Kt(Jn,["Config/SessionReplay/SamplingRate/Value",r],void 0,Qt.metrics,this.ee),Kt(Jn,["Config/SessionReplay/ErrorSamplingRate/Value",i],void 0,Qt.metrics,this.ee)}handleError(e){this.recorder&&(this.recorder.currentBufferTarget.hasError=!0),this.mode===wt&&"visible"===Be?.document.visibilityState&&this.switchToFull()}switchToFull(){this.entitled&&!this.blocked&&(this.mode=Et,this.recorder&&this.initialized?(this.recorder.recording||this.recorder.startRecording(),this.scheduler.startTimer(this.harvestTimeSeconds),this.syncWithSessionManager({sessionReplayMode:this.mode})):this.initializeRecording(!1,!0,!0))}async initializeRecording(e,t){if(this.initialized=!0,!this.entitled)return;const{session:n,timeKeeper:i}=Ut(this.agentIdentifier);if(this.timeKeeper=i,this.recorder?.parent.trigger===Fn&&this.recorder?.recording?this.mode=Et:n.isNew||t?this.mode=e:this.mode=n.state.sessionReplayMode,this.mode!==bt){if(this.recorder)this.recorder.parent=this;else try{const{Recorder:e}=await Promise.resolve().then((function(){return fp}));this.recorder=new e(this),this.recorder.currentBufferTarget.hasError=this.errorNoticed}catch(e){return this.abort(xn)}this.mode===wt&&this.errorNoticed&&(this.mode=Et),this.mode===Et&&("preloaded"===this.recorder?.getEvents().type&&this.prepUtils().then((()=>{this.scheduler.runHarvest()})),this.scheduler.started||this.scheduler.startTimer(this.harvestTimeSeconds)),await this.prepUtils(),this.recorder.recording||this.recorder.startRecording(),this.syncWithSessionManager({sessionReplayMode:this.mode})}}async prepUtils(){try{const{gzipSync:e,strToU8:t}=await Promise.resolve().then((function(){return Zp}));this.gzipper=e,this.u8=t}catch(e){}}prepareHarvest(){let{opts:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.recorder||!this.timeKeeper?.ready)return;const t=this.recorder.getEvents();if(!t.events.length||this.mode!==Et||this.blocked)return;const n=this.getHarvestContents(t);if(!n.body.length)return void this.recorder.clearBuffer();Kt(Jn,["SessionReplay/Harvest/Attempts"],void 0,Qt.metrics,this.ee);let i=0;if(this.gzipper&&this.u8?(n.body=this.gzipper(this.u8("[".concat(n.body.map((e=>{let{__serialized:t,...n}=e;if(n.__newrelic&&t)return t;const i={...n};return i.__newrelic||(i.__newrelic=bn(n.timestamp,this.timeKeeper),i.timestamp=this.timeKeeper.correctAbsoluteTimestamp(n.timestamp)),Hn(i)})).join(","),"]"))),i=n.body.length,this.scheduler.opts.gzip=!0):(n.body=n.body.map((e=>{let{__serialized:t,...n}=e;if(n.__newrelic)return n;const i={...n};return i.__newrelic=bn(n.timestamp,this.timeKeeper),i.timestamp=this.timeKeeper.correctAbsoluteTimestamp(n.timestamp),i})),i=Hn(n.body).length,this.scheduler.opts.gzip=!1),i>1e6)return void this.abort(Ln);const{session:r}=Ut(this.agentIdentifier);return r.state.sessionReplaySentFirstChunk||this.syncWithSessionManager({sessionReplaySentFirstChunk:!0}),this.recorder.clearBuffer(),"preloaded"===t.type&&this.scheduler.runHarvest(e),[n]}getCorrectedTimestamp(e){if(e?.timestamp)return e.__newrelic?e.timestamp:this.timeKeeper.correctAbsoluteTimestamp(e.timestamp)}getHarvestContents(e){e??=this.recorder.getEvents();let t=e.events;const n=Ut(this.agentIdentifier),i=ct(this.agentIdentifier),r=i.jsAttributes?.["enduser.id"];t?.[0]?.type===Nn&&this.recorder.lastMeta&&(e.hasMeta=!0,t.unshift(this.recorder.lastMeta),this.recorder.lastMeta=void 0);t[t.length-1]?.type===On&&(this.recorder.lastMeta=t[t.length-1],t=t.slice(0,t.length-1),e.hasMeta=!!t.find((e=>e.type===On)));const o=Fe(),s=this.getCorrectedTimestamp(t[0]),a=this.getCorrectedTimestamp(t[t.length-1]),c=s||this.timeKeeper.correctAbsoluteTimestamp(e.cycleTimestamp),l=a||this.timeKeeper.convertRelativeTimestamp(o),u=n.appMetadata?.agents?.[0]||{};return{qs:{browser_monitoring_key:i.licenseKey,type:"SessionReplay",app_id:i.applicationID,protocol_version:"0",timestamp:c,attributes:ll({...!!this.gzipper&&!!this.u8&&{content_encoding:"gzip"},...u.entityGuid&&{entityGuid:u.entityGuid},harvestId:[n.session?.state.value,n.ptid,n.harvestCount].filter((e=>e)).join("_"),"replay.firstTimestamp":c,"replay.lastTimestamp":l,"replay.nodes":t.length,"session.durationMs":n.session.getDuration(),agentVersion:n.version,session:n.session.state.value,rst:o,hasMeta:e.hasMeta||!1,hasSnapshot:e.hasSnapshot||!1,hasError:e.hasError||!1,isFirstChunk:!1===n.session.state.sessionReplaySentFirstChunk,decompressedBytes:e.payloadBytesEstimation,invalidStylesheetsDetected:uh.invalidStylesheetsDetected,inlinedAllStylesheets:e.inlinedAllStylesheets,"rrweb.version":"2.0.0-alpha.12","payload.type":e.type,...r&&{"enduser.id":r}},5e3).substring(1)},body:t}}onHarvestFinished(e){429===e.status&&this.abort(Pn),this.blocked&&this.scheduler.stopTimer(!0)}forceStop(e){e&&this.scheduler.runHarvest(),this.mode=bt,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode})}abort(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(rt("SR aborted -- ".concat(e.message)),Kt(Jn,["SessionReplay/Abort/".concat(e.sm)],void 0,Qt.metrics,this.ee),this.blocked=!0,this.mode=bt,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode}),this.recorder?.clearTimestamps?.(),this.ee.emit("REPLAY_ABORTED");this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.()}syncWithSessionManager(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{session:t}=Ut(this.agentIdentifier);t.write(e)}}});const hh=Qt.sessionTrace;function ph(e){if(0===(e||"").indexOf("data:"))return{protocol:"data"};try{const t=new URL(e,location.href),n={port:t.port,hostname:t.hostname,pathname:t.pathname,search:t.search,protocol:t.protocol.slice(0,t.protocol.indexOf(":")),sameOrigin:t.protocol===Be?.location?.protocol&&t.host===Be?.location?.host};return n.port&&""!==n.port||("http:"===t.protocol&&(n.port="80"),"https:"===t.protocol&&(n.port="443")),n.pathname&&""!==n.pathname?n.pathname.startsWith("/")||(n.pathname="/".concat(n.pathname)):n.pathname="/",n}catch(e){return{}}}class fh{constructor(e,t,n,i,r){this.n=e,this.s=t,this.e=n,this.o=i,this.t=r}}const mh="function"==typeof Be.PerformanceObserver,vh={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},gh={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]};class Ch{nodeCount=0;trace={};earliestTimeStamp=1/0;latestTimeStamp=0;tempStorage=[];prevStoredEvents=new Set;constructor(e){this.parent=e}storeSTN(e){if(!this.parent.blocked){if(this.nodeCount>=1e3){if(this.parent.agentRuntime.session.state.sessionTraceMode!==wt)return;if(0===this.trimSTNs(3e4))return}for(;this.tempStorage.length;)this.storeSTN(this.tempStorage.shift());this.trace[e.n]?this.trace[e.n].push(e):this.trace[e.n]=[e],e.s<this.earliestTimeStamp&&(this.earliestTimeStamp=e.s),e.s>this.latestTimeStamp&&(this.latestTimeStamp=e.s),this.nodeCount++}}trimSTNs(e){let t=0;const n=Math.max(Fe()-e,0);return Object.keys(this.trace).forEach((e=>{const i=this.trace[e];let r=i.findIndex((e=>n<=e.e));0!==r&&(r<0?(r=i.length,delete this.trace[e]):i.splice(0,r),this.nodeCount-=r,t+=r)})),t}takeSTNs(){mh||this.storeResources(Be.performance?.getEntriesByType?.("resource"));const e=Object.entries(this.trace).flatMap((e=>{let[t,n]=e;if(!(t in gh))return n;const i=this.smearEvtsByOrigin(t),r=n.sort(((e,t)=>e.s-t.s)).reduce(i,{});return Object.values(r).flat()}),this);if(0===e.length)return{};this.trace={},this.nodeCount=0;const t=this.earliestTimeStamp;this.earliestTimeStamp=1/0;const n=this.latestTimeStamp;return this.latestTimeStamp=0,{stns:e,earliestTimeStamp:t,latestTimeStamp:n}}smearEvtsByOrigin(e){const t=gh[e][0],n=gh[e][1],i={};return(r,o)=>{let s=r[o.o];s||(s=r[o.o]=[]);const a=i[o.o];return"scrolling"!==e||function(e){const t=4;return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.s<t)}(o)?a&&o.s-a.s<n&&a.e>o.s-t?a.e=o.e:(i[o.o]=o,s.push(o)):(i[o.o]=null,o.n="scroll",s.push(o)),r}}processPVT(e,t,n){this.storeTiming({[e]:t}),function(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}(e,n)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+n.fid)}storeTiming(e){if(e)for(let t in e){let n=e[t];const i=t.toLowerCase();i.indexOf("size")>=0||i.indexOf("status")>=0||"number"==typeof n&&n>=0&&(n=Math.round(n),this.storeSTN(new fh(t,n,n,"document","timing")))}}storeEvent(e,t,n,i){if(this.shouldIgnoreEvent(e,t))return;if(this.prevStoredEvents.has(e))return;this.prevStoredEvents.add(e);const r=new fh(this.evtName(e.type),n,i,void 0,"event");try{r.o=this.evtOrigin(e.target,t)}catch(e){r.o=this.evtOrigin(null,t)}this.storeSTN(r)}shouldIgnoreEvent(e,t){const n=this.evtOrigin(e.target,t);return e.type in vh.global||(!(!vh[n]||!vh[n].ignoreAll)||!(!vh[n]||!(e.type in vh[n])))}evtName(e){switch(e){case"keydown":case"keyup":case"keypress":return"typing";case"mousemove":case"mouseenter":case"mouseleave":case"mouseover":case"mouseout":return"mousing";case"scroll":return"scrolling";case"touchstart":case"touchmove":case"touchend":case"touchcancel":case"touchenter":case"touchleave":return"touching";default:return e}}evtOrigin(e,t){let n="unknown";if(e&&e instanceof XMLHttpRequest){const t=this.parent.ee.context(e).params;if(!(t&&t.status&&t.method&&t.host&&t.pathname))return"xhrOriginMissing";n=t.status+" "+t.method+": "+t.host+t.pathname}else if(e&&"string"==typeof e.tagName&&(n=e.tagName.toLowerCase(),e.id&&(n+="#"+e.id),e.className))for(let t=0;t<e.classList.length;t++)n+="."+e.classList[t];return"unknown"===n&&("string"==typeof t?n=t:t===document?n="document":t===window?n="window":t instanceof FileReader&&(n="FileReader")),n}storeHist(e,t,n){this.storeSTN(new fh("history.pushState",n,n,e,t))}#y=0;storeResources(e){e&&0!==e.length&&(e.forEach((e=>{if((0|e.fetchStart)<=this.#y)return;const{initiatorType:t,fetchStart:n,responseEnd:i,entryType:r}=e,{protocol:o,hostname:s,port:a,pathname:c}=ph(e.name),l=new fh(t,0|n,0|i,"".concat(o,"://").concat(s,":").concat(a).concat(c),r);this.storeSTN(l)})),this.#y=0|e[e.length-1].fetchStart)}storeErrorAgg(e,t,n,i){"err"===e&&this.storeSTN(new fh("error",i.time,i.time,n.message,n.stackHash))}storeXhrAgg(e,t,n,i){"xhr"===e&&this.storeSTN(new fh("Ajax",i.time,i.time+i.duration,"".concat(n.status," ").concat(n.method,": ").concat(n.host).concat(n.pathname),"ajax"))}restoreNode(e,t){this.nodeCount>=1e3||(this.nodeCount+=t.length,this.trace[e]=this.trace[e]?t.concat(this.trace[e]):t)}}var yh=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=hh;constructor(e,t){super(e,t,hh),this.agentRuntime=Ut(e),this.agentInfo=ct(e),this.sentTrace=null,this.harvestTimeSeconds=At(e,"session_trace.harvestTimeSeconds")||30,this.entitled=void 0,this.everHarvested=!1,this.harvesting=!1,this.traceStorage=new Ch(this),this.waitForFlags(["sts","st"]).then((e=>{let[t,n]=e;return this.initialize(t,n)}))}initialize(e,t,n){var i=this;return this.entitled??=t,this.blocked||!this.entitled?rn(this.agentIdentifier,this.featureName):(this.initialized||(this.ee.on(mt,(()=>{this.abort()})),this.ee.on(gt,((e,t)=>{this.mode===Et||t.sessionReplayMode!==Et&&t.sessionTraceMode!==Et||this.switchToFull()}))),this.agentRuntime.session.isNew||n?this.mode=e:this.mode=this.agentRuntime.session.state.sessionTraceMode,this.initialized=!0,this.mode===bt?rn(this.agentIdentifier,this.featureName):(this.timeKeeper??=this.agentRuntime.timeKeeper,this.scheduler=new kl("browser/blobs",{onFinished:this.onHarvestFinished.bind(this),retryDelay:this.harvestTimeSeconds,getPayload:this.prepareHarvest.bind(this),raw:!0},this),Jt("bst",(function(){return i.traceStorage.storeEvent(...arguments)}),this.featureName,this.ee),Jt("bstResource",(function(){return i.traceStorage.storeResources(...arguments)}),this.featureName,this.ee),Jt("bstHist",(function(){return i.traceStorage.storeHist(...arguments)}),this.featureName,this.ee),Jt("bstXhrAgg",(function(){return i.traceStorage.storeXhrAgg(...arguments)}),this.featureName,this.ee),Jt("bstApi",(function(){return i.traceStorage.storeSTN(...arguments)}),this.featureName,this.ee),Jt("trace-jserror",(function(){return i.traceStorage.storeErrorAgg(...arguments)}),this.featureName,this.ee),Jt("pvtAdded",(function(){return i.traceStorage.processPVT(...arguments)}),this.featureName,this.ee),"undefined"!=typeof PerformanceNavigationTiming?this.traceStorage.storeTiming(Be.performance?.getEntriesByType?.("navigation")[0]):this.traceStorage.storeTiming(Be.performance?.timing),this.mode===Et?this.startHarvesting():Jt("trace-jserror",(()=>{this.mode===wt&&this.switchToFull()}),this.featureName,this.ee),this.agentRuntime.session.write({sessionTraceMode:this.mode}),void this.drain()))}startHarvesting(){this.scheduler.started||this.blocked||(this.scheduler.runHarvest(),this.scheduler.startTimer(this.harvestTimeSeconds))}prepareHarvest(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.traceStorage.prevStoredEvents.clear(),!this.timeKeeper?.ready)return;if(this.mode===bt&&0===this.traceStorage.nodeCount)return;if(this.mode===wt)return;const{stns:t,earliestTimeStamp:n,latestTimeStamp:i}=this.traceStorage.takeSTNs();if(!t)return;e.retry&&(this.sentTrace=t);const r=!this.agentRuntime.session.state.traceHarvestStarted;r&&this.agentRuntime.session.write({traceHarvestStarted:!0});const o=1===this.agentRuntime.session?.state.sessionReplayMode,s=this.agentInfo?.jsAttributes?.["enduser.id"];this.everHarvested=!0;const a=this.agentRuntime.appMetadata?.agents?.[0]||{};return{qs:{browser_monitoring_key:this.agentInfo.licenseKey,type:"BrowserSessionChunk",app_id:this.agentInfo.applicationID,protocol_version:"0",timestamp:this.timeKeeper.convertRelativeTimestamp(n),attributes:ll({...a.entityGuid&&{entityGuid:a.entityGuid},harvestId:"".concat(this.agentRuntime.session?.state.value,"_").concat(this.agentRuntime.ptid,"_").concat(this.agentRuntime.harvestCount),"trace.firstTimestamp":this.timeKeeper.convertRelativeTimestamp(n),"trace.lastTimestamp":this.timeKeeper.convertRelativeTimestamp(i),"trace.nodes":t.length,"trace.originTimestamp":this.timeKeeper.correctedOriginTime,agentVersion:this.agentRuntime.version,...r&&{firstSessionHarvest:r},...o&&{hasReplay:o},ptid:"".concat(this.agentRuntime.ptid),session:"".concat(this.agentRuntime.session?.state.value),...s&&{"enduser.id":s}},5e3).substring(1)},body:t}}onHarvestFinished(e){e.sent&&e.retry&&this.sentTrace&&(Object.entries(this.sentTrace).forEach((e=>{let[t,n]=e;this.traceStorage.restoreNode(t,n)})),this.sentTrace=null)}switchToFull(){if(this.mode===Et||!this.entitled||this.blocked)return;const e=this.mode;if(this.mode=Et,this.agentRuntime.session.write({sessionTraceMode:this.mode}),e===bt||!this.initialized)return this.initialize(this.mode,this.entitled);this.initialized&&this.traceStorage.trimSTNs(3e4),this.startHarvesting()}abort(){this.blocked=!0,this.mode=bt,this.agentRuntime.session.write({sessionTraceMode:this.mode}),this.scheduler.stopTimer()}}}),bh=0;function Eh(e,t,n,i){Object.defineProperty(this,"interaction",{value:e,writable:!0}),this.parent=t,this.id=++bh,this.type=n,this.children=[],this.end=null,this.jsEnd=this.start=i,this.jsTime=0,this.attrs={},this.cancelled=!1}var wh=Eh.prototype;wh.child=function(e,t,n,i){var r=this.interaction;if(r.end||r.nodes>=128)return null;r.onNodeAdded(this);var o=new Eh(r,this,e,t);return o.attrs.name=n,r.nodes++,i||r.remaining++,o},wh.callback=function(e,t){var n=this;n.jsTime+=e,t>n.jsEnd&&(n.jsEnd=t,n.interaction.lastCb=t)},wh.cancel=function(){this.cancelled=!0,this.interaction.remaining--},wh.finish=function(e){var t=this;if(t.end)return;t.end=e;let n=t.parent;for(;n?.cancelled;)n=n.parent;n&&n.children.push(t),t.parent=null;var i=this.interaction;i.remaining--,i.lastFinish=e,i.checkFinish()};var _h=Rt.ST,kh=Rt.CT,Sh={};function Th(e,t,n,i,r,o){this.agentIdentifier=o,this.ee=Gt.get(o),Sh[o]=0,this.id=++Sh[o],this.eventName=e,this.nodes=0,this.remaining=0,this.finishTimer=null,this.checkingFinish=!1,this.lastCb=this.lastFinish=t,this.handlers=[],this.onFinished=r,this.done=!1;var s=(this.root=new Eh(this,null,"interaction",t)).attrs;s.trigger=e,s.initialPageURL=Ut(o).origin,s.oldRoute=i,s.newURL=s.oldURL=n,s.custom={},s.store={}}var Mh=Th.prototype;Mh.checkFinish=function(){var e=this;e.remaining>0?e._resetFinishCheck():e.checkingFinish||null===e.root.end&&(e._resetFinishCheck(),e.checkingFinish=!0,e.finishTimer=_h((()=>{e.checkingFinish=!1,e.finishTimer=_h((()=>{e.finishTimer=null,e.remaining<=0&&e.finish()}),1)}),0))},Mh.setNewURL=function(e){this.root.attrs.newURL=e},Mh.setNewRoute=function(e){this.root.attrs.newRoute=e},Mh.onNodeAdded=function(){this._resetFinishCheck()},Mh._resetFinishCheck=function(){this.finishTimer&&(kh(this.finishTimer),this.finishTimer=null,this.checkingFinish=!1)},Mh.finish=function(){var e=this,t=e.root;if(null===t.end){var n=Math.max(e.lastCb,e.lastFinish),i=t.attrs.custom;this.onFinished&&this.onFinished(this),Xt(ct(e.agentIdentifier).jsAttributes,(function(e,t){e in i||(i[e]=t)})),t.end=n,e.ee.emit("interaction",[this])}};class Ah extends li{constructor(e){super(e),this.firstTimestamp=void 0}serializeMultiple(e,t,n){const i=ct(this.sharedContext.agentIdentifier);var r=Fl(this.sharedContext.agentIdentifier),o="bel.7";return e.forEach((e=>{o+=";"+this.serializeInteraction(e.root,t,n,e.routeChange,r,i)})),this.firstTimestamp=void 0,o}serializeSingle(e,t,n,i){const r=ct(this.sharedContext.agentIdentifier);var o=Fl(this.sharedContext.agentIdentifier),s="bel.7;"+this.serializeInteraction(e,t,n,i,o,r);return this.firstTimestamp=void 0,s}serializeInteraction(e,t,n,i,r,o){t=t||0;var s="initialPageLoad"===e.attrs.trigger,a={interaction:1,ajax:2,customTracer:4},c=!0;const l=(e,u)=>{if("customEnd"===e.type)return u.push([3,Ul(e.end-this.firstTimestamp)]);var d=e.type,h=a[d],p=e.start,f=e.children.length,m=0,v=o.atts,g=s&&n.length&&1===h,C=[],y=e.attrs,b=y.metrics,E=y.params,w=o.queueTime,_=o.applicationTime;void 0===this.firstTimestamp?(p+=t,this.firstTimestamp=p):p-=this.firstTimestamp;var k=[Ul(p),Ul(e.end-e.start),Ul(e.jsEnd-e.end),Ul(e.jsTime)];switch(h){case 1:k[2]=Ul(e.jsEnd-this.firstTimestamp),k.push(r(y.trigger),r(fl(y.initialPageURL,c)),r(fl(y.oldURL,c)),r(fl(y.newURL,c)),r(y.customName),s?"":i?1:2,Dl(s&&w,Ul,!0)+Dl(s&&_,Ul,!0)+Dl(y.oldRoute,r,!0)+Dl(y.newRoute,r,!0)+r(y.id),r(e.id),Dl(y.firstPaint,Ul,!0)+Dl(y.firstContentfulPaint,Ul,!1));var S=Hl(y.custom,r);C=C.concat(S),m=S.length,v&&(f++,C.push("a,"+r(v)));break;case 2:if(k.push(r(E.method),Ul(E.status),r(E.host),r(E.pathname),Ul(b.txSize),Ul(b.rxSize),y.isFetch?1:y.isJSONP?2:"",r(e.id),Dl(e.dt&&e.dt.spanId,r,!0)+Dl(e.dt&&e.dt.traceId,r,!0)+Dl(e.dt&&e.dt.timestamp,Ul,!1)),Object.keys(E?.gql||{}).length){var T=Hl(E.gql,r);C=C.concat(T),m=T.length}break;case 4:var M=y.tracedTime;k.push(r(y.name),Dl(M,Ul,!0)+r(e.id))}for(var A=0;A<e.children.length;A++)l(e.children[A],C);if(k.unshift(Ul(h),Ul(f+=m)),u.push(k),f&&u.push(C.join(";")),g){var N=",",O="b",I=0;Xt(n.slice(1,21),(function(e,t){void 0!==t?(O+=N+Ul(t-I),N=",",I=t):(O+=N+"!",N="")})),u.push(O)}else 1===h&&u.push("");return u};return l(e,[]).join(";")}}const Nh=Qt.spa,Oh=Rt.ST,Ih="-end",Rh="cb"+Ih;var xh=Object.freeze({__proto__:null,BODY:"-body",CB_END:Rh,CB_START:"cb-start",END:Ih,FEATURE_NAME:Nh,FETCH:"fetch",FETCH_BODY:"fetch-body-",FETCH_DONE:"fetch-done",FETCH_START:"fetch-start",FN_END:"fn-end",FN_START:"fn-start",INTERACTION:"interaction",INTERACTION_API:"api-ixn-",INTERACTION_EVENTS:["click","submit","keypress","keydown","keyup","change"],JSONP_END:"jsonp-end",JSONP_NODE:"jsonpNode",JS_TIME:"jsTime",MAX_TIMER_BUDGET:999,REMAINING:"remaining",SPA_NODE:"spaNode",START:"-start",originalSetTimeout:Oh});const{FEATURE_NAME:Ph,INTERACTION_EVENTS:Lh,MAX_TIMER_BUDGET:Dh,FN_START:Uh,FN_END:Fh,CB_START:Hh,INTERACTION_API:jh,REMAINING:Bh,INTERACTION:zh,SPA_NODE:Wh,JSONP_NODE:Vh,FETCH_START:Gh,FETCH_DONE:qh,FETCH_BODY:Yh,JSONP_END:Kh,originalSetTimeout:Xh}=xh;var $h=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=Ph;constructor(e,t){super(e,t,Ph);const n=Ut(e);let i;this.state={initialPageURL:n.origin,lastSeenUrl:n.origin,lastSeenRouteName:null,timerMap:{},timerBudget:Dh,currentNode:null,prevNode:null,nodeOnLastHashUpdate:null,initialPageLoad:null,pageLoaded:!1,childTime:0,depth:0,harvestTimeSeconds:At(e,"spa.harvestTimeSeconds")||10,interactionsToHarvest:[],interactionsSent:[],disableSpaFix:(At(e,"feature_flags")||[]).indexOf("disable-spa-fix")>-1},this.serializer=new Ah(this);const{state:r,serializer:o}=this,s=Gt.get(e),a=s.get("mutation"),c=s.get("promise"),l=s.get("history"),u=s.get("events"),d=s.get("timer"),h=s.get("fetch"),p=s.get("jsonp"),f=s.get("xhr"),m=s.get("tracer");if(this.waitForFlags(["spa"]).then((t=>{let[n]=t;n?(i=new kl("events",{onFinished:T,retryDelay:r.harvestTimeSeconds},{agentIdentifier:e,ee:s}),i.harvest.on("events",S),this.drain()):(this.blocked=!0,rn(this.agentIdentifier,this.featureName))})),!1===At(e,"spa.enabled"))return;r.initialPageLoad=new Th("initialPageLoad",0,r.lastSeenUrl,r.lastSeenRouteName,_,e),r.initialPageLoad.save=!0,r.prevInteraction=r.initialPageLoad,r.currentNode=r.initialPageLoad.root,r.initialPageLoad[Bh]++,Jt(Uh,g,this.featureName,s),Jt(Hh,g,this.featureName,c);var v={getCurrentNode:function(){return r.currentNode},setCurrentNode:w};function g(){r.depth++,this.prevNode=r.currentNode,this.ct=r.childTime,r.childTime=0,r.timerBudget=Dh}function C(){r.depth--;var e=this.jsTime||0,t=e-r.childTime;r.childTime=this.ct+e,r.currentNode&&(r.currentNode.callback(t,this[Fh]),this.isTraced&&(r.currentNode.attrs.tracedTime=t)),this.jsTime=r.currentNode?0:t,w(this.prevNode),this.prevNode=null,r.timerBudget=Dh}function y(e,t,n){var i=this[Wh];if(i){var r=i[zh],o=this.inc;this.isTraced=!0,o?r[Bh]--:i&&i.finish(e),n?w(i):r.checkFinish()}}function b(e){return r.currentNode&&r.currentNode[zh]===e?r.currentNode:e.root}function E(){this.resolved||(this.resolved=!0,this[Wh]=r.currentNode)}function w(e){r.pageLoaded||e||!r.initialPageLoad||(e=r.initialPageLoad.root),r.currentNode&&r.currentNode[zh].checkFinish(),r.prevNode=r.currentNode,r.currentNode=e&&!e[zh].root.end?e:null}function _(e){e===r.initialPageLoad&&(r.initialPageLoad=null);var t=e.root,n=t.attrs;r.currentNode=t,Xt(e.handlers,(function(e,t){t(n.store)})),w(null)}Jt("spa-register",(function(e){"function"==typeof e&&e(v)}),Qt.spa,s),Jt(Fh,C,this.featureName,s),Jt("cb-end",C,this.featureName,c),Jt(Uh,(function(t,n){var i=t[0],o=i.type,a=i["__nrNode:".concat(Wt)];if(!r.pageLoaded&&("load"===o&&n===window||ze)&&(r.pageLoaded=!0,this.prevNode=r.currentNode=null,r.initialPageLoad&&(a=r.initialPageLoad.root,r.initialPageLoad[Bh]=0,Xh((function(){Lh.push("popstate")})))),a)w(a);else if("hashchange"===o)w(r.nodeOnLastHashUpdate),r.nodeOnLastHashUpdate=null;else if(n instanceof XMLHttpRequest)w(s.context(n).spaNode);else if(!r.currentNode&&-1!==Lh.indexOf(o)){var c=new Th(o,this[Uh],r.lastSeenUrl,r.lastSeenRouteName,_,e);if(r.prevInteraction=c,w(c.root),"click"===o){var l=function(e){var t=e.tagName.toLowerCase();if(-1!==["a","button","input"].indexOf(t))return e.title||e.value||e.innerText}(i.target);l&&(r.currentNode.attrs.custom.actionText=l)}}i["__nrNode:".concat(Wt)]=r.currentNode}),this.featureName,u),Jt("setTimeout-end",(function(e,t,n){!r.currentNode||r.timerBudget-this.timerDuration<0||(!e||e[0]instanceof Function)&&(r.currentNode[zh][Bh]++,this.timerId=n,r.timerMap[n]=r.currentNode,this.timerBudget=r.timerBudget-50)}),this.featureName,d),Jt("clearTimeout-start",(function(e){var t=e[0],n=r.timerMap[t];if(n){var i=n[zh];i[Bh]--,i.checkFinish(),delete r.timerMap[t]}}),this.featureName,d),Jt(Uh,(function(){r.timerBudget=this.timerBudget||Dh;var e=this.timerId,t=r.timerMap[e];w(t),delete r.timerMap[e],t&&t[zh][Bh]--}),this.featureName,d),Jt(Uh,(function(){w(this[Wh])}),this.featureName,f),Jt("new-xhr",(function(){if(!r.disableSpaFix&&!r.currentNode&&r.prevInteraction&&!r.prevInteraction.ignored){const e=r.prevInteraction;r.currentNode=e.root,e.root.end=null}r.currentNode&&(this[Wh]=r.currentNode.child("ajax",null,null,!0))}),this.featureName,f),Jt("send-xhr-start",(function(){var e=this[Wh];e&&!this.sent&&(this.sent=!0,e.dt=this.dt,e.dt?.timestamp&&(e.dt.timestamp=n.timeKeeper.correctAbsoluteTimestamp(e.dt.timestamp)),e.jsEnd=e.start=this.startTime,e[zh][Bh]++)}),this.featureName,f),Jt("xhr-resolved",(function(){var e=this[Wh];if(e){if(!Tl(this.params))return void e.cancel();var t=e.attrs;t.params=this.params,t.metrics=this.metrics,e.finish(this.endTime),this.currentNode&&this.currentNode.interaction&&this.currentNode.interaction.checkFinish()}}),this.featureName,s),Jt("new-jsonp",(function(e){r.currentNode&&((this[Vh]=r.currentNode.child("ajax",this[Gh])).start=this["new-jsonp"],this.url=e,this.status=null)}),this.featureName,p),Jt("cb-start",(function(e){var t=this[Vh];t&&(w(t),this.status=200)}),this.featureName,p),Jt("jsonp-error",(function(){var e=this[Vh];e&&(w(e),this.status=0)}),this.featureName,p),Jt(Kh,(function(){var e=this[Vh];if(e){if(null===this.status)return void e.cancel();var t=e.attrs,n=t.params={},i=ph(this.url);n.method="GET",n.pathname=i.pathname,n.host=i.hostname+":"+i.port,n.status=this.status,t.metrics={txSize:0,rxSize:0},t.isJSONP=!0,e.jsEnd=this[Kh],e.jsTime=this[Hh]?this[Kh]-this[Hh]:0,e.finish(e.jsEnd)}}),this.featureName,p),Jt(Gh,(function(e,t){if(e){if(!r.disableSpaFix&&!r.currentNode&&r.prevInteraction&&!r.prevInteraction.ignored){const e=r.prevInteraction;r.currentNode=e.root,e.root.end=null}r.currentNode&&(this[Wh]=r.currentNode.child("ajax",this[Gh]),t&&this[Wh]&&(this[Wh].dt=t,this[Wh].dt?.timestamp&&(this[Wh].dt.timestamp=n.timeKeeper.correctAbsoluteTimestamp(this[Wh].dt.timestamp))))}}),this.featureName,h),Jt(Yh+"start",(function(e){r.currentNode&&(this[Wh]=r.currentNode,r.currentNode[zh][Bh]++)}),this.featureName,h),Jt(Yh+"end",(function(e,t,n){var i=this[Wh];i&&i[zh][Bh]--}),this.featureName,h),Jt(qh,(function(e,t){var n=this[Wh];if(n){if(e||!Tl(this.params))return void n.cancel();var i=n.attrs;i.params=this.params,i.metrics={txSize:this.txSize,rxSize:this.rxSize},i.isFetch=!0,n.finish(this[qh])}}),this.featureName,h),Jt("newURL",(function(e,t){if(r.currentNode)r.currentNode[zh].setNewURL(e);else if(r.prevInteraction&&!r.prevInteraction.ignored){const t=r.prevInteraction;t.setNewURL(e),t.root.end=null,w(t.root)}r.currentNode&&(r.lastSeenUrl!==e&&(r.currentNode[zh].routeChange=!0),t&&(r.nodeOnLastHashUpdate=r.currentNode)),r.lastSeenUrl=e}),this.featureName,l),p.on("dom-start",(function(e){if(r.currentNode){var t=e[0],n=t&&"SCRIPT"===t.nodeName&&""!==t.src,i=r.currentNode.interaction;n&&(i[Bh]++,t.addEventListener("load",(function(){i[Bh]--,i.checkFinish()}),pn(!1)),t.addEventListener("error",(function(){i[Bh]--,i.checkFinish()}),pn(!1)))}})),Jt(Uh,(function(){w(r.prevNode)}),this.featureName,a),Jt("resolve-start",E,this.featureName,c),Jt("executor-err",E,this.featureName,c),Jt("propagate",(function(e,t){!t&&this[Wh]||(this[Wh]=r.currentNode)}),this.featureName,c),Jt(Hh,(function(){w((this.getCtx?this.getCtx():this)[Wh])}),this.featureName,c),Jt(jh+"get",(function(t){var n;n=this.ixn=r?.currentNode?.[zh]?r.currentNode[zh]:null===r?.prevNode?.end&&"initialPageLoad"!==r?.prevNode?.[zh]?.root?.[zh]?.eventName?r.prevNode[zh]:new Th("api",t,r.lastSeenUrl,r.lastSeenRouteName,_,e),r.currentNode||(n.checkFinish(),r.depth&&w(n.root))}),this.featureName,s),Jt(jh+"actionText",(function(e,t){var n=this.ixn.root.attrs.custom;t&&(n.actionText=t)}),this.featureName,s),Jt(jh+"setName",(function(e,t,n){var i=this.ixn.root.attrs;t&&(i.customName=t),n&&(i.trigger=n)}),this.featureName,s),Jt(jh+"setAttribute",(function(e,t,n){this.ixn.root.attrs.custom[t]=n}),this.featureName,s),Jt(jh+"end",(function(e){var t=this.ixn,n=b(t);w(null),n.child("customEnd",e).finish(e),t.finish()}),this.featureName,s),Jt(jh+"ignore",(function(e){this.ixn.ignored=!0}),this.featureName,s),Jt(jh+"save",(function(e){this.ixn.save=!0}),this.featureName,s),Jt(jh+"tracer",(function(e,t,n){var i=this.ixn,r=b(i),o=s.context(n);if(!t)return o.inc=++i[Bh],o[Wh]=r;o[Wh]=r.child("customTracer",e,t)}),this.featureName,s),Jt(Uh,y,this.featureName,m),Jt("no-"+Uh,y,this.featureName,m),Jt(jh+"getContext",(function(e,t){var n=this.ixn.root.attrs.store;setTimeout((function(){t(n)}),0)}),this.featureName,s),Jt(jh+"onEnd",(function(e,t){this.ixn.handlers.push(t)}),this.featureName,s),Jt("api-routeName",(function(e,t){r.lastSeenRouteName=t,r.currentNode&&r.currentNode[zh].setNewRoute(t)}),this.featureName,s);const k=this;function S(e){if(0===r.interactionsToHarvest.length||k.blocked)return{};var t=o.serializeMultiple(r.interactionsToHarvest,0,Lu);return e.retry&&r.interactionsToHarvest.forEach((function(e){r.interactionsSent.push(e)})),r.interactionsToHarvest=[],{body:{e:t}}}function T(e){e.sent&&e.retry&&r.interactionsSent.length>0&&(r.interactionsSent.forEach((function(e){r.interactionsToHarvest.unshift(e)})),r.interactionsSent=[])}s.on("spa-jserror",(function(e,t,n,i){r.currentNode&&(n._interactionId=r.currentNode.interaction.id,r.currentNode.type&&"interaction"!==r.currentNode.type&&(n._interactionNodeId=r.currentNode.id))})),Jt("function-err",(function(t,n,i){r.currentNode&&(i.__newrelic??={},i.__newrelic[e]={interactionId:r.currentNode.interaction.id},r.currentNode.type&&"interaction"!==r.currentNode.type&&(i.__newrelic[e].interactionNodeId=r.currentNode.id))}),this.featureName,s),s.on("interaction",(function(e){if(e.ignored||!e.save&&!e.routeChange)return void s.emit("interactionDone",[e,!1]);r.prevInteraction===e&&(r.prevInteraction=null);e.root.attrs.id=Bt(),"initialPageLoad"===e.root.attrs.trigger&&(e.root.attrs.firstPaint=$d.current.value,e.root.attrs.firstContentfulPaint=Xd.current.value);let t;s.emit("interactionDone",[e,!0]),r.interactionsToHarvest.push(e),t="initialPageLoad"===e.root?.attrs?.trigger?"InitialPageLoad":e.routeChange?"RouteChange":"Custom";Kt(Jn,["Spa/Interaction/".concat(t,"/Duration/Ms"),Math.max((e.root?.end||0)-(e.root?.start||0),0)],void 0,Qt.metrics,s),i?.scheduleHarvest(0),i||rt("SPA scheduler is not initialized. Saved interaction is not sent!")}))}}});const Jh=Qt.softNav,Zh="",Qh=1,ep=2,tp=1,np=2,ip="in progress",rp="finished",op="cancelled";let sp=0;class ap{belType;children=[];start;end;callbackEnd=0;callbackDuration=0;nodeId=++sp;constructor(e){if(!e)throw new Error("Interaction is missing core attributes");this.agentIdentifier=e}addChild(e){this.children.push(e)}serialize(){}}class cp extends ap{constructor(e,t){super(e),this.belType=np,this.method=t.method,this.status=t.status,this.domain=t.domain,this.path=t.path,this.txSize=t.requestSize,this.rxSize=t.responseSize,this.requestedWith="fetch"===t.type?1:"",this.spanId=t.spanId,this.traceId=t.traceId,this.spanTimestamp=t.spanTimestamp,this.gql=t.gql,this.start=t.startTime,this.end=t.endTime}serialize(e){const t=Fl(this.agentIdentifier),n=[],i=[Ul(this.belType),0,Ul(this.start-e),Ul(this.end-this.start),Ul(this.callbackEnd),Ul(this.callbackDuration),t(this.method),Ul(this.status),t(this.domain),t(this.path),Ul(this.txSize),Ul(this.rxSize),this.requestedWith,t(this.nodeId),Dl(this.spanId,t,!0)+Dl(this.traceId,t,!0)+Dl(this.spanTimestamp,Ul)];let r=[];return"object"==typeof this.gql&&(r=Hl(this.gql,t)),this.children.forEach((e=>r.push(e.serialize()))),i[1]=Ul(r.length),n.push(i),r.length&&n.push(r.join(";")),n.join(";")}}class lp extends ap{id=Bt();initialPageURL=Ve;oldURL=""+Be?.location;newURL=""+Be?.location;customName;customAttributes={};customDataByApi={};queueTime;appTime;newRoute;status=ip;domTimestamp=0;historyTimestamp=0;createdByApi=!1;keepOpenUntilEndApi=!1;onDone=[];cancellationTimer;constructor(e,t,n,i){super(e),this.belType=tp,this.trigger=t,this.start=n,this.oldRoute=i,this.eventSubscription=new Map([["finished",[]],["cancelled",[]]]),this.forceSave=this.forceIgnore=!1,"api"===this.trigger&&(this.createdByApi=!0)}updateDom(e){this.domTimestamp=e||Fe()}updateHistory(e,t){this.newURL=t||""+Be?.location,this.historyTimestamp=e||Fe()}seenHistoryAndDomChange(){return this.historyTimestamp>0&&this.domTimestamp>this.historyTimestamp}on(e,t){if(!this.eventSubscription.has(e))throw new Error("Cannot subscribe to non pre-defined events.");if("function"!=typeof t)throw new Error("Must supply function as callback.");this.eventSubscription.get(e).push(t)}done(e){return(!this.keepOpenUntilEndApi||void 0!==e)&&(this.onDone.forEach((e=>e(this.customDataByApi))),this.forceIgnore?this.#b():this.seenHistoryAndDomChange()?this.#E(e):this.forceSave?this.#E(e||performance.now()):this.#b(),!0)}#E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.status!==ip)return;clearTimeout(this.cancellationTimer),this.end=Math.max(this.domTimestamp,this.historyTimestamp,e),this.customAttributes={...ct(this.agentIdentifier).jsAttributes,...this.customAttributes},this.status=rp;this.eventSubscription.get("finished").forEach((e=>e()))}#b(){if(this.status!==ip)return;clearTimeout(this.cancellationTimer),this.status=op;this.eventSubscription.get("cancelled").forEach((e=>e()))}isActiveDuring(e){return this.status===ip?this.start<=e:this.status===rp&&this.start<=e&&this.end>=e}get firstPaint(){}get firstContentfulPaint(){}get navTiming(){}serialize(e){const t=Fl(this.agentIdentifier),n=[];let i;i="initialPageLoad"===this.trigger?Zh:this.newURL!==this.oldURL?Qh:ep;const r=[Ul(this.belType),0,Ul(this.start-e),Ul(this.end-this.start),Ul(this.callbackEnd),Ul(this.callbackDuration),t(this.trigger),t(fl(this.initialPageURL,!0)),t(fl(this.oldURL,!0)),t(fl(this.newURL,!0)),t(this.customName),i,Dl(this.queueTime,Ul,!0)+Dl(this.appTime,Ul,!0)+Dl(this.oldRoute,t,!0)+Dl(this.newRoute,t,!0)+t(this.id),t(this.nodeId),Dl(this.firstPaint,Ul,!0)+Dl(this.firstContentfulPaint,Ul)],o=Hl(this.customAttributes||{},t);return ct(this.agentIdentifier).atts&&o.push("a,"+t(ct(this.agentIdentifier).atts)),this.children.forEach((t=>o.push(t.serialize(e||this.start)))),r[1]=Ul(o.length),n.push(r),o.length&&n.push(o.join(";")),this.navTiming?n.push(this.navTiming):n.push(""),n.join(";")}}class up extends lp{constructor(e){super(e,"initialPageLoad",0,null);const t=ct(e);this.queueTime=t.queueTime,this.appTime=t.applicationTime}get firstPaint(){return $d.current.value}get firstContentfulPaint(){return Xd.current.value}get navTiming(){if(!Lu.length)return;let e=",",t="b",n=0;return Lu.slice(1,21).forEach((i=>{void 0!==i?(t+=e+Ul(i-n),e=",",n=i):(t+=e+"!",e="")})),t}}var dp=Object.freeze({__proto__:null,Aggregate:class extends Ol{static featureName=Jh;constructor(e,t,n){let{domObserver:i}=n;super(e,t,Jh);const r=At(e,"soft_navigations.harvestTimeSeconds")||10;this.interactionsToHarvest=[],this.interactionsAwaitingRetry=[],this.domObserver=i,this.initialPageLoadInteraction=new up(e),Jd.subscribe((e=>{let{attrs:t}=e;const n=t.navigationEntry.loadEventEnd;this.initialPageLoadInteraction.forceSave=!0,this.initialPageLoadInteraction.done(n),this.interactionsToHarvest.push(this.initialPageLoadInteraction),this.initialPageLoadInteraction=null,Kt(Jn,["SoftNav/Interaction/InitialPageLoad/Duration/Ms",Math.round(n)],void 0,Qt.metrics,this.ee)})),this.latestRouteSetByApi=null,this.interactionInProgress=null,this.blocked=!1,this.waitForFlags(["spa"]).then((t=>{let[n]=t;if(n){this.drain();const t=new kl("events",{onFinished:this.onHarvestFinished.bind(this),retryDelay:r,onUnload:()=>this.interactionInProgress?.done()},{agentIdentifier:e,ee:this.ee});t.harvest.on("events",this.onHarvestStarted.bind(this)),t.startTimer(r,0)}else this.blocked=!0,rn(this.agentIdentifier,this.featureName)})),Jt("newUIEvent",(e=>this.startUIInteraction(e.type,Math.floor(e.timeStamp),e.target)),this.featureName,this.ee),Jt("newURL",((e,t)=>this.interactionInProgress?.updateHistory(e,t)),this.featureName,this.ee),Jt("newDom",(e=>{this.interactionInProgress?.updateDom(e),this.interactionInProgress?.seenHistoryAndDomChange()&&this.interactionInProgress.done()}),this.featureName,this.ee),this.#w(),Jt("ajax",this.#_.bind(this),this.featureName,this.ee),Jt("jserror",this.#k.bind(this),this.featureName,this.ee)}onHarvestStarted(e){if(0===this.interactionsToHarvest.length||this.blocked)return;let t=0;const n=[];for(const e of this.interactionsToHarvest)n.push(e.serialize(t)),t||(t=Math.floor(e.start));const i="bel.7;".concat(n.join(";"));return e.retry&&(this.interactionsAwaitingRetry=this.interactionsToHarvest),this.interactionsToHarvest=[],{body:{e:i}}}onHarvestFinished(e){e.sent&&e.retry&&this.interactionsAwaitingRetry.length>0&&(this.interactionsToHarvest=[...this.interactionsAwaitingRetry,...this.interactionsToHarvest]),this.interactionsAwaitingRetry=[]}startUIInteraction(e,t,n){if(!this.interactionInProgress?.createdByApi&&!1!==this.interactionInProgress?.done()){if(this.interactionInProgress=new lp(this.agentIdentifier,e,t,this.latestRouteSetByApi),"click"===e){const e=function(e){const t=e.tagName.toLowerCase();if(["a","button","input"].includes(t))return e.title||e.value||e.innerText}(n);e&&(this.interactionInProgress.customAttributes.actionText=e)}this.interactionInProgress.cancellationTimer=setTimeout((()=>{this.interactionInProgress.done(),Kt(Jn,["SoftNav/Interaction/TimeOut"],void 0,Qt.metrics,this.ee)}),3e4),this.setClosureHandlers()}}setClosureHandlers(){this.interactionInProgress.on("finished",(()=>{const e=this.interactionInProgress;this.interactionsToHarvest.push(this.interactionInProgress),this.interactionInProgress=null,this.domObserver.disconnect(),Kt(Jn,["SoftNav/Interaction/".concat(e.newURL!==e.oldURL?"RouteChange":"Custom","/Duration/Ms"),Math.round(e.end-e.start)],void 0,Qt.metrics,this.ee)})),this.interactionInProgress.on("cancelled",(()=>{this.interactionInProgress=null,this.domObserver.disconnect()}))}getInteractionFor(e){if(this.interactionInProgress?.isActiveDuring(e))return this.interactionInProgress;let t;for(let n=this.interactionsToHarvest.length-1;n>=0;n--){const i=this.interactionsToHarvest[n];if(i.isActiveDuring(e)){if("initialPageLoad"!==i.trigger)return i;t=i}}return t||(this.initialPageLoadInteraction?.isActiveDuring(e)?this.initialPageLoadInteraction:void 0)}#_(e){const t=this.getInteractionFor(e.startTime);function n(e,t,n){const i=new cp(e,t);n.addChild(i)}t?t.status===rp?n(this.agentIdentifier,e,t):(t.on("finished",(()=>n(this.agentIdentifier,e,t))),t.on("cancelled",(()=>Kt("returnAjax",[e],void 0,Qt.ajax,this.ee)))):Kt("returnAjax",[e],void 0,Qt.ajax,this.ee)}#k(e,t){const n=this.getInteractionFor(t);n&&(e.browserInteractionId=n.id,n.status===rp?(e._softNavFinished=!0,e._softNavAttributes=n.customAttributes):(n.on("finished",En((()=>Kt("softNavFlush",[n.id,!0,n.customAttributes],void 0,Qt.jserrors,this.ee)))),n.on("cancelled",En((()=>Kt("softNavFlush",[n.id,!1,void 0],void 0,Qt.jserrors,this.ee))))))}#w(){const e="api-ixn-",t=this;Jt(e+"get",(function(e){let{waitForEnd:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.associatedInteraction=t.getInteractionFor(e),this.associatedInteraction||(this.associatedInteraction=t.interactionInProgress=new lp(t.agentIdentifier,"api",e,t.latestRouteSetByApi),t.setClosureHandlers()),!0===n&&(this.associatedInteraction.keepOpenUntilEndApi=!0)}),t.featureName,t.ee),Jt(e+"end",(function(e){this.associatedInteraction.done(e)}),t.featureName,t.ee),Jt(e+"save",(function(){this.associatedInteraction.forceSave=!0}),t.featureName,t.ee),Jt(e+"ignore",(function(){this.associatedInteraction.forceIgnore=!0}),t.featureName,t.ee),Jt(e+"getContext",(function(e,t){"function"==typeof t&&setTimeout((()=>t(this.associatedInteraction.customDataByApi)),0)}),t.featureName,t.ee),Jt(e+"onEnd",(function(e,t){"function"==typeof t&&this.associatedInteraction.onDone.push(t)}),t.featureName,t.ee),Jt(e+"actionText",(function(e,t){t&&(this.associatedInteraction.customAttributes.actionText=t)}),t.featureName,t.ee),Jt(e+"setName",(function(e,t,n){t&&(this.associatedInteraction.customName=t),n&&(this.associatedInteraction.trigger=n)}),t.featureName,t.ee),Jt(e+"setAttribute",(function(e,t,n){this.associatedInteraction.customAttributes[t]=n}),t.featureName,t.ee),Jt(e+"routeName",(function(e,n){t.latestRouteSetByApi=n,t.interactionInProgress&&(t.interactionInProgress.newRoute=n)}),t.featureName,t.ee)}}}),hp={};!function(e){var t;function n(e){return e.nodeType===e.ELEMENT_NODE}function i(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function r(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function o(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,s).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function s(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=o(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}Object.defineProperty(e,"__esModule",{value:!0}),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(t||(t={}));class a{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function c(){return new a}function l({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o}){let s=r||"";const a=i&&u(i);return(t[n.toLowerCase()]||a&&t[a])&&(s=o?o(s,e):"*".repeat(s.length)),s}function u(e){return e.toLowerCase()}const d="__rrweb_original__";function h(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?u(t):null}function p(e,t){var n;let i;try{i=new URL(e,null!=t?t:window.location.href)}catch(e){return null}const r=i.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(n=null==r?void 0:r[1])&&void 0!==n?n:null}let f=1;const m=new RegExp("[^a-z0-9-_:]");function v(){return f++}let g,C;const y=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,b=/^(?:[a-z+]+:)?\/\//i,E=/^www\..*/i,w=/^(data:)([^,]*),(.*)/i;function _(e,t){return(e||"").replace(y,((e,n,i,r,o,s)=>{const a=i||o||s,c=n||r||"";if(!a)return e;if(b.test(a)||E.test(a))return`url(${c}${a}${c})`;if(w.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const k=/^[^ \t\n\r\u000c]+/,S=/^[, \t\n\r\u000c]+/;function T(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function M(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function A(){const e=document.createElement("a");return e.href="",e.href}function N(e,t,n,i){return i?"src"===n||"href"===n&&("use"!==t||"#"!==i[0])||"xlink:href"===n&&"#"!==i[0]?T(e,i):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i;const r=e.exec(t.substring(n));return r?(i=r[0],n+=i.length,i):""}const r=[];for(;i(S),!(n>=t.length);){let o=i(k);if(","===o.slice(-1))o=T(e,o.substring(0,o.length-1)),r.push(o);else{let i="";o=T(e,o);let s=!1;for(;;){const e=t.charAt(n);if(""===e){r.push((o+i).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,r.push((o+i).trim());break}"("===e&&(s=!0)}i+=e,n+=1}}}return r.join(", ")}(e,i):"style"===n?_(i,A()):"object"===t&&"data"===n?T(e,i):i:T(e,i):i}function O(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function I(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&I(e.parentNode,t,n);for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}return!!n&&I(e.parentNode,t,n)}function R(e,t,n,i){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("string"==typeof t){if(i){if(r.closest(`.${t}`))return!0}else if(r.classList.contains(t))return!0}else if(I(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(e){}return!1}function x(e,n){const{doc:i,mirror:r,blockClass:s,blockSelector:a,needsMask:c,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:v,maskInputFn:y,dataURLOptions:b={},inlineImages:E,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:S=!1}=n,T=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(i,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:t.Document,childNodes:[],compatMode:e.compatMode}:{type:t.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:t.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return function(e,n){const{doc:i,blockClass:r,blockSelector:s,inlineStylesheet:a,maskInputOptions:c={},maskInputFn:p,dataURLOptions:f={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:E=!1,rootId:w}=n,k=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,s),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=u(e.tagName);return m.test(t)?"div":t}(e);let T={};const I=e.attributes.length;for(let t=0;t<I;t++){const n=e.attributes[t];O(S,n.name,n.value)||(T[n.name]=N(i,S,u(n.name),n.value))}if("link"===S&&a){const t=Array.from(i.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=o(t)),n&&(delete T.rel,delete T.href,T._cssText=_(n,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=o(e.sheet);t&&(T._cssText=_(t,A()))}if("input"===S||"textarea"===S||"select"===S){const t=e.value,n=e.checked;"radio"!==T.type&&"checkbox"!==T.type&&"submit"!==T.type&&"button"!==T.type&&t?T.value=l({element:e,type:h(e),tagName:S,value:t,maskInputOptions:c,maskInputFn:p}):n&&(T.checked=n)}"option"===S&&(e.selected&&!c.select?T.selected=!0:delete T.selected);if("canvas"===S&&y)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let i=0;i<e.height;i+=50){const r=t.getImageData,o=d in r?r[d]:r;if(new Uint32Array(o.call(t,n,i,Math.min(50,e.width-n),Math.min(50,e.height-i)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const t=e.toDataURL(f.type,f.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(f.type,f.quality)&&(T.rr_dataURL=t)}if("img"===S&&v){g||(g=i.createElement("canvas"),C=g.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const r=()=>{t.removeEventListener("load",r);try{g.width=t.naturalWidth,g.height=t.naturalHeight,C.drawImage(t,0,0),T.rr_dataURL=g.toDataURL(f.type,f.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?T.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?r():t.addEventListener("load",r)}"audio"!==S&&"video"!==S||(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime);E||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop));if(k){const{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==S||b(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src);let R;try{customElements.get(S)&&(R=!0)}catch(e){}return{type:t.Element,tagName:S,attributes:T,childNodes:[],isSVG:M(e)||void 0,needBlock:k,rootId:w,isCustom:R}}(e,{doc:i,blockClass:s,blockSelector:a,inlineStylesheet:p,maskInputOptions:f,maskInputFn:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:S,rootId:T});case e.TEXT_NODE:return function(e,n){var i;const{needsMask:r,maskTextFn:s,rootId:a}=n,c=e.parentNode&&e.parentNode.tagName;let l=e.textContent;const u="STYLE"===c||void 0,d="SCRIPT"===c||void 0;if(u&&l){try{e.nextSibling||e.previousSibling||(null===(i=e.parentNode.sheet)||void 0===i?void 0:i.cssRules)&&(l=o(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}l=_(l,A())}d&&(l="SCRIPT_PLACEHOLDER");!u&&!d&&l&&r&&(l=s?s(l,e.parentElement):l.replace(/[\S]/g,"*"));return{type:t.Text,textContent:l||"",isStyle:u,rootId:a}}(e,{needsMask:c,maskTextFn:v,rootId:T});case e.CDATA_SECTION_NODE:return{type:t.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:t.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function P(e){return null==e?"":e.toLowerCase()}function L(e,o){const{doc:s,mirror:a,blockClass:c,blockSelector:l,maskTextClass:u,maskTextSelector:d,skipChild:h=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskTextFn:g,maskInputFn:C,slimDOMOptions:y,dataURLOptions:b={},inlineImages:E=!1,recordCanvas:w=!1,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:S=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:N=!1}=o;let{needsMask:O}=o,{preserveWhiteSpace:I=!0}=o;if(!O&&e.childNodes){O=R(e,u,d,void 0===O)}const D=x(e,{doc:s,mirror:a,blockClass:c,blockSelector:l,needsMask:O,inlineStylesheet:f,maskInputOptions:m,maskTextFn:g,maskInputFn:C,dataURLOptions:b,inlineImages:E,recordCanvas:w,keepIframeSrcFn:A,newlyAddedElement:N});if(!D)return console.warn(e,"not serialized"),null;let U;U=a.hasNode(e)?a.getId(e):!function(e,n){if(n.comment&&e.type===t.Comment)return!0;if(e.type===t.Element){if(n.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===p(e.attributes.href)))return!0;if(n.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(P(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===P(e.attributes.name)||"icon"===P(e.attributes.rel)||"apple-touch-icon"===P(e.attributes.rel)||"shortcut icon"===P(e.attributes.rel))))return!0;if("meta"===e.tagName){if(n.headMetaDescKeywords&&P(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(P(e.attributes.property).match(/^(og|twitter|fb):/)||P(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===P(e.attributes.name)))return!0;if(n.headMetaRobots&&("robots"===P(e.attributes.name)||"googlebot"===P(e.attributes.name)||"bingbot"===P(e.attributes.name)))return!0;if(n.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(n.headMetaAuthorship&&("author"===P(e.attributes.name)||"generator"===P(e.attributes.name)||"framework"===P(e.attributes.name)||"publisher"===P(e.attributes.name)||"progid"===P(e.attributes.name)||P(e.attributes.property).match(/^article:/)||P(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&("google-site-verification"===P(e.attributes.name)||"yandex-verification"===P(e.attributes.name)||"csrf-token"===P(e.attributes.name)||"p:domain_verify"===P(e.attributes.name)||"verify-v1"===P(e.attributes.name)||"verification"===P(e.attributes.name)||"shopify-checkout-api-token"===P(e.attributes.name)))return!0}}return!1}(D,y)&&(I||D.type!==t.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?v():-2;const F=Object.assign(D,{id:U});if(a.add(e,F),-2===U)return null;_&&_(e);let H=!h;if(F.type===t.Element){H=H&&!F.needBlock,delete F.needBlock;const t=e.shadowRoot;t&&r(t)&&(F.isShadowHost=!0)}if((F.type===t.Document||F.type===t.Element)&&H){y.headWhitespace&&F.type===t.Element&&"head"===F.tagName&&(I=!1);const i={doc:s,mirror:a,blockClass:c,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:h,inlineStylesheet:f,maskInputOptions:m,maskTextFn:g,maskInputFn:C,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:A};if(F.type===t.Element&&"textarea"===F.tagName&&void 0!==F.attributes.value);else for(const t of Array.from(e.childNodes)){const e=L(t,i);e&&F.childNodes.push(e)}if(n(e)&&e.shadowRoot)for(const t of Array.from(e.shadowRoot.childNodes)){const n=L(t,i);n&&(r(e.shadowRoot)&&(n.isShadow=!0),F.childNodes.push(n))}}return e.parentNode&&i(e.parentNode)&&r(e.parentNode)&&(F.isShadow=!0),F.type===t.Element&&"iframe"===F.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let r,o=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){const i=setTimeout((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(i),o=!0,t()}))}const s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&k){const n=L(t,{doc:t,mirror:a,blockClass:c,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskTextFn:g,maskInputFn:C,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:A});n&&k(e,n)}}),S),F.type===t.Element&&"link"===F.tagName&&"string"==typeof F.attributes.rel&&("stylesheet"===F.attributes.rel||"preload"===F.attributes.rel&&"string"==typeof F.attributes.href&&"css"===p(F.attributes.href))&&function(e,t,n){let i,r=!1;try{i=e.sheet}catch(e){return}if(i)return;const o=setTimeout((()=>{r||(t(),r=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(o),r=!0,t()}))}(e,(()=>{if(T){const t=L(e,{doc:s,mirror:a,blockClass:c,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskTextFn:g,maskInputFn:C,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:A});t&&T(e,t)}}),M),F}const D=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function U(e,t={}){let n=1,i=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");i=-1===r?i+e.length:e.length-r}function o(){const e={line:n,column:i};return t=>(t.position=new s(e),p(),t)}class s{constructor(e){this.start=e,this.end={line:n,column:i},this.source=t.source}}s.prototype.content=e;const a=[];function c(r){const o=new Error(`${t.source||""}:${n}:${i}: ${r}`);if(o.reason=r,o.filename=t.source,o.line=n,o.column=i,o.source=e,!t.silent)throw o;a.push(o)}function l(){return h(/^{\s*/)}function u(){return h(/^}/)}function d(){let t;const n=[];for(p(),f(n);e.length&&"}"!==e.charAt(0)&&(t=k()||S());)t&&(n.push(t),f(n));return n}function h(t){const n=t.exec(e);if(!n)return;const i=n[0];return r(i),e=e.slice(i.length),n}function p(){h(/^\s*/)}function f(e=[]){let t;for(;t=m();)t&&e.push(t),t=m();return e}function m(){const t=o();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return c("End of comment missing");const s=e.slice(2,n-2);return i+=2,r(s),e=e.slice(n),i+=2,t({type:"comment",comment:s})}function v(){const e=h(/^([^{]+)/);if(e)return F(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,""))).split(/\s*(?![^(]*\)),\s*/).map((e=>e.replace(/\u200C/g,",")))}function g(){const e=o(),t=h(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;const n=F(t[0]);if(!h(/^:\s*/))return c("property missing ':'");const i=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:n.replace(D,""),value:i?F(i[0]).replace(D,""):""});return h(/^[;\s]*/),r}function C(){const e=[];if(!l())return c("missing '{'");let t;for(f(e);t=g();)!1!==t&&(e.push(t),f(e)),t=g();return u()?e:c("missing '}'")}function y(){let e;const t=[],n=o();for(;e=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),h(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:C()})}const b=_("import"),E=_("charset"),w=_("namespace");function _(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return()=>{const n=o(),i=h(t);if(!i)return;const r={type:e};return r[e]=i[1].trim(),n(r)}}function k(){if("@"===e[0])return function(){const e=o();let t=h(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=h(/^([-\w]+)\s*/),!t)return c("@keyframes missing name");const i=t[1];if(!l())return c("@keyframes missing '{'");let r,s=f();for(;r=y();)s.push(r),s=s.concat(f());return u()?e({type:"keyframes",name:i,vendor:n,keyframes:s}):c("@keyframes missing '}'")}()||function(){const e=o(),t=h(/^@media *([^{]+)/);if(!t)return;const n=F(t[1]);if(!l())return c("@media missing '{'");const i=f().concat(d());return u()?e({type:"media",media:n,rules:i}):c("@media missing '}'")}()||function(){const e=o(),t=h(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:F(t[1]),media:F(t[2])})}()||function(){const e=o(),t=h(/^@supports *([^{]+)/);if(!t)return;const n=F(t[1]);if(!l())return c("@supports missing '{'");const i=f().concat(d());return u()?e({type:"supports",supports:n,rules:i}):c("@supports missing '}'")}()||b()||E()||w()||function(){const e=o(),t=h(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=F(t[1]),i=F(t[2]);if(!l())return c("@document missing '{'");const r=f().concat(d());return u()?e({type:"document",document:i,vendor:n,rules:r}):c("@document missing '}'")}()||function(){const e=o();if(!h(/^@page */))return;const t=v()||[];if(!l())return c("@page missing '{'");let n,i=f();for(;n=g();)i.push(n),i=i.concat(f());return u()?e({type:"page",selectors:t,declarations:i}):c("@page missing '}'")}()||function(){const e=o();if(!h(/^@host\s*/))return;if(!l())return c("@host missing '{'");const t=f().concat(d());return u()?e({type:"host",rules:t}):c("@host missing '}'")}()||function(){const e=o();if(!h(/^@font-face\s*/))return;if(!l())return c("@font-face missing '{'");let t,n=f();for(;t=g();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):c("@font-face missing '}'")}()}function S(){const e=o(),t=v();return t?(f(),e({type:"rule",selectors:t,declarations:C()})):c("selector missing")}return H(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())}function F(e){return e?e.replace(/^\s+|\s+$/g,""):""}function H(e,t){const n=e&&"string"==typeof e.type,i=n?e:t;for(const t of Object.keys(e)){const n=e[t];Array.isArray(n)?n.forEach((e=>{H(e,i)})):n&&"object"==typeof n&&H(n,i)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const j={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function B(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const z=/(max|min)-device-(width|height)/,W=new RegExp(z.source,"g"),V=/([^\\]):hover/,G=new RegExp(V.source,"g");function q(e,t){const n=null==t?void 0:t.stylesWithHoverClass.get(e);if(n)return n;const i=U(e,{silent:!0});if(!i.stylesheet)return e;const r=[],o=[];!function e(t){"selectors"in t&&t.selectors&&t.selectors.forEach((e=>{V.test(e)&&r.push(e)})),"media"in t&&t.media&&z.test(t.media)&&o.push(t.media),"rules"in t&&t.rules&&t.rules.forEach(e)}(i.stylesheet);let s=e;if(r.length>0){const e=new RegExp(r.filter(((e,t)=>r.indexOf(e)===t)).sort(((e,t)=>t.length-e.length)).map((e=>B(e))).join("|"),"g");s=s.replace(e,(e=>{const t=e.replace(G,"$1.\\:hover");return`${e}, ${t}`}))}if(o.length>0){const e=new RegExp(o.filter(((e,t)=>o.indexOf(e)===t)).sort(((e,t)=>t.length-e.length)).map((e=>B(e))).join("|"),"g");s=s.replace(e,(e=>e.replace(W,"$1-$2")))}return null==t||t.stylesWithHoverClass.set(e,s),s}function Y(){return{stylesWithHoverClass:new Map}}function K(e,n){var i;const{doc:r,hackCss:o,cache:s}=n;switch(e.type){case t.Document:return r.implementation.createDocument(null,"",null);case t.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case t.Element:{const t=function(e){let t=j[e.tagName]?j[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(e);let n;e.isSVG?n=r.createElementNS("http://www.w3.org/2000/svg",t):(e.isCustom&&(null===(i=r.defaultView)||void 0===i?void 0:i.customElements)&&!r.defaultView.customElements.get(e.tagName)&&r.defaultView.customElements.define(e.tagName,class extends r.defaultView.HTMLElement{}),n=r.createElement(t));const a={};for(const i in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,i))continue;let c=e.attributes[i];if("option"===t&&"selected"===i&&!1===c)continue;if(null===c)continue;if(!0===c&&(c=""),i.startsWith("rr_")){a[i]=c;continue}const l="textarea"===t&&"value"===i,u="style"===t&&"_cssText"===i;if(u&&o&&"string"==typeof c&&(c=q(c,s)),!l&&!u||"string"!=typeof c)try{if(e.isSVG&&"xlink:href"===i)n.setAttributeNS("http://www.w3.org/1999/xlink",i,c.toString());else if("onload"===i||"onclick"===i||"onmouse"===i.substring(0,7))n.setAttribute("_"+i,c.toString());else{if("meta"===t&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===i){n.setAttribute("csp-content",c.toString());continue}("link"!==t||"preload"!==e.attributes.rel&&"modulepreload"!==e.attributes.rel||"script"!==e.attributes.as)&&("link"===t&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")||("img"===t&&e.attributes.srcset&&e.attributes.rr_dataURL?n.setAttribute("rrweb-original-srcset",e.attributes.srcset):n.setAttribute(i,c.toString())))}}catch(e){}else n.appendChild(r.createTextNode(c)),e.childNodes=[]}for(const i in a){const r=a[i];if("canvas"===t&&"rr_dataURL"===i){const e=document.createElement("img");e.onload=()=>{const t=n.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=r.toString(),n.RRNodeType&&(n.rr_dataURL=r.toString())}else if("img"===t&&"rr_dataURL"===i){const t=n;t.currentSrc.startsWith("data:")||(t.setAttribute("rrweb-original-src",e.attributes.src),t.src=r.toString())}if("rr_width"===i)n.style.width=r.toString();else if("rr_height"===i)n.style.height=r.toString();else if("rr_mediaCurrentTime"===i&&"number"==typeof r)n.currentTime=r;else if("rr_mediaState"===i)switch(r){case"played":n.play().catch((e=>console.warn("media playback error",e)));break;case"paused":n.pause()}}if(e.isShadowHost)if(n.shadowRoot)for(;n.shadowRoot.firstChild;)n.shadowRoot.removeChild(n.shadowRoot.firstChild);else n.attachShadow({mode:"open"});return n}case t.Text:return r.createTextNode(e.isStyle&&o?q(e.textContent,s):e.textContent);case t.CDATA:return r.createCDATASection(e.textContent);case t.Comment:return r.createComment(e.textContent);default:return null}}function X(e,i){const{doc:r,mirror:o,skipChild:s=!1,hackCss:a=!0,afterAppend:c,cache:l}=i;if(o.has(e.id)){const n=o.getNode(e.id);if(function(e,n){return!(!e||!n||e.type!==n.type)&&(e.type===t.Document?e.compatMode===n.compatMode:e.type===t.DocumentType?e.name===n.name&&e.publicId===n.publicId&&e.systemId===n.systemId:e.type===t.Comment||e.type===t.Text||e.type===t.CDATA?e.textContent===n.textContent:e.type===t.Element&&e.tagName===n.tagName&&JSON.stringify(e.attributes)===JSON.stringify(n.attributes)&&e.isSVG===n.isSVG&&e.needBlock===n.needBlock)}(o.getMeta(n),e))return o.getNode(e.id)}let u=K(e,{doc:r,hackCss:a,cache:l});if(!u)return null;if(e.rootId&&o.getNode(e.rootId)!==r&&o.replace(e.rootId,r),e.type===t.Document&&(r.close(),r.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==t.DocumentType&&(e.childNodes[0].type===t.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=r),o.add(u,e),(e.type===t.Document||e.type===t.Element)&&!s)for(const i of e.childNodes){const s=X(i,{doc:r,mirror:o,skipChild:!1,hackCss:a,afterAppend:c,cache:l});if(s){if(i.isShadow&&n(u)&&u.shadowRoot)u.shadowRoot.appendChild(s);else if(e.type===t.Document&&i.type==t.Element){const e=s;let t=null;e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),u.appendChild(s),e.appendChild(t)):u.appendChild(s)}else u.appendChild(s);c&&c(s,i.id)}else console.warn("Failed to rebuild",i)}return u}function $(e,n){const{doc:i,onVisit:r,hackCss:o=!0,afterAppend:s,cache:c,mirror:l=new a}=n,u=X(e,{doc:i,mirror:l,skipChild:!1,hackCss:o,afterAppend:s,cache:c});return function(e,t){for(const i of e.getIds())e.has(i)&&(n=e.getNode(i),t(n));var n}(l,(e=>{r&&r(e),function(e,n){const i=n.getMeta(e);if((null==i?void 0:i.type)!==t.Element)return;const r=e;for(const e in i.attributes){if(!Object.prototype.hasOwnProperty.call(i.attributes,e)||!e.startsWith("rr_"))continue;const t=i.attributes[e];"rr_scrollLeft"===e&&(r.scrollLeft=t),"rr_scrollTop"===e&&(r.scrollTop=t)}}(e,l)})),u}function J(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}const Z="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.";function Q(e,t,n={}){let i=null,r=0;return function(...o){const s=Date.now();r||!1!==n.leading||(r=s);const a=t-(s-r),c=this;a<=0||a>t?(i&&(clearTimeout(i),i=null),r=s,e.apply(c,o)):i||!1===n.trailing||(i=setTimeout((()=>{r=!1===n.leading?0:Date.now(),i=null,e.apply(c,o)}),a))}}function ee(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>ee(e,t,o||{},!0)}function te(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],r=n(i);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=r,()=>{e[t]=i}}catch(e){return()=>{}}}e.mirror={map:{},getId:()=>(console.error(Z),-1),getNode:()=>(console.error(Z),null),removeNodeFromMap(){console.error(Z)},has:()=>(console.error(Z),!1),reset(){console.error(Z)}},"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(e.mirror=new Proxy(e.mirror,{get:(e,t,n)=>("map"===t&&console.error(Z),Reflect.get(e,t,n))}));let ne=Date.now;function ie(e){var t,n,i,r,o,s;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null===(n=null===(t=null==a?void 0:a.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===(i=null==a?void 0:a.body)||void 0===i?void 0:i.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null===(o=null===(r=null==a?void 0:a.body)||void 0===r?void 0:r.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(s=null==a?void 0:a.body)||void 0===s?void 0:s.scrollTop)||0}}function re(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function se(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function ae(e,t,n,i){if(!e)return!1;const r=se(e);if(!r)return!1;try{if("string"==typeof t){if(r.classList.contains(t))return!0;if(i&&null!==r.closest("."+t))return!0}else if(I(r,t,i))return!0}catch(e){}if(n){if(r.matches(n))return!0;if(i&&null!==r.closest(n))return!0}return!1}function ce(e,t){return-1!==t.getId(e)}function le(e,t){return-2===t.getId(e)}function ue(e,t){if(i(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ue(e.parentNode,t))}function de(e){return Boolean(e.changedTouches)}function he(e=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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function pe(e){const t={},n=(e,n)=>{const i={value:e,parent:n,children:[]};return t[e.node.id]=i,i},i=[];for(const r of e){const{nextId:e,parentId:o}=r;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(r,o.parent))}else{const e=i.indexOf(o);i.splice(e,0,n(r,null))}}else if(o in t){const e=t[o];e.children.push(n(r,e))}else i.push(n(r,null))}return i}function fe(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)fe(e.children[n],t)}function me(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ve(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ge(e,t){var n,i;const r=null===(i=null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===i?void 0:i.frameElement;if(!r||r===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=r.getBoundingClientRect(),s=ge(r,t),a=o.height/r.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:a,absoluteScale:s.absoluteScale*a}}function Ce(e){return Boolean(null==e?void 0:e.shadowRoot)}function ye(e,t){const n=e[t[0]];return 1===t.length?n:ye(n.cssRules[t[1]].cssRules,t.slice(2))}function be(e){const t=[...e],n=t.pop();return{positions:t,index:n}}function Ee(e){const t=new Set,n=[];for(let i=e.length;i--;){const r=e[i];t.has(r.id)||(n.push(r),t.add(r.id))}return n}/[1-9][0-9]{12}/.test(Date.now().toString())||(ne=()=>(new Date).getTime());class we{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function _e(e){var t,n;let i=null;return(null===(n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===n?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(i=e.getRootNode().host),i}function ke(e){let t,n=e;for(;t=_e(n);)n=t;return n}function Se(e){const t=e.ownerDocument;if(!t)return!1;const n=ke(e);return t.contains(n)}function Te(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Se(e))}var Me=Object.freeze({__proto__:null,on:J,get _mirror(){return e.mirror},throttle:Q,hookSetter:ee,patch:te,get nowTimestamp(){return ne},getWindowScroll:ie,getWindowHeight:re,getWindowWidth:oe,closestElementOfNode:se,isBlocked:ae,isSerialized:ce,isIgnored:le,isAncestorRemoved:ue,legacy_isTouchEvent:de,polyfill:he,queueToResolveTrees:pe,iterateResolveTree:fe,isSerializedIframe:me,isSerializedStylesheet:ve,getBaseDimension:ge,hasShadowRoot:Ce,getNestedRule:ye,getPositionsAndIndex:be,uniqueTextMutations:Ee,StyleSheetMirror:we,getShadowHost:_e,getRootShadowHost:ke,shadowHostInDom:Se,inDom:Te}),Ae=(e=>(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))(Ae||{}),Ne=(e=>(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))(Ne||{}),Oe=(e=>(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))(Oe||{}),Ie=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ie||{}),Re=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Re||{}),xe=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(xe||{});function Pe(e){return"__ln"in e}class Le{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Pe(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Pe(e.nextSibling)&&e.nextSibling.__ln.previous){const 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++}removeNode(e){const 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--)}}const De=(e,t)=>`${e}@${t}`;class Ue{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Le,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Te(o)||"TEXTAREA"===o.parentNode.tagName)return;const s=i(o.parentNode)?this.mirror.getId(_e(o)):this.mirror.getId(o.parentNode),a=r(o);if(-1===s||-1===a)return n.addNode(o);const c=L(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{me(e,this.mirror)&&this.iframeManager.addIframe(e),ve(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ce(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});c&&(e.push({parentId:s,nextId:a,node:c}),t.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)He(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Be(this.droppedSet,e)||He(this.removes,e,this.mirror)?Be(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const i=t.parentNode.host;if(-1!==this.mirror.getId(i)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}const a={texts:this.texts.map((e=>{const t=e.node;return"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.genTextAreaValueMutation=e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,(e=>e.textContent||"")).join("")},this.processMutation=e=>{if(!le(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;ae(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:R(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,se(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,i=e.target.getAttribute(n);if("value"===n){const e=h(t);i=l({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:i,maskInputFn:this.maskInputFn})}if(ae(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let r=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(i)){if(t.contentDocument)return;n="rr_src"}if(r||(r={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(e.target,r)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!O(t.tagName,n)&&(r.attributes[n]=N(this.doc,u(t.tagName),u(n),i),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const i=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);i!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?r.styleDiff[e]=""===o?i:[i,o]:r._unchangedStyles[e]=[i,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(r.styleDiff[e]=!1)}break}case"childList":if(ae(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),o=i(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ae(e.target,this.blockClass,this.blockSelector,!1)||le(t,this.mirror)||!ce(t,this.mirror)||(this.addedSet.has(t)?(Fe(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||ue(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[De(n,o)]?Fe(this.movedSet,t):this.removes.push({parentId:o,id:n,isShadow:!(!i(e.target)||!r(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(le(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[De(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ae(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Ce(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Fe(e,t){e.delete(t),t.childNodes.forEach((t=>Fe(e,t)))}function He(e,t,n){return 0!==e.length&&je(e,t,n)}function je(e,t,n){const{parentNode:i}=t;if(!i)return!1;const r=n.getId(i);return!!e.some((e=>e.id===r))||je(e,i,n)}function Be(e,t){return 0!==e.size&&ze(e,t)}function ze(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||ze(e,n))}let We;function Ve(e){We=e}function Ge(){We=void 0}const qe=e=>{if(!We)return e;return(...t)=>{try{return e(...t)}catch(e){if(We&&!0===We(e))return;throw e}}},Ye=[];function Ke(e){try{if("composedPath"in e){const 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 Xe(e,t){var n,i;const r=new Ue;Ye.push(r),r.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const s=null===(i=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===i?void 0:i.call(n,"MutationObserver");s&&window[s]&&(o=window[s]);const a=new o(qe(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function $e({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[];let c=null;return Object.keys(Oe).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((o=>{let s=u(o);const l=(t=>o=>{const s=Ke(o);if(ae(s,i,r,!0))return;let a=null,l=t;if("pointerType"in o){switch(o.pointerType){case"mouse":a=Ie.Mouse;break;case"touch":a=Ie.Touch;break;case"pen":a=Ie.Pen}a===Ie.Touch?Oe[t]===Oe.MouseDown?l="TouchStart":Oe[t]===Oe.MouseUp&&(l="TouchEnd"):Ie.Pen}else de(o)&&(a=Ie.Touch);null!==a?(c=a,(l.startsWith("Touch")&&a===Ie.Touch||l.startsWith("Mouse")&&a===Ie.Mouse)&&(a=null)):Oe[t]===Oe.Click&&(a=c,c=null);const u=de(o)?o.changedTouches[0]:o;if(!u)return;const d=n.getId(s),{clientX:h,clientY:p}=u;qe(e)(Object.assign({type:Oe[l],id:d,x:h,y:p},null!==a&&{pointerType:a}))})(o);if(window.PointerEvent)switch(Oe[o]){case Oe.MouseDown:case Oe.MouseUp:s=s.replace("mouse","pointer");break;case Oe.TouchStart:case Oe.TouchEnd:return}a.push(J(s,l,t))})),qe((()=>{a.forEach((e=>e()))}))}function Je({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,sampling:o}){return J("scroll",qe(Q(qe((o=>{const s=Ke(o);if(!s||ae(s,i,r,!0))return;const a=n.getId(s);if(s===t&&t.defaultView){const n=ie(t.defaultView);e({id:a,x:n.left,y:n.top})}else e({id:a,x:s.scrollLeft,y:s.scrollTop})})),o.scroll||100)),t)}const Ze=["INPUT","TEXTAREA","SELECT"],Qe=new WeakMap;function et(e){return function(e,t){if(rt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||rt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||rt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||rt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function tt(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function nt({mirror:e,stylesheetManager:t},n){var i,r,o;let s=null;s="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?null===(i=n.defaultView)||void 0===i?void 0:i.Document:null===(o=null===(r=n.ownerDocument)||void 0===r?void 0:r.defaultView)||void 0===o?void 0:o.ShadowRoot,c=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&a&&c?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set(e){var n;const i=null===(n=c.set)||void 0===n?void 0:n.call(this,e);if(null!==s&&-1!==s)try{t.adoptStyleSheets(e,s)}catch(e){}return i}}),qe((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))):()=>{}}function it(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let i;!function(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:h,selectionCb:p,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),s(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),h(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t),e.recordDOM&&(i=Xe(e,e.doc));const r=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const r="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=Q(qe((t=>{const n=Date.now()-s;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],s=null})),o),l=qe(Q(qe((e=>{const t=Ke(e),{clientX:n,clientY:r}=de(e)?e.changedTouches[0]:e;s||(s=ne()),a.push({x:n,y:r,id:i.getId(t),timeOffset:ne()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ne.Drag:e instanceof MouseEvent?Ne.MouseMove:Ne.TouchMove)})),r,{trailing:!1})),u=[J("mousemove",l,n),J("touchmove",l,n),J("drag",l,n)];return qe((()=>{u.forEach((e=>e()))}))}(e),o=$e(e),s=Je(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,i=-1;return J("resize",qe(Q(qe((()=>{const t=re(),r=oe();n===t&&i===r||(e({width:Number(r),height:Number(t)}),n=t,i=r)})),200)),t)}(e,{win:n}),c=function({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,ignoreClass:o,ignoreSelector:s,maskInputOptions:a,maskInputFn:c,sampling:u,userTriggeredOnInput:d}){function p(e){let n=Ke(e);const u=e.isTrusted,p=n&&n.tagName;if(n&&"OPTION"===p&&(n=n.parentElement),!n||!p||Ze.indexOf(p)<0||ae(n,i,r,!0))return;if(n.classList.contains(o)||s&&n.matches(s))return;let m=n.value,v=!1;const g=h(n)||"";"radio"===g||"checkbox"===g?v=n.checked:(a[p.toLowerCase()]||a[g])&&(m=l({element:n,maskInputOptions:a,tagName:p,type:g,value:m,maskInputFn:c})),f(n,d?{text:m,isChecked:v,userTriggered:u}:{text:m,isChecked:v});const C=n.name;"radio"===g&&C&&v&&t.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach((e=>{if(e!==n){const t=e.value;f(e,d?{text:t,isChecked:!v,userTriggered:!1}:{text:t,isChecked:!v})}}))}function f(t,i){const r=Qe.get(t);if(!r||r.text!==i.text||r.isChecked!==i.isChecked){Qe.set(t,i);const r=n.getId(t);qe(e)(Object.assign(Object.assign({},i),{id:r}))}}const m=("last"===u.input?["change"]:["input","change"]).map((e=>J(e,qe(p),t))),v=t.defaultView;if(!v)return()=>{m.forEach((e=>e()))};const g=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),C=[[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 g&&g.set&&m.push(...C.map((e=>ee(e[0],e[1],{set(){qe(p)({target:this,isTrusted:!1})}},!1,v)))),qe((()=>{m.forEach((e=>e()))}))}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:i,sampling:r,doc:o}){const s=qe((o=>Q(qe((r=>{const s=Ke(r);if(!s||ae(s,t,n,!0))return;const{currentTime:a,volume:c,muted:l,playbackRate:u}=s;e({type:o,id:i.getId(s),currentTime:a,volume:c,muted:l,playbackRate:u})})),r.media||500))),a=[J("play",s(0),o),J("pause",s(1),o),J("seeked",s(2),o),J("volumechange",s(3),o),J("ratechange",s(4),o)];return qe((()=>{a.forEach((e=>e()))}))}(e);let d=()=>{},p=()=>{},f=()=>{},m=()=>{};e.recordDOM&&(d=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const r=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:qe(((i,r,o)=>{const[s,a]=o,{id:c,styleId:l}=tt(r,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:s,index:a}]}),i.apply(r,o)}))});const o=i.CSSStyleSheet.prototype.deleteRule;let s,a;i.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:qe(((i,r,o)=>{const[s]=o,{id:a,styleId:c}=tt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),i.apply(r,o)}))}),i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:qe(((i,r,o)=>{const[s]=o,{id:a,styleId:c}=tt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),i.apply(r,o)}))})),i.CSSStyleSheet.prototype.replaceSync&&(a=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:qe(((i,r,o)=>{const[s]=o,{id:a,styleId:c}=tt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),i.apply(r,o)}))}));const c={};ot("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(ot("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),ot("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),ot("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));const l={};return Object.entries(c).forEach((([i,r])=>{l[i]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(l[i].insertRule,{apply:qe(((i,r,o)=>{const[s,a]=o,{id:c,styleId:l}=tt(r.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:s,index:[...et(r),a||0]}]}),i.apply(r,o)}))}),r.prototype.deleteRule=new Proxy(l[i].deleteRule,{apply:qe(((i,r,o)=>{const[s]=o,{id:a,styleId:c}=tt(r.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...et(r),s]}]}),i.apply(r,o)}))})})),qe((()=>{i.CSSStyleSheet.prototype.insertRule=r,i.CSSStyleSheet.prototype.deleteRule=o,s&&(i.CSSStyleSheet.prototype.replace=s),a&&(i.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),p=nt(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:i},{win:r}){const o=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:qe(((r,s,a)=>{var c;const[l,u,d]=a;if(n.has(l))return o.apply(s,[l,u,d]);const{id:h,styleId:p}=tt(null===(c=s.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,i.styleMirror);return(h&&-1!==h||p&&-1!==p)&&e({id:h,styleId:p,set:{property:l,value:u,priority:d},index:et(s.parentRule)}),r.apply(s,a)}))});const s=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:qe(((r,o,a)=>{var c;const[l]=a;if(n.has(l))return s.apply(o,[l]);const{id:u,styleId:d}=tt(null===(c=o.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,i.styleMirror);return(u&&-1!==u||d&&-1!==d)&&e({id:u,styleId:d,remove:{property:l},index:et(o.parentRule)}),r.apply(o,a)}))}),qe((()=>{r.CSSStyleDeclaration.prototype.setProperty=o,r.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],r=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const s=te(t.fonts,"add",(function(t){return function(n){return setTimeout(qe((()=>{const t=r.get(n);t&&(e(t),r.delete(n))})),0),t.apply(this,[n])}}));return i.push((()=>{n.FontFace=o})),i.push(s),qe((()=>{i.forEach((e=>e()))}))}(e)));const v=function(e){const{doc:t,mirror:n,blockClass:i,blockSelector:r,selectionCb:o}=e;let s=!0;const a=qe((()=>{const e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;const a=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const o=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:l,endOffset:u}=o;ae(s,i,r,!0)||ae(l,i,r,!0)||a.push({start:n.getId(s),startOffset:c,end:n.getId(l),endOffset:u})}o({ranges:a})}));return a(),J("selectionchange",a)}(e),g=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?te(n.customElements,"define",(function(e){return function(n,i,r){try{t({define:{name:n}})}catch(e){console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,i,r])}})):()=>{}}(e),C=[];for(const t of e.plugins)C.push(t.observer(t.callback,n,t.options));return qe((()=>{Ye.forEach((e=>e.reset())),null==i||i.disconnect(),r(),o(),s(),a(),c(),u(),d(),p(),f(),m(),v(),g(),C.forEach((e=>e()))}))}function rt(e){return void 0!==window[e]}function ot(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class st{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,i){const r=n||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e);let s=r.get(t);return s||(s=this.generateIdFn(),r.set(t,s),o.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,i)))}getRemoteId(e,t,n){const i=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const r=i.get(t);return r||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class at{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new st(v),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new st(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||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))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case Ae.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Ae.IncrementalSnapshot,data:{source:Ne.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ae.Meta:case Ae.Load:case Ae.DomContentLoaded:return!1;case Ae.Plugin:return t;case Ae.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ae.IncrementalSnapshot:switch(t.data.source){case Ne.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ne.Drag:case Ne.TouchMove:case Ne.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ne.ViewportResize:return!1;case Ne.MediaInteraction:case Ne.MouseInteraction:case Ne.Scroll:case Ne.CanvasMutation:case Ne.Input:return this.replaceIds(t.data,e,["id"]),t;case Ne.StyleSheetRule:case Ne.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ne.Font:return t;case Ne.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Ne.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(n=t.data.styles)||void 0===n||n.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,n,i){for(const r of i)(Array.isArray(t[r])||"number"==typeof t[r])&&(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,n){e.type===t.Document||e.rootId||(e.rootId=n),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,n)}))}}class ct{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!r(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=Xe(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Je(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(nt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(te(e.prototype,"attachShadow",(function(e){return function(i){const r=e.call(this,i);return this.shadowRoot&&Te(this)&&n.addShadowRoot(this.shadowRoot,t),r}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}function lt(e,t,n,i){return new(n||(n=Promise))((function(t,r){function o(e){try{a(i.next(e))}catch(e){r(e)}}function s(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(e){e(i)}))).then(o,s)}a((i=i.apply(e,[])).next())}))}for(var ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ht=0;ht<64;ht++)dt[ut.charCodeAt(ht)]=ht;const pt=new Map;const ft=(e,t,n)=>{if(!e||!gt(e,t)&&"object"!=typeof e)return;const i=function(e,t){let n=pt.get(e);return n||(n=new Map,pt.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let r=i.indexOf(e);return-1===r&&(r=i.length,i.push(e)),r};function mt(e,t,n){if(e instanceof Array)return e.map((e=>mt(e,t,n)));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){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),i=n.length,r="";for(t=0;t<i;t+=3)r+=ut[n[t]>>2],r+=ut[(3&n[t])<<4|n[t+1]>>4],r+=ut[(15&n[t+1])<<2|n[t+2]>>6],r+=ut[63&n[t+2]];return i%3==2?r=r.substring(0,r.length-1)+"=":i%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}}if(gt(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:ft(e,t,n)}}return e}const vt=(e,t,n)=>e.map((e=>mt(e,t,n))),gt=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function Ct(e,t,n,i){const r=[];try{const o=te(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(r,...o){if(!ae(this,t,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(r);if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){const e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[r,...o])}}));r.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach((e=>e()))}}function yt(e,t,n,i,r,o,s){const a=[],c=Object.getOwnPropertyNames(e);for(const o of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;const c=te(e,o,(function(e){return function(...a){const c=e.apply(this,a);if(ft(c,s,this),"tagName"in this.canvas&&!ae(this.canvas,i,r,!0)){const e=vt(a,s,this),i={type:t,property:o,args:e};n(this.canvas,i)}return c}}));a.push(c)}catch(i){const r=ee(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});a.push(r)}return a}var bt,Et,wt=(bt=function(){!function(){function e(e,t,n,i){return new(n||(n=Promise))((function(t,r){function o(e){try{a(i.next(e))}catch(e){r(e)}}function s(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(e){e(i)}))).then(o,s)}a((i=i.apply(e,[])).next())}))}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<64;i++)n[t.charCodeAt(i)]=i;var r=function(e){var n,i=new Uint8Array(e),r=i.length,o="";for(n=0;n<r;n+=3)o+=t[i[n]>>2],o+=t[(3&i[n])<<4|i[n+1]>>4],o+=t[(15&i[n+1])<<2|i[n+2]>>6],o+=t[63&i[n+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o};const o=new Map,s=new Map,a=self;a.onmessage=function(t){return e(this,0,void 0,(function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{const{id:n,bitmap:i,width:c,height:l,dataURLOptions:u}=t.data,d=function(t,n,i){return e(this,0,void 0,(function*(){const e=`${t}-${n}`;if("OffscreenCanvas"in globalThis){if(s.has(e))return s.get(e);const o=new OffscreenCanvas(t,n);o.getContext("2d");const a=yield o.convertToBlob(i),c=yield a.arrayBuffer(),l=r(c);return s.set(e,l),l}return""}))}(c,l,u),h=new OffscreenCanvas(c,l);h.getContext("2d").drawImage(i,0,0),i.close();const p=yield h.convertToBlob(u),f=p.type,m=yield p.arrayBuffer(),v=r(m);if(!o.has(n)&&(yield d)===v)return o.set(n,v),a.postMessage({id:n});if(o.get(n)===v)return a.postMessage({id:n});a.postMessage({id:n,type:f,base64:v,width:c,height:l}),o.set(n,v)}}))}}()},function(e){return Et=Et||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var n=t[0].search(/\S/),i=/(['"])__worker_loader_strict__(['"])/g,r=0,o=t.length;r<o;++r)t[r]=t[r].substring(n).replace(i,"$1use strict$2")+"\n";return t}(e),n=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(n)}(bt),new Worker(Et,e)});class _t{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:s})}initCanvasFPSObserver(e,t,n,i,r){const o=Ct(t,n,i,!0),s=new Map,a=new wt;a.onmessage=e=>{const{id:t}=e.data;if(s.set(t,!1),!("base64"in e.data))return;const{base64:n,type:i,width:r,height:o}=e.data;this.mutationCb({id:t,type:Re["2D"],commands:[{property:"clearRect",args:[0,0,r,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})};const c=1e3/e;let l,u=0;const d=e=>{u&&e-u<c||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{ae(t,n,i,!0)||e.push(t)})),e})().forEach((e=>lt(this,0,void 0,(function*(){var t;const n=this.mirror.getId(e);if(s.get(n))return;if(s.set(n,!0),["webgl","webgl2"].includes(e.__context)){const n=e.getContext(e.__context);!1===(null===(t=null==n?void 0:n.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)}const i=yield createImageBitmap(e);a.postMessage({id:n,bitmap:i,width:e.width,height:e.height,dataURLOptions:r.dataURLOptions},[i])}))))),l=requestAnimationFrame(d)};l=requestAnimationFrame(d),this.resetObservers=()=>{o(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=Ct(e,t,n,!1),r=function(e,t,n,i){const r=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const o=te(t.CanvasRenderingContext2D.prototype,s,(function(r){return function(...o){return ae(this.canvas,n,i,!0)||setTimeout((()=>{const n=vt(o,t,this);e(this.canvas,{type:Re["2D"],property:s,args:n})}),0),r.apply(this,o)}}));r.push(o)}catch(n){const i=ee(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:Re["2D"],property:s,args:[t],setter:!0})}});r.push(i)}return()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n),o=function(e,t,n,i){const r=[];return r.push(...yt(t.WebGLRenderingContext.prototype,Re.WebGL,e,n,i,0,t)),void 0!==t.WebGL2RenderingContext&&r.push(...yt(t.WebGL2RenderingContext.prototype,Re.WebGL2,e,n,i,0,t)),()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,this.mirror);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const i=n.map((e=>{const t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["type"]);return t})),{type:r}=n[0];this.mutationCb({id:t,type:r,commands:i}),this.pendingCanvasMutations.delete(e)}}class kt{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new we,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},i=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:s(e),index:t})))})),n.styleIds.push(e)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class St{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Tt(e){return Object.assign(Object.assign({},e),{timestamp:ne()})}let Mt,At,Nt,Ot=!1;const It=c();function Rt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:r="rr-block",blockSelector:o=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,inlineStylesheet:d=!0,maskAllInputs:h,maskInputOptions:p,slimDOMOptions:f,maskInputFn:m,maskTextFn:v,hooks:g,packFn:C,sampling:y={},dataURLOptions:b={},mousemoveWait:E,recordDOM:w=!0,recordCanvas:_=!1,recordCrossOriginIframes:k=!1,recordAfter:S=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:T=!1,collectFonts:M=!1,inlineImages:A=!1,plugins:N,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:I=new Set([]),errorHandler:R}=e;Ve(R);const x=!k||window.parent===window;let P=!1;if(!x)try{window.parent.document&&(P=!1)}catch(e){P=!0}if(x&&!t)throw new Error("emit function is required");void 0!==E&&void 0===y.mousemove&&(y.mousemove=E),It.reset();const D=!0===h?{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!==p?p:{password:!0},U=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let F;he();let H=0;const j=e=>{for(const t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&!P&&(e=C(e)),e};Mt=(e,r)=>{var o;if(!(null===(o=Ye[0])||void 0===o?void 0:o.isFrozen())||e.type===Ae.FullSnapshot||e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.Mutation||Ye.forEach((e=>e.unfreeze())),x)null==t||t(j(e),r);else if(P){const t={type:"rrweb",event:j(e),origin:window.location.origin,isCheckout:r};window.parent.postMessage(t,"*")}if(e.type===Ae.FullSnapshot)F=e,H=0;else if(e.type===Ae.IncrementalSnapshot){if(e.data.source===Ne.Mutation&&e.data.isAttachIframe)return;H++;const t=i&&H>=i,r=n&&e.timestamp-F.timestamp>n;(t||r)&&At(!0)}};const B=e=>{Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Mutation},e)}))},z=e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Scroll},e)})),W=e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.CanvasMutation},e)})),V=new kt({mutationCb:B,adoptedStyleSheetCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.AdoptedStyleSheet},e)}))}),G=new at({mirror:It,mutationCb:B,stylesheetManager:V,recordCrossOriginIframes:k,wrappedEmit:Mt});for(const e of N||[])e.getMirror&&e.getMirror({nodeMirror:It,crossOriginIframeMirror:G.crossOriginIframeMirror,crossOriginIframeStyleMirror:G.crossOriginIframeStyleMirror});const q=new St;Nt=new _t({recordCanvas:_,mutationCb:W,win:window,blockClass:r,blockSelector:o,mirror:It,sampling:y.canvas,dataURLOptions:b});const Y=new ct({mutationCb:B,scrollCb:z,bypassOptions:{blockClass:r,blockSelector:o,maskTextClass:l,maskTextSelector:u,inlineStylesheet:d,maskInputOptions:D,dataURLOptions:b,maskTextFn:v,maskInputFn:m,recordCanvas:_,inlineImages:A,sampling:y,slimDOMOptions:U,iframeManager:G,stylesheetManager:V,canvasManager:Nt,keepIframeSrcFn:O,processedNodeManager:q},mirror:It});At=(e=!1)=>{if(!w)return;Mt(Tt({type:Ae.Meta,data:{href:window.location.href,width:oe(),height:re()}}),e),V.reset(),Y.init(),Ye.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new a,blockClass:i="rr-block",blockSelector:r=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:d=!1,maskTextFn:h,maskInputFn:p,slimDOM:f=!1,dataURLOptions:m,preserveWhiteSpace:v,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:w=()=>!1}=t||{};return L(e,{doc:e,mirror:n,blockClass:i,blockSelector:r,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:!0===d?{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===d?{password:!0}:d,maskTextFn:h,maskInputFn:p,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:v,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:It,blockClass:r,blockSelector:o,maskTextClass:l,maskTextSelector:u,inlineStylesheet:d,maskAllInputs:D,maskTextFn:v,slimDOM:U,dataURLOptions:b,recordCanvas:_,inlineImages:A,onSerialize:e=>{me(e,It)&&G.addIframe(e),ve(e,It)&&V.trackLinkElement(e),Ce(e)&&Y.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{G.attachIframe(e,t),Y.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{V.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");Mt(Tt({type:Ae.FullSnapshot,data:{node:t,initialOffset:ie(window)}}),e),Ye.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,It.getId(document))};try{const e=[],t=e=>{var t;return qe(it)({mutationCb:B,mousemoveCb:(e,t)=>Mt(Tt({type:Ae.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.MouseInteraction},e)})),scrollCb:z,viewportResizeCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.ViewportResize},e)})),inputCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Input},e)})),mediaInteractionCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.MediaInteraction},e)})),styleSheetRuleCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.StyleSheetRule},e)})),styleDeclarationCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.StyleDeclaration},e)})),canvasMutationCb:W,fontCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Font},e)})),selectionCb:e=>{Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Selection},e)}))},customElementCb:e=>{Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.CustomElement},e)}))},blockClass:r,ignoreClass:s,ignoreSelector:c,maskTextClass:l,maskTextSelector:u,maskInputOptions:D,inlineStylesheet:d,sampling:y,recordDOM:w,recordCanvas:_,inlineImages:A,userTriggeredOnInput:T,collectFonts:M,doc:e,maskInputFn:m,maskTextFn:v,keepIframeSrcFn:O,blockSelector:o,slimDOMOptions:U,dataURLOptions:b,mirror:It,iframeManager:G,stylesheetManager:V,shadowDomManager:Y,processedNodeManager:q,canvasManager:Nt,ignoreCSSAttributes:I,plugins:(null===(t=null==N?void 0:N.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>Mt(Tt({type:Ae.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},g)};G.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{At(),e.push(t(document)),Ot=!0};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(J("DOMContentLoaded",(()=>{Mt(Tt({type:Ae.DomContentLoaded,data:{}})),"DOMContentLoaded"===S&&n()}))),e.push(J("load",(()=>{Mt(Tt({type:Ae.Load,data:{}})),"load"===S&&n()}),window))),()=>{e.forEach((e=>e())),q.destroy(),Ot=!1,Ge()}}catch(e){console.warn(e)}}var xt;Rt.addCustomEvent=(e,t)=>{if(!Ot)throw new Error("please add custom event after start recording");Mt(Tt({type:Ae.Custom,data:{tag:e,payload:t}}))},Rt.freezePage=()=>{Ye.forEach((e=>e.freeze()))},Rt.takeFullSnapshot=e=>{if(!Ot)throw new Error("please take full snapshot after start recording");At(e)},Rt.mirror=It,function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(xt||(xt={}));class Pt{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Lt(e){const t=[];for(const n in e){const i=e[n];if("string"!=typeof i)continue;const r=jt(n);t.push(`${r}: ${i};`)}return t.join(" ")}const Dt=/-([a-z])/g,Ut=/^--[a-zA-Z0-9-]+$/,Ft=e=>Ut.test(e)?e:e.replace(Dt,((e,t)=>t?t.toUpperCase():"")),Ht=/\B([A-Z])/g,jt=e=>e.replace(Ht,"-$1").toLowerCase();class Bt{constructor(...e){this.parentElement=null,this.parentNode=null,this.firstChild=null,this.lastChild=null,this.previousSibling=null,this.nextSibling=null,this.ELEMENT_NODE=Jt.ELEMENT_NODE,this.TEXT_NODE=Jt.TEXT_NODE}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof Bt))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function zt(e){return class extends e{constructor(e,t,n){super(),this.nodeType=Jt.DOCUMENT_TYPE_NODE,this.RRNodeType=xt.DocumentType,this.name=e,this.publicId=t,this.systemId=n,this.nodeName=e,this.textContent=null}toString(){return"RRDocumentType"}}}function Wt(e){return class extends e{constructor(e){super(),this.nodeType=Jt.ELEMENT_NODE,this.RRNodeType=xt.Element,this.attributes={},this.shadowRoot=null,this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach((t=>e+=t.textContent)),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new Yt(this.attributes.class,(e=>{this.attributes.class=e}))}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?function(e){const t={},n=/:(.+)/;return e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach((function(e){if(e){const i=e.split(n);i.length>1&&(t[Ft(i[0].trim())]=i[1].trim())}})),t}(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(n,i,r)=>{if(t.test(n))return;const o=Ft(n);i?e[o]=i:delete e[o],"important"===r&&(e[o]+=" !important"),this.attributes.style=Lt(e)},e.removeProperty=n=>{if(t.test(n))return"";const i=Ft(n),r=e[i]||"";return delete e[i],this.attributes.style=Lt(e),r},e}getAttribute(e){return this.attributes[e]||null}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,n){this.setAttribute(t,n)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return Kt(this,e)}insertBefore(e,t){return Xt(this,e,t)}removeChild(e){return $t(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}}function Vt(e){return class extends e{constructor(e){super(),this.nodeType=Jt.TEXT_NODE,this.nodeName="#text",this.RRNodeType=xt.Text,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Gt(e){return class extends e{constructor(e){super(),this.nodeType=Jt.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=xt.Comment,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function qt(e){return class extends e{constructor(e){super(),this.nodeName="#cdata-section",this.nodeType=Jt.CDATA_SECTION_NODE,this.RRNodeType=xt.CDATA,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class Yt{constructor(e,t){if(this.classes=[],this.add=(...e)=>{for(const t of e){const e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...e)=>{this.classes=this.classes.filter((t=>-1===e.indexOf(t))),this.onChange&&this.onChange(this.classes.join(" "))},e){const t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function Kt(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function Xt(e,t,n){if(!n)return Kt(e,t);if(n.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===n||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=n.previousSibling,n.previousSibling=t,t.nextSibling=n,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function $t(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var Jt;!function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Jt||(Jt={}));const Zt={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Qt={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let en=null;function tn(e,t,n,i=t.mirror||t.ownerDocument.mirror){e=function(e,t,n,i){var r;n.afterAppend&&!en&&(en=new WeakSet,setTimeout((()=>{en=null}),0));if(!on(e,t)){const o=rn(t,n.mirror,i);null===(r=e.parentNode)||void 0===r||r.replaceChild(o,e),e=o}switch(t.RRNodeType){case xt.Document:if(!sn(e,t,n.mirror,i)){const r=i.getMeta(t);r&&(n.mirror.removeNodeFromMap(e),e.close(),e.open(),n.mirror.add(e,r),null==en||en.add(e))}break;case xt.Element:{const r=e,o=t;switch(o.tagName){case"IFRAME":{const r=e.contentDocument;if(!r)break;tn(r,t.contentDocument,n,i);break}}o.shadowRoot&&(r.shadowRoot||r.attachShadow({mode:"open"}),nn(r.shadowRoot,o.shadowRoot,n,i)),function(e,t,n){const i=e.attributes,r=t.attributes;for(const i in r){const o=r[i],s=n.getMeta(t);if((null==s?void 0:s.isSVG)&&Zt[i])e.setAttributeNS(Zt[i],i,o);else if("CANVAS"===t.tagName&&"rr_dataURL"===i){const t=document.createElement("img");t.src=o,t.onload=()=>{const n=e.getContext("2d");n&&n.drawImage(t,0,0,t.width,t.height)}}else{if("IFRAME"===t.tagName&&"srcdoc"===i)continue;e.setAttribute(i,o)}}for(const{name:t}of Array.from(i))t in r||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(r,o,i);break}}return e}(e,t,n,i),nn(e,t,n,i),function(e,t,n){var i;switch(t.RRNodeType){case xt.Document:{const e=t.scrollData;e&&n.applyScroll(e,!0);break}case xt.Element:{const i=e,r=t;switch(r.scrollData&&n.applyScroll(r.scrollData,!0),r.inputData&&n.applyInput(r.inputData),r.tagName){case"AUDIO":case"VIDEO":{const t=e,n=r;void 0!==n.paused&&(n.paused?t.pause():t.play()),void 0!==n.muted&&(t.muted=n.muted),void 0!==n.volume&&(t.volume=n.volume),void 0!==n.currentTime&&(t.currentTime=n.currentTime),void 0!==n.playbackRate&&(t.playbackRate=n.playbackRate);break}case"CANVAS":{const r=t;if(null!==r.rr_dataURL){const e=document.createElement("img");e.onload=()=>{const t=i.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=r.rr_dataURL}r.canvasMutations.forEach((t=>n.applyCanvas(t.event,t.mutation,e)));break}case"STYLE":{const e=i.sheet;e&&t.rules.forEach((t=>n.applyStyleSheetMutation(t,e)));break}}break}case xt.Text:case xt.Comment:case xt.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==en?void 0:en.has(e))&&(en.delete(e),null===(i=n.afterAppend)||void 0===i||i.call(n,e,n.mirror.getId(e)))}(e,t,n)}function nn(e,t,n,i){const r=Array.from(e.childNodes),o=t.childNodes;if(0===r.length&&0===o.length)return;let s,a,c=0,l=r.length-1,u=0,d=o.length-1,h=r[c],p=r[l],f=o[u],m=o[d];for(;c<=l&&u<=d;)if(void 0===h)h=r[++c];else if(void 0===p)p=r[--l];else if(sn(h,f,n.mirror,i))h=r[++c],f=o[++u];else if(sn(p,m,n.mirror,i))p=r[--l],m=o[--d];else if(sn(h,m,n.mirror,i)){try{e.insertBefore(h,p.nextSibling)}catch(e){console.warn(e)}h=r[++c],m=o[--d]}else if(sn(p,f,n.mirror,i)){try{e.insertBefore(p,h)}catch(e){console.warn(e)}p=r[--l],f=o[++u]}else{if(!s){s={};for(let e=c;e<=l;e++){const t=r[e];t&&n.mirror.hasNode(t)&&(s[n.mirror.getId(t)]=e)}}a=s[i.getId(f)];const t=r[a];if(void 0!==a&&t&&sn(t,f,n.mirror,i)){try{e.insertBefore(t,h)}catch(e){console.warn(e)}r[a]=void 0}else{const t=rn(f,n.mirror,i);"#document"===e.nodeName&&h&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&h.nodeType===h.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&h.nodeType===h.ELEMENT_NODE)&&(e.removeChild(h),n.mirror.removeNodeFromMap(h),h=r[++c]);try{e.insertBefore(t,h||null)}catch(e){console.warn(e)}}f=o[++u]}if(c>l){const t=o[d+1];let r=null;for(t&&(r=n.mirror.getNode(i.getId(t)));u<=d;++u){const t=rn(o[u],n.mirror,i);try{e.insertBefore(t,r)}catch(e){console.warn(e)}}}else if(u>d)for(;c<=l;c++){const t=r[c];if(t&&t.parentNode===e)try{e.removeChild(t),n.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}let v=e.firstChild,g=t.firstChild;for(;null!==v&&null!==g;)tn(v,g,n,i),v=v.nextSibling,g=g.nextSibling}function rn(e,t,n){const i=n.getId(e),r=n.getMeta(e);let o=null;if(i>-1&&(o=t.getNode(i)),null!==o&&on(o,e))return o;switch(e.RRNodeType){case xt.Document:o=new Document;break;case xt.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case xt.Element:{let t=e.tagName.toLowerCase();t=Qt[t]||t,o=r&&"isSVG"in r&&(null==r?void 0:r.isSVG)?document.createElementNS(Zt.svg,t):document.createElement(e.tagName);break}case xt.Text:o=document.createTextNode(e.data);break;case xt.Comment:o=document.createComment(e.data);break;case xt.CDATA:o=document.createCDATASection(e.data)}r&&t.add(o,Object.assign({},r));try{null==en||en.add(o)}catch(e){}return o}function on(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function sn(e,t,n,i){const r=n.getId(e),o=i.getId(t);return-1!==r&&r===o&&on(e,t)}class an extends(function(e){return class t extends e{constructor(...e){super(e),this.nodeType=Jt.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=xt.Document,this.textContent=null,this.ownerDocument=this}get documentElement(){return this.childNodes.find((e=>e.RRNodeType===xt.Element&&"HTML"===e.tagName))||null}get body(){var e;return(null===(e=this.documentElement)||void 0===e?void 0:e.childNodes.find((e=>e.RRNodeType===xt.Element&&"BODY"===e.tagName)))||null}get head(){var e;return(null===(e=this.documentElement)||void 0===e?void 0:e.childNodes.find((e=>e.RRNodeType===xt.Element&&"HEAD"===e.tagName)))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===xt.Element||t===xt.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===t)))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===xt.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const n=Kt(this,e);return n.parentElement=null,n}insertBefore(e,t){const n=e.RRNodeType;if((n===xt.Element||n===xt.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===n)))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===xt.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=Xt(this,e,t);return i.parentElement=null,i}removeChild(e){return $t(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,n,i){return new t}createDocumentType(e,t,n){const i=new(zt(Bt))(e,t,n);return i.ownerDocument=this,i}createElement(e){const t=new(Wt(Bt))(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new(Vt(Bt))(e);return t.ownerDocument=this,t}createComment(e){const t=new(Gt(Bt))(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new(qt(Bt))(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}}(Bt)){get unserializedId(){return this._unserializedId--}constructor(e){super(),this.UNSERIALIZED_STARTING_ID=-2,this._unserializedId=this.UNSERIALIZED_STARTING_ID,this.mirror=new yn,this.scrollData=null,e&&(this.mirror=e)}createDocument(e,t,n){return new an}createDocumentType(e,t,n){const i=new cn(e,t,n);return i.ownerDocument=this,i}createElement(e){const t=e.toUpperCase();let n;switch(t){case"AUDIO":case"VIDEO":n=new un(t);break;case"IFRAME":n=new pn(t,this.mirror);break;case"CANVAS":n=new dn(t);break;case"STYLE":n=new hn(t);break;default:n=new ln(t)}return n.ownerDocument=this,n}createComment(e){const t=new mn(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new vn(e);return t.ownerDocument=this,t}createTextNode(e){const t=new fn(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const cn=zt(Bt);class ln extends(Wt(Bt)){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class un extends(function(e){return class extends e{attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}(ln)){}class dn extends ln{constructor(){super(...arguments),this.rr_dataURL=null,this.canvasMutations=[]}getContext(){return null}}class hn extends ln{constructor(){super(...arguments),this.rules=[]}}class pn extends ln{constructor(e,t){super(e),this.contentDocument=new an,this.contentDocument.mirror=t}}const fn=Vt(Bt),mn=Gt(Bt),vn=qt(Bt);function gn(e,t,n,i){let r;switch(e.nodeType){case Jt.DOCUMENT_NODE:i&&"IFRAME"===i.nodeName?r=i.contentDocument:(r=t,r.compatMode=e.compatMode);break;case Jt.DOCUMENT_TYPE_NODE:{const n=e;r=t.createDocumentType(n.name,n.publicId,n.systemId);break}case Jt.ELEMENT_NODE:{const n=e,i=(o=n)instanceof HTMLFormElement?"FORM":o.tagName.toUpperCase();r=t.createElement(i);const s=r;for(const{name:e,value:t}of Array.from(n.attributes))s.attributes[e]=t;n.scrollLeft&&(s.scrollLeft=n.scrollLeft),n.scrollTop&&(s.scrollTop=n.scrollTop);break}case Jt.TEXT_NODE:r=t.createTextNode(e.textContent||"");break;case Jt.CDATA_SECTION_NODE:r=t.createCDATASection(e.data);break;case Jt.COMMENT_NODE:r=t.createComment(e.textContent||"");break;case Jt.DOCUMENT_FRAGMENT_NODE:r=i.attachShadow({mode:"open"});break;default:return null}var o;let s=n.getMeta(e);return t instanceof an&&(s||(s=bn(r,t.unserializedId),n.add(e,s)),t.mirror.add(r,Object.assign({},s))),r}function Cn(e,t=function(){return new Pt}(),n=new an){return function e(i,r){const o=gn(i,n,t,r);if(null!==o)if("IFRAME"!==(null==r?void 0:r.nodeName)&&i.nodeType!==Jt.DOCUMENT_FRAGMENT_NODE&&(null==r||r.appendChild(o),o.parentNode=r,o.parentElement=r),"IFRAME"===i.nodeName){const t=i.contentDocument;t&&e(t,o)}else i.nodeType!==Jt.DOCUMENT_NODE&&i.nodeType!==Jt.ELEMENT_NODE&&i.nodeType!==Jt.DOCUMENT_FRAGMENT_NODE||(i.nodeType===Jt.ELEMENT_NODE&&i.shadowRoot&&e(i.shadowRoot,o),i.childNodes.forEach((t=>e(t,o))))}(e,null),n}class yn{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function bn(e,t){switch(e.RRNodeType){case xt.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case xt.DocumentType:{const n=e;return{id:t,type:e.RRNodeType,name:n.name,publicId:n.publicId,systemId:n.systemId}}case xt.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case xt.Text:case xt.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case xt.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function En(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map((function(e){e(n)})),(i=e.get("*"))&&i.slice().map((function(e){e(t,n)}))}}}var wn,_n=Object.freeze({__proto__:null,default:En});function kn(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;const n=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||a,scrollIntoView:n.prototype.scrollIntoView},r=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;const o=(s=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(s)?1:0);var s;function a(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(e,t){return"Y"===t?e.clientHeight+o<e.scrollHeight:"X"===t?e.clientWidth+o<e.scrollWidth:void 0}function u(t,n){const i=e.getComputedStyle(t,null)["overflow"+n];return"auto"===i||"scroll"===i}function d(e){const t=l(e,"Y")&&u(e,"Y"),n=l(e,"X")&&u(e,"X");return t||n}function h(t){let n,i,o,s=(r()-t.startTime)/468;s=s>1?1:s,n=function(e){return.5*(1-Math.cos(Math.PI*e))}(s),i=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,i,o),i===t.x&&o===t.y||e.requestAnimationFrame(h.bind(e,t))}function p(n,o,s){let c,l,u,d;const p=r();n===t.body?(c=e,l=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=i.scroll):(c=n,l=n.scrollLeft,u=n.scrollTop,d=a),h({scrollable:c,method:d,startTime:p,startX:l,startY:u,x:o,y:s})}e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?p.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0===arguments[0])return;if(!0===c(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}const e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0===c(arguments[0]))return void i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);const n=function(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(p.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}}class Sn{constructor(e=[],t){this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t.speed}addAction(e){const t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{const t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){const e=this.actions[0];if(!(this.timeOffset>=e.delay))break;this.actions.shift(),e.doAction()}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,n=this.actions.length-1;for(;t<=n;){const i=Math.floor((t+n)/2);if(this.actions[i].delay<e.delay)t=i+1;else{if(!(this.actions[i].delay>e.delay))return i+1;n=i-1}}return t}}function Tn(e,t){if(e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.MouseMove&&e.data.positions&&e.data.positions.length){const n=e.data.positions[0].timeOffset,i=e.timestamp+n;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}function Mn(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(wn||(wn={}));var An={type:"xstate.init"};function Nn(e){return void 0===e?[]:[].concat(e)}function On(e){return{type:"xstate.assign",assignment:e}}function In(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function Rn(e){return function(t){return e===t}}function xn(e){return"string"==typeof e?{type:e}:e}function Pn(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Rn(e)}}function Ln(e,t,n){var i=t,r=!1;return[e.filter((function(e){if("xstate.assign"===e.type){r=!0;var t=Object.assign({},i);return"function"==typeof e.assignment?t=e.assignment(i,n):Object.keys(e.assignment).forEach((function(r){t[r]="function"==typeof e.assignment[r]?e.assignment[r](i,n):e.assignment[r]})),i=t,!1}return!0})),i,r]}function Dn(e,t){void 0===t&&(t={});var n=Mn(Ln(Nn(e.states[e.initial].entry).map((function(e){return In(e,t.actions)})),e.context,An),2),i=n[0],r=n[1],o={config:e,_options:t,initialState:{value:e.initial,actions:i,context:r,matches:Rn(e.initial)},transition:function(t,n){var i,r,s="string"==typeof t?{value:t,context:e.context}:t,a=s.value,c=s.context,l=xn(n),u=e.states[a];if(u.on){var d=Nn(u.on[l.type]);try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),p=h.next();!p.done;p=h.next()){var f=p.value;if(void 0===f)return Pn(a,c);var m="string"==typeof f?{target:f}:f,v=m.target,g=m.actions,C=void 0===g?[]:g,y=m.cond,b=void 0===y?function(){return!0}:y,E=void 0===v,w=null!=v?v:a,_=e.states[w];if(b(c,l)){var k=Mn(Ln((E?Nn(C):[].concat(u.exit,C,_.entry).filter((function(e){return e}))).map((function(e){return In(e,o._options.actions)})),c,l),3),S=k[0],T=k[1],M=k[2],A=null!=v?v:a;return{value:A,context:T,actions:S,changed:v!==a||S.length>0||M,matches:Rn(A)}}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}}return Pn(a,c)}};return o}var Un=function(e,t){return e.actions.forEach((function(n){var i=n.exec;return i&&i(e.context,t)}))};function Fn(e){var t=e.initialState,n=wn.NotStarted,i=new Set,r={_machine:e,send:function(r){n===wn.Running&&(t=e.transition(t,r),Un(t,xn(r)),i.forEach((function(e){return e(t)})))},subscribe:function(e){return i.add(e),e(t),{unsubscribe:function(){return i.delete(e)}}},start:function(i){if(i){var o="object"==typeof i?i:{context:e.config.context,value:i};t={value:o.value,actions:[],context:o.context,matches:Rn(o.value)}}return n=wn.Running,Un(t,An),r},stop:function(){return n=wn.Stopped,i.clear(),r},get state(){return t},get status(){return n}};return r}function Hn(e,{getCastFn:t,applyEventsSynchronously:n,emitter:i}){const r=Dn({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:On({lastPlayedEvent:(e,t)=>"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:On(((e,t)=>{let n=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(n=t.payload.timeOffset),Object.assign(Object.assign({},e),{timeOffset:n,baselineTime:e.events[0].timestamp+n})})),play(e){var r;const{timer:o,events:s,baselineTime:a,lastPlayedEvent:c}=e;o.clear();for(const e of s)Tn(e,a);const l=function(e,t){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.type===Ae.Meta&&i.timestamp<=t)return e.slice(n)}return e}(s,a);let u=null==c?void 0:c.timestamp;(null==c?void 0:c.type)===Ae.IncrementalSnapshot&&c.data.source===Ne.MouseMove&&(u=c.timestamp+(null===(r=c.data.positions[0])||void 0===r?void 0:r.timeOffset)),a<(u||0)&&i.emit(xe.PlayBack);const d=new Array;for(const e of l)if(!(u&&u<a&&(e.timestamp<=u||e===c)))if(e.timestamp<a)d.push(e);else{const n=t(e,!1);o.addAction({doAction:()=>{n()},delay:e.delay})}n(d),i.emit(xe.Flush),o.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:On((e=>Object.assign(Object.assign({},e),{lastPlayedEvent:null}))),startLive:On({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:On(((e,n)=>{const{baselineTime:i,timer:r,events:o}=e;if("ADD_EVENT"===n.type){const{event:e}=n.payload;Tn(e,i);let s=o.length-1;if(!o[s]||o[s].timestamp<=e.timestamp)o.push(e);else{let t=-1,n=0;for(;n<=s;){const t=Math.floor((n+s)/2);o[t].timestamp<=e.timestamp?n=t+1:s=t-1}-1===t&&(t=n),o.splice(t,0,e)}const a=e.timestamp<i,c=t(e,a);a?c():r.isActive()&&r.addAction({doAction:()=>{c()},delay:e.delay})}return Object.assign(Object.assign({},e),{events:o})}))}});return Fn(r)}const jn=new Map;function Bn(e,t){let n=jn.get(e);return n||(n=new Map,jn.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}function zn(e,t,n){return i=>lt(this,0,void 0,(function*(){if(i&&"object"==typeof i&&"rr_type"in i){if(n&&(n.isUnchanged=!1),"ImageBitmap"===i.rr_type&&"args"in i){const r=yield zn(e,t,n)(i.args);return yield createImageBitmap.apply(null,r)}if("index"in i){if(n||null===t)return i;const{rr_type:e,index:r}=i;return Bn(t,e)[r]}if("args"in i){const{rr_type:r,args:o}=i;return new(0,window[r])(...yield Promise.all(o.map(zn(e,t,n))))}if("base64"in i)return function(e){var t,n,i,r,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),u=new Uint8Array(l);for(t=0;t<a;t+=4)n=dt[e.charCodeAt(t)],i=dt[e.charCodeAt(t+1)],r=dt[e.charCodeAt(t+2)],o=dt[e.charCodeAt(t+3)],u[c++]=n<<2|i>>4,u[c++]=(15&i)<<4|r>>2,u[c++]=(3&r)<<6|63&o;return l}(i.base64);if("src"in i){const t=e.get(i.src);if(t)return t;{const t=new Image;return t.src=i.src,e.set(i.src,t),t}}if("data"in i&&"Blob"===i.rr_type){const r=yield Promise.all(i.data.map(zn(e,t,n)));return new Blob(r,{type:i.type})}}else if(Array.isArray(i)){return yield Promise.all(i.map(zn(e,t,n)))}return i}))}const Wn=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Vn({mutation:e,target:t,type:n,imageMap:i,errorHandler:r}){return lt(this,0,void 0,(function*(){try{const r=function(e,t){try{return t===Re.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(e){return null}}(t,n);if(!r)return;if(e.setter)return void(r[e.property]=e.args[0]);const o=r[e.property],s=yield Promise.all(e.args.map(zn(i,r)));!function(e,t){if(!(null==t?void 0:t.constructor))return;const{name:n}=t.constructor;if(!Wn.includes(n))return;const i=Bn(e,n);i.includes(t)||i.push(t)}(r,o.apply(r,s))}catch(t){r(e,t)}}))}function Gn({event:e,mutation:t,target:n,imageMap:i,canvasEventMap:r,errorHandler:o}){return lt(this,0,void 0,(function*(){try{const s=r.get(e)||t,a="commands"in s?s.commands:[s];if([Re.WebGL,Re.WebGL2].includes(t.type)){for(let e=0;e<a.length;e++){const r=a[e];yield Vn({mutation:r,type:t.type,target:n,imageMap:i,errorHandler:o})}return}yield function({event:e,mutations:t,target:n,imageMap:i,errorHandler:r}){return lt(this,0,void 0,(function*(){const o=n.getContext("2d");if(!o)return void r(t[0],new Error("Canvas context is null"));const s=t.map((e=>lt(this,0,void 0,(function*(){return Promise.all(e.args.map(zn(i,o)))}))));(yield Promise.all(s)).forEach(((n,s)=>{const a=t[s];try{if(a.setter)return void(o[a.property]=a.args[0]);const t=o[a.property];"drawImage"===a.property&&"string"==typeof a.args[0]?(i.get(e),t.apply(o,a.args)):t.apply(o,n)}catch(e){r(a,e)}}))}))}({event:e,mutations:a,target:n,imageMap:i,errorHandler:o})}catch(e){o(t,e)}}))}const qn=En||_n,Yn="[replayer]",Kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Xn(e){return e.type==Ae.IncrementalSnapshot&&(e.data.source==Ne.TouchMove||e.data.source==Ne.MouseInteraction&&e.data.type==Oe.TouchStart)}const{addCustomEvent:$n}=Rt,{freezePage:Jn}=Rt;var Zn=Uint8Array,Qn=Uint16Array,ei=Uint32Array,ti=new Zn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ni=new Zn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ii=new Zn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ri=function(e,t){for(var n=new Qn(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new ei(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},oi=ri(ti,2),si=oi[0],ai=oi[1];si[28]=258,ai[258]=28;for(var ci=ri(ni,0),li=ci[0],ui=ci[1],di=new Qn(32768),hi=0;hi<32768;++hi){var pi=(43690&hi)>>>1|(21845&hi)<<1;pi=(61680&(pi=(52428&pi)>>>2|(13107&pi)<<2))>>>4|(3855&pi)<<4,di[hi]=((65280&pi)>>>8|(255&pi)<<8)>>>1}var fi=function(e,t,n){for(var i=e.length,r=0,o=new Qn(t);r<i;++r)++o[e[r]-1];var s,a=new Qn(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new Qn(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[di[d]>>>c]=l}else for(s=new Qn(i),r=0;r<i;++r)s[r]=di[a[e[r]-1]++]>>>15-e[r];return s},mi=new Zn(288);for(hi=0;hi<144;++hi)mi[hi]=8;for(hi=144;hi<256;++hi)mi[hi]=9;for(hi=256;hi<280;++hi)mi[hi]=7;for(hi=280;hi<288;++hi)mi[hi]=8;var vi=new Zn(32);for(hi=0;hi<32;++hi)vi[hi]=5;var gi=fi(mi,9,0),Ci=fi(mi,9,1),yi=fi(vi,5,0),bi=fi(vi,5,1),Ei=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},wi=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>>(7&t)&n},_i=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},ki=function(e){return(e/8|0)+(7&e&&1)},Si=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof Qn?Qn:e instanceof ei?ei:Zn)(n-t);return i.set(e.subarray(t,n)),i},Ti=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Mi=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},Ai=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[new Zn(0),0];if(1==r){var s=new Zn(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new Qn(h+1),f=Ni(n[u-1],p,0);if(f>t){i=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var C=o[i].s;if(!(p[C]>t))break;m+=g-(1<<f-p[C]),p[C]=t}for(m>>>=v;m>0;){var y=o[i].s;p[y]<t?m-=1<<t-p[y]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new Zn(p),f]},Ni=function(e,t,n){return-1==e.s?Math.max(Ni(e.l,t,n+1),Ni(e.r,t,n+1)):t[e.s]=n},Oi=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Qn(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},Ii=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Ri=function(e,t,n){var i=n.length,r=ki(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},xi=function(e,t,n,i,r,o,s,a,c,l,u){Ti(t,u++,n),++r[256];for(var d=Ai(r,15),h=d[0],p=d[1],f=Ai(o,15),m=f[0],v=f[1],g=Oi(h),C=g[0],y=g[1],b=Oi(m),E=b[0],w=b[1],_=new Qn(19),k=0;k<C.length;++k)_[31&C[k]]++;for(k=0;k<E.length;++k)_[31&E[k]]++;for(var S=Ai(_,7),T=S[0],M=S[1],A=19;A>4&&!T[ii[A-1]];--A);var N,O,I,R,x=l+5<<3,P=Ii(r,mi)+Ii(o,vi)+s,L=Ii(r,h)+Ii(o,m)+s+14+3*A+Ii(_,T)+(2*_[16]+3*_[17]+7*_[18]);if(x<=P&&x<=L)return Ri(t,u,e.subarray(c,c+l));if(Ti(t,u,1+(L<P)),u+=2,L<P){N=fi(h,p,0),O=h,I=fi(m,v,0),R=m;var D=fi(T,M,0);Ti(t,u,y-257),Ti(t,u+5,w-1),Ti(t,u+10,A-4),u+=14;for(k=0;k<A;++k)Ti(t,u+3*k,T[ii[k]]);u+=3*A;for(var U=[C,E],F=0;F<2;++F){var H=U[F];for(k=0;k<H.length;++k){var j=31&H[k];Ti(t,u,D[j]),u+=T[j],j>15&&(Ti(t,u,H[k]>>>5&127),u+=H[k]>>>12)}}}else N=gi,O=mi,I=yi,R=vi;for(k=0;k<a;++k)if(i[k]>255){j=i[k]>>>18&31;Mi(t,u,N[j+257]),u+=O[j+257],j>7&&(Ti(t,u,i[k]>>>23&31),u+=ti[j]);var B=31&i[k];Mi(t,u,I[B]),u+=R[B],B>3&&(Mi(t,u,i[k]>>>5&8191),u+=ni[B])}else Mi(t,u,N[i[k]]),u+=O[i[k]];return Mi(t,u,N[256]),u+O[256]},Pi=new ei([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Li=function(e,t,n,i,r){return function(e,t,n,i,r,o){var s=e.length,a=new Zn(i+s+5*(1+Math.floor(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d<s?l=Ri(c,l,e.subarray(u,d)):(c[u]=o,l=Ri(c,l,e.subarray(u,s)))}else{for(var h=Pi[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new Qn(32768),g=new Qn(m+1),C=Math.ceil(n/3),y=2*C,b=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<y)&m},E=new ei(25e3),w=new Qn(288),_=new Qn(32),k=0,S=0,T=(u=0,0),M=0,A=0;u<s;++u){var N=b(u),O=32767&u,I=g[N];if(v[O]=I,g[N]=O,M<=u){var R=s-u;if((k>7e3||T>24576)&&R>423){l=xi(e,c,0,E,w,_,S,T,A,u-A,l),T=k=S=0,A=u;for(var x=0;x<286;++x)w[x]=0;for(x=0;x<30;++x)_[x]=0}var P=2,L=0,D=f,U=O-I&32767;if(R>2&&N==b(u-U))for(var F=Math.min(p,R)-1,H=Math.min(32767,u),j=Math.min(258,R);U<=H&&--D&&O!=I;){if(e[u+P]==e[u+P-U]){for(var B=0;B<j&&e[u+B]==e[u+B-U];++B);if(B>P){if(P=B,L=U,B>F)break;var z=Math.min(U,B-2),W=0;for(x=0;x<z;++x){var V=u-U+x+32768&32767,G=V-v[V]+32768&32767;G>W&&(W=G,I=V)}}}U+=(O=I)-(I=v[O])+32768&32767}if(L){E[T++]=268435456|ai[P]<<18|ui[L];var q=31&ai[P],Y=31&ui[L];S+=ti[q]+ni[Y],++w[257+q],++_[Y],M=u+P,++k}else E[T++]=e[u],++w[e[u]]}}l=xi(e,c,o,E,w,_,S,T,A,u-A,l)}return Si(a,0,i+ki(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)};function Di(e,t){void 0===t&&(t={});var n=function(){var e=1,t=0;return{p:function(n){for(var i=e,r=t,o=n.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)r+=i+=n[s];i%=65521,r%=65521}e=i,t=r},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}}();n.p(e);var i=Li(e,t,2,4);return function(e,t){var n=t.level,i=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=i<<6|(i?32-2*i:1)}(i,t),function(e,t,n){for(;n;++t)e[t]=n,n>>>=8}(i,i.length-4,n.d()),i}function Ui(e,t){return function(e,t,n){var i=e.length,r=!t||n,o=!n||n.i;n||(n={}),t||(t=new Zn(3*i));var s=function(e){var n=t.length;if(e>n){var i=new Zn(Math.max(2*n,e));i.set(t),t=i}},a=n.f||0,c=n.p||0,l=n.b||0,u=n.l,d=n.d,h=n.m,p=n.n,f=8*i;do{if(!u){n.f=a=wi(e,c,1);var m=wi(e,c+1,3);if(c+=3,!m){var v=e[(M=ki(c)+4)-4]|e[M-3]<<8,g=M+v;if(g>i){if(o)throw"unexpected EOF";break}r&&s(l+v),t.set(e.subarray(M,g),l),n.b=l+=v,n.p=c=8*g;continue}if(1==m)u=Ci,d=bi,h=9,p=5;else{if(2!=m)throw"invalid block type";var C=wi(e,c,31)+257,y=wi(e,c+10,15)+4,b=C+wi(e,c+5,31)+1;c+=14;for(var E=new Zn(b),w=new Zn(19),_=0;_<y;++_)w[ii[_]]=wi(e,c+3*_,7);c+=3*y;var k=Ei(w),S=(1<<k)-1;if(!o&&c+b*(k+7)>f)break;var T=fi(w,k,1);for(_=0;_<b;){var M,A=T[wi(e,c,S)];if(c+=15&A,(M=A>>>4)<16)E[_++]=M;else{var N=0,O=0;for(16==M?(O=3+wi(e,c,3),c+=2,N=E[_-1]):17==M?(O=3+wi(e,c,7),c+=3):18==M&&(O=11+wi(e,c,127),c+=7);O--;)E[_++]=N}}var I=E.subarray(0,C),R=E.subarray(C);h=Ei(I),p=Ei(R),u=fi(I,h,1),d=fi(R,p,1)}if(c>f)throw"unexpected EOF"}r&&s(l+131072);for(var x=(1<<h)-1,P=(1<<p)-1,L=h+p+18;o||c+L<f;){var D=(N=u[_i(e,c)&x])>>>4;if((c+=15&N)>f)throw"unexpected EOF";if(!N)throw"invalid length/literal";if(D<256)t[l++]=D;else{if(256==D){u=null;break}var U=D-254;if(D>264){var F=ti[_=D-257];U=wi(e,c,(1<<F)-1)+si[_],c+=F}var H=d[_i(e,c)&P],j=H>>>4;if(!H)throw"invalid distance";if(c+=15&H,R=li[j],j>3&&(F=ni[j],R+=_i(e,c)&(1<<F)-1,c+=F),c>f)throw"unexpected EOF";r&&s(l+131072);for(var B=l+U;l<B;l+=4)t[l]=t[l-R],t[l+1]=t[l+1-R],t[l+2]=t[l+2-R],t[l+3]=t[l+3-R];l=B}}n.l=u,n.p=c,n.b=l,u&&(a=1,n.m=h,n.d=d,n.n=p)}while(!a);return l==t.length?t:Si(t,0,l)}((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)}function Fi(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var i=new Zn(e.length+(e.length>>>1)),r=0,o=function(e){i[r++]=e},s=0;s<n;++s){if(r+5>i.length){var a=new Zn(r+8+(n-s<<1));a.set(i),i=a}var c=e.charCodeAt(s);c<128||t?o(c):c<2048?(o(192|c>>>6),o(128|63&c)):c>55295&&c<57344?(o(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++s))>>>18),o(128|c>>>12&63),o(128|c>>>6&63),o(128|63&c)):(o(224|c>>>12),o(128|c>>>6&63),o(128|63&c))}return Si(i,0,r)}function Hi(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var i=0;i<e.length;){var r=e[i++];r<128||t?n+=String.fromCharCode(r):r<224?n+=String.fromCharCode((31&r)<<6|63&e[i++]):r<240?n+=String.fromCharCode((15&r)<<12|(63&e[i++])<<6|63&e[i++]):(r=((15&r)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r))}return n}const ji="v1";class Bi{constructor(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){const e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}const zi=/(^|@)\S+:\d+/,Wi=/^\s*at .*(\S+:\d+|\(native\))/m,Vi=/^(eval@)?(\[native code])?$/,Gi={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Wi)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Wi)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(");const n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;const i=t.split(/\s+/).slice(1),r=this.extractLocation(n?n[1]:i.pop()),o=i.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(r[0])>-1?void 0:r[0];return new Bi({functionName:o,fileName:s,lineNumber:r[1],columnNumber:r[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(Vi)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new Bi({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),i=n&&n[1]?n[1]:void 0,r=this.extractLocation(e.replace(t,""));return new Bi({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),i=[];for(let e=2,r=n.length;e<r;e+=2){const r=t.exec(n[e]);r&&i.push(new Bi({fileName:r[2],lineNumber:parseFloat(r[1])}))}return i},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),i=[];for(let e=0,r=n.length;e<r;e+=2){const r=t.exec(n[e]);r&&i.push(new Bi({functionName:r[3]||void 0,fileName:r[2],lineNumber:parseFloat(r[1])}))}return i},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(zi)&&!e.match(/^Error created at/)}),this).map((function(e){const t=e.split("@"),n=this.extractLocation(t.pop()),i=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Bi({functionName:i,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})}),this)}};function qi(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();const i=e.parentElement,r=[];if(i.children&&i.children.length>0)for(let e=0;e<i.children.length;e++){const t=i.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&r.push(t)}r.length>1&&(n+=`:eq(${r.indexOf(e)})`),t=n+(t?">"+t:""),e=i}return t}function Yi(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ki(e,t){if(0===t)return!0;const n=Object.keys(e);for(const i of n)if(Yi(e[i])&&Ki(e[i],t-1))return!0;return!1}function Xi(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const i=[],r=[];return JSON.stringify(e,(function(e,t){if(i.length>0){const n=i.indexOf(this);~n?i.splice(n+1):i.push(this),~n?r.splice(n,1/0,e):r.push(e),~i.indexOf(t)&&(t=i[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,i.indexOf(t)).join(".")+"]")}else i.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(Yi(e)&&Object.keys(e).length>n.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(Yi(e)&&Ki(e,n.depthOfLimit))return!0;return!1}(t))return function(e){let t=e.toString();n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=`${t.slice(0,n.stringLengthLimit)}...`);return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){const e={};for(const n in t){const i=t[n];Array.isArray(i)?e[n]=qi(i.length?i[0]:null):e[n]=i}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}const $i={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Ji(e,t,n){const i=n?Object.assign({},$i,n):$i,r=i.logger;if(!r)return()=>{};let o;o="string"==typeof r?t[r]:r;let s=0,a=!1;const c=[];if(i.level.includes("error")){const n=t=>{const n=t.message,r=t.error,o=Gi.parse(r).map((e=>e.toString())),s=[Xi(n,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",n),c.push((()=>{t.removeEventListener("error",n)}));const r=t=>{let n,r;t.reason instanceof Error?(n=t.reason,r=[Xi(`Uncaught (in promise) ${n.name}: ${n.message}`,i.stringifyOptions)]):(n=new Error,r=[Xi("Uncaught (in promise)",i.stringifyOptions),Xi(t.reason,i.stringifyOptions)]);const o=Gi.parse(n).map((e=>e.toString()));e({level:"error",trace:o,payload:r})};t.addEventListener("unhandledrejection",r),c.push((()=>{t.removeEventListener("unhandledrejection",r)}))}for(const e of i.level)c.push(l(o,e));return()=>{c.forEach((e=>e()))};function l(t,n){return t[n]?te(t,n,(t=>(...r)=>{if(t.apply(this,r),!a){a=!0;try{const t=Gi.parse(new Error).map((e=>e.toString())).splice(1),o=r.map((e=>Xi(e,i.stringifyOptions)));s++,s<i.lengthThreshold?e({level:n,trace:t,payload:o}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[Xi("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...r)}finally{a=!1}}})):()=>{}}}const Zi="rrweb/console@1",Qi="__rrweb_original__",er={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],replayLogger:void 0};class tr{constructor(e){this.config=Object.assign(er,e)}getConsoleLogger(){const e={};for(const t of this.config.level)e[t]="trace"===t?e=>{(console.log[Qi]?console.log[Qi]:console.log)(...e.payload.map((e=>JSON.parse(e))),this.formatMessage(e))}:e=>{(console[t][Qi]?console[t][Qi]:console[t])(...e.payload.map((e=>JSON.parse(e))),this.formatMessage(e))};return e}formatMessage(e){if(0===e.trace.length)return"";const t="\n\tat ";let n=t;return n+=e.trace.join(t),n}}e.EventType=Ae,e.IncrementalSource=Ne,e.MouseInteractions=Oe,e.PLUGIN_NAME=Zi,e.Replayer=class{get timer(){return this.service.state.context.timer}constructor(e,t){if(this.usingVirtualDom=!1,this.virtualDom=new an,this.mouseTail=null,this.tailPositions=[],this.emitter=qn(),this.legacy_missingNodeRetryMap={},this.cache=Y(),this.imageMap=new Map,this.canvasEventMap=new Map,this.mirror=c(),this.styleMirror=new we,this.firstFullSnapshot=null,this.newDocumentQueue=[],this.mousePos=null,this.touchActive=null,this.lastMouseDownEvent=null,this.lastSelectionData=null,this.constructedStyleMutations=[],this.adoptedStyleSheets=[],this.handleResize=e=>{this.iframe.style.display="inherit";for(const t of[this.mouseTail,this.iframe])t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))},this.applyEventsSynchronously=e=>{for(const t of e){switch(t.type){case Ae.DomContentLoaded:case Ae.Load:case Ae.Custom:continue;case Ae.FullSnapshot:case Ae.Meta:case Ae.Plugin:case Ae.IncrementalSnapshot:}this.getCastFn(t,!0)()}},this.getCastFn=(e,t=!1)=>{let n;switch(e.type){case Ae.DomContentLoaded:case Ae.Load:break;case Ae.Custom:n=()=>{this.emitter.emit(xe.CustomEvent,e)};break;case Ae.Meta:n=()=>this.emitter.emit(xe.Resize,{width:e.data.width,height:e.data.height});break;case Ae.FullSnapshot:n=()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e)return void(this.firstFullSnapshot=!0)}else this.firstFullSnapshot=!0;this.rebuildFullSnapshot(e,t),null===(n=this.iframe.contentWindow)||void 0===n||n.scrollTo(e.data.initialOffset),this.styleMirror.reset()};break;case Ae.IncrementalSnapshot:n=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>1e4*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){const t=this.nextUserInteractionEvent.delay-e.delay,n={speed:Math.min(Math.round(t/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:n}),this.emitter.emit(xe.SkipStart,n)}}}}return()=>{n&&n();for(const n of this.config.plugins||[])n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});const i=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[i]){const t=()=>{i<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(xe.Finish))};let n=50;e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.MouseMove&&e.data.positions.length&&(n+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,n)}this.emitter.emit(xe.EventCast,e)}},!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");const n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Kn,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(xe.Resize,this.handleResize),this.setupDom();for(const e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(xe.Flush,(()=>{if(this.usingVirtualDom){const e={mirror:this.mirror,applyCanvas:(e,t,n)=>{Gn({event:e,mutation:t,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===Ne.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===Ne.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{tn(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const t in this.legacy_missingNodeRetryMap)try{const n=this.legacy_missingNodeRetryMap[t],i=rn(n.node,this.mirror,this.virtualDom.mirror);tn(i,n.node,e,this.virtualDom.mirror),n.node=i}catch(e){this.warn(e)}this.constructedStyleMutations.forEach((e=>{this.applyStyleSheetMutation(e)})),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach((e=>{this.applyAdoptedStyleSheet(e)})),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)})),this.emitter.on(xe.PlayBack,(()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset()}));const i=new Sn([],{speed:this.config.speed});this.service=Hn({events:e.map((e=>t&&t.unpackFn?t.unpackFn(e):e)).sort(((e,t)=>e.timestamp-t.timestamp)),timer:i,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe((e=>{this.emitter.emit(xe.StateChange,{player:e})})),this.speedService=Fn(Dn({id:"speed",context:{normalSpeed:-1,timer:i},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:On({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe((e=>{this.emitter.emit(xe.StateChange,{speed:e})}));const r=this.service.state.context.events.find((e=>e.type===Ae.Meta)),o=this.service.state.context.events.find((e=>e.type===Ae.FullSnapshot));if(r){const{width:e,height:t}=r.data;setTimeout((()=>{this.emitter.emit(xe.Resize,{width:e,height:t})}),0)}o&&setTimeout((()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),null===(e=this.iframe.contentWindow)||void 0===e||e.scrollTo(o.data.initialOffset))}),1),this.service.state.context.events.find(Xn)&&this.mouse.classList.add("touch-device")}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach((t=>{e[t],this.config[t]=e[t]})),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,n;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null===(n=null===(t=this.iframe.contentDocument)||void 0===t?void 0:t.getElementsByTagName("html")[0])||void 0===n||n.classList.remove("rrweb-paused"),this.emitter.emit(xe.Start)}pause(e){var t,n;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null===(n=null===(t=this.iframe.contentDocument)||void 0===t?void 0:t.getElementsByTagName("html")[0])||void 0===n||n.classList.add("rrweb-paused"),this.emitter.emit(xe.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(xe.Resume)}destroy(){this.pause(),this.config.root.removeChild(this.wrapper),this.emitter.emit(xe.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Xn(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then((()=>this.service.send({type:"ADD_EVENT",payload:{event:t}})))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Y()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(kn(this.iframe.contentWindow,this.iframe.contentDocument),he(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const n=[],i=(e,t)=>{this.collectIframeAndAttachDocument(n,e);for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),$(e.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror}),i(this.iframe.contentDocument,e.data.node.id);for(const{mutationInQueue:e,builtNode:t}of n)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e));const{documentElement:r,head:o}=this.iframe.contentDocument;this.insertStyleRules(r,o),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(xe.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var n;const i=(r=this.config.blockClass,[`.${r} { background: currentColor }`,"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);var r;if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,bn(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:Ne.StyleSheetRule,adds:i.map(((e,t)=>({rule:e,index:t})))})}else{const r=document.createElement("style");e.insertBefore(r,t);for(let e=0;e<i.length;e++)null===(n=r.sheet)||void 0===n||n.insertRule(i[e],e)}}attachDocumentToIframe(e,n){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],o=(e,o)=>{this.collectIframeAndAttachDocument(r,e);const s=i.getMeta(e);if((null==s?void 0:s.type)===t.Element&&"HTML"===(null==s?void 0:s.tagName.toUpperCase())){const{documentElement:e,head:t}=n.contentDocument;this.insertStyleRules(e,t)}if(!this.usingVirtualDom)for(const t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:o,replayer:this})};X(e.node,{doc:n.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(n.contentDocument,e.node.id);for(const{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e))}collectIframeAndAttachDocument(e,t){if(me(t,this.mirror)){const n=this.newDocumentQueue.find((e=>e.parentId===this.mirror.getId(t)));n&&e.push({mutationInQueue:n,builtNode:t})}}waitForStylesheetLoad(){var e;const t=null===(e=this.iframe.contentDocument)||void 0===e?void 0:e.head;if(t){const e=new Set;let n,i=this.service.state;const r=()=>{i=this.service.state};this.emitter.on(xe.Start,r),this.emitter.on(xe.Pause,r);const o=()=>{this.emitter.off(xe.Start,r),this.emitter.off(xe.Pause,r)};t.querySelectorAll('link[rel="stylesheet"]').forEach((t=>{t.sheet||(e.add(t),t.addEventListener("load",(()=>{e.delete(t),0===e.size&&-1!==n&&(i.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(xe.LoadStylesheetEnd),n&&clearTimeout(n),o())})))})),e.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(xe.LoadStylesheetStart),n=setTimeout((()=>{i.matches("playing")&&this.play(this.getCurrentTime()),n=-1,o()}),this.config.loadTimeout))}}preloadAllImages(){return lt(this,0,void 0,(function*(){this.service.state;const e=()=>{this.service.state};this.emitter.on(xe.Start,e),this.emitter.on(xe.Pause,e);const t=[];for(const e of this.service.state.context.events)if(e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.CanvasMutation){t.push(this.deserializeAndPreloadCanvasEvents(e.data,e));("commands"in e.data?e.data.commands:[e.data]).forEach((t=>{this.preloadImages(t,e)}))}return Promise.all(t)}))}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){const t=document.createElement("canvas"),n=t.getContext("2d"),i=null==n?void 0:n.createImageData(t.width,t.height);null==i||i.data,JSON.parse(e.args[0]),null==n||n.putImageData(i,0,0)}}deserializeAndPreloadCanvasEvents(e,t){return lt(this,0,void 0,(function*(){if(!this.canvasEventMap.has(t)){const n={isUnchanged:!0};if("commands"in e){const i=yield Promise.all(e.commands.map((e=>lt(this,0,void 0,(function*(){const t=yield Promise.all(e.args.map(zn(this.imageMap,null,n)));return Object.assign(Object.assign({},e),{args:t})})))));!1===n.isUnchanged&&this.canvasEventMap.set(t,Object.assign(Object.assign({},e),{commands:i}))}else{const i=yield Promise.all(e.args.map(zn(this.imageMap,null,n)));!1===n.isUnchanged&&this.canvasEventMap.set(t,Object.assign(Object.assign({},e),{args:i}))}}}))}applyIncremental(e,t){var n,i,r;const{data:o}=e;switch(o.source){case Ne.Mutation:try{this.applyMutation(o,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,o)}break;case Ne.Drag:case Ne.TouchMove:case Ne.MouseMove:if(t){const e=o.positions[o.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:o}}else o.positions.forEach((n=>{const i={doAction:()=>{this.moveAndHover(n.x,n.y,n.id,t,o)},delay:n.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(i)})),this.timer.addAction({doAction(){},delay:e.delay-(null===(n=o.positions[0])||void 0===n?void 0:n.timeOffset)});break;case Ne.MouseInteraction:{if(-1===o.id)break;const e=new Event(u(Oe[o.type])),n=this.mirror.getNode(o.id);if(!n)return this.debugNodeNotFound(o,o.id);this.emitter.emit(xe.MouseInteraction,{type:o.type,target:n});const{triggerFocus:i}=this.config;switch(o.type){case Oe.Blur:"blur"in n&&n.blur();break;case Oe.Focus:i&&n.focus&&n.focus({preventScroll:!0});break;case Oe.Click:case Oe.TouchStart:case Oe.TouchEnd:case Oe.MouseDown:case Oe.MouseUp:t?(o.type===Oe.TouchStart?this.touchActive=!0:o.type===Oe.TouchEnd&&(this.touchActive=!1),o.type===Oe.MouseDown?this.lastMouseDownEvent=[n,e]:o.type===Oe.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===Oe.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,t,o),o.type===Oe.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===Oe.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===Oe.TouchEnd?this.mouse.classList.remove("touch-active"):n.dispatchEvent(e));break;case Oe.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:n.dispatchEvent(e)}break}case Ne.Scroll:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.scrollData=o;break}this.applyScroll(o,t);break;case Ne.ViewportResize:this.emitter.emit(xe.Resize,{width:o.width,height:o.height});break;case Ne.Input:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.inputData=o;break}this.applyInput(o);break;case Ne.MediaInteraction:{const e=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);const t=e;try{void 0!==o.currentTime&&(t.currentTime=o.currentTime),void 0!==o.volume&&(t.volume=o.volume),void 0!==o.muted&&(t.muted=o.muted),1===o.type&&t.pause(),0===o.type&&t.play(),4===o.type&&(t.playbackRate=o.playbackRate)}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}break}case Ne.StyleSheetRule:case Ne.StyleDeclaration:this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&(null===(i=this.virtualDom.mirror.getNode(o.id))||void 0===i||i.rules.push(o)):this.applyStyleSheetMutation(o);break;case Ne.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const t=this.virtualDom.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);t.canvasMutations.push({event:e,mutation:o})}else{const t=this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);Gn({event:e,mutation:o,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case Ne.Font:try{const e=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);null===(r=this.iframe.contentDocument)||void 0===r||r.fonts.add(e)}catch(e){this.warn(e)}break;case Ne.Selection:if(t){this.lastSelectionData=o;break}this.applySelection(o);break;case Ne.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o)}}applyMutation(e,n){if(this.config.useVirtualDom&&!this.usingVirtualDom&&n&&(this.usingVirtualDom=!0,Cn(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const e in this.legacy_missingNodeRetryMap)try{const t=this.legacy_missingNodeRetryMap[e],n=gn(t.node,this.virtualDom,this.mirror);n&&(t.node=n)}catch(e){this.warn(e)}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter((t=>!!i.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1))),e.removes.forEach((t=>{var n;const r=i.getNode(t.id);if(!r)return;let o=i.getNode(t.parentId);if(!o)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&Ce(o)&&(o=o.shadowRoot),i.removeNodeFromMap(r),o)try{o.removeChild(r),this.usingVirtualDom&&"#text"===r.nodeName&&"STYLE"===o.nodeName&&(null===(n=o.rules)||void 0===n?void 0:n.length)>0&&(o.rules=[])}catch(t){if(!(t instanceof DOMException))throw t;this.warn("parent could not remove child in mutation",o,r,e)}}));const r=Object.assign({},this.legacy_missingNodeRetryMap),o=[],s=e=>{var n,s;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let a=i.getNode(e.parentId);if(!a)return e.node.type===t.Document?this.newDocumentQueue.push(e):o.push(e);e.node.isShadow&&(Ce(a)||a.attachShadow({mode:"open"}),a=a.shadowRoot);let c=null,l=null;if(e.previousId&&(c=i.getNode(e.previousId)),e.nextId&&(l=i.getNode(e.nextId)),(e=>{let t=null;return e.nextId&&(t=i.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t})(e))return o.push(e);if(e.node.rootId&&!i.getNode(e.node.rootId))return;const u=e.node.rootId?i.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(me(a,i))return void this.attachDocumentToIframe(e,a);const d=(e,t)=>{if(!this.usingVirtualDom)for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})},h=X(e.node,{doc:u,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:d});if(-1===e.previousId||-1===e.nextId)return void(r[e.node.id]={node:h,mutation:e});const p=i.getMeta(a);if(p&&p.type===t.Element&&"textarea"===p.tagName&&e.node.type===t.Text){const e=Array.isArray(a.childNodes)?a.childNodes:Array.from(a.childNodes);for(const t of e)t.nodeType===a.TEXT_NODE&&a.removeChild(t)}else if((null==p?void 0:p.type)===t.Document){const i=a;e.node.type===t.DocumentType&&(null===(n=i.childNodes[0])||void 0===n?void 0:n.nodeType)===Node.DOCUMENT_TYPE_NODE&&i.removeChild(i.childNodes[0]),"HTML"===h.nodeName&&i.documentElement&&i.removeChild(i.documentElement)}if(c&&c.nextSibling&&c.nextSibling.parentNode?a.insertBefore(h,c.nextSibling):l&&l.parentNode?a.contains(l)?a.insertBefore(h,l):a.insertBefore(h,null):a.appendChild(h),d(h,e.node.id),this.usingVirtualDom&&"#text"===h.nodeName&&"STYLE"===a.nodeName&&(null===(s=a.rules)||void 0===s?void 0:s.length)>0&&(a.rules=[]),me(h,this.mirror)){const e=this.mirror.getId(h),t=this.newDocumentQueue.find((t=>t.parentId===e));t&&(this.attachDocumentToIframe(t,h),this.newDocumentQueue=this.newDocumentQueue.filter((e=>e!==t)))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,a,h,e)};e.adds.forEach((e=>{s(e)}));const a=Date.now();for(;o.length;){const e=pe(o);if(o.length=0,Date.now()-a>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(const t of e){i.getNode(t.value.parentId)?fe(t,(e=>{s(e)})):this.debug("Drop resolve tree since there is no parent for the root node.",t)}}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),Ee(e.texts).forEach((t=>{var n;const r=i.getNode(t.id);if(!r){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}if(r.textContent=t.value,this.usingVirtualDom){const e=r.parentNode;(null===(n=null==e?void 0:e.rules)||void 0===n?void 0:n.length)>0&&(e.rules=[])}})),e.attributes.forEach((t=>{var n;const r=i.getNode(t.id);if(!r){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}for(const e in t.attributes)if("string"==typeof e){const o=t.attributes[e];if(null===o)r.removeAttribute(e);else if("string"==typeof o)try{if("_cssText"===e&&("LINK"===r.nodeName||"STYLE"===r.nodeName))try{const e=i.getMeta(r);Object.assign(e.attributes,t.attributes);const n=X(e,{doc:r.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),o=r.nextSibling,s=r.parentNode;if(n&&s){s.removeChild(r),s.insertBefore(n,o),i.replace(t.id,n);break}}catch(e){}if("value"===e&&"TEXTAREA"===r.nodeName){const e=r;e.childNodes.forEach((t=>e.removeChild(t)));const t=null===(n=r.ownerDocument)||void 0===n?void 0:n.createTextNode(o);t&&e.appendChild(t)}else r.setAttribute(e,o)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e){const e=o,t=r;for(const n in e)if(!1===e[n])t.style.removeProperty(n);else if(e[n]instanceof Array){const i=e[n];t.style.setProperty(n,i[0],i[1])}else{const i=e[n];t.style.setProperty(n,i)}}}}))}applyScroll(e,n){var i,r;const o=this.mirror.getNode(e.id);if(!o)return this.debugNodeNotFound(e,e.id);const s=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)null===(i=this.iframe.contentWindow)||void 0===i||i.scrollTo({top:e.y,left:e.x,behavior:n?"auto":"smooth"});else if((null==s?void 0:s.type)===t.Document)null===(r=o.defaultView)||void 0===r||r.scrollTo({top:e.y,left:e.x,behavior:n?"auto":"smooth"});else try{o.scrollTo({top:e.y,left:e.x,behavior:n?"auto":"smooth"})}catch(e){}}applyInput(e){const t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}}applySelection(e){try{const t=new Set,n=e.ranges.map((({start:e,startOffset:n,end:i,endOffset:r})=>{const o=this.mirror.getNode(e),s=this.mirror.getNode(i);if(!o||!s)return;const a=new Range;a.setStart(o,n),a.setEnd(s,r);const c=o.ownerDocument,l=null==c?void 0:c.getSelection();return l&&t.add(l),{range:a,selection:l}}));t.forEach((e=>e.removeAllRanges())),n.forEach((e=>{var t;return e&&(null===(t=e.selection)||void 0===t?void 0:t.addRange(e.range))}))}catch(e){}}applyStyleSheetMutation(e){var t;let n=null;e.styleId?n=this.styleMirror.getStyle(e.styleId):e.id&&(n=(null===(t=this.mirror.getNode(e.id))||void 0===t?void 0:t.sheet)||null),n&&(e.source===Ne.StyleSheetRule?this.applyStyleSheetRule(e,n):e.source===Ne.StyleDeclaration&&this.applyStyleDeclaration(e,n))}applyStyleSheetRule(e,t){var n,i,r,o;if(null===(n=e.adds)||void 0===n||n.forEach((({rule:e,index:n})=>{try{if(Array.isArray(n)){const{positions:i,index:r}=be(n);ye(t.cssRules,i).insertRule(e,r)}else{const i=void 0===n?void 0:Math.min(n,t.cssRules.length);null==t||t.insertRule(e,i)}}catch(e){}})),null===(i=e.removes)||void 0===i||i.forEach((({index:e})=>{try{if(Array.isArray(e)){const{positions:n,index:i}=be(e);ye(t.cssRules,n).deleteRule(i||0)}else null==t||t.deleteRule(e)}catch(e){}})),e.replace)try{null===(r=t.replace)||void 0===r||r.call(t,e.replace)}catch(e){}if(e.replaceSync)try{null===(o=t.replaceSync)||void 0===o||o.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){if(e.set){ye(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){ye(t.rules,e.index).style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;const n=this.mirror.getNode(e.id);if(!n)return;null===(t=e.styles)||void 0===t||t.forEach((e=>{var t;let i=null,r=null;if(Ce(n)?r=(null===(t=n.ownerDocument)||void 0===t?void 0:t.defaultView)||null:"#document"===n.nodeName&&(r=n.defaultView),r)try{i=new r.CSSStyleSheet,this.styleMirror.add(i,e.styleId),this.applyStyleSheetRule({source:Ne.StyleSheetRule,adds:e.rules},i)}catch(e){}}));let i=0;const r=(e,t)=>{const n=t.map((e=>this.styleMirror.getStyle(e))).filter((e=>null!==e));Ce(e)?e.shadowRoot.adoptedStyleSheets=n:"#document"===e.nodeName&&(e.adoptedStyleSheets=n),n.length!==t.length&&i<10&&(setTimeout((()=>r(e,t)),0+100*i),i++)};r(n,e.styleIds)}legacy_resolveMissingNode(e,t,n,i){const{previousId:r,nextId:o}=i,s=r&&e[r],a=o&&e[o];if(s){const{node:i,mutation:r}=s;t.insertBefore(i,n),delete e[r.node.id],delete this.legacy_missingNodeRetryMap[r.node.id],(r.previousId||r.nextId)&&this.legacy_resolveMissingNode(e,t,i,r)}if(a){const{node:i,mutation:r}=a;t.insertBefore(i,n.nextSibling),delete e[r.node.id],delete this.legacy_missingNodeRetryMap[r.node.id],(r.previousId||r.nextId)&&this.legacy_resolveMissingNode(e,t,i,r)}}moveAndHover(e,t,n,i,r){const o=this.mirror.getNode(n);if(!o)return this.debugNodeNotFound(r,n);const s=ge(o,this.iframe),a=e*s.absoluteScale+s.x,c=t*s.absoluteScale+s.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${c}px`,i||this.drawMouseTail({x:a,y:c}),this.hoverElements(o)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:n,strokeStyle:i,duration:r}=!0===this.config.mouseTail?Kn:Object.assign({},Kn,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=i,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach((t=>e.lineTo(t.x,t.y))),e.stroke())};this.tailPositions.push(e),o(),setTimeout((()=>{this.tailPositions=this.tailPositions.filter((t=>t!==e)),o()}),r/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null===(t=this.lastHoveredRootNode||this.iframe.contentDocument)||void 0===t||t.querySelectorAll(".\\:hover").forEach((e=>{e.classList.remove(":hover")})),this.lastHoveredRootNode=e.getRootNode();let n=e;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(e){return e.type===Ae.IncrementalSnapshot&&(e.data.source>Ne.Mutation&&e.data.source<=Ne.Input)}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(xe.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(Yn,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(Yn,...e)}},e.ReplayerEvents=xe,e.addCustomEvent=$n,e.canvasMutation=Gn,e.freezePage=Jn,e.getRecordConsolePlugin=e=>({name:Zi,observer:Ji,options:e}),e.getReplayConsolePlugin=e=>{const t=(null==e?void 0:e.replayLogger)||new tr(e).getConsoleLogger();return{handler(e,n,i){let r=null;if(e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.Log?r=e.data:e.type===Ae.Plugin&&e.data.plugin===Zi&&(r=e.data.payload),r)try{"function"==typeof t[r.level]&&t[r.level](r)}catch(e){i.replayer.config.showWarning&&console.warn(e)}}}},e.pack=e=>{const t=Object.assign(Object.assign({},e),{v:ji});return Hi(Di(Fi(JSON.stringify(t))),!0)},e.record=Rt,e.unpack=e=>{if("string"!=typeof e)return e;try{const t=JSON.parse(e);if(t.timestamp)return t}catch(e){}try{const t=JSON.parse(Hi(Ui(Fi(e,!0))));if(t.v===ji)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${ji}.`)}catch(e){throw console.error(e),new Error("Unknown data format.")}},e.utils=Me}(hp);class pp{constructor(){this.events=[],this.cycleTimestamp=Date.now(),this.payloadBytesEstimation=0,this.hasSnapshot=!1,this.hasMeta=!1,this.hasError=!1,this.inlinedAllStylesheets=!0}add(e){this.events.push(e)}}var fp=Object.freeze({__proto__:null,Recorder:class{#S;#T;#M;#A=!1;constructor(e){this.#S=new pp,this.#T=new pp,this.#M=[new pp],this.recording=!1,this.currentBufferTarget=this.#S,this.lastMeta=!1,this.parent=e,this.shouldInlineStylesheets=At(this.parent.agentIdentifier,"session_replay.inline_stylesheet"),this.shouldFix=this.shouldInlineStylesheets,this.stopRecording=()=>{}}getEvents(){return this.#M[0]?.events.length?{...this.#M[0],type:"preloaded"}:{events:[...this.#T.events,...this.#S.events].filter((e=>e)),type:"standard",cycleTimestamp:Math.min(this.#T.cycleTimestamp,this.#S.cycleTimestamp),payloadBytesEstimation:this.#T.payloadBytesEstimation+this.#S.payloadBytesEstimation,hasError:this.#T.hasError||this.#S.hasError,hasMeta:this.#T.hasMeta||this.#S.hasMeta,hasSnapshot:this.#T.hasSnapshot||this.#S.hasSnapshot,inlinedAllStylesheets:!!this.#T.events.length&&this.#T.inlinedAllStylesheets||this.#S.inlinedAllStylesheets}}clearBuffer(){this.#M[0]?.events.length?this.#M.shift():this.parent.mode===wt?this.#T=this.#S:this.#T=new pp,this.#S=new pp}startRecording(){this.recording=!0;const{block_class:e,ignore_class:t,mask_text_class:n,block_selector:i,mask_input_options:r,mask_text_selector:o,mask_all_inputs:s,inline_stylesheet:a,inline_images:c,collect_fonts:l}=At(this.parent.agentIdentifier,"session_replay"),u=(e,t)=>"password"===t?.type?.toLowerCase()||void 0===t?.dataset.nrUnmask&&!t?.classList.contains("nr-unmask")?"*".repeat(e.length):e,d=hp.record({emit:this.audit.bind(this),blockClass:e,ignoreClass:t,maskTextClass:n,blockSelector:i,maskInputOptions:r,maskTextSelector:o,maskTextFn:u,maskAllInputs:s,maskInputFn:u,inlineStylesheet:a,inlineImages:c,collectFonts:l,checkoutEveryNms:In[this.parent.mode],errorHandler:e=>(this.parent.ee.emit("internal-error",[e]),!0)});this.stopRecording=()=>{this.recording=!1,this.parent.ee.emit(Mn,[!1,this.parent.mode]),d?.()}}audit(e,t){if(!1===this.shouldInlineStylesheets||!this.shouldFix)return this.currentBufferTarget.inlinedAllStylesheets=!1,this.store(e,t);const n=uh.evaluate();!n&&this.#A&&e.type===On&&(this.#A=!1),n>0&&(uh.fix().then((e=>{e>0&&(this.currentBufferTarget.inlinedAllStylesheets=!1,this.shouldFix=!1),Kt(Jn,["SessionReplay/Payload/Missing-Inline-Css/Failed",e],void 0,Qt.metrics,this.parent.ee),Kt(Jn,["SessionReplay/Payload/Missing-Inline-Css/Fixed",n-e],void 0,Qt.metrics,this.parent.ee),this.takeFullSnapshot()})),e.type!==Nn&&e.type!==On||(this.#A=!0)),this.#A||this.store(e,t)}store(e,t){if(!e)return;if(!this.parent.scheduler&&this.#M.length?this.currentBufferTarget=this.#M[this.#M.length-1]:this.currentBufferTarget=this.#S,this.parent.blocked)return;this.notified||(this.parent.ee.emit(Mn,[!0,this.parent.mode]),this.notified=!0),this.parent.timeKeeper?.ready&&!e.__newrelic&&(e.__newrelic=bn(e.timestamp,this.parent.timeKeeper),e.timestamp=this.parent.timeKeeper.correctAbsoluteTimestamp(e.timestamp)),e.__serialized=Hn(e);const n=e.__serialized.length,i=this.getPayloadSize(n);this.parent.mode===wt&&t&&e.type===On&&this.clearBuffer(),e.type===On&&(this.currentBufferTarget.hasMeta=!0),e.type===Nn&&(this.currentBufferTarget.hasSnapshot=!0),this.currentBufferTarget.add(e),this.currentBufferTarget.payloadBytesEstimation+=n,(e.type===Nn&&this.currentBufferTarget.hasMeta||i>64e3)&&this.parent.mode===Et&&(this.parent.scheduler?this.parent.scheduler.runHarvest():this.#M.push(new pp))}takeFullSnapshot(){try{if(!this.recording)return;hp.record.takeFullSnapshot()}catch(e){}}clearTimestamps(){this.currentBufferTarget.cycleTimestamp=void 0}getPayloadSize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.estimateCompression(this.currentBufferTarget.payloadBytesEstimation+e)+5e3}estimateCompression(e){return this.parent.gzipper&&this.parent.u8?.12*e:e}}}),mp=Uint8Array,vp=Uint16Array,gp=Uint32Array,Cp=new mp([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),yp=new mp([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),bp=new mp([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ep=function(e,t){for(var n=new vp(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new gp(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},wp=Ep(Cp,2),_p=wp[0],kp=wp[1];_p[28]=258,kp[258]=28;for(var Sp=Ep(yp,0)[1],Tp=new vp(32768),Mp=0;Mp<32768;++Mp){var Ap=(43690&Mp)>>>1|(21845&Mp)<<1;Ap=(61680&(Ap=(52428&Ap)>>>2|(13107&Ap)<<2))>>>4|(3855&Ap)<<4,Tp[Mp]=((65280&Ap)>>>8|(255&Ap)<<8)>>>1}var Np=function(e,t,n){for(var i=e.length,r=0,o=new vp(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new vp(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new vp(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[Tp[d]>>>c]=l}else for(s=new vp(i),r=0;r<i;++r)e[r]&&(s[r]=Tp[a[e[r]-1]++]>>>15-e[r]);return s},Op=new mp(288);for(Mp=0;Mp<144;++Mp)Op[Mp]=8;for(Mp=144;Mp<256;++Mp)Op[Mp]=9;for(Mp=256;Mp<280;++Mp)Op[Mp]=7;for(Mp=280;Mp<288;++Mp)Op[Mp]=8;var Ip=new mp(32);for(Mp=0;Mp<32;++Mp)Ip[Mp]=5;var Rp=Np(Op,9,0),xp=Np(Ip,5,0),Pp=function(e){return(e+7)/8|0},Lp=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var i=new(2==e.BYTES_PER_ELEMENT?vp:4==e.BYTES_PER_ELEMENT?gp:mp)(n-t);return i.set(e.subarray(t,n)),i},Dp=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Up=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},Fp=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[Gp,0];if(1==r){var s=new mp(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new vp(h+1),f=Hp(n[u-1],p,0);if(f>t){i=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var C=o[i].s;if(!(p[C]>t))break;m+=g-(1<<f-p[C]),p[C]=t}for(m>>>=v;m>0;){var y=o[i].s;p[y]<t?m-=1<<t-p[y]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new mp(p),f]},Hp=function(e,t,n){return-1==e.s?Math.max(Hp(e.l,t,n+1),Hp(e.r,t,n+1)):t[e.s]=n},jp=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new vp(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},Bp=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},zp=function(e,t,n){var i=n.length,r=Pp(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},Wp=function(e,t,n,i,r,o,s,a,c,l,u){Dp(t,u++,n),++r[256];for(var d=Fp(r,15),h=d[0],p=d[1],f=Fp(o,15),m=f[0],v=f[1],g=jp(h),C=g[0],y=g[1],b=jp(m),E=b[0],w=b[1],_=new vp(19),k=0;k<C.length;++k)_[31&C[k]]++;for(k=0;k<E.length;++k)_[31&E[k]]++;for(var S=Fp(_,7),T=S[0],M=S[1],A=19;A>4&&!T[bp[A-1]];--A);var N,O,I,R,x=l+5<<3,P=Bp(r,Op)+Bp(o,Ip)+s,L=Bp(r,h)+Bp(o,m)+s+14+3*A+Bp(_,T)+(2*_[16]+3*_[17]+7*_[18]);if(x<=P&&x<=L)return zp(t,u,e.subarray(c,c+l));if(Dp(t,u,1+(L<P)),u+=2,L<P){N=Np(h,p,0),O=h,I=Np(m,v,0),R=m;var D=Np(T,M,0);Dp(t,u,y-257),Dp(t,u+5,w-1),Dp(t,u+10,A-4),u+=14;for(k=0;k<A;++k)Dp(t,u+3*k,T[bp[k]]);u+=3*A;for(var U=[C,E],F=0;F<2;++F){var H=U[F];for(k=0;k<H.length;++k){var j=31&H[k];Dp(t,u,D[j]),u+=T[j],j>15&&(Dp(t,u,H[k]>>>5&127),u+=H[k]>>>12)}}}else N=Rp,O=Op,I=xp,R=Ip;for(k=0;k<a;++k)if(i[k]>255){j=i[k]>>>18&31;Up(t,u,N[j+257]),u+=O[j+257],j>7&&(Dp(t,u,i[k]>>>23&31),u+=Cp[j]);var B=31&i[k];Up(t,u,I[B]),u+=R[B],B>3&&(Up(t,u,i[k]>>>5&8191),u+=yp[B])}else Up(t,u,N[i[k]]),u+=O[i[k]];return Up(t,u,N[256]),u+O[256]},Vp=new gp([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gp=new mp(0),qp=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Yp=function(e,t,n,i,r){return function(e,t,n,i,r,o){var s=e.length,a=new mp(i+s+5*(1+Math.ceil(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=zp(c,l+1,e.subarray(u,d))}else{for(var h=Vp[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new vp(32768),g=new vp(m+1),C=Math.ceil(n/3),y=2*C,b=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<y)&m},E=new gp(25e3),w=new vp(288),_=new vp(32),k=0,S=0,T=(u=0,0),M=0,A=0;u<s;++u){var N=b(u),O=32767&u,I=g[N];if(v[O]=I,g[N]=O,M<=u){var R=s-u;if((k>7e3||T>24576)&&R>423){l=Wp(e,c,0,E,w,_,S,T,A,u-A,l),T=k=S=0,A=u;for(var x=0;x<286;++x)w[x]=0;for(x=0;x<30;++x)_[x]=0}var P=2,L=0,D=f,U=O-I&32767;if(R>2&&N==b(u-U))for(var F=Math.min(p,R)-1,H=Math.min(32767,u),j=Math.min(258,R);U<=H&&--D&&O!=I;){if(e[u+P]==e[u+P-U]){for(var B=0;B<j&&e[u+B]==e[u+B-U];++B);if(B>P){if(P=B,L=U,B>F)break;var z=Math.min(U,B-2),W=0;for(x=0;x<z;++x){var V=u-U+x+32768&32767,G=V-v[V]+32768&32767;G>W&&(W=G,I=V)}}}U+=(O=I)-(I=v[O])+32768&32767}if(L){E[T++]=268435456|kp[P]<<18|Sp[L];var q=31&kp[P],Y=31&Sp[L];S+=Cp[q]+yp[Y],++w[257+q],++_[Y],M=u+P,++k}else E[T++]=e[u],++w[e[u]]}}l=Wp(e,c,o,E,w,_,S,T,A,u-A,l)}return Lp(a,0,i+Pp(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)},Kp=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Xp(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=qp[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r=Yp(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=r.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Kp(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(r,t),Kp(r,o-8,n.d()),Kp(r,o-4,i),r}var $p="undefined"!=typeof TextEncoder&&new TextEncoder,Jp="undefined"!=typeof TextDecoder&&new TextDecoder;try{Jp.decode(Gp,{stream:!0})}catch(ju){}var Zp=Object.freeze({__proto__:null,compressSync:Xp,gzipSync:Xp,strToU8:function(e,t){if(t){for(var n=new mp(e.length),i=0;i<e.length;++i)n[i]=e.charCodeAt(i);return n}if($p)return $p.encode(e);var r=e.length,o=new mp(e.length+(e.length>>1)),s=0,a=function(e){o[s++]=e};for(i=0;i<r;++i){if(s+5>o.length){var c=new mp(s+8+(r-i<<1));c.set(o),o=c}var l=e.charCodeAt(i);l<128||t?a(l):l<2048?(a(192|l>>6),a(128|63&l)):l>55295&&l<57344?(a(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++i))>>18),a(128|l>>12&63),a(128|l>>6&63),a(128|63&l)):(a(224|l>>12),a(128|l>>6&63),a(128|63&l))}return Lp(o,0,s)}});e.AfterpayCheckoutButton=Jr,e.Api=Ni,e.ApplePayWalletButtonExpress=Ec,e.CHECKOUT_BUTTON_EVENT=ar,e.Canvas3ds=sr,e.Checkout=fc,e.ClickToPay=To,e.Configuration=Qs,e.ELEMENT=mr,e.EVENT=Fi,e.ExternalCheckoutBuilder=br,e.ExternalCheckoutChecker=Er,e.FORM_FIELD=hr,e.FRAUD_PREVENTION_EVENTS=no,e.FraudPreventionService=Co,e.HtmlMultiWidget=sa,e.HtmlPaymentSourceWidget=Eo,e.HtmlWidget=aa,e.InstructionDebugger=mc,e.MultiWidget=ra,e.PAYMENT_TYPE=Zs,e.PayPalDataCollector=Tc,e.PayPalSavePaymentSourceWidget=Ic,e.PaymentSourceBuilder=Yr,e.PaymentSourceWidget=bo,e.PaypalCheckoutButton=Zr,e.PaypalWalletButtonExpress=wc,e.STYLABLE_ELEMENT=ea,e.STYLABLE_ELEMENT_STATE=ta,e.STYLE=pr,e.SUPPORTED_CARD_TYPES=vr,e.TEXT=fr,e.TRIGGER=Mo,e.TYPE=qr,e.VAULT_DISPLAY_STYLE={BACKGROUND_COLOR:"background_color",TEXT_COLOR:"text_color",BORDER_COLOR:"border_color",BUTTON_COLOR:"button_color",FONT_SIZE:"font_size",FONT_FAMILY:"font_family"},e.VaultDisplayWidget=Ro,e.WalletButtons=ws,e.ZipmoneyCheckoutButton=$r}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).paydock={})}(this,(function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function n(e,t,n){return t=u(t),function(e,t){if(t&&("object"==typeof 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,h()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,C(i.key),i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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 o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function a(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c.apply(null,arguments)}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},l.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(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&&f(e,t)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(){p=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof C?t:C,s=Object.create(o.prototype),a=new I(i||[]);return r(s,"_invoke",{value:M(e,n,a)}),s}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",m="executing",v="completed",g={};function C(){}function y(){}function b(){}var E={};l(E,s,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&i.call(_,s)&&(E=_);var k=b.prototype=C.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(r,o,s,a){var c=d(e[r],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(u).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function M(t,n,i){var r=h;return function(o,s){if(r===m)throw Error("Generator is already running");if(r===v){if("throw"===o)throw s;return{value:e,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var c=A(a,i);if(c){if(c===g)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=m;var l=d(t,n,i);if("normal"===l.type){if(r=i.done?v:f,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=v,i.method="throw",i.arg=l.arg)}}}function A(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,r(k,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(T.prototype),l(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new T(u(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},S(k),l(k,c,"Generator"),l(k,s,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=R,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:R(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}(e,t)||b(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 v(e,t,n,i){var r=l(u(e.prototype),t,n);return"function"==typeof r?function(e){return r.apply(n,e)}:r}function g(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 C(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function y(e){return y="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},y(e)}function b(e,n){if(e){if("string"==typeof e)return t(e,n);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}function E(e){var t="function"==typeof Map?new Map:void 0;return E=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,n)}function n(){return function(e,t,n){if(h())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&f(r,n.prototype),r}(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},E(e)}var w=function(){return o((function e(){i(this,e)}),null,[{key:"isFacebook",value:function(){return-1!==navigator.userAgent.indexOf("FBSN/iOS")&&-1!==navigator.userAgent.indexOf("AppleWebKit")&&-1!==navigator.userAgent.indexOf("(KHTML, like Gecko)")}},{key:"isInstagram",value:function(){return-1!==navigator.userAgent.indexOf("iOS")&&-1!==navigator.userAgent.indexOf("Instagram")&&-1!==navigator.userAgent.indexOf("(KHTML, like Gecko)")}},{key:"isSupportPopUp",value:function(){return!this.isFacebook()&&!this.isInstagram()}},{key:"getLanguage",value:function(){return window.navigator.language||""}},{key:"getTimezoneOffset",value:function(){return(new Date).getTimezoneOffset()}},{key:"getBrowserName",value:function(){var e=navigator.userAgent;return e.indexOf("Firefox")>-1?"Mozilla Firefox":e.indexOf("Opera")>-1?"Opera":e.indexOf("Trident")>-1?"Microsoft Internet Explorer":e.indexOf("Edge")>-1?"Microsoft Edge":e.indexOf("Chrome")>-1?"Google Chrome or Chromium":e.indexOf("Safari")>-1?"Apple Safari":"unknown"}},{key:"isJavaEnabled",value:function(){return navigator.javaEnabled()}},{key:"getColorDepth",value:function(){return screen.colorDepth}},{key:"getScreenHeight",value:function(){return screen.height}},{key:"getScreenWidth",value:function(){return screen.width}},{key:"getBrowserInfo",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?{name:"IE",version:(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""}:"Chrome"===n[1]&&null!=(e=t.match(/\bOPR|Edge\/(\d+)/))?{name:"Opera",version:e[1]}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),{name:n[0],version:n[1]})}}])}(),_="/v1/charges/3ds",k=function(){return o((function e(t){i(this,e),this.api=t}),[{key:"preAuth",value:function(e,t){return"function"==typeof t?this.api.getClient("POST",_).send(c(c({},e),{_3ds:c(c({},e._3ds),{browser_details:{name:w.getBrowserName(),java_enabled:w.isJavaEnabled().toString(),language:w.getLanguage(),screen_height:w.getScreenHeight().toString(),screen_width:w.getScreenWidth().toString(),time_zone:w.getTimezoneOffset().toString(),color_depth:w.getColorDepth().toString()}})}),(function(e){t(e)})):this.api.getClientPromise("POST",_).send(c(c({},e),{_3ds:c(c({},e._3ds),{browser_details:{name:w.getBrowserName(),java_enabled:w.isJavaEnabled().toString(),language:w.getLanguage(),screen_height:w.getScreenHeight().toString(),screen_width:w.getScreenWidth().toString(),time_zone:w.getTimezoneOffset().toString(),color_depth:w.getColorDepth().toString()}})}))}}])}(),S="sandbox",T="sandbox-kovena",M="sandbox-demo-kovena",A="production",N="staging",O="staging_1",I="staging_2",R="staging_3",x="staging_4",P="staging_5",D="staging_6",L="staging_7",U="staging_8",F="staging_9",H="staging_10",j="staging_11",B="staging_12",z="staging_13",W="staging_14",V="staging_15",G=[{env:S,url:"https://widget-sandbox."},{env:T,url:"https://widget-sandbox."},{env:"sandbox-demo",url:"https://widget-sandbox-demo."},{env:M,url:"https://widget-sandbox-demo."},{env:A,url:"https://widget."},{env:N,url:"https://widsta."},{env:O,url:"https://widsta-1."},{env:I,url:"https://widsta-2."},{env:R,url:"https://widsta-3."},{env:x,url:"https://widsta-4."},{env:P,url:"https://widsta-5."},{env:D,url:"https://widsta-6."},{env:L,url:"https://widsta-7."},{env:U,url:"https://widsta-8."},{env:F,url:"https://widsta-9."},{env:H,url:"https://widsta-10."},{env:j,url:"https://widsta-11."},{env:B,url:"https://widsta-12."},{env:z,url:"https://widsta-13."},{env:W,url:"https://widsta-14."},{env:V,url:"https://widsta-15."}],q=[{env:S,url:"https://api-sandbox."},{env:A,url:"https://api."},{env:N,url:"https://apista."},{env:O,url:"https://apista-1."},{env:I,url:"https://apista-2."},{env:R,url:"https://apista-3."},{env:x,url:"https://apista-4."},{env:P,url:"https://apista-5."},{env:D,url:"https://apista-6."},{env:L,url:"https://apista-7."},{env:U,url:"https://apista-8."},{env:F,url:"https://apista-9."},{env:H,url:"https://apista-10."},{env:j,url:"https://apista-11."},{env:B,url:"https://apista-12."},{env:z,url:"https://apista-13."},{env:W,url:"https://apista-14."},{env:V,url:"https://apista-15."}],Y=[T,M],K="^([a-zA-Z0-9](?:(?:[a-zA-Z0-9-.]*(?!-)\\.(?![-.]))*[a-zA-Z0-9]+)?)$",X=S,$="paydock.com",J="kovena.com",Z=function(){return o((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;i(this,e),this.environmentConfigurations=t,this.setEnv(n)}),[{key:"setEnv",value:function(e,t){this.validateAlias(t),this.validateEnvironmentId(e),this.environmentId=e,t?this.alias=t:Y.includes(this.environmentId)?this.alias=J:this.alias=$}},{key:"getEnv",value:function(){return this.environmentId}},{key:"getConf",value:function(){for(var e in this.environmentConfigurations)if(Object.hasOwn(this.environmentConfigurations,e)&&this.environmentConfigurations[e].env===this.getEnv())return{url:-1!==this.environmentConfigurations[e].url.indexOf("localhost")?this.environmentConfigurations[e].url:this.environmentConfigurations[e].url+this.alias,env:this.environmentConfigurations[e].env};throw new Error("Env could not obtain configuration. Unknown environmentId.")}},{key:"validateAlias",value:function(e){if(void 0!==e){if("string"!=typeof e)throw new TypeError("Env expects parameter 'alias' to be of type 'string' or 'undefined'.");if(!e.match(K))throw new Error("Env received malformed alias: ".concat(e,". Ensure it satisfies the regex: '").concat(K,"'."))}}},{key:"validateEnvironmentId",value:function(e){for(var t in this.environmentConfigurations)if(Object.hasOwn(this.environmentConfigurations,t)&&this.environmentConfigurations[t].env===e)return;throw new TypeError("Env received unknown environmentId: ".concat(e))}}])}(),Q=function(){function e(){i(this,e)}return o(e,null,[{key:"version",get:function(){return e._version.trim()||null}}])}();Q.type="client",Q.headerKeys=Object.freeze({version:"x-sdk-version",type:"x-sdk-type"}),Q._version="v1.128.2";var ee=function(e,t){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ee(e,t)};function te(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ee(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ne(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function ie(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))}function re(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function se(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function ae(e){return"function"==typeof e}function ce(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var le=ce((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function ue(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var de=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,i,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=re(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(ae(c))try{c()}catch(e){r=e instanceof le?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=re(l),d=u.next();!d.done;d=u.next()){var h=d.value;try{fe(h)}catch(e){r=null!=r?r:[],e instanceof le?r=se(se([],oe(r)),oe(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}if(r)throw new le(r)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)fe(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ue(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&ue(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),he=de.EMPTY;function pe(e){return e instanceof de||e&&"closed"in e&&ae(e.remove)&&ae(e.add)&&ae(e.unsubscribe)}function fe(e){ae(e)?e():e.unsubscribe()}var me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ve={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,se([e,t],oe(n)))},clearTimeout:function(e){var t=ve.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ge(){}function Ce(e){e()}var ye=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,pe(t)&&t.add(n)):n.destination=Se,n}return te(t,e),t.create=function(e,t,n){return new _e(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(de),be=Function.prototype.bind;function Ee(e,t){return be.call(e,t)}var we=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ke(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ke(e)}else ke(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ke(e)}},e}(),_e=function(e){function t(t,n,i){var r,o,s=e.call(this)||this;ae(t)||!t?r={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=i?i:void 0}:s&&me.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},r={next:t.next&&Ee(t.next,o),error:t.error&&Ee(t.error,o),complete:t.complete&&Ee(t.complete,o)}):r=t;return s.destination=new we(r),s}return te(t,e),t}(ye);function ke(e){var t;t=e,ve.setTimeout((function(){throw t}))}var Se={closed:!0,next:ge,error:function(e){throw e},complete:ge},Te="function"==typeof Symbol&&Symbol.observable||"@@observable";function Me(e){return e}var Ae=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i,r=this,o=(i=e)&&i instanceof ye||function(e){return e&&ae(e.next)&&ae(e.error)&&ae(e.complete)}(i)&&pe(i)?e:new _e(e,t,n);return Ce((function(){var e=r,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?r._subscribe(o):r._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Ne(t))((function(t,i){var r=new _e({next:function(t){try{e(t)}catch(e){i(e),r.unsubscribe()}},error:i,complete:t});n.subscribe(r)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Te]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Me:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ne(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}();function Ne(e){var t;return null!==(t=null!=e?e:me.Promise)&&void 0!==t?t:Promise}var Oe=ce((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ie=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return te(t,e),t.prototype.lift=function(e){var t=new Re(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Oe},t.prototype.next=function(e){var t=this;Ce((function(){var n,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var r=re(t.currentObservers),o=r.next();!o.done;o=r.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Ce((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ce((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,i=n.hasError,r=n.isStopped,o=n.observers;return i||r?he:(this.currentObservers=null,o.push(e),new de((function(){t.currentObservers=null,ue(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,i=t.thrownError,r=t.isStopped;n?e.error(i):r&&e.complete()},t.prototype.asObservable=function(){var e=new Ae;return e.source=this,e},t.create=function(e,t){return new Re(e,t)},t}(Ae),Re=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return te(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:he},t}(Ie),xe=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return te(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,i=e._value;if(t)throw n;return this._throwIfClosed(),i},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Ie),Pe="x-access-token",De="x-user-public-key",Le=function(){function e(){i(this,e)}return o(e,null,[{key:"validateJWT",value:function(e){if(!e)return null;var t=m(e.split("."),3),n=t[0],i=t[1],r=t[2];if(!n||!i||!r)return null;if(2+n.length+i.length+r.length!==e.length)return null;try{return{head:JSON.parse(atob(n)),body:JSON.parse(atob(i)),signature:r}}catch(e){return null}}},{key:"extractData",value:function(e){try{return JSON.parse(atob(e.meta))}catch(e){return null}}},{key:"extractMeta",value:function(e){try{return JSON.parse(atob(e.meta)).meta}catch(e){return null}}},{key:"extractEnv",value:function(e){try{return JSON.parse(atob(e.meta)).env}catch(e){return null}}},{key:"validateJWTWhitelistedDomains",value:function(e){var t;try{if(!e.meta)return!0;var n=this.extractData(e);return!n||(!(null===(t=n.whitelist_domains)||void 0===t?void 0:t.length)||n.whitelist_domains.includes(window.location.hostname))}catch(e){return!0}}},{key:"getAccessHeaderNameByToken",value:function(t){return e.validateJWT(t)?Pe:De}},{key:"isJwt",value:function(e){return/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/.test(e)}}])}(),Ue=function(){function e(t){i(this,e),this.request=t}return o(e,[{key:"inner",value:function(){return this.request}},{key:"setHeader",value:function(e,t){return this.request.setRequestHeader(e,t),this}},{key:"setAccessToken",value:function(e){return this.setHeader("x-access-token",e)}},{key:"setPublicKey",value:function(e){return this.setHeader("x-user-public-key",e)}},{key:"setContentTypeJson",value:function(){return this.setHeader("Content-Type","application/json; charset=UTF-8")}},{key:"setSdkVersion",value:function(){return Q.version&&(this.setHeader(Q.headerKeys.version,Q.version),this.setHeader(Q.headerKeys.type,Q.type)),this}}],[{key:"create",value:function(t,n){var i=new XMLHttpRequest;return i.open(t,n,!0),new e(i)}}])}();function Fe(){return Math.floor(performance.now())}const He="undefined"!=typeof window&&!!window.document,je="undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),Be=He?window:"undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),ze="complete"===Be?.document?.readyState,We=Boolean("hidden"===Be?.document?.visibilityState),Ve=""+Be?.location,Ge=/iPad|iPhone|iPod/.test(Be.navigator?.userAgent),qe=Ge&&"undefined"==typeof SharedWorker;(()=>{const e=Be.navigator?.userAgent?.match(/Firefox[/\s](\d+\.\d+)/);Array.isArray(e)&&e.length>=2&&e[1]})();const Ye=Boolean(He&&window.document.documentMode),Ke=!!Be.navigator?.sendBeacon,Xe=Date.now()-Fe(),$e="bam.nr-data.net",Je="bam.nr-data.net";function Ze(){return Be.NREUM||(Be.NREUM={}),void 0===Be.newrelic&&(Be.newrelic=Be.NREUM),Be.NREUM}function Qe(){let e=Ze();return e.o||(e.o={ST:Be.setTimeout,SI:Be.setImmediate,CT:Be.clearTimeout,XHR:Be.XMLHttpRequest,REQ:Be.Request,EV:Be.Event,PR:Be.Promise,MO:Be.MutationObserver,FETCH:Be.fetch}),e}function et(e){let t=Ze();return t.initializedAgents?.[e]}function tt(){return function(){let e=Ze();const t=e.info||{};e.info={beacon:$e,errorBeacon:Je,...t}}(),function(){let e=Ze();const t=e.init||{};e.init={...t}}(),Qe(),function(){let e=Ze();const t=e.loader_config||{};e.loader_config={...t}}(),Ze()}var nt=Object.prototype.hasOwnProperty;function it(e,t,n){if(nt.call(e,t))return e[t];var i=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}function rt(e,t){"function"==typeof console.warn&&(console.warn("New Relic: ".concat(e)),t&&console.warn(t))}function ot(e,t){try{if(!e||"object"!=typeof e)return rt("Setting a Configurable requires an object as input");if(!t||"object"!=typeof t)return rt("Setting a Configurable requires a model to set its initial properties");const n=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),i=0===Object.keys(n).length?e:n;for(let r in i)if(void 0!==e[r])try{if(null===e[r]){n[r]=null;continue}Array.isArray(e[r])&&Array.isArray(t[r])?n[r]=Array.from(new Set([...e[r],...t[r]])):"object"==typeof e[r]&&"object"==typeof t[r]?n[r]=ot(e[r],t[r]):n[r]=e[r]}catch(e){rt("An error occurred while setting a property of a Configurable",e)}return n}catch(e){rt("An error occured while setting a Configurable",e)}}const st={beacon:$e,errorBeacon:Je,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},at={};function ct(e){if(!e)throw new Error("All info objects require an agent identifier!");if(!at[e])throw new Error("Info for ".concat(e," was never set"));return at[e]}function lt(e,t){if(!e)throw new Error("All info objects require an agent identifier!");at[e]=ot(t,st);const n=et(e);n&&(n.info=at[e])}const ut=e=>{if(!e||"string"!=typeof e)return!1;try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0},dt=144e5,ht=18e5,pt="session-started",ft="session-pause",mt="session-reset",vt="session-resume",gt="session-update",Ct="same-tab",yt="cross-tab",bt=0,Et=1,wt=2,_t="[data-nr-mask]",kt={},St="All configuration objects require an agent identifier!";function Tt(e){if(!e)throw new Error(St);if(!kt[e])throw new Error("Configuration for ".concat(e," was never set"));return kt[e]}function Mt(e,t){if(!e)throw new Error(St);kt[e]=ot(t,(()=>{const e={mask_selector:"*",block_selector:"[data-nr-block]",mask_input_options:{color:!1,date:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:!1,search:!1,tel:!1,text:!1,time:!1,url:!1,week:!1,textarea:!1,select:!1,password:!0}};return{feature_flags:[],proxy:{assets:void 0,beacon:void 0},privacy:{cookies_enabled:!0},ajax:{deny_list:void 0,block_internal:!0,enabled:!0,harvestTimeSeconds:10,autoStart:!0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},session:{expiresMs:dt,inactiveMs:ht},ssl:void 0,obfuscate:void 0,jserrors:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},metrics:{enabled:!0,autoStart:!0},page_action:{enabled:!0,harvestTimeSeconds:30,autoStart:!0},page_view_event:{enabled:!0,autoStart:!0},page_view_timing:{enabled:!0,harvestTimeSeconds:30,long_task:!1,autoStart:!0},session_trace:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},harvest:{tooManyRequestsDelay:60},session_replay:{autoStart:!0,enabled:!1,harvestTimeSeconds:60,preload:!1,sampling_rate:10,error_sampling_rate:100,collect_fonts:!1,inline_images:!1,inline_stylesheet:!0,mask_all_inputs:!0,get mask_text_selector(){return e.mask_selector},set mask_text_selector(t){ut(t)?e.mask_selector="".concat(t,",").concat(_t):""===t||null===t?e.mask_selector=_t:rt("An invalid session_replay.mask_selector was provided. '*' will be used.",t)},get block_class(){return"nr-block"},get ignore_class(){return"nr-ignore"},get mask_text_class(){return"nr-mask"},get block_selector(){return e.block_selector},set block_selector(t){ut(t)?e.block_selector+=",".concat(t):""!==t&&rt("An invalid session_replay.block_selector was provided and will not be used",t)},get mask_input_options(){return e.mask_input_options},set mask_input_options(t){t&&"object"==typeof t?e.mask_input_options={...t,password:!0}:rt("An invalid session_replay.mask_input_option was provided and will not be used",t)}},spa:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},soft_navigations:{enabled:!0,harvestTimeSeconds:10,autoStart:!0}}})());const n=et(e);n&&(n.init=kt[e])}function At(e,t){if(!e)throw new Error(St);var n=Tt(e);if(n){for(var i=t.split("."),r=0;r<i.length-1;r++)if("object"!=typeof(n=n[i[r]]))return;n=n[i[i.length-1]]}return n}const Nt={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},Ot={};function It(e){if(!e)throw new Error("All loader-config objects require an agent identifier!");if(!Ot[e])throw new Error("LoaderConfig for ".concat(e," was never set"));return Ot[e]}const Rt=Qe().o,xt="1.260.1",Pt={buildEnv:"NPM",distMethod:"NPM",version:xt,originTime:Xe},Dt={customTransaction:void 0,disabled:!1,isolatedBacklog:!1,loaderType:void 0,maxBytes:3e4,onerror:void 0,origin:""+Be.location,ptid:void 0,releaseIds:{},appMetadata:{},session:void 0,denyList:void 0,harvestCount:0,timeKeeper:void 0},Lt={};function Ut(e){if(!e)throw new Error("All runtime objects require an agent identifier!");if(!Lt[e])throw new Error("Runtime for ".concat(e," was never set"));return Lt[e]}function Ft(e){return function(e){try{const t=ct(e);return!!t.licenseKey&&!!t.errorBeacon&&!!t.applicationID}catch(e){return!1}}(e)}class Ht{constructor(e){this.contextId=e}}function jt(e,t){return e?15&e[t]:16*Math.random()|0}function Bt(){const e=Be?.crypto||Be?.msCrypto;let t,n=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(30))),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("").map((e=>"x"===e?jt(t,n++).toString(16):"y"===e?(3&jt()|8).toString(16):e)).join("")}function zt(e){const t=Be?.crypto||Be?.msCrypto;let n,i=0;t&&t.getRandomValues&&(n=t.getRandomValues(new Uint8Array(e)));const r=[];for(var o=0;o<e;o++)r.push(jt(n,i++).toString(16));return r.join("")}const Wt=Bt(),Vt="nr@context:".concat(Wt),Gt=function e(t,n){var i={},r={},o={},s=!1;try{s=16===n.length&&Ut(n).isolatedBacklog}catch(e){}var a={on:l,addEventListener:l,removeEventListener:function(e,t){var n=i[e];if(!n)return;for(var r=0;r<n.length;r++)n[r]===t&&n.splice(r,1)},emit:function(e,n,i,o,s){!1!==s&&(s=!0);if(Gt.aborted&&!o)return;t&&s&&t.emit(e,n,i);for(var l=c(i),d=u(e),p=d.length,f=0;f<p;f++)d[f].apply(l,n);var m=h()[r[e]];m&&m.push([a,e,n,l]);return l},get:d,listeners:u,context:c,buffer:function(e,t){const n=h();if(t=t||"feature",a.aborted)return;Object.entries(e||{}).forEach((e=>{let[i,o]=e;r[o]=t,t in n||(n[t]=[])}))},abort:function(){a._aborted=!0,Object.keys(a.backlog).forEach((e=>{delete a.backlog[e]}))},isBuffering:function(e){return!!h()[r[e]]},debugId:n,backlog:s?{}:t&&"object"==typeof t.backlog?t.backlog:{},isolatedBacklog:s};return Object.defineProperty(a,"aborted",{get:()=>{let e=a._aborted||!1;return e||(t&&(e=t.aborted),e)}}),a;function c(e){return e&&e instanceof Ht?e:e?it(e,Vt,(()=>new Ht(Vt))):new Ht(Vt)}function l(e,t){i[e]=u(e).concat(t)}function u(e){return i[e]||[]}function d(t){return o[t]=o[t]||e(a,t)}function h(){return a.backlog}}(void 0,"globalEE"),qt=Ze();qt.ee||(qt.ee=Gt);var Yt=Gt.get("handle");function Kt(e,t,n,i,r){r?(r.buffer([e],i),r.emit(e,t,n)):(Yt.buffer([e],i),Yt.emit(e,t,n))}const Xt=(e,t)=>Object.entries(e||{}).map((e=>{let[n,i]=e;return t(n,i)}));Jt.on=Zt;var $t=Jt.handlers={};function Jt(e,t,n,i){Zt(i||Yt,$t,e,t,n)}function Zt(e,t,n,i,r){r||(r="feature"),e||(e=Yt);var o=t[r]=t[r]||{};(o[n]=o[n]||[]).push([e,i])}const Qt={ajax:"ajax",jserrors:"jserrors",metrics:"metrics",pageAction:"page_action",pageViewEvent:"page_view_event",pageViewTiming:"page_view_timing",sessionReplay:"session_replay",sessionTrace:"session_trace",softNav:"soft_navigations",spa:"spa"},en={[Qt.pageViewEvent]:1,[Qt.pageViewTiming]:2,[Qt.metrics]:3,[Qt.jserrors]:4,[Qt.ajax]:5,[Qt.sessionTrace]:6,[Qt.pageAction]:7,[Qt.spa]:8,[Qt.softNav]:9,[Qt.sessionReplay]:10},tn={};function nn(e,t){const n={staged:!1,priority:en[t]||0};on(e),tn[e].get(t)||tn[e].set(t,n)}function rn(e,t){on(e),tn[e].get(t)&&tn[e].delete(t),tn[e].size&&an(e)}function on(e){if(!e)throw new Error("agentIdentifier required");tn[e]||(tn[e]=new Map)}function sn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"feature",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(on(e),!e||!tn[e].get(t)||n)return cn(e,t);tn[e].get(t).staged=!0,an(e)}function an(e){const t=Array.from(tn[e]);t.every((e=>{let[t,n]=e;return n.staged}))&&(t.sort(((e,t)=>e[1].priority-t[1].priority)),t.forEach((t=>{let[n]=t;tn[e].delete(n),cn(e,n)})))}function cn(e,t){const n=e?Gt.get(e):Gt,i=Jt.handlers;if(n.backlog&&i){var r=n.backlog[t],o=i[t];if(o){for(var s=0;r&&s<r.length;++s)ln(r[s],o);Xt(o,(function(e,t){Xt(t,(function(t,n){n[0].on(e,n[1])}))}))}n.isolatedBacklog||delete i[t],n.backlog[t]=null,n.emit("drain-"+t,[])}}function ln(e,t){var n=e[1];Xt(t[n],(function(t,n){var i=e[0];if(n[0]===i){var r=n[1],o=e[3],s=e[2];r.apply(o,s)}}))}class un{constructor(e,t,n){this.agentIdentifier=e,this.aggregator=t,this.ee=Gt.get(e),this.featureName=n,this.blocked=!1}}let dn=!1,hn=!1;try{const e={get passive(){return dn=!0,!1},get signal(){return hn=!0,!1}};Be.addEventListener("test",null,e),Be.removeEventListener("test",null,e)}catch(e){}function pn(e,t){return dn||hn?{capture:!!e,passive:dn,signal:t}:!!e}function fn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;window.addEventListener(e,t,pn(n,i))}function mn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;document.addEventListener(e,t,pn(n,i))}function vn(){return"undefined"==typeof document||"complete"===document.readyState}function gn(e,t){if(vn())return e();fn("load",e,t)}const Cn=e=>He&&!0===At(e,"privacy.cookies_enabled");function yn(e,t){return!!function(e){return!!Rt.MO&&Cn(e)&&!0===At(e,"session_trace.enabled")}(e)&&(!!t?.isNew||!!t?.state.sessionReplayMode)}function bn(e,t){const n=t.correctAbsoluteTimestamp(e);return{originalTimestamp:e,correctedTimestamp:n,timestampDiff:e-n,originTime:Xe,correctedOriginTime:t.correctedOriginTime,originTimeDiff:Math.floor(Xe-t.correctedOriginTime)}}function En(e){var t=this;let n=!1;return function(){if(!n){n=!0;for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];e.apply(t,r)}}}class wn extends un{constructor(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];super(e,t,n),this.auto=i,this.abortHandler=void 0,this.featAggregate=void 0,this.onAggregateImported=void 0,!1===At(this.agentIdentifier,"".concat(this.featureName,".autoStart"))&&(this.auto=!1),this.auto?nn(e,n):this.ee.on("manual-start-all",En((()=>{nn(this.agentIdentifier,this.featureName),this.auto=!0,this.importAggregator()})))}importAggregator(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.featAggregate||!this.auto)return;this.onAggregateImported=new Promise((t=>{e=t}));const n=async()=>{let n;try{if(Cn(this.agentIdentifier)){const{setupAgentSession:e}=await Promise.resolve().then((function(){return Qc}));n=e(this.agentIdentifier)}}catch(e){rt("A problem occurred when starting up session manager. This page will not start or extend any session.",e),this.featureName===Qt.sessionReplay&&this.abortHandler?.()}try{if(!this.#e(this.featureName,n))return sn(this.agentIdentifier,this.featureName),void e(!1);const{lazyFeatureLoader:i}=await Promise.resolve().then((function(){return el})),{Aggregate:r}=await i(this.featureName,"aggregate");this.featAggregate=new r(this.agentIdentifier,this.aggregator,t),e(!0)}catch(t){rt("Downloading and initializing ".concat(this.featureName," failed..."),t),this.abortHandler?.(),sn(this.agentIdentifier,this.featureName,!0),e(!1),this.ee&&this.ee.abort()}};He?gn((()=>n()),!0):n()}#e(e,t){return e!==Qt.sessionReplay||yn(this.agentIdentifier,t)}}const _n=Qt.jserrors,kn=Qt.sessionReplay,Sn="recordReplay",Tn="pauseReplay",Mn="replayRunning",An="errorDuringReplay",Nn=2,On=4,In={[wt]:15e3,[Et]:3e5,[bt]:0},Rn={message:"Session was reset",sm:"Reset"},xn={message:"Recorder failed to import",sm:"Import"},Pn={message:"429: Too Many Requests",sm:"Too-Many"},Dn={message:"Payload was too large",sm:"Too-Big"},Ln={message:"Session Entity was set to OFF on another tab",sm:"Cross-Tab"},Un={message:"Session Replay is not allowed and will not be started",sm:"Entitlement"},Fn="api";function Hn(e){try{return JSON.stringify(e,(()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}})())}catch(e){try{Gt.emit("internal-error",[e])}catch(e){}}}class jn{constructor(e,t,n,i,r){this.name="UncaughtError",this.message="string"==typeof e?e:Hn(e),this.sourceURL=t,this.line=n,this.column=i,this.__newrelic=r}}function Bn(e){return Vn(e)?e:new jn(void 0!==e?.message?e.message:e,e?.filename||e?.sourceURL,e?.lineno||e?.line,e?.colno||e?.col,e?.__newrelic)}function zn(e){let t="Unhandled Promise Rejection";if(Vn(e?.reason))try{return e.reason.message=t+": "+e.reason.message,Bn(e.reason)}catch(t){return Bn(e.reason)}if(void 0===e.reason)return Bn(t);const n=Bn(e.reason);return n.message=t+": "+n?.message,n}function Wn(e){if(e.error instanceof SyntaxError&&!/:\d+$/.test(e.error.stack?.trim())){const t=new jn(e.message,e.filename,e.lineno,e.colno,e.error.__newrelic);return t.name=SyntaxError.name,t}return Vn(e.error)?e.error:Bn(e)}function Vn(e){return e instanceof Error&&!!e.stack}let Gn=class extends wn{static featureName=_n;#t=!1;constructor(e,t){super(e,t,_n,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);try{this.removeOnAbort=new AbortController}catch(e){}this.ee.on("internal-error",(e=>{this.abortHandler&&Kt("ierr",[Bn(e),Fe(),!0,{},this.#t],void 0,this.featureName,this.ee)})),this.ee.on(Mn,(e=>{this.#t=e})),Be.addEventListener("unhandledrejection",(e=>{this.abortHandler&&Kt("err",[zn(e),Fe(),!1,{unhandledPromiseRejection:1},this.#t],void 0,this.featureName,this.ee)}),pn(!1,this.removeOnAbort?.signal)),Be.addEventListener("error",(e=>{this.abortHandler&&Kt("err",[Wn(e),Fe(),!1,{},this.#t],void 0,this.featureName,this.ee)}),pn(!1,this.removeOnAbort?.signal)),this.abortHandler=this.#n,this.importAggregator()}#n(){this.removeOnAbort?.abort(),this.abortHandler=void 0}};const qn=Qt.pageViewEvent;let Yn=class extends wn{static featureName=qn;constructor(e,t){super(e,t,qn,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),this.importAggregator()}};const Kn=Object.values(Qt);function Xn(e){const t={};return Kn.forEach((n=>{t[n]=function(e,t){return!0===At(t,"".concat(e,".enabled"))}(n,e)})),t}const $n=Qt.metrics,Jn="storeSupportabilityMetrics",Zn="storeEventMetrics",Qn=["setErrorHandler","finished","addToTrace","addRelease","addPageAction","setCurrentRouteName","setPageViewName","setCustomAttribute","interaction","noticeError","setUserId","setApplicationVersion","start",Sn,Tn],ei=["setErrorHandler","finished","addToTrace","addRelease"];function ti(){const e=tt();Qn.forEach((t=>{e[t]=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];let o=[];return Object.values(e.initializedAgents).forEach((e=>{e.exposed&&e.api[t]&&o.push(e.api[t](...i))})),o.length>1?o:o[0]}(t,...i)}}))}const ni={};const ii=new Set,ri={};function oi(e,t){const n=Gt.get(t);ri[t]??={},e&&"object"==typeof e&&(ii.has(t)||(n.emit("rumresp",[e]),ri[t]=e,ii.add(t),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{Be.dispatchEvent(new CustomEvent("newrelic",{detail:e}))}catch(e){}}({loaded:!0})))}let si=!1;function ai(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,{init:r,info:o,loader_config:s,runtime:a={loaderType:n},exposed:c=!0}=t;const l=tt();o||(r=l.init,o=l.info,s=l.loader_config),Mt(e.agentIdentifier,r||{}),function(e,t){if(!e)throw new Error("All loader-config objects require an agent identifier!");Ot[e]=ot(t,Nt);const n=et(e);n&&(n.loader_config=Ot[e])}(e.agentIdentifier,s||{}),o.jsAttributes??={},je&&(o.jsAttributes.isWorker=!0),lt(e.agentIdentifier,o);const u=Tt(e.agentIdentifier),d=[o.beacon,o.errorBeacon];var h,p;si||(u.proxy.assets&&(u.proxy.assets,d.push(u.proxy.assets)),u.proxy.beacon&&d.push(u.proxy.beacon),ti(),h="activatedFeatures",p=ri,Ze()[h]=p,e.runSoftNavOverSpa&&=!0===u.soft_navigations.enabled&&u.feature_flags.includes("soft_nav")),a.denyList=[...u.ajax.deny_list||[],...u.ajax.block_internal?d:[]],a.ptid=e.agentIdentifier,function(e,t){if(!e)throw new Error("All runtime objects require an agent identifier!");Lt[e]={...ot(t,Dt),...Pt};const n=et(e);n&&(n.runtime=Lt[e])}(e.agentIdentifier,a),void 0===e.api&&(e.api=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t||nn(e,"api");const i={};var r=Gt.get(e),o=r.get("tracer");ni[e]=bt,r.on(Mn,(t=>{ni[e]=t}));var s="api-",a=s+"ixn-";function c(t,n,i,r){const o=ct(e);return null===n?delete o.jsAttributes[t]:lt(e,{...o,jsAttributes:{...o.jsAttributes,[t]:n}}),d(s,i,!0,r||null===n?"session":void 0)(t,n)}function l(){}ei.forEach((e=>{i[e]=d(s,e,!0,"api")})),i.addPageAction=d(s,"addPageAction",!0,Qt.pageAction),i.setPageViewName=function(t,n){if("string"==typeof t)return"/"!==t.charAt(0)&&(t="/"+t),Ut(e).customTransaction=(n||"http://custom.transaction")+t,d(s,"setPageViewName",!0)()},i.setCustomAttribute=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"==typeof e){if(["string","number","boolean"].includes(typeof t)||null===t)return c(e,t,"setCustomAttribute",n);rt("Failed to execute setCustomAttribute.\nNon-null value must be a string, number or boolean type, but a type of <".concat(typeof t,"> was provided."))}else rt("Failed to execute setCustomAttribute.\nName must be a string type, but a type of <".concat(typeof e,"> was provided."))},i.setUserId=function(e){if("string"==typeof e||null===e)return c("enduser.id",e,"setUserId",!0);rt("Failed to execute setUserId.\nNon-null value must be a string type, but a type of <".concat(typeof e,"> was provided."))},i.setApplicationVersion=function(e){if("string"==typeof e||null===e)return c("application.version",e,"setApplicationVersion",!1);rt("Failed to execute setApplicationVersion. Expected <String | null>, but got <".concat(typeof e,">."))},i.start=()=>{try{Kt(Jn,["API/start/called"],void 0,Qt.metrics,r),r.emit("manual-start-all")}catch(e){rt("An unexpected issue occurred",e)}},i[Sn]=function(){Kt(Jn,["API/recordReplay/called"],void 0,Qt.metrics,r),Kt(Sn,[],void 0,Qt.sessionReplay,r)},i[Tn]=function(){Kt(Jn,["API/pauseReplay/called"],void 0,Qt.metrics,r),Kt(Tn,[],void 0,Qt.sessionReplay,r)},i.interaction=function(e){return(new l).get("object"==typeof e?e:{})};const u=l.prototype={createTracer:function(e,t){var i={},s=this,c="function"==typeof t;return Kt(Jn,["API/createTracer/called"],void 0,Qt.metrics,r),n||Kt(a+"tracer",[Fe(),e,i],s,Qt.spa,r),function(){if(o.emit((c?"":"no-")+"fn-start",[Fe(),s,c],i),c)try{return t.apply(this,arguments)}catch(e){const t="string"==typeof e?new Error(e):e;throw o.emit("fn-err",[arguments,this,t],i),t}finally{o.emit("fn-end",[Fe()],i)}}}};function d(e,t,n,i){return function(){return Kt(Jn,["API/"+t+"/called"],void 0,Qt.metrics,r),i&&Kt(e+t,[Fe(),...arguments],n?null:this,i,r),n?void 0:this}}function h(){Promise.resolve().then((function(){return tl})).then((t=>{let{setAPI:n}=t;n(e),sn(e,"api")})).catch((e=>{rt("Downloading runtime APIs failed...",e),r.abort()}))}return["actionText","setName","setAttribute","save","ignore","onEnd","getContext","end","get"].forEach((e=>{u[e]=d(a,e,void 0,n?Qt.softNav:Qt.spa)})),i.setCurrentRouteName=n?d(a,"routeName",void 0,Qt.softNav):d(s,"routeName",!0,Qt.spa),i.noticeError=function(t,n){"string"==typeof t&&(t=new Error(t)),Kt(Jn,["API/noticeError/called"],void 0,Qt.metrics,r),Kt("err",[t,Fe(),!1,n,!!ni[e]],void 0,Qt.jserrors,r)},He?gn((()=>h()),!0):h(),i}(e.agentIdentifier,i,e.runSoftNavOverSpa)),void 0===e.exposed&&(e.exposed=c),si=!0}const ci={agentIdentifier:"",ee:void 0};class li{constructor(e){try{if("object"!=typeof e)return rt("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,ci),Object.entries(e).forEach((e=>{let[t,n]=e;Object.keys(ci).includes(t)&&(this.sharedContext[t]=n)}))}catch(e){rt("An error occurred while setting SharedContext",e)}}}class ui extends li{constructor(e){super(e),this.aggregatedData={}}store(e,t,n,i,r){var o=this.getBucket(e,t,n,r);return o.metrics=function(e,t){t||(t={count:0});return t.count+=1,Xt(e,(function(e,n){t[e]=di(n,t[e])})),t}(i,o.metrics),o}merge(e,t,n,i,r){var o=this.getBucket(e,t,i,r);if(o.metrics){var s=o.metrics;s.count+=n.count,Xt(n,(function(e,t){if("count"!==e){var i=s[e],r=n[e];r&&!r.c?s[e]=di(r.t,i):s[e]=function(e,t){if(!t)return e;t.c||(t=hi(t.t));return t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t}(r,s[e])}}))}else o.metrics=n}storeMetric(e,t,n,i){var r=this.getBucket(e,t,n);return r.stats=di(i,r.stats),r}getBucket(e,t,n,i){this.aggregatedData[e]||(this.aggregatedData[e]={});var r=this.aggregatedData[e][t];return r||(r=this.aggregatedData[e][t]={params:n||{}},i&&(r.custom=i)),r}get(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}take(e){for(var t={},n="",i=!1,r=0;r<e.length;r++)t[n=e[r]]=Object.values(this.aggregatedData[n]||{}),t[n].length&&(i=!0),delete this.aggregatedData[n];return i?t:null}}function di(e,t){return null==e?function(e){e?e.c++:e={c:1};return e}(t):t?(t.c||(t=hi(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function hi(e){return{t:e,min:e,max:e,sos:e*e,c:1}}class pi{agentIdentifier;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt(16);this.agentIdentifier=e,this.ee=Gt.get(e)}#i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if("function"==typeof this.api?.[e])return this.api[e](...n);rt("Call to agent api ".concat(e," failed. The API is not currently initialized."))}addPageAction(e,t){return this.#i("addPageAction",e,t)}setPageViewName(e,t){return this.#i("setPageViewName",e,t)}setCustomAttribute(e,t,n){return this.#i("setCustomAttribute",e,t,n)}noticeError(e,t){return this.#i("noticeError",e,t)}setUserId(e){return this.#i("setUserId",e)}setApplicationVersion(e){return this.#i("setApplicationVersion",e)}setErrorHandler(e){return this.#i("setErrorHandler",e)}finished(e){return this.#i("finished",e)}addRelease(e,t){return this.#i("addRelease",e,t)}start(e){return this.#i("start",e)}recordReplay(){return this.#i(Sn)}pauseReplay(){return this.#i(Tn)}addToTrace(e){return this.#i("addToTrace",e)}setCurrentRouteName(e){return this.#i("setCurrentRouteName",e)}interaction(){return this.#i("interaction")}}const fi=[Qt.jserrors,Qt.pageAction,Qt.metrics];class mi extends pi{constructor(e,t){super(t),this.sharedAggregator=new ui({agentIdentifier:this.agentIdentifier}),this.features={},function(e,t){let n=Ze();n.initializedAgents??={},t.initializedAt={ms:Fe(),date:new Date},n.initializedAgents[e]=t}(this.agentIdentifier,this),ai(this,{...e,runtime:{isolatedBacklog:!0}},e.loaderType||"micro-agent"),Object.assign(this,this.api),this.start=e=>this.run(e),this.run(fi.filter((e=>At(this.agentIdentifier,"".concat(e,".autoStart")))))}get config(){return{info:ct(this.agentIdentifier),init:Tt(this.agentIdentifier),loader_config:It(this.agentIdentifier),runtime:Ut(this.agentIdentifier)}}run(e){try{const t=fi;if(void 0===e)e=t;else{if((e=Array.isArray(e)&&e.length?e:[e]).some((e=>!t.includes(e))))return rt("Invalid feature name supplied. Acceptable feature names are: ".concat(t));e.includes(Qt.pageViewEvent)||e.push(Qt.pageViewEvent)}}catch(e){rt("An unexpected issue occurred",e)}try{const t=Xn(this.agentIdentifier);try{this.features.page_view_event=new Yn(this.agentIdentifier,this.sharedAggregator)}catch(e){rt("Something prevented the agent from instrumenting.",e)}return gn((()=>{fi.forEach((n=>{t[n]&&e.includes(n)&&Promise.resolve().then((function(){return el})).then((e=>{let{lazyFeatureLoader:t}=e;return t(n,"aggregate")})).then((e=>{let{Aggregate:t}=e;this.features[n]=new t(this.agentIdentifier,this.sharedAggregator)})).catch((e=>rt("Something prevented the agent from being downloaded.",e)))}))})),!0}catch(e){return rt("Failed to initialize instrument classes.",e),!1}}}const vi=Qt.pageAction;class gi extends wn{static featureName=vi;constructor(e,t){super(e,t,vi,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),this.importAggregator()}}function Ci(){var e,t,n=(e="bam.nr-data.net",t={enabled:"true",accountId:"",agentId:"",applicationId:"",licenseKey:"",trustKey:""},{browserAgent:{available:Object.values(t).every(Boolean),options:{info:{applicationID:t.applicationId,licenseKey:t.licenseKey,beacon:e,errorBeacon:e,sa:1},init:{distributed_tracing:{autoStart:!1,enabled:!1},jserrors:{autoStart:!0,enabled:!0},metrics:{autoStart:!1,enabled:!1},page_action:{autoStart:!0,enabled:!0},page_view_event:{autoStart:!0,enabled:!0},page_view_timing:{autoStart:!1,enabled:!1},session_replay:{autoStart:!1,enabled:!1},session_trace:{autoStart:!1,enabled:!1},spa:{autoStart:!1,enabled:!1},ajax:c(c({},{autoStart:!1,enabled:!1}),{deny_list:[e,"undefined"==typeof window?void 0:window.location.host].filter(Boolean)}),privacy:{cookies_enabled:!1}},loaderConfig:{accountID:t.accountId,agentID:t.agentId,applicationID:t.applicationId,licenseKey:t.licenseKey,trustKey:t.trustKey}}}}).browserAgent;return{available:n.available,options:n.options}}var yi=function(e){function t(e){var r;return i(this,t),(r=n(this,t,[e])).call=function(e){if(r.isAvailable()){for(var n,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];(n=t.agent)[e].apply(n,o)}},r}return d(t,e),o(t,[{key:"isAvailable",value:function(){return t.available}}],[{key:"instance",get:function(){if(!t.initialized){var e=Ci(),n=e.available,i=e.options;t.available=n,n&&(t.agent=new t(i),t.agent.start([Gn.featureName,gi.featureName,Yn.featureName])),t.initialized=!0}return t.agent}}])}(mi),bi=function(){return o((function e(){i(this,e),this.agent=yi.instance}),[{key:"createAction",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie(this,void 0,void 0,p().mark((function e(){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=this.agent).call.apply(n,["addPageAction"].concat(t));case 1:case"end":return e.stop()}}),e,this)})))}}])}();new bi;var Ei,wi=function(){return o((function e(){i(this,e),this.agent=yi.instance}),[{key:"createError",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie(this,void 0,void 0,p().mark((function e(){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=this.agent).call.apply(n,["noticeError"].concat(t));case 1:case"end":return e.stop()}}),e,this)})))}}])}(),_i=new wi,ki=function(){return o((function e(){i(this,e),this.agent=yi.instance}),[{key:"createEvent",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie(this,void 0,void 0,p().mark((function e(){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=this.agent).call.apply(n,["addPageAction"].concat(t));case 1:case"end":return e.stop()}}),e,this)})))}}])}();new ki,function(e){e[e.PUBLIC_KEY=0]="PUBLIC_KEY",e[e.TOKEN=1]="TOKEN"}(Ei||(Ei={}));var Si,Ti,Mi,Ai=function(){function e(t,n){i(this,e),this.reportEvent=function(e,t){e.createEvent(t)},this.reportError=function(e,t,n){e.createError(t,n)},this.auth=t,this.authType=n||this.setAuthType(),this.env=new Z(q)}return o(e,[{key:"setEnv",value:function(e,t){return this.env.setEnv(e,t),this}},{key:"requestObservable",value:function(e,t,n){var i=this;return new Ae((function(r){i.makeRequest(r,e,i.env.getConf().url+t,i.auth,n)}))}},{key:"makeRequest",value:function(e,t,n,i,r){var o=this,s=new XMLHttpRequest;s.open(t,n,!0),s.setRequestHeader("Content-Type","application/json; charset=UTF-8"),s.setRequestHeader("x-access-token",i),s.onload=this.onRequestLoad(e,s),s.onerror=function(s){return o.onRequestError(s,e,t,n,i,r)},s.send(r)}},{key:"onRequestLoad",value:function(e,t){return function(){var n=JSON.parse(t.responseText);e.next(n.resource.data),e.complete()}}},{key:"onRequestError",value:function(e,t,n,i,r,o){var s=this;return function(){console.error("ApiBase: longPoll error",{responseText:e.target.responseText,responseURL:e.target.responseURL}),403!==e.target.status&&s.makeRequest(t,n,i,r,o)}}},{key:"setAuthType",value:function(){return this.authType=Le.validateJWT(this.auth)?Ei.TOKEN:Ei.PUBLIC_KEY,this.authType}},{key:"getClient",value:function(e,t){var n=this,i=this.newApiRequest(e,t);return{config:i,send:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){};i.onload=function(){return n.parser({text:i.responseText,status:i.status},t,(function(e){n.reportError(_i,e,c(c({},n.ctx),{classMethod:"getClient",description:"Send unsuccessful."})),r(e)}))},i.send(JSON.stringify(e))}}}},{key:"getClientPromise",value:function(e,t){var n=this,i=this.newApiRequest(e,t);return{config:i,send:function(e){return new Promise((function(t,n){i.onload=function(){return t({text:i.responseText,status:i.status})},i.send(JSON.stringify(e))})).then((function(e){return n.parserPromise(e)})).catch((function(e){throw n.reportError(_i,e,c(c({},n.ctx),{classMethod:"getClientPromise",description:"Send unsuccessful."})),e}))}}}},{key:"parser",value:function(e,t,n){var i=e.text,r=e.status;try{var o=JSON.parse(i);if(r>=200&&r<300||302===r)return t(o.resource.data);n(o.error||{message:"unknown error"})}catch(e){this.reportError(_i,e,c(c({},this.ctx),{classMethod:"parser",description:"Unable to parse response body to json."}))}}},{key:"parserPromise",value:function(e){var t=e.text,n=e.status;try{var i=JSON.parse(t);return n>=200&&n<300||302===n?Promise.resolve(i.resource.data):Promise.reject(i.error||{message:"unknown error"})}catch(e){return this.reportError(_i,e,c(c({},this.ctx),{classMethod:"parserPromise",description:"Unable to parse response body to json."})),Promise.reject(e)}}},{key:"newApiRequest",value:function(e,t){var n=Ue.create(e,this.env.getConf().url+t).setContentTypeJson().setSdkVersion();switch(this.authType){case Ei.PUBLIC_KEY:n.setPublicKey(this.auth);break;case Ei.TOKEN:n.setAccessToken(this.auth)}return n.inner()}},{key:"ctx",get:function(){return{sdkVersion:Q.version,className:e.name,environment:this.env.getEnv()}}}])}(),Ni=function(e){function t(e){var r;return i(this,t),(r=n(this,t,[e])).publicKey=r.auth,r}return d(t,e),o(t,[{key:"getBrowserDetails",value:function(){return{name:w.getBrowserName(),java_enabled:w.isJavaEnabled().toString(),language:w.getLanguage(),screen_height:w.getScreenHeight().toString(),screen_width:w.getScreenWidth().toString(),time_zone:w.getTimezoneOffset().toString(),color_depth:w.getColorDepth().toString()}}},{key:"charge",value:function(){return new k(this)}}])}(Ai),Oi=function(){return o((function e(){i(this,e)}),null,[{key:"extendSearchParams",value:function(e,t,n){return e.replace(new RegExp("([?&]"+t+"(?=[=&#]|$)[^#&]*|(?=#|$))"),"&"+t+"="+encodeURIComponent(n)).replace(/^([^?&]+)&/,"$1?")}},{key:"serialize",value:function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}}])}(),Ii=function(){return o((function e(){i(this,e)}),null,[{key:"generate",value:function(){if("undefined"!=typeof window&&void 0!==window.crypto&&void 0!==window.crypto.getRandomValues){var e=new Uint16Array(8);return window.crypto.getRandomValues(e),this.hash(e[0])+this.hash(e[1])+"-"+this.hash(e[2])+"-"+this.hash(e[3])+"-"+this.hash(e[4])+"-"+this.hash(e[5])+this.hash(e[6])+this.hash(e[7])}return this.random()+this.random()+"-"+this.random()+"-"+this.random()+"-"+this.random()+"-"+this.random()+this.random()+this.random()}},{key:"hash",value:function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t}},{key:"random",value:function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}}])}(),Ri="/wallet/flypay",xi="/images/coles-pay-logo.png",Pi=function(){return o((function e(t){i(this,e),this.params={},this.widgetId=Ii.generate(),this.linkResource=t,this.env=new Z(G),this.setParams({widget_id:this.widgetId})}),[{key:"getNetUrl",value:function(){return this.env.getConf().url+this.linkResource}},{key:"getUrl",value:function(){var e=this.getNetUrl(),t=this.getParams();for(var n in t)t.hasOwnProperty(n)&&(e=Oi.extendSearchParams(e,n,t[n]));return e}},{key:"setParams",value:function(e){this.params=c({},this.params,e)}},{key:"concatParams",value:function(e){for(var t in e)e.hasOwnProperty(t)&&e[t].length&&("string"!=typeof this.params[t]&&(this.params[t]=""),this.params[t].length?this.params[t]+=","+e[t]:this.params[t]+=e[t])}},{key:"getParams",value:function(){return this.params}},{key:"setEnv",value:function(e,t){this.env.setEnv(e,t)}},{key:"getEnv",value:function(){return this.env.getEnv()}},{key:"getBaseUrl",value:function(){return this.env.getConf().url}}])}(),Di=function(){return o((function e(){i(this,e)}),null,[{key:"insertToInput",value:function(e,t,n){if(void 0!==n[t]){var i=document.querySelector(e);i&&(i.value=n[t])}}},{key:"subscribe",value:function(e,t,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent("on".concat(e),n)}}])}(),Li=function(){return o((function e(t){i(this,e),this.selector=t}),[{key:"isExist",value:function(){return!!this.getElement()}},{key:"getStyles",value:function(e){if(this.isExist()){var t=this.getElement().getAttribute("widget-style");if(!t)return{};var n=t.split(";");return void 0===n||n.length?this.convertConfigs(n,e):{}}}},{key:"on",value:function(e,t){this.isExist()&&Di.subscribe(e,this.getElement(),t)}},{key:"getAttr",value:function(e){if(this.isExist()){var t=this.getElement(),n=[];for(var i in e)if(e.hasOwnProperty(i)){var r=e[i].replace(/_/g,"-"),o=t.getAttribute(r);o&&n.push("".concat(e[i],":").concat(o))}return void 0===n||n.length?this.convertConfigs(n,e):{}}}},{key:"getElement",value:function(){return document.querySelector(this.selector)}},{key:"getSelector",value:function(){return this.selector}},{key:"convertConfigs",value:function(e,t){var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i].split(":"),o=r[0].replace(/-/g,"_").trim();-1!==t.indexOf(o)&&(n[o]=r[1].trim())}return n}}])}(),Ui=function(){return o((function e(t){i(this,e),this.container=t}),[{key:"load",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(this.container.isExist()&&!this.isExist()){var i=document.createElement("iframe");i.setAttribute("src",e),t.title&&(i.title=t.title),n&&i.classList.add(n),this.container.getElement().appendChild(i)}}},{key:"loadFromHtml",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(this.container.isExist()&&!this.isExist()){var i=document.createElement("iframe");i.setAttribute("height","100%"),i.setAttribute("width","100%"),n&&i.classList.add(n),t.title&&(i.title=t.title);this.container.getElement().appendChild(i);var r=this.getElement().contentDocument;r.open(),r.write("<html><head><style>html, body {margin: 0;} iframe {border: 0; width: 100%}</style><title></title></head><body>{{content}}</body></html>".replace("{{content}}",e)),r.close()}}},{key:"remove",value:function(){if(this.container.isExist()&&this.isExist()){var e=this.getElement();this.container.getElement().removeChild(e)}}},{key:"show",value:function(){this.isExist()&&(this.setStyle("visibility","visible"),this.setStyle("display","block"))}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isExist()&&(e?this.setStyle("visibility","hidden"):this.setStyle("display","none"))}},{key:"isExist",value:function(){return!!this.getElement()}},{key:"getElement",value:function(){return this.container.isExist()?this.container.getElement().querySelector("iframe"):null}},{key:"setStyle",value:function(e,t){this.getElement().style[e]=t}},{key:"setIframeHeight",value:function(e,t,n){e.style.height=t.body.querySelector(n).scrollHeight+"px"}},{key:"setStyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])}}])}(),Fi={AFTER_LOAD:"afterLoad",SUBMIT:"submit",FINISH:"finish",VALIDATION_ERROR:"validationError",SYSTEM_ERROR:"systemError",ERROR:"error",CHECKOUT_SUCCESS:"checkoutSuccess",CHECKOUT_READY:"checkoutReady",CHECKOUT_ERROR:"checkoutError",CHECKOUT_COMPLETED:"checkoutCompleted",CHECKOUT_POPUP_OPEN:"checkoutPopupOpen",CHECKOUT_POPUP_CLOSE:"checkoutPopupClose",RECOGNITION_TOKEN_REQUESTED:"recognitionTokenRequested",RECOGNITION_TOKEN_DROPPED:"recognitionTokenDropped",VALIDATION:"validation",SELECT:"select",UNSELECT:"unselect",NEXT:"next",PREV:"prev",META_CHANGE:"metaChange",RESIZE:"resize",CHARGE_AUTH_SUCCESS:"chargeAuthSuccess",CHARGE_AUTH_REJECT:"chargeAuthReject",CHARGE_AUTH_CANCELLED:"chargeAuthCancelled",ADDITIONAL_DATA_SUCCESS:"additionalDataCollectSuccess",ADDITIONAL_DATA_REJECT:"additionalDataCollectReject",CHARGE_AUTH:"chargeAuth",DISPATCH_SUCCESS:"dispatchSuccess",DISPATCH_ERROR:"dispatchError"},Hi=function(){return o((function e(t){var n=this;i(this,e),this.listeners=[],t&&Di.subscribe("message",t,(function(e){var t;try{t=JSON.parse(e.data)}catch(e){}t&&n.emit(t)}))}),[{key:"emit",value:function(e){for(var t in this.listeners)this.listeners[t].event===e.event&&e.widget_id===this.listeners[t].widget_id&&this.listeners[t].listener.apply(this,[e])}},{key:"on",value:function(e,t,n){for(var i in Fi)Fi.hasOwnProperty(i)&&e===Fi[i]&&this.listeners.push({event:e,listener:n,widget_id:t})}},{key:"clear",value:function(){this.listeners=[]}},{key:"subscribe",value:function(e,t){e.addEventListener?e.addEventListener("message",t):e.attachEvent("onmessage",t)}}])}(),ji={visibility:"hidden",border:"0",width:"0",height:"0"};!function(e){e.SUCCESS="success",e.ERROR="error",e.PENDING="pending"}(Si||(Si={})),function(e){e.SUCCESS="success",e.PENDING="pending",e.ERROR="error"}(Ti||(Ti={})),function(e){e.FINISHED="MethodFinished",e.SKIPPED="MethodSkipped",e.READY="ResultReady",e.TIMEOUT="AuthTimedOut",e.INVALID="invalid_event"}(Mi||(Mi={}));var Bi,zi="chargeAuthSuccess",Wi="chargeAuthReject",Vi="chargeAuthDecoupled",Gi="chargeAuthChallenge",qi="chargeAuthInfo",Yi="error",Ki=function(){return o((function e(t,n,r){i(this,e),this.container=t,this.api=n,this.eventEmitter=r,this.resultRead=!1,this.iFrameEvent=new Hi(window)}),[{key:"load",value:function(e,t){var n=e.initialization_url,i=e.secondary_url,r=e.charge_3ds_id;try{this.setupIFrameEvents(r),this.initializeIFrames(n,i,t)}catch(e){this.eventEmitter.emit(Yi,this.parseError(e,r))}}},{key:"initializeIFrames",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this.container.getElement();if(r){var o=document.createElement("div");if(o.setAttribute("id","paydock_authorization_iframe"),r.appendChild(o),this.browserAndChallengeContainer=new Li("#paydock_authorization_iframe"),this.iFrameAuthorization=new Ui(this.browserAndChallengeContainer),this.iFrameAuthorization.load(e,{title:n}),t){var s=document.createElement("div");s.setAttribute("id","paydock_secondary_iframe"),r.appendChild(s),this.monitoringContainer=new Li("#paydock_secondary_iframe"),this.iFrameSecondaryUrl=new Ui(this.monitoringContainer),this.iFrameSecondaryUrl.load(t,{title:n})}else this.iFrameSecondaryUrl=void 0;this.hideIframes(i)}}},{key:"hideIframes",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];for(var n in ji)ji.hasOwnProperty(n)&&(t&&this.iFrameAuthorization.setStyle(n,ji[n]),null===(e=this.iFrameSecondaryUrl)||void 0===e||e.setStyle(n,ji[n]))}},{key:"setupIFrameEvents",value:function(e){var t=this;this.iFrameEvent.on(Fi.CHARGE_AUTH,e,(function(e){e.status===Mi.SKIPPED||e.status===Mi.FINISHED?(e.info&&t.eventEmitter.emit(qi,{info:e.info}),t.performAuthentication(e)):e.status!==Mi.TIMEOUT&&e.status!==Mi.INVALID||t.eventEmitter.emit(Wi,t.parseHandleResponse({status:e.status},e.charge_3ds_id))})),this.iFrameEvent.on(Fi.CHARGE_AUTH_SUCCESS,e,(function(e){t.processResult(e.charge_3ds_id)}))}},{key:"parseResultData",value:function(e,t){return{status:e.status,charge_3ds_id:t}}},{key:"parseHandleResponse",value:function(e,t){var n=e.status,i=e.result;return{status:n,charge_3ds_id:t,result:{description:null==i?void 0:i.description}}}},{key:"parseError",value:function(e,t){return{charge_3ds_id:t,error:e}}},{key:"processResult",value:function(e){var t=this;this.resultRead||(this.resultRead=!0,this.api.charge().standalone3dsHandle().then((function(n){var i;t.iFrameAuthorization.remove(),null===(i=t.iFrameSecondaryUrl)||void 0===i||i.remove(),n.status===Si.SUCCESS?t.eventEmitter.emit(zi,t.parseResultData(n,e)):t.eventEmitter.emit(Wi,t.parseResultData(n,e))}),(function(n){t.eventEmitter.emit(Yi,t.parseError(n,e))})))}},{key:"externalAPI",value:function(e,t){var n=Ue.create(e,t).inner();return new Promise((function(e,t){n.onload=function(){try{var i=JSON.parse(n.responseText);e(i)}catch(e){t(e)}},n.send()}))}},{key:"doPolling",value:function(e,t){var n=this;this.externalAPI("GET",e).then((function(i){if(i.event&&"AuthResultNotReady"!==i.event){if("AuthResultReady"!==i.event)throw new Error("Event not supported");n.processResult(t)}else setTimeout((function(){n.doPolling(e,t)}),2e3)})).catch((function(e){return n.eventEmitter.emit(Yi,n.parseError(e,t))}))}},{key:"performAuthentication",value:function(e){var t,n=this,i=e.charge_3ds_id;this.iFrameAuthorization.remove(),null===(t=this.iFrameSecondaryUrl)||void 0===t||t.remove(),this.api.charge().standalone3dsProcess({charge_3ds_id:i}).then((function(e){var t,r;if(e.status===Ti.SUCCESS)n.eventEmitter.emit(zi,n.parseHandleResponse(e,i));else{if(e.status!==Ti.PENDING)return n.eventEmitter.emit(Wi,n.parseHandleResponse(e,i));(null===(t=null==e?void 0:e.result)||void 0===t?void 0:t.challenge)?(n.eventEmitter.emit(Gi,n.parseHandleResponse(e,i)),n.initializeIFrames(e.result.challenge_url,void 0,"Authentication Challenge",!1),e.result.secondary_url&&n.doPolling(e.result.secondary_url,i)):(null===(r=null==e?void 0:e.result)||void 0===r?void 0:r.decoupled_challenge)&&(n.eventEmitter.emit(Vi,n.parseHandleResponse(e,i)),e.result.secondary_url&&n.doPolling(e.result.secondary_url,i))}}),(function(e){n.eventEmitter.emit(Yi,n.parseError(e,i))}))}}])}(),Xi=function(){return o((function e(t){i(this,e),this.api=t}),[{key:"walletCapture",value:function(e){return this.api.getClientPromise("POST","/v1/charges/wallet/capture").send(e)}},{key:"walletCallback",value:function(e){return this.api.getClientPromise("POST","/v1/charges/wallet/callback").send(e)}},{key:"standalone3dsProcess",value:function(e){return this.api.getClientPromise("POST","/v1/charges/standalone-3ds/process").send(e)}},{key:"standalone3dsHandle",value:function(){return this.api.getClientPromise("GET","/v1/charges/standalone-3ds/handle").send(void 0)}}])}(),$i=function(){return o((function e(t){i(this,e),this.api=t}),[{key:"getWalletConfig",value:function(e){var t="/v1/gateways/:gateway_id/wallet-config".replace(":gateway_id",e);return this.api.getClientPromise("GET",t).send(void 0)}}])}(),Ji=function(){return o((function e(t){i(this,e),this.api=t}),[{key:"getConfig",value:function(e){var t="/v1/services/:service_id/config".replace(":service_id",e);return this.api.getClientPromise("GET",t).send(void 0)}}])}();!function(e){e.VISA_SRC="VisaSRC",e.MASTERCARD_SRC="ClickToPay"}(Bi||(Bi={}));var Zi,Qi=function(){return o((function e(t){i(this,e),this.api=t,this.getInstructionLink=function(){return"".concat("/v1/checkouts/instruction","?time=").concat((new Date).getTime())}}),[{key:"instructions",value:function(){return this.api.requestObservable("GET",this.getInstructionLink(),{})}},{key:"callback",value:function(e){return this.api.getClientPromise("POST","/v1/checkouts/callback").send(e)}},{key:"status",value:function(e){return this.api.getClientPromise("GET","".concat("/v1/checkouts","/").concat(e)).send("")}}])}(),er=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"charge",value:function(){return new Xi(this)}},{key:"service",value:function(){return new Ji(this)}},{key:"checkout",value:function(){return new Qi(this)}},{key:"gateway",value:function(){return new $i(this)}}])}(Ai),tr="GPayments",nr=function(){return o((function e(t,n){i(this,e),this.env=X,this.container=t,this.eventEmitter=n}),[{key:"load",value:function(e,t){var n=Le.validateJWT(e);if(!n)throw new Error("Invalid charge token");var i=Le.extractData(n.body),r=new er(e,Ei.TOKEN);if(r.setEnv(this.env,this.alias),i.service_type===tr)new Ki(this.container,r,this.eventEmitter).load(i,t.title)}},{key:"setEnv",value:function(e,t){this.env=e,this.alias=t}}])}(),ir=function(){return o((function e(){i(this,e),this.events={}}),[{key:"emit",value:function(e,t){var n=this.events[e];n&&n.forEach((function(e){e.call(null,t)}))}},{key:"emitWithResult",value:function(e,t){var n=this,i=this.events[e];if(i){var r=i.map((function(e){return ie(n,void 0,void 0,p().mark((function n(){return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",e.call(null,t));case 1:case"end":return n.stop()}}),n)})))}));return Promise.all(r)}return Promise.resolve([])}},{key:"subscribe",value:function(e,t){var n=this;return this.events[e]||(this.events[e]=[]),this.events[e].push(t),function(){n.events[e]=n.events[e].filter((function(e){return t!==e}))}}}])}();!function(e){e.HTML="html",e.URL="url",e.STANDALONE_3DS="standalone_3ds"}(Zi||(Zi={}));var rr,or,sr=function(){return o((function e(t,n){i(this,e),this.configs=[],this.link=new Pi("/3ds/webhook"),this.token=e.extractToken(n),this.link.setParams({ref_id:this.token.charge_3ds_id}),this.container=new Li(t),this.iFrame=new Ui(this.container),this.eventEmitter=new ir,this.standalone3dsService=new nr(this.container,this.eventEmitter),this.event=new Hi(window)}),[{key:"load",value:function(){this.token.format===Zi.HTML?this.iFrame.loadFromHtml(this.token.content,{title:"3d secure authentication"},"threeDSecure-iframe"):this.token.format===Zi.URL?this.iFrame.load(this.token.content,{title:"3d secure authentication"},"threeDSecure-iframe"):this.token.format===Zi.STANDALONE_3DS?this.standalone3dsService.load(this.token.content,{title:"3d secure authentication"}):console.error("Token contain unsupported payload")}},{key:"setEnv",value:function(e,t){for(var n in this.link.setEnv(e,t),this.standalone3dsService.setEnv(e,t),this.configs)this.configs.hasOwnProperty(n)&&this.configs[n].setEnv(e,t)}},{key:"getEnv",value:function(){return this.link.getEnv()}},{key:"on",value:function(e,t){var n=this;return this.token.format===Zi.STANDALONE_3DS?"function"==typeof t?this.eventEmitter.subscribe(e,t):new Promise((function(t){return n.eventEmitter.subscribe(e,(function(e){return t(e)}))})):"function"==typeof t?this.event.on(e,this.link.getParams().ref_id,t):new Promise((function(t){return n.event.on(e,n.link.getParams().ref_id,(function(e){return t(e)}))}))}},{key:"hide",value:function(e){this.iFrame.hide(e)}},{key:"show",value:function(){this.iFrame.show()}},{key:"reload",value:function(){this.iFrame.remove(),this.load()}}],[{key:"extractToken",value:function(e){return JSON.parse(window.atob(e))}}])}(),ar={CLICK:"click",POPUP_REDIRECT:"popupRedirect",REDIRECT:"redirect",ERROR:"error",REFERRED:"referred",DECLINED:"declined",CANCELLED:"cancelled",ACCEPTED:"accepted",FINISH:"finish",CLOSE:"close"};!function(e){e.CONTEXTUAL="contextual",e.REDIRECT="redirect"}(rr||(rr={})),function(e){e.ZIPMONEY="Zipmoney",e.PAYPAL="PaypalClassic",e.AFTERPAY="Afterpay"}(or||(or={}));var cr,lr,ur="[Paydock:CheckoutButton]",dr={CARD:"card",BANK_ACCOUNT:"bank_account",CHECKOUT:"checkout"},hr={CARD_NAME:"card_name",CARD_NUMBER:"card_number",EXPIRE_MONTH:"expire_month",EXPIRE_YEAR:"expire_year",CARD_CCV:"card_ccv",CARD_PIN:"card_pin",ACCOUNT_NAME:"account_name",ACCOUNT_BSB:"account_bsb",ACCOUNT_NUMBER:"account_number",ACCOUNT_ROUTING:"account_routing",ACCOUNT_HOLDER_TYPE:"account_holder_type",ACCOUNT_BANK_NAME:"account_bank_name",ACCOUNT_TYPE:"account_type",FIRST_NAME:"first_name",LAST_NAME:"last_name",EMAIL:"email",PHONE:"phone",PHONE2:"phone2",ADDRESS_LINE1:"address_line1",ADDRESS_LINE2:"address_line2",ADDRESS_STATE:"address_state",ADDRESS_COUNTRY:"address_country",ADDRESS_CITY:"address_city",ADDRESS_POSTCODE:"address_postcode",ADDRESS_COMPANY:"address_company",SAVE_CARD_CONSENT_ACCEPTED:"save_card_consent_accepted"},pr={BACKGROUND_COLOR:"background_color",BACKGROUND_ACTIVE_COLOR:"background_active_color",TEXT_COLOR:"text_color",BORDER_COLOR:"border_color",ICON_SIZE:"icon_size",BUTTON_COLOR:"button_color",ERROR_COLOR:"error_color",SUCCESS_COLOR:"success_color",FONT_SIZE:"font_size",FONT_FAMILY:"font_family"},fr={TITLE:"title",TITLE_H1:"title_h1",TITLE_H2:"title_h2",TITLE_H3:"title_h3",TITLE_H4:"title_h4",TITLE_H5:"title_h5",TITLE_H6:"title_h6",FINISH:"finish_text",TITLE_DESCRIPTION:"title_description",SUBMIT_BUTTON:"submit_button",SUBMIT_BUTTON_PROCESSING:"submit_button_processing"},mr={SUBMIT_BUTTON:"submit_button",TABS:"tabs"},vr={AMEX:"amex",AUSBC:"ausbc",DINERS:"diners",DISCOVER:"discover",JAPCB:"japcb",LASER:"laser",MASTERCARD:"mastercard",SOLO:"solo",VISA:"visa",VISA_WHITE:"visa_white",EFTPOS:"eftpos",EFTPOS_WHITE:"eftpos_white"},gr=[].concat(["brand_name","cart_border_color","reference","email","hdr_img","logo_img","pay_flow_color","first_name","last_name","address_line","address_line2","address_city","address_state","address_postcode","address_country","phone","hide_shipping_address"],["first_name","last_name","phone","tokenize","email","gender","date_of_birth","charge","statistics","hide_shipping_address"],["amount","currency","email","first_name","last_name","address_line","address_line2","address_city","address_state","address_postcode","address_country","phone"],["customer_storage_number","tokenise_algorithm"]);!function(e){e.STRIPE="Stripe",e.FLYPAY="Flypay",e.FLYPAY_V2="FlypayV2",e.PAYPAL="Paypal",e.MASTERCARD="MasterCard",e.AFTERPAY="Afterpay"}(cr||(cr={})),function(e){e.GOOGLE="google",e.APPLE="apple",e.FLYPAY="flypay",e.FLYPAY_V2="flypayV2",e.PAYPAL="paypal",e.AFTERPAY="afterpay"}(lr||(lr={}));var Cr,yr=function(){return o((function e(){i(this,e),this.env=new Z(q)}),[{key:"setEnv",value:function(e,t){this.env.setEnv(e,t)}},{key:"getEnv",value:function(){return this.env.getEnv()}},{key:"getUrl",value:function(){return this.env.getConf().url+this.getLink()}},{key:"create",value:function(e,t,n,i){var r=this,o=Ue.create("POST",this.getUrl()).setHeader(Le.getAccessHeaderNameByToken(e),e).setContentTypeJson().setSdkVersion().inner();o.onload=function(){r.parser(o.responseText,o.status,n,i)},o.send(JSON.stringify(t))}},{key:"get",value:function(e,t,n){var i=this,r=Ue.create("GET",this.getUrl()).setHeader(Le.getAccessHeaderNameByToken(e),e).setContentTypeJson().setSdkVersion().inner();r.onload=function(){i.parser(r.responseText,r.status,t,n)},r.send()}},{key:"parser",value:function(e,t,n,i){var r={};try{r=JSON.parse(e)}catch(e){}return t>=200&&t<300||302===t?n(r.resource.data,t):i(r.error||{message:"unknown error"},t)}}])}(),br=function(e){function t(e,r,o){var s;return i(this,t),(s=n(this,t)).body={gateway_id:e,meta:{},success_redirect_url:r,error_redirect_url:o,redirect_url:r},s}return d(t,e),o(t,[{key:"getLink",value:function(){return"/v1/payment_sources/external_checkout"}},{key:"setDescriptions",value:function(e){this.body.description=e}},{key:"setMeta",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(-1!==gr.indexOf(t)?this.body.meta[t]=e[t]:console.warn("ExternalCheckout::setMeta: unsupported meta key ".concat(t)))}},{key:"getConfigs",value:function(){return this.body}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){};this.create(e,this.getConfigs(),(function(e,n){t(e)}),(function(e,t){void 0===e.message?n("".concat(t,": unknown error"),"unknown_error"):n(e.message,e.code)}))}}])}(yr),Er=function(e){function t(e){var r;return i(this,t),(r=n(this,t)).token=e,r}return d(t,e),o(t,[{key:"getLink",value:function(){return"/v1/payment_sources/external_checkout/:token".replace(":token",this.token)}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){};this.get(e,(function(e,n){t(e)}),(function(e,t){void 0===e.message?n("".concat(t,": unknown error")):n(e.message)}))}}])}(yr),wr='\n <div class="cs-loader">\n <div class="cs-loader-inner">\n <label>\t●</label>\n <label>\t●</label>\n <label>\t●</label>\n <label>\t●</label>\n <label>\t●</label>\n <label>\t●</label>\n </div>\n </div>\n',_r="\n <style> \n .cs-loader {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n \n .cs-loader-inner {\n transform: translateY(-50%);\n top: 50%;\n position: absolute;\n width: calc(100% - 200px);\n color: #8e8d8c;\n padding: 0 100px;\n text-align: center;\n }\n \n \n .cs-loader-inner label {\n font-size: 20px;\n opacity: 0;\n display:inline-block;\n }\n \n @keyframes lol {\n 0% {\n opacity: 0;\n transform: translateX(-300px);\n }\n 33% {\n opacity: 1;\n transform: translateX(0px);\n }\n 66% {\n opacity: 1;\n transform: translateX(0px);\n }\n 100% {\n opacity: 0;\n transform: translateX(300px);\n }\n }\n \n @-webkit-keyframes lol {\n 0% {\n opacity: 0;\n -webkit-transform: translateX(-300px);\n }\n 33% {\n opacity: 1;\n -webkit-transform: translateX(0px);\n }\n 66% {\n opacity: 1;\n -webkit-transform: translateX(0px);\n }\n 100% {\n opacity: 0;\n -webkit-transform: translateX(300px);\n -moz-transform: translateX(300px);\n }\n }\n \n .cs-loader-inner label:nth-child(6) {\n -webkit-animation: lol 3s infinite ease-in-out;\n -moz-animation: lol 3s infinite ease-in-out;\n animation: lol 3s infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(5) {\n -webkit-animation: lol 3s 100ms infinite ease-in-out;\n -moz-animation: lol 3s 100ms infinite ease-in-out;\n animation: lol 3s 100ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(4) {\n -webkit-animation: lol 3s 200ms infinite ease-in-out;\n -moz-animation: lol 3s 200ms infinite ease-in-out;\n animation: lol 3s 200ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(3) {\n -webkit-animation: lol 3s 300ms infinite ease-in-out;\n -moz-animation: lol 3s 300ms infinite ease-in-out;\n animation: lol 3s 300ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(2) {\n -webkit-animation: lol 3s 400ms infinite ease-in-out;\n -moz-animation: lol 3s 400ms infinite ease-in-out;\n animation: lol 3s 400ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(1) {\n -webkit-animation: lol 3s 500ms infinite ease-in-out;\n -moz-animation: lol 3s 500ms infinite ease-in-out;\n animation: lol 3s 500ms infinite ease-in-out;\n }\n </style>\n",kr="close",Sr="focus",Tr=function(){return o((function e(){i(this,e),this.description="Don't see the secure checkout browser? We'll help you re-launch the window to complete your purchase",this.title="Checkout",this.overlay=null,this.style=null,this.showControl=!0,this.showLoader=!0,this.eventEmitter=new ir}),[{key:"initControl",value:function(){if(!this.isInit()&&this.showControl){if(!w.isSupportPopUp())return this.createLoader();this.createTemplate(),this.createStyles(),this.eventHandler()}}},{key:"initLoader",value:function(){!this.isInit()&&this.showLoader&&(this.createStyles(),this.createLoader())}},{key:"eventHandler",value:function(){var e=this,t=document.querySelector("[data-close]"),n=document.querySelector("[data-continue]");t&&Di.subscribe("click",t,(function(){return e.eventEmitter.emit(kr,{})})),n&&Di.subscribe("click",n,(function(){return e.eventEmitter.emit(Sr,{})}))}},{key:"clear",value:function(){(this.style||this.overlay)&&(this.style.parentNode.removeChild(this.style),this.overlay.parentNode.removeChild(this.overlay),this.style=null,this.overlay=null)}},{key:"createLoader",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0];this.overlay=document.createElement("div"),this.overlay.classList.add("checkout-overlay"),this.overlay.setAttribute("checkout-overlay"," "),this.overlay.innerHTML=_r+wr,t.appendChild(this.overlay),setTimeout((function(){e.isInit()&&e.overlay.classList.add("display")}),5)}},{key:"createTemplate",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0],n=String('\n <div class="checkout-container">\n <strong class="checkout-title" data-title>{{title}}</strong>\n <p data-description>{{description}}</p>\n <a href="#" data-continue>Continue</a>\n <a href="#" data-close>Close</a>\n </div>\n');n=(n=n.replace("{{description}}",this.description)).replace("{{title}}",this.title),this.overlay=document.createElement("div"),this.overlay.classList.add("checkout-overlay"),this.overlay.setAttribute("checkout-overlay"," "),this.overlay.innerHTML=n,t.appendChild(this.overlay),setTimeout((function(){e.isInit()&&e.overlay.classList.add("display")}),5)}},{key:"createStyles",value:function(){var e=document.head||document.getElementsByTagName("head")[0],t=String("\n .hide-continue-button [data-continue] {\n display: none;\n }\n\n .checkout-overlay .cs-loader-inner {\n color: #ddd;\n }\n\n .checkout-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0,0,0, 0.5);\n text-align: center;\n color: #fff;\n opacity: 0;\n }\n .checkout-overlay.display {\n opacity: 1;\n transition: opacity 0.7s ease-out;\n }\n .checkout-overlay a { color: #00f; }\n .checkout-container {\n position: absolute;\n top: 50%;\n left: 0;\n width: 100%;\n margin-top: -{{width}}px;\n }\n .checkout-title {\n font-size: 24px;\n display: block;\n text-transform: uppercase;\n }\n [data-close] {\n position: fixed;\n right: 32px;\n top: 32px;\n width: 32px;\n height: 32px;\n opacity: 0.3;\n overflow: hidden;\n text-indent: -9999px;\n }\n [data-close]:hover { opacity: 1; }\n [data-close]:before, [data-close]:after {\n position: absolute;\n left: 15px;\n content: ' ';\n height: 33px;\n width: 2px;\n background-color: #00f;\n }\n [data-close]:before { transform: rotate(45deg); }\n [data-close]:after { transform: rotate(-45deg); }\n"),n=document.querySelector(".checkout-container");t=t.replace("{{width}}",n?String(n.offsetHeight/2):"0"),this.style=document.createElement("style"),this.style.type="text/css",this.style.appendChild(document.createTextNode(t)),e.appendChild(this.style)}},{key:"setBackdropDescription",value:function(e){this.description=e}},{key:"setBackdropTitle",value:function(e){this.title=e}},{key:"onTrigger",value:function(e,t){this.eventEmitter.subscribe(e,t)}},{key:"isInit",value:function(){return!(!this.overlay||!this.style)}},{key:"hideContinueControl",value:function(){this.isInit()&&this.overlay.classList.add("hide-continue-button")}},{key:"turnOffControl",value:function(){this.showControl=!1}},{key:"turnOffLoader",value:function(){this.showLoader=!1}}])}(),Mr=function(){return o((function e(){i(this,e),this.widgetEnv=new Z(G)}),[{key:"error",value:function(e,t,n){n(!0)}},{key:"setEnv",value:function(e,t){this.widgetEnv.setEnv(e,t)}}])}();function Ar(){return function(e){function t(){var e;i(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=n(this,t,[].concat(o))).background=new Tr,e.background.onTrigger(Sr,(function(){return e.continue()})),e.background.onTrigger(kr,(function(){return e.stop()})),e}return d(t,e),o(t,[{key:"continue",value:function(){}},{key:"stop",value:function(){}},{key:"error",value:function(e,t,n){n(!0)}},{key:"setSuspendedRedirectUri",value:function(e){this.suspendedRedirectUri=e}},{key:"setBackgroundTitle",value:function(e){this.background.setBackdropTitle(e)}},{key:"setBackgroundDescription",value:function(e){this.background.setBackdropDescription(e)}},{key:"turnOffBackdrop",value:function(){this.background.turnOffControl(),this.background.turnOffLoader()}}])}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr)}!function(e){e.SUCCESS="success",e.DECLINED="declined",e.CLOSE="close",e.REFERRED="referred",e.ERROR="error"}(Cr||(Cr={}));var Nr="paydock-dispatcher",Or=function(){return o((function e(t){i(this,e),this.messageSource=t,this.env=new Z(G)}),[{key:"restartDispatcher",value:function(){var e=document.getElementById(Nr);e&&e.parentNode&&e.parentNode.removeChild(e);var t=document.createElement("iframe");t.setAttribute("src",this.env.getConf().url+"/dispatcher"),t.id=Nr,t.style.display="none",document.body.appendChild(t)}},{key:"on",value:function(e,t){var n=this;Di.subscribe("message",window,(function(i){var r=null;try{r=JSON.parse(i.data)}catch(e){}r&&r.message_source===n.messageSource&&r.event===e&&t(r)}))}},{key:"setEnv",value:function(e,t){this.env.setEnv(e,t),this.restartDispatcher()}}])}(),Ir="close",Rr=function(){return o((function e(){i(this,e),this.configs={width:500,height:500,scrollbars:!0,resizable:!0,top:0,left:0},this.eventEmitter=new ir}),[{key:"isExist",value:function(){return!(!this.getElement()||this.getElement().closed)}},{key:"getElement",value:function(){return this.window}},{key:"init",value:function(){var e=this;if(!w.isSupportPopUp())return this.window=window;var t=this.getConfigs();this.window=window.open("about:blank","_blank","noopener=false,width=".concat(t.width,",height=").concat(t.height,",top=").concat(t.top,",left=").concat(t.left,",scrollbars=").concat(t.scrollbars?"yes":"no",",resizable=").concat(t.resizable?"yes":"no")),this.showLoader();var n=setInterval((function(){e.isExist()||(clearInterval(n),e.eventEmitter.emit(Ir,{}))}),200)}},{key:"redirect",value:function(e){this.isExist()&&(this.window.location.href=e)}},{key:"close",value:function(){this.isExist()&&this.getElement().close&&(this.getElement().close(),this.window=null)}},{key:"focus",value:function(){this.isExist()&&this.getElement().focus&&this.getElement().focus()}},{key:"setConfigs",value:function(e){this.configs=c(this.configs,e)}},{key:"getNetConfigs",value:function(){return c({},this.configs)}},{key:"getConfigs",value:function(){var e=this.getNetConfigs();return e.left=window.screenX+(window.screen.width/2-e.width/2),e.top=window.screenY+(window.screen.height/2-e.height/2),e}},{key:"onClose",value:function(e){this.eventEmitter.subscribe(Ir,e)}},{key:"initError",value:function(e){this.getElement().document.write("."),(this.getElement().document.body||this.getElement().document.getElementsByTagName("body")[0]).innerHTML="<style>\n .error-wrapper {\n color: #ff0000;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n }\n </style>"+'<div class="error-wrapper"><div>{{error}}</div></div>'.replace("{{error}}",e)}},{key:"showLoader",value:function(){this.getElement().document.write(".");var e=this.getElement().document.body||this.getElement().document.getElementsByTagName("body")[0];if(e.innerHTML=_r+wr,this.env===N&&this.env===O&&this.env===I&&this.env===R&&this.env===x&&this.env===P&&this.env===D&&this.env===L&&this.env===U&&this.env===F&&this.env===H&&this.env===j&&this.env===B&&this.env===z&&this.env===W&&this.env===V){var t=0;Di.subscribe("click",e,(function(){5===++t&&(e.innerHTML='\n <style>\n html{width: 100%;height: 100%;}\n body{margin: 0px;padding: 0px;background-color: #111;}\n \n .eye{\n width: 20px; height: 8px;\n background-color: #eee;\n border-radius:0px 0px 20px 20px;\n position: relative;\n top: 40px;\n left: 10px;\n box-shadow: 40px 0px 0px 0px #eee; \n }\n \n .head{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden; \n position: relative;\n margin: -250px auto;\n width: 80px; height: 80px;\n background-color: #111;\n border-radius:50px;\n box-shadow: inset -4px 2px 0px 0px #eee;\n -webkit-animation:node 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out;\n -moz-animation:node 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out;\n animation:node 1.5s infinite alternate;\n animation-timing-function:ease-out;\n }\n .body{ \n position: relative;\n margin: 90px auto;\n width: 140px; height: 120px;\n background-color: #111;\n border-radius: 50px/25px ;\n box-shadow: inset -5px 2px 0px 0px #eee;\n -webkit-animation:node2 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out; \n -moz-animation:node2 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out; \n animation:node2 1.5s infinite alternate;\n animation-timing-function:ease-out; \n }\n \n @keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n @-moz-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @-moz-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n @-webkit-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @-webkit-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n \n \n .circ{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n margin: 60px auto;\n width: 180px; height: 180px;\n background-color: #111;\n border-radius: 0px 0px 50px 50px;\n position: relative;\n z-index: -1; \n left: 0%;\n top: 20%;\n overflow: hidden;\n }\n \n .hands{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n margin-top: 140px;\n width: 120px;height: 120px;\n position: absolute;\n background-color: #111;\n border-radius:20px;\n box-shadow:-1px -4px 0px 0px #eee;\n transform:rotate(45deg);\n -webkit-transform:rotate(45deg);\n -mox-transform:rotate(45deg);\n top:75%;left: 16%;\n z-index: 1;\n -webkit-animation:node2 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out;\n -moz-animation:node2 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out;\n animation:node2 1.5s infinite alternate;\n animation-timing-function:ease-out;\n }\n \n .load{ position: absolute;\n width: 100px; height: 20px;\n margin: -10px auto;\n -webkit-font-smoothing: antialiased;\n -moz-font-smoothing: antialiased;\n font-smoothing: antialiased;\n font-family: \'Julius Sans One\', sans-serif;\n font-size:30px;\n font-weight:400;\n color:#eee;\n left: 10%;\n top: 5%;\n }\n </style>\n\n <div class="circ">\n <div class="load">A little patience ...</div>\n <div class="hands"></div>\n <div class="body"></div>\n <div class="head">\n <div class="eye"></div>\n </div>\n </div>\n')}))}}},{key:"setEnv",value:function(e){this.env=e}}])}(),xr=function(e){function t(e){var r;return i(this,t),(r=n(this,t)).publicKey=e,r.checkout=null,r.dispatcher=new Or("checkout.paydock"),setTimeout((function(){return r.dispatcher.restartDispatcher()}),200),r.popup=new Rr,r}return d(t,e),o(t,[{key:"run",value:function(){this.isRunning()||(this.popup.init(),this.background.initControl())}},{key:"isRunning",value:function(){return this.popup.isExist()}},{key:"next",value:function(e){this.checkout=e,w.isSupportPopUp()||window.localStorage.setItem("paydock_checkout_token",JSON.stringify(this.checkout)),this.popup.redirect(this.checkout.link)}},{key:"continue",value:function(){this.popup.focus()}},{key:"stop",value:function(){this.popup.close()}},{key:"onStop",value:function(e){var t=this;this.popup.onClose((function(){t.background.clear(),t.checkout=null,e()}))}},{key:"onCheckout",value:function(e,t){var n=this;this.dispatcher.on(e,(function(e){if(n.checkout&&n.checkout.reference_id===e.reference_id)n.background.clear(),t(n.checkout,e);else if(!w.isSupportPopUp()){var i=window.localStorage.getItem("paydock_checkout_token");if(!i)return;var r=JSON.parse(i);r&&r.reference_id===e.reference_id&&(window.localStorage.removeItem("paydock_checkout_token"),n.checkout=r,n.background.clear(),t(n.checkout,e))}}))}},{key:"setEnv",value:function(e,n){v(t,"setEnv",this)([e,n]),this.dispatcher.setEnv(e,n),this.popup.setEnv(e)}}])}(Ar());function Pr(e){return"run"in e}function Dr(e){return"setRedirectUrl"in e}var Lr,Ur=function(e){function t(){var e;return i(this,t),(e=n(this,t)).apiEnv=new Z(q),e}return d(t,e),o(t,[{key:"setEnv",value:function(e,n){v(t,"setEnv",this)([e,n]),this.apiEnv.setEnv(e,n)}}])}(Mr);!function(e){e.APPROVED="approved",e.DECLINED="declined",e.CANCELLED="cancelled",e.REFERRED="referred"}(Lr||(Lr={}));var Fr,Hr=function(e){function t(){var e;return i(this,t),(e=n(this,t)).runs=!1,e.widgetId=Ii.generate(),e.checkoutTab=null,e.eventEmitter=new ir,e.event=new Hi(window),e}return d(t,e),o(t,[{key:"run",value:function(){this.runs=!0,this.background.initLoader(),this.checkoutTab=window.open(this.getLoadingUrl(),"_blank"),this.checkInterval=this.setCloseTabInterval(),this.setCompleteCheckoutListener()}},{key:"isRunning",value:function(){return this.runs}},{key:"next",value:function(e){var t;this.checkout=e,null===(t=this.checkoutTab)||void 0===t||t.location.replace(e.link)}},{key:"getSuccessRedirectUri",value:function(){var e=this.widgetEnv.getConf().url,t=String("/checkout/zipmoney/suspended"),n=new URL(t,e);return n.searchParams.set("widgetId",this.widgetId),n.searchParams.set("domain",window.location.origin),n.toString()}},{key:"getErrorRedirectUri",value:function(){return this.getSuccessRedirectUri()}},{key:"stop",value:function(){v(t,"stop",this)([]),this.runs=!1;var e=document.querySelector(".zipmoney-overlay");e&&e.remove(),this.checkoutTab&&!this.checkoutTab.closed&&(clearInterval(this.checkInterval),this.checkoutTab.close()),this.eventEmitter.emit(Cr.CLOSE)}},{key:"onStop",value:function(e){var t=this;this.eventEmitter.subscribe(Cr.CLOSE,(function(){t.background.clear(),e()}))}},{key:"onCheckout",value:function(e,t){var n=this;this.eventEmitter.subscribe(e,(function(){t(n.checkout)}))}},{key:"eventHandler",value:function(e){switch(this.runs=!1,this.background.clear(),e.state){case Lr.APPROVED:this.eventEmitter.emit(Cr.CLOSE),this.eventEmitter.emit(Cr.SUCCESS);break;case Lr.DECLINED:this.eventEmitter.emit(Cr.CLOSE),this.eventEmitter.emit(Cr.DECLINED);break;case Lr.CANCELLED:this.eventEmitter.emit(Cr.CLOSE);break;case Lr.REFERRED:this.eventEmitter.emit(Cr.CLOSE),this.eventEmitter.emit(Cr.REFERRED);break;default:console.warn("".concat("[CheckoutButton:Zipmoney]"," Unknown gateway status."))}}},{key:"setCloseTabInterval",value:function(){var e=this,t=setInterval((function(){var n;(null===(n=e.checkoutTab)||void 0===n?void 0:n.closed)&&(clearInterval(t),e.event.clear(),e.stop())}),500);return t}},{key:"setCompleteCheckoutListener",value:function(){var e=this;this.event.on(Fi.FINISH,this.widgetId,(function(t){e.event.clear(),clearInterval(e.checkInterval),e.checkoutTab&&!e.checkoutTab.closed&&e.checkoutTab.close(),e.eventHandler(t)}))}},{key:"getLoadingUrl",value:function(){var e=this.widgetEnv.getConf().url,t=String("/checkout/zipmoney/loading");return new URL(t,e).toString()}}])}(Ar(Ur)),jr="[Paydock:StorageDispatcher]";!function(e){e.WIDGET_SESSION="widget-session"}(Fr||(Fr={}));var Br,zr=function(){return o((function e(t){i(this,e),this.messageSource=t,this.defaultPayload={destination:"widget.paydock"},this.env=new Z(G),this.defaultPayload.source=t,this.iframeEvent=new Hi(window)}),[{key:"create",value:function(e){this.onLoadCallback=e,this.dispatcherFrame&&this.destroy(),this.widgetId=Ii.generate(),this.setupIframeEventListeners();var t=document.createElement("iframe");return t.setAttribute("src",this.env.getConf().url+"/storage-dispatcher"+"?widgetId=".concat(this.widgetId)),t.setAttribute("id","pd-storage-dispatcher"),t.style.display="none",document.body.appendChild(t),this.dispatcherFrame=t,console.info("".concat(jr," initialized.")),t}},{key:"destroy",value:function(){this.dispatcherFrame&&this.dispatcherFrame.parentNode&&this.dispatcherFrame.parentNode.removeChild(this.dispatcherFrame),this.iframeEvent.clear(),this.widgetId=void 0,this.dispatcherFrame=void 0}},{key:"push",value:function(e,t){var n;if(this.pushCallbacks=t,this.dispatcherFrame){var i=c(c({},this.defaultPayload),e);null===(n=this.dispatcherFrame.contentWindow)||void 0===n||n.postMessage(i,this.env.getConf().url)}else console.error("".concat(jr," dispatcher is not initialized."))}},{key:"setEnv",value:function(e,t){this.env.setEnv(e,t),this.create(this.onLoadCallback)}},{key:"setupIframeEventListeners",value:function(){var e=this;this.widgetId&&(this.iframeEvent.on(Fi.AFTER_LOAD,this.widgetId,(function(t){var n;null===(n=e.onLoadCallback)||void 0===n||n.call(e)})),this.iframeEvent.on(Fi.DISPATCH_SUCCESS,this.widgetId,(function(t){var n,i;null===(i=null===(n=e.pushCallbacks)||void 0===n?void 0:n.onSuccess)||void 0===i||i.call(n)})),this.iframeEvent.on(Fi.DISPATCH_ERROR,this.widgetId,(function(t){var n,i;null===(i=null===(n=e.pushCallbacks)||void 0===n?void 0:n.onError)||void 0===i||i.call(n)})))}}])}(),Wr=function(e){function t(){var e;return i(this,t),(e=n(this,t)).storageDispatcher=new zr("zipmoney.checkout.paydock"),e}return d(t,e),o(t,[{key:"getProxyRedirectUrl",value:function(){return this.widgetEnv.getConf().url+"/checkout/zipmoney/response"}},{key:"next",value:function(e,t){var n=this;this.storageDispatcher.create((function(){var i={merchant_redirect_url:n.getRedirectUrl(),checkout_token:e.token,public_key:t.public_key,gateway_id:t.gateway_id};n.storageDispatcher.push({intent:Fr.WIDGET_SESSION,data:i},{onSuccess:function(){window.location.href=e.link},onError:function(){console.error("Error initializing Zip Checkout")}})}))}},{key:"getSuccessRedirectUri",value:function(){return this.getProxyRedirectUrl()}},{key:"getErrorRedirectUri",value:function(){return this.getProxyRedirectUrl()}},{key:"setEnv",value:function(e,n){v(t,"setEnv",this)([e,n]),this.storageDispatcher.setEnv(e,n)}}])}(function(){return function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"setRedirectUrl",value:function(e){this.merchantRedirectUrl=e}},{key:"getRedirectUrl",value:function(){return this.merchantRedirectUrl}},{key:"error",value:function(e,t,n){n(!1)}}])}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr)}(Ur)),Vr=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"getSuccessRedirectUri",value:function(){return this.widgetEnv.getConf().url+Oi.extendSearchParams("/checkout/success","merchant",encodeURIComponent(window.location.href))}},{key:"getErrorRedirectUri",value:function(){return this.widgetEnv.getConf().url+Oi.extendSearchParams("/checkout/error","merchant",encodeURIComponent(window.location.href))}}])}(xr);!function(e){e.CLOSE="CANCELLED"}(Br||(Br={}));var Gr=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"getSuccessRedirectUri",value:function(){return this.widgetEnv.getConf().url+"/checkout/afterpay/merchant/{{merchant}}/success".replace("{{merchant}}",encodeURIComponent(window.btoa(window.location.href)))}},{key:"getErrorRedirectUri",value:function(){return this.widgetEnv.getConf().url+"/checkout/afterpay/merchant/{{merchant}}/error".replace("{{merchant}}",encodeURIComponent(window.btoa(window.location.href)))}},{key:"next",value:function(e,t){this.checkout=e,w.isSupportPopUp()||window.localStorage.setItem("paydock_checkout_token",JSON.stringify(this.checkout)),this.popup.redirect(this.getRedirectUrl(this.checkout,t))}},{key:"onCheckout",value:function(e,n){v(t,"onCheckout",this)([e,function(e,t){if(!(null==t?void 0:t.status))return n(e);var i=t.status,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(t,["status"]);i===Br.CLOSE?n(e,c(c({},r),{isCloseEvent:!0})):n(e,r)}])}},{key:"error",value:function(e,t,n){return!t||t&&"invalid_amount"!==t?n(!0):(this.popup.initError(e),n(!1))}},{key:"run",value:function(){this.isRunning()||(this.popup.setConfigs({width:420,height:715}),this.popup.init(),this.background.initControl())}},{key:"getRedirectUrl",value:function(e,t){return this.widgetEnv.getConf().url+"/checkout/afterpay/init?"+Oi.serialize(c(c({},t),{token:e.reference_id,env:"live"===e.mode?"live":"test"}))}}])}(xr),qr={EXTERNAL_CHECKOUT_TOKEN:"external_checkout_token",CHECKOUT_TOKEN:"checkout_token",BANK_ACCOUNT:"bank_account",CARD:"card"},Yr=function(e){function t(e,r){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qr.CARD;switch(i(this,t),(o=n(this,t)).body={gateway_id:e,type:s},s){case qr.CARD:case qr.BANK_ACCOUNT:delete r.gateway_id,delete r.type,delete r.checkout_token,o.body=c(o.body,r);break;case qr.CHECKOUT_TOKEN:case qr.EXTERNAL_CHECKOUT_TOKEN:o.body.checkout_token=r;break;default:throw new Error("Unsupported type of PaymentSourceToken")}return o}return d(t,e),o(t,[{key:"getLink",value:function(){return"/v1/payment_sources/tokens"}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){};this.create(e,this.getConfigs(),(function(e,n){return t(e)}),(function(e,t){void 0===e.message?n("unknown error"):n(e.message)}))}},{key:"getConfigs",value:function(){return this.body}}])}(yr),Kr=function(){return o((function e(t,n,r,o){var s=this;i(this,e),this.background=t,this.runner=n,this.eventEmitter=r,this.params=o,this.runner.onStop((function(){s.eventEmitter.emit(ar.CLOSE)}))}),[{key:"init",value:function(e){var t=this;this.setEnv(e),this.runner.onCheckout(Cr.SUCCESS,(function(e){t.eventEmitter.emit(ar.ACCEPTED,{}),t.background.initLoader(),t.runner.stop(),t.checkToken(e.token,(function(){t.createOneTimeToken(e.token)}))})),this.runner.onCheckout(Cr.ERROR,(function(e,n){(null==n?void 0:n.isCloseEvent)||(t.eventEmitter.emit(ar.ERROR),console.error("".concat(ur," Error from checkout server."))),t.runner.stop()})),this.runner.onCheckout(Cr.REFERRED,(function(){t.eventEmitter.emit(ar.REFERRED),t.runner.stop()})),this.runner.onCheckout(Cr.DECLINED,(function(){t.eventEmitter.emit(ar.DECLINED),t.runner.stop()})),this.eventEmitter.subscribe(ar.ERROR,(function(){t.runner.stop()})),this.eventEmitter.subscribe(ar.FINISH,(function(e){t.background.clear()}))}},{key:"setEnv",value:function(e){this.env=e}},{key:"checkToken",value:function(e,t){var n=this,i=new Er(e);i.setEnv(this.env),i.send(this.params.accessToken,(function(e){n.details=e,t()}),(function(){n.eventEmitter.emit(ar.ERROR,{}),console.error("".concat(ur," Error during creating payment source token."))}))}},{key:"createOneTimeToken",value:function(e){var t=this,n=new Yr(this.params.gatewayId,e,qr.CHECKOUT_TOKEN);n.setEnv(this.env),n.send(this.params.accessToken,(function(e){t.eventEmitter.emit(ar.FINISH,{payment_source_token:e,checkout_email:t.details.checkout_email,checkout_holder:t.details.checkout_holder,gateway_type:t.details.gateway_type})}),(function(){t.eventEmitter.emit(ar.ERROR,{}),console.error("".concat(ur," Error during creating payment source token."))}))}}])}(),Xr=function(){return o((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:or.PAYPAL,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:rr.CONTEXTUAL;i(this,e),this.accessToken=n,this.gatewayId=r,this.gatewayType=o,this.mode=s,this.window=window,this.meta={},this.env=X,this.eventEmitter=new ir,this.container=new Li(t),this.initCheckout(this.container),this.chooseRunner(o,s)}),[{key:"chooseRunner",value:function(e,t){var n=this.getRunnerByMode(e,t);this.runner=new n(this.accessToken),Pr(this.runner)?(this.background=new Tr,this.checkoutHandler=new Kr(this.background,this.runner,this.eventEmitter,{accessToken:this.accessToken,gatewayId:this.gatewayId}),this.checkoutHandler.init(this.env)):(this.background=void 0,this.checkoutHandler=void 0)}},{key:"buildAdditionalParams",value:function(){return{}}},{key:"initCheckout",value:function(e){var t=this;e.on("click",(function(e){if(Pr(t.runner)){if(t.runner.isRunning())return;t.runner.run()}else if(Dr(t.runner)&&!t.runner.getRedirectUrl())throw Error("".concat(ur," The merchant redirect URL should is required in the '").concat(t.mode,"' mode."));t.eventEmitter.emit(ar.CLICK);var n=new br(t.gatewayId,t.runner.getSuccessRedirectUri(),t.runner.getErrorRedirectUri());n.setMeta(t.meta),n.setEnv(t.env),n.send(t.accessToken,(function(e){var n=Pr(t.runner)?ar.POPUP_REDIRECT:ar.REDIRECT;t.eventEmitter.emit(n),t.runner.next(e,t.buildAdditionalParams())}),(function(e,n){console.error("".concat(ur," ").concat(e)),t.eventEmitter.emit(ar.ERROR,{error:e,code:n}),t.runner.error(e,n,(function(e){e&&t.close()}))}))}))}},{key:"on",value:function(e,t){this.eventEmitter.subscribe(e,t)}},{key:"close",value:function(){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.stop()}},{key:"onFinishInsert",value:function(e,t){this.on(ar.FINISH,(function(n){Di.insertToInput(e,t,n)}))}},{key:"setMeta",value:function(e){this.meta=c(this.meta,e)}},{key:"setBackdropDescription",value:function(e){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.setBackgroundDescription(e)}},{key:"setBackdropTitle",value:function(e){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.setBackgroundTitle(e)}},{key:"setSuspendedRedirectUri",value:function(e){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.setSuspendedRedirectUri(e)}},{key:"setRedirectUrl",value:function(e){this.assertMethodSupport(this.runner,rr.REDIRECT)&&this.runner.setRedirectUrl(e)}},{key:"getSuccessRedirectUri",value:function(){return this.runner.getSuccessRedirectUri()}},{key:"turnOffBackdrop",value:function(){this.turnOffControlBackdrop(),this.turnOffLoaderBackdrop()}},{key:"turnOffControlBackdrop",value:function(){this.assertMethodSupport(this.runner,rr.CONTEXTUAL)&&this.runner.turnOffBackdrop()}},{key:"turnOffLoaderBackdrop",value:function(){var e;null===(e=this.background)||void 0===e||e.turnOffLoader()}},{key:"setEnv",value:function(e,t){var n;this.env=e,this.alias=t,null===(n=this.checkoutHandler)||void 0===n||n.setEnv(e),this.runner.setEnv(e,t)}},{key:"getEnv",value:function(){return this.env}},{key:"getRunnerByMode",value:function(e,t){if(e===or.PAYPAL){if(t===rr.REDIRECT)throw Error("".concat(ur," Gateway '").concat(e,"' do not support '").concat(t,"' mode"));return Vr}if(e===or.AFTERPAY){if(t===rr.REDIRECT)throw Error("".concat(ur," Gateway '").concat(e,"' do not support '").concat(t,"' mode"));return Gr}if(e===or.ZIPMONEY)return t===rr.CONTEXTUAL?Hr:Wr;throw Error("".concat(ur," Unsupported gateway."))}},{key:"assertMethodSupport",value:function(e,t){var n="".concat(ur," The method is not supported in the '").concat(t,"' mode.");switch(t){case rr.CONTEXTUAL:if(Pr(e))return!0;console.warn(n);break;case rr.REDIRECT:if(Dr(e))return!0;console.warn(n)}return!1}}])}(),$r=function(e){function t(e,r){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rr.CONTEXTUAL;return i(this,t),(o=n(this,t,[e,r,s,or.ZIPMONEY,a])).publicKey=r,o.gatewayId=s,o.mode=a,o}return d(t,e),o(t,[{key:"setSuspendedRedirectUri",value:function(e){v(t,"setSuspendedRedirectUri",this)([e])}},{key:"setRedirectUrl",value:function(e){Pr(this.runner)&&(v(t,"chooseRunner",this)([or.ZIPMONEY,rr.REDIRECT]),v(t,"setEnv",this)([this.env,this.alias])),v(t,"setRedirectUrl",this)([e])}},{key:"buildAdditionalParams",value:function(){return c(c({},v(t,"buildAdditionalParams",this)([])),{public_key:this.publicKey,gateway_id:this.gatewayId})}}])}(Xr),Jr=function(e){function t(e,r){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";return i(this,t),(o=n(this,t,[e,r,s,or.AFTERPAY])).accessToken=r,o.gatewayId=s,o.showETP=!1,o}return d(t,e),o(t,[{key:"showEnhancedTrackingProtectionPopup",value:function(e){var t=w.getBrowserInfo(),n=t.name,i=t.version;e&&"Firefox"===n&&+i>=100&&(this.showETP=!0)}},{key:"buildAdditionalParams",value:function(){var e=v(t,"buildAdditionalParams",this)([]);return this.showETP&&(e.show_etp=!0),e}}])}(Xr),Zr=function(e){function t(e,r){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";return i(this,t),(o=n(this,t,[e,r,s,or.PAYPAL])).publicKey=r,o.gatewayId=s,o}return d(t,e),o(t)}(Xr),Qr=["live","test"];function eo(e){return Qr.includes(e)}var to={FORTER:"forter"},no={NAMESPACE:"fraudPrevention",TYPES:{FINGERPRINT_TOKEN_ERROR:"fingerprint-token-error",FINTERPRINT_TOKEN_READY:"fingerprint-token-ready"},PROVIDERS:to},io=o((function e(){i(this,e)})),ro=function(e){function t(e){var r;if(i(this,t),(r=n(this,t)).accessToken=e,"string"!=typeof e)throw new TypeError("AccessTokenStrategy expects parameter 'accessToken' to be of type string.");return r}return d(t,e),o(t,[{key:"apply",value:function(e){e.setAccessToken(this.accessToken)}}])}(io),oo=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"apply",value:function(e){}}])}(io),so=function(e){function t(e){var r;if(i(this,t),(r=n(this,t)).publicKey=e,"string"!=typeof e)throw new TypeError("AccessTokenStrategy expects parameter 'publicKey' to be of type string.");return r}return d(t,e),o(t,[{key:"apply",value:function(e){e.setPublicKey(this.publicKey)}}])}(io);function ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null==e||"object"!==y(e))return e;if(t.has(e))return t.get(e);if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e)){var n=[];return t.set(e,n),n.push.apply(n,g(e.map((function(e){return ao(e,t)})))),n}if(e instanceof Map){var i=new Map;return t.set(e,i),e.forEach((function(e,n){i.set(ao(n,t),ao(e,t))})),i}if(e instanceof Set){var r=new Set;t.set(e,r);var o,a=s(e);try{for(a.s();!(o=a.n()).done;){var c=o.value;r.add(ao(c,t))}}catch(e){a.e(e)}finally{a.f()}return r}var l={},u=Object.keys(e);t.set(e,l);for(var d=0,h=u;d<h.length;d++){var p=h[d];l[p]=ao(e[p],t)}return l}var co=function(e){return[null,e]},lo=function(e){return[e,null]},uo=function(){function e(){i(this,e),this.reportError=function(e,t,n){e.createError(t,n)},this.baseUrl="",this.headers={}}return o(e,[{key:"setAccessToken",value:function(e){return this.headers["x-access-token"]=e,this}},{key:"setBaseUrl",value:function(e){return this.baseUrl=e,this}},{key:"setBody",value:function(e){if("symbol"===y(e)||"function"==typeof e||void 0===e)throw new TypeError("HttpFetcher setBody: expected parameter 'body' to be serializable.");return this.body=e,this}},{key:"setContentTypeJson",value:function(){return this.headers["Content-Type"]="application/json; charset=UTF-8",this}},{key:"setContentTypeText",value:function(){return this.headers["Content-Type"]="text/plain; charset=UTF-8",this}},{key:"setHeaders",value:function(e){return c(this.headers,e),this}},{key:"setPublicKey",value:function(e){return this.headers["x-user-public-key"]=e,this}},{key:"setSdkVersion",value:function(){return Q.version&&(this.headers[Q.headerKeys.version]=Q.version,this.headers[Q.headerKeys.type]=Q.type),this}},{key:"execute",value:function(t,n){return ie(this,void 0,void 0,p().mark((function i(){var r,o,s,a;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r="".concat(this.baseUrl).concat(n),i.prev=1,i.next=4,fetch(r,{method:t,body:this.body?JSON.stringify(this.body):void 0,headers:this.headers});case 4:if(o=i.sent,!(o.headers.get("Content-Type")||"").includes("text/plain")){i.next=11;break}return i.next=9,o.text();case 9:return s=i.sent,i.abrupt("return",lo({statusCode:o.status,body:s}));case 11:return i.next=13,o.json();case 13:if(a=i.sent,o.ok){i.next=16;break}return i.abrupt("return",co({statusCode:o.status,body:a}));case 16:if(!("error"in a)||null===a.error){i.next=18;break}return i.abrupt("return",co({statusCode:o.status,body:a}));case 18:return i.abrupt("return",lo({statusCode:o.status,body:a}));case 21:throw i.prev=21,i.t0=i.catch(1),this.reportError(_i,i.t0,{sdkVersion:Q.version,className:e.name,classMethod:"send",environment:this.baseUrl}),i.t0;case 25:case"end":return i.stop()}}),i,this,[[1,21]])})))}},{key:"value",value:function(){return{baseUrl:this.baseUrl,headers:ao(this.headers),body:ao(this.body)}}}])}(),ho=function(){return o((function e(t){i(this,e),this.authorizationStrategyReference=t.authorizationStrategy,this.environment=t.environment}),[{key:"createFetcher",value:function(){var e=this.environment.getConf().url,t=(new uo).setBaseUrl(e).setContentTypeJson().setSdkVersion();return this.authorizationStrategyValue.apply(t),t}},{key:"authorizationStrategyValue",get:function(){return"function"==typeof this.authorizationStrategyReference?this.authorizationStrategyReference():this.authorizationStrategyReference}}])}(),po="ftr:tokenReady",fo=function(){return o((function e(t){i(this,e),this.cookieToken=null,this.validateCsp(t.csp),this.validateMode(t.mode),this.validateSiteId(t.siteId),this.config=t}),[{key:"token",get:function(){return this.cookieToken}},{key:"init",value:function(){return this.subscribeSdkEvents(),this.injectScript(),this}},{key:"emit",value:function(e){var t=new CustomEvent(no.NAMESPACE,{detail:e});document.dispatchEvent(t)}},{key:"emitFingerprintTokenWrongTypeError",value:function(){this.emit({type:no.TYPES.FINGERPRINT_TOKEN_ERROR,provider:no.PROVIDERS.FORTER,payload:{code:"unexpected_token_type",message:"Forter JavaScript SDK created a fingerprint token but it was not of the expected string type. Please contact our support team if the issue persists."}})}},{key:"emitFingerprintTokenReady",value:function(){this.emit({type:no.TYPES.FINTERPRINT_TOKEN_READY,provider:no.PROVIDERS.FORTER,payload:{token:this.cookieToken}})}},{key:"getScriptContent",value:function(){return'\n(function () {\n var merchantConfig = {\n csp: %CSP%\n };\n\n var siteId = "%SITE_ID%";\n\n function t(t,e){for(var n=t.split(""),r=0;r<n.length;++r)n[r]=String.fromCharCode(n[r].charCodeAt(0)+e);return n.join("")}function e(e){return t(e,-_).replace(/%SN%/g,siteId)}function n(t){try{if("number"==typeof t&&window.location&&window.location.pathname){for(var e=window.location.pathname.split("/"),n=[],r=0;r<=Math.min(e.length-1,Math.abs(t));r++)n.push(e[r]);return n.join("/")||"/"}}catch(t){}return"/"}function r(t){try{Q.ex=t,o()&&-1===Q.ex.indexOf(X.uB)&&(Q.ex+=X.uB),i()&&-1===Q.ex.indexOf(X.uBr)&&(Q.ex+=X.uBr),a()&&-1===Q.ex.indexOf(X.nIL)&&(Q.ex+=X.nIL),window.ftr__snp_cwc||(Q.ex+=X.s),B(Q)}catch(t){}}function o(){var t="no"+"op"+"fn",e="g"+"a",n="n"+"ame";return window[e]&&window[e][n]===t}function i(){return!(!navigator.brave||"function"!=typeof navigator.brave.isBrave)}function a(){return document.currentScript&&document.currentScript.src}function c(t,e){function n(o){try{o.blockedURI===t&&(e(),document.removeEventListener(r,n))}catch(t){document.removeEventListener(r,n)}}var r="securitypolicyviolation";document.addEventListener(r,n),setTimeout(function(){document.removeEventListener(r,n)},2*60*1e3)}function u(t,e,n,r){var o=!1;t="https://"+t,c(t,function(){r(!0),o=!0});var i=document.createElement("script");i.onerror=function(){if(!o)try{r(!1),o=!0}catch(t){}},i.onload=n,i.type="text/javascript",i.id="ftr__script",i.async=!0,i.src=t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a)}function f(){tt(X.uDF),setTimeout(w,N,X.uDF)}function s(t,e,n,r){var o=!1,i=new XMLHttpRequest;if(c("https:"+t,function(){n(new Error("CSP Violation"),!0),o=!0}),"//"===t.slice(0,2)&&(t="https:"+t),"withCredentials"in i)i.open("GET",t,!0);else{if("undefined"==typeof XDomainRequest)return;i=new XDomainRequest,i.open("GET",t)}Object.keys(r).forEach(function(t){i.setRequestHeader(t,r[t])}),i.onload=function(){"function"==typeof e&&e(i)},i.onerror=function(t){if("function"==typeof n&&!o)try{n(t,!1),o=!0}catch(t){}},i.onprogress=function(){},i.ontimeout=function(){"function"==typeof n&&n("tim"+"eo"+"ut",!1)},setTimeout(function(){i.send()},0)}function d(t,siteId,e){function n(t){var e=t.toString(16);return e.length%2?"0"+e:e}function r(t){if(t<=0)return"";for(var e="0123456789abcdef",n="",r=0;r<t;r++)n+=e[Math.floor(Math.random()*e.length)];return n}function o(t){for(var e="",r=0;r<t.length;r++)e+=n(t.charCodeAt(r));return e}function i(t){for(var e=t.split(""),n=0;n<e.length;++n)e[n]=String.fromCharCode(255^e[n].charCodeAt(0));return e.join("")}e=e?"1":"0";var a=[];return a.push(t),a.push(siteId),a.push(e),function(t){var e=40,n="";return t.length<e/2&&(n=","+r(e/2-t.length-1)),o(i(t+n))}(a.join(","))}function h(){function t(){F&&(tt(X.dUAL),setTimeout(w,N,X.dUAL))}function e(t,e){r(e?X.uAS+X.uF+X.cP:X.uAS+X.uF),F="F"+"T"+"R"+"A"+"U",setTimeout(w,N,X.uAS)}window.ftr__fdad(t,e)}function l(){function t(){F&&setTimeout(w,N,X.uDAD)}function e(t,e){r(e?X.uDS+X.uF+X.cP:X.uDS+X.uF),F="F"+"T"+"R"+"A"+"U",setTimeout(w,N,X.uDS)}window.ftr__radd(t,e)}function w(t){try{var e;switch(t){case X.uFP:e=O;break;case X.uDF:e=M;break;default:e=F}if(!e)return;var n=function(){try{et(),r(t+X.uS)}catch(t){}},o=function(e){try{et(),Q.td=1*new Date-Q.ts,r(e?t+X.uF+X.cP:t+X.uF),t===X.uFP&&f(),t===X.uDF&&(I?l():h()),t!==X.uAS&&t!==X.dUAL||I||l(),t!==X.uDS&&t!==X.uDAD||I&&h()}catch(t){r(X.eUoe)}};if(e==="F"+"T"+"R"+"A"+"U")return void o();u(e,void 0,n,o)}catch(e){r(t+X.eTlu)}}var g="22ge:t7mj8unkn;1forxgiurqw1qhw2vwdwxv",v="fort",p="erTo",m="ken",_=3;window.ftr__config={m:merchantConfig,s:"24",si:siteId};var y=!1,U=!1,T=v+p+m,x=400*24*60,A=10,S={write:function(t,e,r,o){void 0===o&&(o=!0);var i=0;window.ftr__config&&window.ftr__config.m&&window.ftr__config.m.ckDepth&&(i=window.ftr__config.m.ckDepth);var a,c,u=n(i);if(r?(a=new Date,a.setTime(a.getTime()+60*r*1e3),c="; expires="+a.toGMTString()):c="",!o)return void(document.cookie=escape(t)+"="+escape(e)+c+"; path="+u);for(var f=1,s=document.domain.split("."),d=A,h=!0;h&&s.length>=f&&d>0;){var l=s.slice(-f).join(".");document.cookie=escape(t)+"="+escape(e)+c+"; path="+u+"; domain="+l;var w=S.read(t);null!=w&&w==e||(l="."+l,document.cookie=escape(t)+"="+escape(e)+c+"; path="+u+"; domain="+l),h=-1===document.cookie.indexOf(t+"="+e),f++,d--}},read:function(t){var e=null;try{for(var n=escape(t)+"=",r=document.cookie.split(";"),o=32,i=0;i<r.length;i++){for(var a=r[i];a.charCodeAt(0)===o;)a=a.substring(1,a.length);0===a.indexOf(n)&&(e=unescape(a.substring(n.length,a.length)))}}finally{return e}}},D=window.ftr__config.s;D+="ck";var L=function(t){var e=!1,n=null,r=function(){try{if(!n||!e)return;n.remove&&"function"==typeof n.remove?n.remove():document.head.removeChild(n),e=!1}catch(t){}};document.head&&(!function(){n=document.createElement("link"),n.setAttribute("rel","pre"+"con"+"nect"),n.setAttribute("cros"+"sori"+"gin","anonymous"),n.onload=r,n.onerror=r,n.setAttribute("href",t),document.head.appendChild(n),e=!0}(),setTimeout(r,3e3))},E=e(g||"22ge:t7mj8unkn;1forxgiurqw1qhw2vwdwxv"),C=t("[0Uhtxhvw0LG",-_),R=t("[0Fruuhodwlrq0LG",-_),P=t("Li0Qrqh0Pdwfk",-_),k=e("dss1vlwhshuirupdqfhwhvw1qhw"),q=e("2241414142gqv0txhu|"),F,b="fgq71iruwhu1frp",M=e("(VQ(1"+b+"2vq2(VQ(2vfulsw1mv"),V=e("(VQ(1"+b+"2vqV2(VQ(2vfulsw1mv"),O;window.ftr__config&&window.ftr__config.m&&window.ftr__config.m.fpi&&(O=window.ftr__config.m.fpi+e("2vq2(VQ(2vfulsw1mv"));var I=!1,N=10;window.ftr__startScriptLoad=1*new Date;var j=function(t){var e="ft"+"r:tok"+"enR"+"eady";window.ftr__tt&&clearTimeout(window.ftr__tt),window.ftr__tt=setTimeout(function(){try{delete window.ftr__tt,t+="_tt";var n=document.createEvent("Event");n.initEvent(e,!1,!1),n.detail=t,document.dispatchEvent(n)}catch(t){}},1e3)},B=function(t){var e=function(t){return t||""},n=e(t.id)+"_"+e(t.ts)+"_"+e(t.td)+"_"+e(t.ex)+"_"+e(D),r=x;!isNaN(window.ftr__config.m.ckTTL)&&window.ftr__config.m.ckTTL&&(r=window.ftr__config.m.ckTTL),S.write(T,n,r,!0),j(n),window.ftr__gt=n},G=function(){var t=S.read(T)||"",e=t.split("_"),n=function(t){return e[t]||void 0};return{id:n(0),ts:n(1),td:n(2),ex:n(3),vr:n(4)}},H=function(){for(var t={},e="fgu",n=[],r=0;r<256;r++)n[r]=(r<16?"0":"")+r.toString(16);var o=function(t,e,r,o,i){var a=i?"-":"";return n[255&t]+n[t>>8&255]+n[t>>16&255]+n[t>>24&255]+a+n[255&e]+n[e>>8&255]+a+n[e>>16&15|64]+n[e>>24&255]+a+n[63&r|128]+n[r>>8&255]+a+n[r>>16&255]+n[r>>24&255]+n[255&o]+n[o>>8&255]+n[o>>16&255]+n[o>>24&255]},i=function(){if(window.Uint32Array&&window.crypto&&window.crypto.getRandomValues){var t=new window.Uint32Array(4);return window.crypto.getRandomValues(t),{d0:t[0],d1:t[1],d2:t[2],d3:t[3]}}return{d0:4294967296*Math.random()>>>0,d1:4294967296*Math.random()>>>0,d2:4294967296*Math.random()>>>0,d3:4294967296*Math.random()>>>0}},a=function(){var t="",e=function(t,e){for(var n="",r=t;r>0;--r)n+=e.charAt(1e3*Math.random()%e.length);return n};return t+=e(2,"0123456789"),t+=e(1,"123456789"),t+=e(8,"0123456789")};return t.safeGenerateNoDash=function(){try{var t=i();return o(t.d0,t.d1,t.d2,t.d3,!1)}catch(t){try{return e+a()}catch(t){}}},t.isValidNumericalToken=function(t){return t&&t.toString().length<=11&&t.length>=9&&parseInt(t,10).toString().length<=11&&parseInt(t,10).toString().length>=9},t.isValidUUIDToken=function(t){return t&&32===t.toString().length&&/^[a-z0-9]+$/.test(t)},t.isValidFGUToken=function(t){return 0==t.indexOf(e)&&t.length>=12},t}(),X={uDF:"UDF",dUAL:"dUAL",uAS:"UAS",uDS:"UDS",uDAD:"UDAD",uFP:"UFP",mLd:"1",eTlu:"2",eUoe:"3",uS:"4",uF:"9",tmos:["T5","T10","T15","T30","T60"],tmosSecs:[5,10,15,30,60],bIR:"43",uB:"u",uBr:"b",cP:"c",nIL:"i",s:"s"};try{var Q=G();try{Q.id&&(H.isValidNumericalToken(Q.id)||H.isValidUUIDToken(Q.id)||H.isValidFGUToken(Q.id))?window.ftr__ncd=!1:(Q.id=H.safeGenerateNoDash(),window.ftr__ncd=!0),Q.ts=window.ftr__startScriptLoad,B(Q),window.ftr__snp_cwc=!!S.read(T),window.ftr__snp_cwc||(M=V);for(var $="for"+"ter"+".co"+"m",z="ht"+"tps://c"+"dn9."+$,J="ht"+"tps://"+Q.id+"-"+siteId+".cd"+"n."+$,K="http"+"s://cd"+"n3."+$,W=[z,J,K],Y=0;Y<W.length;Y++)L(W[Y]);var Z=new Array(X.tmosSecs.length),tt=function(t){for(var e=0;e<X.tmosSecs.length;e++)Z[e]=setTimeout(r,1e3*X.tmosSecs[e],t+X.tmos[e])},et=function(){for(var t=0;t<X.tmosSecs.length;t++)clearTimeout(Z[t])};window.ftr__fdad=function(e,n){if(!y){y=!0;var r={};r[P]=d(window.ftr__config.s,siteId,window.ftr__config.m.csp),s(E,function(n){try{var r=n.getAllResponseHeaders().toLowerCase();if(r.indexOf(R.toLowerCase())>=0){var o=n.getResponseHeader(R);window.ftr__altd2=t(atob(o),-_-1)}if(r.indexOf(C.toLowerCase())<0)return;var i=n.getResponseHeader(C),a=t(atob(i),-_-1);if(a){var c=a.split(":");if(c&&2===c.length){for(var u=c[0],f=c[1],s="",d=0,h=0;d<20;++d)s+=d%3>0&&h<12?siteId.charAt(h++):Q.id.charAt(d);var l=f.split(",");if(l.length>1){var w=l[0],g=l[1];F=u+"/"+w+"."+s+"."+g}}}e()}catch(t){}},function(t,e){n&&n(t,e)},r)}},window.ftr__radd=function(t,e){function n(e){try{var n=e.response,r=function(t){function e(t,o,i){try{if(i>=n)return{name:"",nextOffsetToProcess:o,error:"Max pointer dereference depth exceeded"};for(var a=[],c=o,u=t.getUint8(c),f=0;f<r;){if(f++,192==(192&u)){var s=(63&u)<<8|t.getUint8(c+1),d=e(t,s,i+1);if(d.error)return d;var h=d.name;return a.push(h),{name:a.join("."),nextOffsetToProcess:c+2}}if(!(u>0)){if(0!==u)return{name:"",nextOffsetToProcess:c,error:"Unexpected length at the end of name: "+u.toString()};return{name:a.join("."),nextOffsetToProcess:c+1}}for(var l="",w=1;w<=u;w++)l+=String.fromCharCode(t.getUint8(c+w));a.push(l),c+=u+1,u=t.getUint8(c)}return{name:"",nextOffsetToProcess:c,error:"Max iterations exceeded"}}catch(t){return{name:"",nextOffsetToProcess:o,error:"Unexpected error while parsing response: "+t.toString()}}}for(var n=4,r=100,o=16,i=new DataView(t),a=i.getUint16(0),c=i.getUint16(2),u=i.getUint16(4),f=i.getUint16(6),s=i.getUint16(8),d=i.getUint16(10),h=12,l=[],w=0;w<u;w++){var g=e(i,h,0);if(g.error)throw new Error(g.error);if(h=g.nextOffsetToProcess,!Number.isInteger(h))throw new Error("invalid returned offset");var v=g.name,p=i.getUint16(h);h+=2;var m=i.getUint16(h);h+=2,l.push({qname:v,qtype:p,qclass:m})}for(var _=[],w=0;w<f;w++){var g=e(i,h,0);if(g.error)throw new Error(g.error);if(h=g.nextOffsetToProcess,!Number.isInteger(h))throw new Error("invalid returned offset");var y=g.name,U=i.getUint16(h);if(U!==o)throw new Error("Unexpected record type: "+U.toString());h+=2;var T=i.getUint16(h);h+=2;var x=i.getUint32(h);h+=4;var A=i.getUint16(h);h+=2;for(var S="",D=h,L=0;D<h+A&&L<r;){L++;var E=i.getUint8(D);D+=1;S+=(new TextDecoder).decode(t.slice(D,D+E)),D+=E}if(L>=r)throw new Error("Max iterations exceeded while reading TXT data");h+=A,_.push({name:y,type:U,class:T,ttl:x,data:S})}return{transactionId:a,flags:c,questionCount:u,answerCount:f,authorityCount:s,additionalCount:d,questions:l,answers:_}}(n);if(!r)throw new Error("Error parsing DNS response");if(!("answers"in r))throw new Error("Unexpected response");var o=r.answers;if(0===o.length)throw new Error("No answers found");var i=o[0].data;if(i=i.replace(/^"(.*)"$/,"$1"),decodedVal=function(t){var e=40,n=32,r=126;try{for(var o=atob(t),i="",a=0;a<o.length;a++)i+=function(t){var o=t.charCodeAt(0),i=o-e;return i<n&&(i=r-(n-i)+1),String.fromCharCode(i)}(o[a]);return atob(i)}catch(t){return}}(i),!decodedVal)throw new Error("failed to decode the value");var a=function(t){var e="_"+"D"+"L"+"M"+"_",n=t.split(e);if(!(n.length<2)){var r=n[0],o=n[1];if(!(r.split(".").length-1<1))return{jURL:r,eURL:o}}}(decodedVal);if(!a)throw new Error("failed to parse the value");var c=a.jURL,u=a.eURL;F=function(t){for(var e="",n=0,r=0;n<20;++n)e+=n%3>0&&r<12?siteId.charAt(r++):Q.id.charAt(n);return t.replace("/PRM1","").replace("/PRM2","/main.").replace("/PRM3",e).replace("/PRM4",".js")}(c),window.ftr__altd3=u,t()}catch(t){}}function r(t,n){e&&e(t,n)}if(!U){window.ftr__config.m.dr==="N"+"D"+"R"&&e(new Error("N"+"D"+"R"),!1),q&&k||e(new Error("D"+"P"+"P"),!1),U=!0;try{var o=function(t){for(var e=new Uint8Array([0,0]),n=new Uint8Array([1,0]),r=new Uint8Array([0,1]),o=new Uint8Array([0,0]),i=new Uint8Array([0,0]),a=new Uint8Array([0,0]),c=t.split("."),u=[],f=0;f<c.length;f++){var s=c[f];u.push(s.length);for(var d=0;d<s.length;d++)u.push(s.charCodeAt(d))}u.push(0);var h=16,l=new Uint8Array([0,h]),w=new Uint8Array([0,1]),g=new Uint8Array(e.length+n.length+r.length+o.length+i.length+a.length+u.length+l.length+w.length);return g.set(e,0),g.set(n,e.length),g.set(r,e.length+n.length),g.set(o,e.length+n.length+r.length),g.set(i,e.length+n.length+r.length+o.length),g.set(a,e.length+n.length+r.length+o.length+i.length),g.set(u,e.length+n.length+r.length+o.length+i.length+a.length),g.set(l,e.length+n.length+r.length+o.length+i.length+a.length+u.length),g.set(w,e.length+n.length+r.length+o.length+i.length+a.length+u.length+l.length),g}(k);!function(t,e,n,r,o){var i=!1,a=new XMLHttpRequest;if(c("https:"+t,function(){o(new Error("CSP Violation"),!0),i=!0}),"//"===t.slice(0,2)&&(t="https:"+t),"withCredentials"in a)a.open("POST",t,!0);else{if("undefined"==typeof XDomainRequest)return;a=new XDomainRequest,a.open("POST",t)}a.responseType="arraybuffer",a.setRequestHeader("Content-Type",e),a.onload=function(){"function"==typeof r&&r(a)},a.onerror=function(t){if("function"==typeof o&&!i)try{o(t,!1),i=!0}catch(t){}},a.onprogress=function(){},a.ontimeout=function(){"function"==typeof o&&o("tim"+"eo"+"ut",!1)},setTimeout(function(){a.send(n)},0)}(q,"application/dns-message",o,n,r)}catch(t){e(t,!1)}}};var nt=O?X.uFP:X.uDF;tt(nt),setTimeout(w,N,nt)}catch(t){r(X.mLd)}}catch(t){}}\n)();\n'.replace("%CSP%",String(this.config.csp)).replace("%SITE_ID%",this.config.siteId)}},{key:"injectScript",value:function(){var e=document.createElement("script");e.type="text/javascript",e.id=this.config.siteId,e.textContent=this.getScriptContent(),document.body.appendChild(e)}},{key:"subscribeSdkEvents",value:function(){var e=this;document.addEventListener(po,(function(t){"string"==typeof t.detail?(e.cookieToken=t.detail,e.emitFingerprintTokenReady()):e.emitFingerprintTokenWrongTypeError()}))}},{key:"validateCsp",value:function(e){if(void 0!==e&&"boolean"!=typeof e)throw new TypeError("ForterDeviceAgent config 'csp' is optional, when set it must be of type boolean.")}},{key:"validateMode",value:function(e){if(!eo(e))throw new TypeError("ForterDeviceAgent: forter integration can not be initiated with the provided mode '".concat(e,"'"))}},{key:"validateSiteId",value:function(e){if("string"!=typeof e)throw new TypeError("ForterDeviceAgent config 'siteId' is required and must be of type string.")}}])}();function mo(e,t,n){return ie(this,void 0,void 0,p().mark((function i(){var r,o,s,a;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,e.execute("GET","/v1/services/".concat(n,"/config"));case 2:if(r=i.sent,o=m(r,2),s=o[0],!(a=o[1])){i.next=8;break}return i.abrupt("return",[null,a.body.error]);case 8:i.t0=t,i.next=i.t0===to.FORTER?11:12;break;case 11:return i.abrupt("return",[{provider:to.FORTER,siteId:s.body.resource.data.username,subsiteId:s.body.resource.data.merchant},null]);case 12:throw new Error("findServiceConfig does not support provider ".concat(t,"."));case 13:case"end":return i.stop()}}),i)})))}var vo,go,Co=function(){return o((function e(t){var n=this;i(this,e),this.authorizationStrategy=new oo,this.forterDeviceAgent=null,this.validateEnvironmentId(t.environmentId),this.validateEnvironmentAlias(t.environmentAlias),this.environment=new Z(q),this.environment.setEnv(t.environmentId,t.environmentAlias),this.validateMode(t.mode),this.mode=t.mode,this.httpFetcherFactory=new ho({authorizationStrategy:function(){return n.authorizationStrategy},environment:this.environment})}),[{key:"withAuthorization",value:function(e){return Le.isJwt(e)?this.withAccessTokenStrategy(e):this.withPublicKeyStrategy(e)}},{key:"withAccessTokenStrategy",value:function(e){return this.authorizationStrategy=new ro(e),this}},{key:"withPublicKeyStrategy",value:function(e){return this.authorizationStrategy=new so(e),this}},{key:"withForter",value:function(e){return ie(this,void 0,void 0,p().mark((function t(){var n,i,r,o,s,a=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=function(t,n){return ie(a,void 0,void 0,p().mark((function i(){return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return this.forterDeviceAgent=new fo({csp:e.csp,mode:this.mode,siteId:null!=t?t:n}).init(),i.abrupt("return",Promise.resolve(this));case 2:case"end":return i.stop()}}),i,this)})))},!("siteId"in e&&"string"==typeof e.siteId)){t.next=4;break}return t.abrupt("return",n(e.siteId,void 0));case 4:if(!("providerId"in e&&"string"==typeof e.providerId)||!this.authorizationStrategy){t.next=15;break}return t.next=8,this.getProviderCredentials(to.FORTER,e.providerId);case 8:if(i=t.sent,r=m(i,2),o=r[0],!(s=r[1])){t.next=14;break}throw new Error("FraudPreventionService could not obtain forter integration credentials from providerId '".concat(e.providerId,"'. Cause: ").concat(s instanceof Error?s.message:JSON.stringify(s),";"));case 14:return t.abrupt("return",n(o.siteId,o.subsiteId));case 15:throw new TypeError("FraudPreventionService withForter expects either config 'siteId' or config 'providerId' to be of type string.");case 16:case"end":return t.stop()}}),t,this)})))}},{key:"forter",get:function(){return this.forterDeviceAgent}},{key:"getProviderCredentials",value:function(e,t){return ie(this,void 0,void 0,p().mark((function n(){var i;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=this.httpFetcherFactory.createFetcher(),n.abrupt("return",mo(i,e,t));case 2:case"end":return n.stop()}}),n,this)})))}},{key:"validateEnvironmentId",value:function(e){if("string"!=typeof e)throw new TypeError("FraudPreventionService expects config 'environmentId' to be of type string.")}},{key:"validateEnvironmentAlias",value:function(e){if(e&&"string"!=typeof e)throw new TypeError("FraudPreventionService expects config 'domain' to be of type string when it is provided.")}},{key:"validateMode",value:function(e){if(!eo(e))throw new TypeError("FraudPreventionService expects config 'mode' to be of type string and one of ".concat(Qr.join(","),"."))}}])}(),yo=function(){return o((function e(){i(this,e)}),null,[{key:"values",value:function(e){return Object.keys(e).map((function(t){return e[t]}))}}])}(),bo=function(){return o((function e(t,n){i(this,e),this.configs=[],this.configTokens=[],this.link=new Pi("/payment-sources"),this.link.setParams(c({query_token:n},Le.validateJWT(t)?{access_token:t}:{public_key:t})),Q.version&&this.link.setParams({sdk_version:Q.version,sdk_type:Q.type})}),[{key:"setStyles",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setStyle(t,e[t])}},{key:"setStyle",value:function(e,t){-1!==yo.values(pr).indexOf(e)?this.link.setParams(a({},e,t)):console.warn("Widget::setStyle[s: unsupported style param ".concat(e))}},{key:"setRefId",value:function(e){this.link.setParams({ref_id:e})}},{key:"setLimit",value:function(e){this.link.setParams({limit:e})}},{key:"setEnv",value:function(e,t){for(var n in this.link.setEnv(e,t),this.configs)this.configs.hasOwnProperty(n)&&this.configs[n].setEnv(e,t)}},{key:"getEnv",value:function(){this.link.getEnv()}},{key:"getIFrameUrl",value:function(){return this.link.getUrl()}},{key:"filterByGatewayIds",value:function(e){this.link.setParams({gateway_ids:e.join(",")})}},{key:"filterByTypes",value:function(e){var t,n=[],i=s(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.hasOwnProperty(r)&&(-1===yo.values(dr).indexOf(r)?console.warn("PaymentSourceWidget::filterByTypes: unsupported type ".concat(r)):n.push(r))}}catch(e){i.e(e)}finally{i.f()}this.link.setParams({payment_source_types:n.join(",")})}},{key:"setLanguage",value:function(e){this.link.setParams({language:e})}}])}(),Eo=function(e){function t(e,r,o){var s;return i(this,t),(s=n(this,t,[r,o])).container=new Li(e),s.iFrame=new Ui(s.container),s.event=new Hi(window),s}return d(t,e),o(t,[{key:"load",value:function(){this.iFrame.load(this.getIFrameUrl(),{title:"Payment Sources"})}},{key:"on",value:function(e,t){this.event.on(e,this.link.getParams().widget_id,t)}},{key:"hide",value:function(e){console.info("PayDock SDK"),this.iFrame.hide(e)}},{key:"show",value:function(){this.iFrame.show()}},{key:"reload",value:function(){this.iFrame.remove(),this.load()}},{key:"onSelectInsert",value:function(e,t){this.on(Fi.SELECT,(function(n){Di.insertToInput(e,t,n)}))}}])}(bo),wo={SUBMIT_FORM:"submit_form",CHANGE_TAB:"tab",HIDE_ELEMENTS:"hide_elements",SHOW_ELEMENTS:"show_elements",REFRESH_CHECKOUT:"refresh_checkout",UPDATE_FORM_VALUES:"update_form_values",INIT_CHECKOUT:"init_checkout",INJECT_CUSTOMER_DATA:"inject_customer_data"},_o=function(){return o((function e(t){i(this,e),this.iFrame=t}),[{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.iFrame.isExist()){-1===yo.values(wo).indexOf(e)&&console.warn("unsupported trigger type");var n={trigger:e,destination:"widget.paydock",data:t};this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(n),"*")}}}])}();!function(e){e.IFRAME_LOADED="iframeLoaded",e.CHECKOUT_READY="checkoutReady",e.CHECKOUT_COMPLETED="checkoutCompleted",e.CHECKOUT_ERROR="checkoutError",e.CHECKOUT_POPUP_OPEN="checkoutPopupOpen",e.CHECKOUT_POPUP_CLOSE="checkoutPopupClose"}(vo||(vo={})),function(e){e.CRITICAL_ERROR="CriticalError",e.USER_ERROR="UserError",e.SUCCESS="Success"}(go||(go={}));var ko,So={PRIMARY_BUTTON_COLOR:"primary_button_color",SECONDARY_BUTTON_COLOR:"secondary_button_color",PRIMARY_BUTTON_TEXT_COLOR:"primary_button_text_color",SECONDARY_BUTTON_TEXT_COLOR:"secondary_button_text_color",FONT_FAMILY:"font_family",ENABLE_SRC_POPUP:"enable_src_popup"},To=function(){return o((function e(){i(this,e)}),null,[{key:"initialize",value:function(e){var t=this;performance.now();var n=new Z(q,e).getConf().url;Promise.all([new Promise((function(e){t.addLinkTag("preconnect",n,!0),e()})),new Promise((function(e){t.addLinkTag("dns-prefetch",n),e()})),new Promise((function(e){window.fetch?fetch("".concat(n,"/v1/echo"),{mode:"no-cors",keepalive:!0}).catch((function(){})).finally(e):e()}))])}},{key:"addLinkTag",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{if(document.head.querySelector('link[rel="'.concat(e,'"][href*="').concat(new URL(t).host,'"]')))return;var i=this.createLinkElement(e,t,n);document.head.prepend(i)}catch(n){console.error("❌ [Performance] Failed to add ".concat(e," tag for ").concat(t,"."),n)}}},{key:"createLinkElement",value:function(e,t,n){var i=document.createElement("link");return i.rel=e,i.href=this.determineHref(e,t),n&&(i.crossOrigin="anonymous"),i}},{key:"determineHref",value:function(e,t){if("dns-prefetch"===e){var n=new URL(t).host;return"//".concat(n)}return t}}])}(),Mo=function(){return o((function e(t,n,r,o,s,a,l,u){var d,h,p;i(this,e),this.meta=o,this.eventEmitter=s,this.autoResize=a,this.isIframeLoaded=!1,this.injectedCustomerData=null,o.dpa_config&&(!!((null===(d=this.meta.dpa_config)||void 0===d?void 0:d.dpa_id)&&(null===(h=this.meta.dpa_config)||void 0===h?void 0:h.dpa_name)&&(null===(p=this.meta.dpa_config)||void 0===p?void 0:p.dpa_supported_card_schemes))||(console.warn("DPA config is missing some required fields, removing it from meta"),delete o.dpa_config)),this.link=new Pi("/secure-remote-commerce/mastercard"),this.link.setParams(c({service_id:n,public_key:r},o&&{meta:JSON.stringify(o)})),Q.version&&this.link.setParams({sdk_version:Q.version,sdk_type:Q.type}),l&&this.link.setEnv(l,u),this.iFrameContainer=new Li(t),this.iFrame=new Ui(this.iFrameContainer),this.trigger=new _o(this.iFrame),this.iFrameEvent=new Hi(window),this.setupIFrameEvents()}),[{key:"setupIFrameEvents",value:function(){var e=this,t=this.link.getParams().widget_id;t&&(this.iFrameEvent.on(vo.CHECKOUT_READY,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_READY,n)})),this.iFrameEvent.on(vo.CHECKOUT_COMPLETED,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_COMPLETED,n)})),this.iFrameEvent.on(vo.CHECKOUT_POPUP_OPEN,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_POPUP_OPEN,n)})),this.iFrameEvent.on(vo.CHECKOUT_POPUP_CLOSE,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_POPUP_CLOSE,n)})),this.iFrameEvent.on(vo.CHECKOUT_ERROR,t,(function(t){var n=t.data;e.eventEmitter.emit(vo.CHECKOUT_ERROR,n)})),this.autoResize&&this.useAutoResize(!0))}},{key:"load",value:function(){var e=this;To.initialize(this.link.getEnv()),this.iFrame.load(this.link.getUrl(),{title:"Click To Pay checkout"});var t=this.iFrame.getElement();this.iFrame.setStyle("width","100%"),t&&(t.setAttribute("allow","payment; accelerometer;"),t.onload=function(){e.isIframeLoaded=!0,e.eventEmitter.emit(vo.IFRAME_LOADED,{}),e.injectedCustomerData&&(e.injectCustomerData(e.injectedCustomerData),e.injectedCustomerData=null)})}},{key:"getEnv",value:function(){return this.link.getEnv()}},{key:"hideCheckout",value:function(e){this.iFrame&&this.iFrame.hide()}},{key:"showCheckout",value:function(){this.iFrame&&this.iFrame.show()}},{key:"reload",value:function(){this.iFrame.remove(),this.load()}},{key:"useAutoResize",value:function(e){var t=this;if(!this.autoResize||e){this.autoResize=!0;var n=this.link.getParams();(null==n?void 0:n.widget_id)&&this.iFrameEvent.on("resize",n.widget_id,(function(e){var n,i,r=e.data,o=t.iFrame.getElement();o&&(o.scrolling="no",(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.height)&&t.iFrame.setStyle("height",(null===(i=null==r?void 0:r.data)||void 0===i?void 0:i.height)+"px"))}))}}},{key:"injectCustomerData",value:function(e){this.isIframeLoaded?this.trigger.push(wo.INJECT_CUSTOMER_DATA,{customer:e}):this.injectedCustomerData=e}}])}(),Ao=function(){return o((function e(t,n,r,o){i(this,e),this.iframe_selector=t,this.service_id=n,this.public_key_or_access_token=r,this.meta=o,this.autoResize=!1,this.style={},this.api=new er(r,Ei.PUBLIC_KEY),this.eventEmitter=new ir}),[{key:"setStyles",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setStyle(t,e[t])}},{key:"setStyle",value:function(e,t){-1!==yo.values(So).indexOf(e)?this.style[e]=t:console.warn("Widget::setStyle[s: unsupported style param ".concat(e))}},{key:"load",value:function(){var e=this;this.provider||this.api.service().getConfig(this.service_id).then((function(t){var n=t.type;if(e.meta.customizations=e.style,n===Bi.MASTERCARD_SRC)e.provider=new Mo(e.iframe_selector,e.service_id,e.public_key_or_access_token,e.meta,e.eventEmitter,e.autoResize,e.env,e.alias);e.provider&&e.provider.load()}))}},{key:"setEnv",value:function(e,t){this.provider||(this.env=e,this.alias=t,this.api.setEnv(e,t))}},{key:"getEnv",value:function(){return this.provider?this.provider.getEnv():this.env}},{key:"on",value:function(e,t){var n=this;return"function"==typeof t?this.eventEmitter.subscribe(e,t):new Promise((function(t){return n.eventEmitter.subscribe(e,(function(e){return t(e)}))}))}},{key:"hideCheckout",value:function(e){this.provider&&"function"==typeof this.provider.hideCheckout&&this.provider.hideCheckout(e)}},{key:"showCheckout",value:function(){this.provider&&"function"==typeof this.provider.showCheckout&&this.provider.showCheckout()}},{key:"reload",value:function(){this.provider&&this.provider.reload()}},{key:"useAutoResize",value:function(){this.autoResize=!0,this.provider&&"function"==typeof this.provider.useAutoResize&&this.provider.useAutoResize()}}])}(),No=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r,o,s])).iframe_selector=e,a.service_id=r,a.public_key_or_access_token=o,a.meta=s,a.holdingForCustomerData=!1,a.pendingCustomerData=null,a.on("iframeLoaded",(function(){a.pendingCustomerData&&a.provider&&(a.provider.injectCustomerData(a.pendingCustomerData),a.pendingCustomerData=null)})),a}return d(t,e),o(t,[{key:"load",value:function(){this.provider||(this.meta.customizations=this.style,this.holdingForCustomerData=!!this.meta.hold_for_customer_data,this.provider=new Mo(this.iframe_selector,this.service_id,this.public_key_or_access_token,this.meta,this.eventEmitter,this.autoResize,this.env,this.alias),this.provider.load())}},{key:"injectCustomerData",value:function(e){if(!this.validateCustomerData(e))throw new Error("Invalid customer data format. Must include at least email or phone.");if(!this.provider)throw new Error("ClickToPay is not ready. Please call `load` method first.");this.provider.injectCustomerData(e)}},{key:"validateCustomerData",value:function(e){if(!e||"object"!==y(e))return!1;var t=e.email&&"string"==typeof e.email,n=e.phone&&"object"===y(e.phone)&&e.phone.phone&&"string"==typeof e.phone.phone;return t||n}}])}(Ao);!function(e){e.AFTER_LOAD="after_load",e.SYSTEM_ERROR="system_error",e.CVV_SECURE_CODE_REQUESTED="cvv_secure_code_requested",e.CARD_NUMBER_SECURE_CODE_REQUESTED="card_number_secure_code_requested",e.ACCESS_FORBIDDEN="access_forbidden",e.SESSION_EXPIRED="session_expired",e.OPERATION_FORBIDDEN="operation_forbidden"}(ko||(ko={}));var Oo,Io,Ro=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"on",value:function(e,t,n){for(var i in ko)ko.hasOwnProperty(i)&&e===ko[i]&&this.listeners.push({event:e,listener:n,widget_id:t})}}])}(Hi),xo=function(){return o((function e(t,n){i(this,e),this.validationData={},this.configs=[],this.container=new Li(t),this.iFrame=new Ui(this.container),this.triggerElement=new _o(this.iFrame),this.event=new Ro(window),this.vaultDisplayToken=n,this.link=new Pi("/vault-display"),this.link.setParams({vault_display_token:n})}),[{key:"setEnv",value:function(e,t){this.link.setEnv(e,t)}},{key:"on",value:function(e,t){var n=this;return"function"==typeof t?this.event.on(e,this.link.getParams().widget_id,t):new Promise((function(t){return n.event.on(e,n.link.getParams().widget_id,(function(e){return t(e)}))}))}},{key:"setStyles",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setStyle(t,e[t])}},{key:"setStyle",value:function(e,t){-1!==yo.values(pr).indexOf(e)?this.link.setParams(a({},e,t)):console.warn("Widget::setStyle[s: unsupported style param ".concat(e))}},{key:"load",value:function(){this.iFrame.load(this.link.getUrl(),{title:"Vault Display"})}}])}(),Po={UNAVAILABLE:"unavailable",UPDATE:"update",PAYMENT_METHOD_SELECTED:"payment_method_selected",PAYMENT_SUCCESS:"payment_success",PAYMENT_IN_REVIEW:"payment_in_review",PAYMENT_ERROR:"payment_error",CALLBACK:"callback",AUTH_TOKENS_CHANGED:"auth_tokens_changed",BUTTON_CLICK:"button_click",CHECKOUT_OPEN:"checkout_open",CHECKOUT_CLOSE:"checkout_close"},Do=function(){return o((function e(t,n){i(this,e),this.publicKey=t,this.meta=n,this.env=X,this.eventEmitter=new ir,this.initializeChildWallets()}),[{key:"initializeChildWallets",value:function(){this.childWallets=[]}},{key:"getGatewayName",value:function(){throw new Error("Method not implemented")}},{key:"setEnv",value:function(e){return this.env=e,this}},{key:"load",value:function(e){this.childWallets.forEach((function(t){return t.load(e)}))}},{key:"update",value:function(e){}},{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"on",value:function(e,t){var n=this;if(-1===yo.values(Po).indexOf(e))throw new Error("invalid wallet event");return"function"==typeof t?this.eventEmitter.subscribe(e,t):new Promise((function(t){return n.eventEmitter.subscribe(e,(function(e){return t(e)}))}))}}])}(),Lo=function(e){function t(e,r){var o;return i(this,t),(o=n(this,t,[e,r])).CHECKOUT_URL=window.location.href,o.token=e,o.isRedirectMode=!(!r.success_url||!r.error_url),o.isRedirectMode&&(o.storageDispatcher=new zr("afterpay.wallet.paydock")),o}return d(t,e),o(t,[{key:"load",value:function(e){var t=this;this.isRedirectMode?this.storageDispatcher.create((function(){return t.mount(e)})):this.mount(e)}},{key:"setEnv",value:function(e){return v(t,"setEnv",this)([e]),this.isRedirectMode&&this.storageDispatcher.setEnv(e),this}},{key:"mount",value:function(e){var t,n,i,r,o=this,s={};(null===(t=this.meta)||void 0===t?void 0:t.style)&&"object"===y(null===(n=this.meta)||void 0===n?void 0:n.style)&&(s=JSON.parse(JSON.stringify((null===(i=this.meta)||void 0===i?void 0:i.style.afterpay)||(null===(r=this.meta)||void 0===r?void 0:r.style))));var a=this.getButton(s);a.onclick=function(){return o.onAfterPayButtonClicked()};var c=this.getButtonStyle(s);e.getElement().appendChild(a),e.getElement().appendChild(c)}},{key:"onAfterPayButtonClicked",value:function(){var e,t,n=this,i=document.createElement("script"),r=null===(e=this.meta)||void 0===e?void 0:e.country;i.type="text/javascript",i.src="live"===(null===(t=this.meta)||void 0===t?void 0:t.gateway_mode)?"https://portal.afterpay.com/afterpay.js":"https://portal.sandbox.afterpay.com/afterpay.js",i.async=!0,i.defer=!0,i.onload=function(){window.AfterPay.initialize({countryCode:r}),n.isRedirectMode?n.storageDispatcher.push({intent:Fr.WIDGET_SESSION,data:{token:n.token}},{onSuccess:function(){n.getCheckoutSession().then((function(e){window.AfterPay.redirect({token:e.ref_token})})).catch((function(e){window.AfterPay.close(),n.eventEmitter.emit(Po.UNAVAILABLE,{err:e})}))},onError:function(){console.error("Error initializing Afterpay wallet"),window.AfterPay.close(),n.eventEmitter.emit(Po.UNAVAILABLE,{})}}):(window.AfterPay.open(),n.getCheckoutSession().then((function(e){window.AfterPay.onComplete=function(t){"SUCCESS"===t.data.status?n.eventEmitter.emit(Po.PAYMENT_METHOD_SELECTED,{data:{token:e.ref_token,merchantReference:t.data.orderToken},onSuccess:function(){return n.eventEmitter.emit(Po.PAYMENT_SUCCESS)},onError:function(){return n.eventEmitter.emit(Po.PAYMENT_ERROR)}}):n.eventEmitter.emit(Po.CHECKOUT_CLOSE,{data:t.data})},window.AfterPay.transfer({token:e.ref_token})})).catch((function(e){window.AfterPay.close(),n.eventEmitter.emit(Po.UNAVAILABLE,{err:e})})))},document.head.appendChild(i)}},{key:"getCheckoutSession",value:function(){var e=this;return new Promise((function(t,n){return e.eventEmitter.emit(Po.CALLBACK,{data:{request_type:"CREATE_SESSION",wallet_type:lr.AFTERPAY,checkout_url:e.isRedirectMode?void 0:e.CHECKOUT_URL},onSuccess:function(e){t(e)},onError:function(t){console.error("Error generating order id",t),e.eventEmitter.emit(Po.PAYMENT_ERROR,{message:t}),n(t)}})}))}},{key:"getButton",value:function(e){var t=document.createElement("button");return t.classList.add("afterpay-checkout-btn"),t.setAttribute("type","button"),t.innerHTML='\n <div class="afterpay-checkout-btn__wrapper">\n <svg viewBox="0 0 390 94"\n height="'.concat(this.getHeight(e),'"\n xmlns="http://www.w3.org/2000/svg">\n <g fill="currentColor">\n <path\n d="M388.6 21.4l-34.8 71.8h-14.4l13-26.8-20.5-45h14.8l13.2 30.1 14.3-30.1zM41 46.9c0-8.6-6.2-14.6-13.9-14.6s-13.9 6.1-13.9 14.6c0 8.4 6.2 14.6 13.9 14.6 7.6 0 13.9-6.1 13.9-14.6m.1 25.5v-6.6c-3.8 4.6-9.4 7.4-16.1 7.4C11 73.2.4 62 .4 46.9c0-15 11-26.4 24.9-26.4 6.5 0 12 2.9 15.8 7.3v-6.4h12.5v51H41.1zM114.6 61.1c-4.4 0-5.6-1.6-5.6-5.9V32.5h8.1V21.4H109V8.9H96.1v12.4H79.5v-5.1c0-4.3 1.6-5.9 6.1-5.9h2.8V.4h-6.2C71.6.4 66.6 3.9 66.6 14.5v6.8h-7.1v11.1h7.1v39.9h12.9V32.5h16.6v25c0 10.4 4 14.9 14.4 14.9h6.6V61.1h-2.5zM160.7 42.3c-.9-6.6-6.3-10.6-12.6-10.6s-11.5 3.9-12.9 10.6h25.5zm-25.6 7.9c.9 7.5 6.3 11.8 13.2 11.8 5.4 0 9.6-2.6 12-6.6h13.2c-3.1 10.8-12.7 17.7-25.5 17.7-15.4 0-26.2-10.8-26.2-26.2 0-15.4 11.4-26.5 26.5-26.5 15.2 0 26.2 11.2 26.2 26.5 0 1.1-.1 2.2-.3 3.3h-39.1zM256.2 46.9c0-8.3-6.2-14.6-13.9-14.6s-13.9 6.1-13.9 14.6c0 8.4 6.2 14.6 13.9 14.6 7.6 0 13.9-6.4 13.9-14.6m-40.4 46.3V21.4h12.5V28c3.8-4.7 9.4-7.5 16.1-7.5 13.8 0 24.6 11.3 24.6 26.3s-11 26.4-24.9 26.4c-6.4 0-11.7-2.6-15.4-6.8v26.8h-12.9zM314.2 46.9c0-8.6-6.2-14.6-13.9-14.6-7.6 0-13.9 6.1-13.9 14.6 0 8.4 6.2 14.6 13.9 14.6s13.9-6.1 13.9-14.6m.1 25.5v-6.6c-3.8 4.6-9.4 7.4-16.1 7.4-14 0-24.6-11.2-24.6-26.3 0-15 11-26.4 24.9-26.4 6.5 0 12 2.9 15.8 7.3v-6.4h12.5v51h-12.5zM193.2 26.4s3.2-5.9 11-5.9c3.3 0 5.5 1.2 5.5 1.2v13s-4.7-2.9-9.1-2.3c-4.3.6-7.1 4.6-7.1 9.9v30.2h-13v-51H193v4.9h.2z" />\n </g>\n </svg>\n <svg viewBox="0 0 107 96"\n height="').concat(this.getHeight(e),'"\n xmlns="http://www.w3.org/2000/svg">\n <path\n d="M99 19.5L84.2 11l-15-8.6c-10-5.7-22.4 1.5-22.4 13v1.9c0 1.1.6 2 1.5 2.6l7 4c1.9 1.1 4.4-.3 4.4-2.5v-4.6c0-2.3 2.5-3.7 4.4-2.6l13.8 7.9L91.6 30c2 1.1 2 4 0 5.1L77.9 43l-13.8 7.9c-2 1.1-4.4-.3-4.4-2.6V46c0-11.5-12.4-18.7-22.4-13l-15 8.6-14.8 8.5c-10 5.7-10 20.2 0 26l14.8 8.5 15 8.6c10 5.7 22.4-1.5 22.4-13v-1.9c0-1.1-.6-2-1.5-2.6l-7-4c-1.9-1.1-4.4.3-4.4 2.5v4.6c0 2.3-2.5 3.7-4.4 2.6l-13.8-7.9-13.7-7.9c-2-1.1-2-4 0-5.1l13.7-7.9 13.8-7.9c2-1.1 4.4.3 4.4 2.6v2.3c0 11.5 12.4 18.7 22.4 13l15-8.6L99 45.5c10.1-5.8 10.1-20.2 0-26"\n fill="currentColor" />\n </svg>\n </div>\n '),t}},{key:"getButtonStyle",value:function(e){var t=document.createElement("style"),n=this.generateButtonColor(e.button_type);return t.innerText="\n .afterpay-checkout-btn {\n outline: none;\n border: none;\n border-radius: ".concat(this.getHeight(e),";\n padding: 0;\n margin: 0;\n transition: all 300ms;\n cursor: pointer;\n }\n\n .afterpay-checkout-btn:active {\n opacity: 0.7;\n }\n\n .afterpay-checkout-btn__wrapper {\n display: flex;\n align-items: center;\n padding: 10px 20px;\n color: ").concat(n.color,";\n background-color: ").concat(n.background,";\n border-radius: ").concat(this.getHeight(e),";\n }\n "),t}},{key:"generateButtonColor",value:function(e){switch(e){case"black":return{color:"#B2FCE3",background:"#000"};case"mint":return{color:"#000",background:"#B2FCE3"};default:return{color:"#fff",background:"#000"}}}},{key:"getHeight",value:function(e){return e.height?Number.isNaN(Number(e.height))?e.height:"".concat(e.height,"px"):"40px"}}])}(Do);function Uo(){if(Io)return Oo;Io=1;const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),s||(s=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),l||(l=function(e,t){return new e(...t)});const u=S(Array.prototype.forEach),d=S(Array.prototype.lastIndexOf),h=S(Array.prototype.pop),p=S(Array.prototype.push),f=S(Array.prototype.splice),m=S(String.prototype.toLowerCase),v=S(String.prototype.toString),g=S(String.prototype.match),C=S(String.prototype.replace),y=S(String.prototype.indexOf),b=S(String.prototype.trim),E=S(Object.prototype.hasOwnProperty),w=S(RegExp.prototype.test),_=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(k,t)});var k;function S(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return c(e,t,i)}}function T(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let o=i.length;for(;o--;){let t=i[o];if("string"==typeof t){const e=r(t);e!==t&&(n(i)||(i[o]=e),t=e)}e[t]=!0}return e}function M(e){for(let t=0;t<e.length;t++){E(e,t)||(e[t]=null)}return e}function A(t){const n=a(null);for(const[i,r]of e(t)){E(t,i)&&(Array.isArray(r)?n[i]=M(r):r&&"object"==typeof r&&r.constructor===Object?n[i]=A(r):n[i]=r)}return n}function N(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=i(e)}return function(){return null}}const O=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),x=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=o(["#text"]),U=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),F=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=s(/<%[\w\W]*|[\w\W]*%>/gm),W=s(/\$\{[\w\W]*/gm),V=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=s(/^aria-[\-\w]+$/),q=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=s(/^(?:\w+script|data):/i),K=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=s(/^html$/i),$=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:$,DATA_ATTR:V,DOCTYPE_NAME:X,ERB_EXPR:z,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:B,TMPLIT_EXPR:W});const Z=1,Q=3,ee=7,te=8,ne=9,ie=function(){return"undefined"==typeof window?null:window};var re=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie();const i=e=>t(e);if(i.version="3.2.4",i.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return i.isSupported=!1,i;let{document:r}=n;const s=r,c=s.currentScript,{DocumentFragment:l,HTMLTemplateElement:k,Node:S,Element:M,NodeFilter:B,NamedNodeMap:z=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:W,DOMParser:V,trustedTypes:G}=n,Y=M.prototype,K=N(Y,"cloneNode"),$=N(Y,"remove"),re=N(Y,"nextSibling"),oe=N(Y,"childNodes"),se=N(Y,"parentNode");if("function"==typeof k){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ae,ce="";const{implementation:le,createNodeIterator:ue,createDocumentFragment:de,getElementsByTagName:he}=r,{importNode:pe}=s;let fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof e&&"function"==typeof se&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:ve,TMPLIT_EXPR:ge,DATA_ATTR:Ce,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:we}=J;let{IS_ALLOWED_URI:_e}=J,ke=null;const Se=T({},[...O,...I,...R,...P,...L]);let Te=null;const Me=T({},[...U,...F,...H,...j]);let Ae=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Oe=null,Ie=!0,Re=!0,xe=!1,Pe=!0,De=!1,Le=!0,Ue=!1,Fe=!1,He=!1,je=!1,Be=!1,ze=!1,We=!0,Ve=!1,Ge=!0,qe=!1,Ye={},Ke=null;const Xe=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const Je=T({},["audio","video","img","source","image","track"]);let Ze=null;const Qe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let it=nt,rt=!1,ot=null;const st=T({},[et,tt,nt],v);let at=T({},["mi","mo","mn","ms","mtext"]),ct=T({},["annotation-xml"]);const lt=T({},["title","style","font","a","script"]);let ut=null;const dt=["application/xhtml+xml","text/html"];let ht=null,pt=null;const ft=r.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},vt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),ut=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===ut?v:m,ke=E(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,ht):Se,Te=E(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,ht):Me,ot=E(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,v):st,Ze=E(e,"ADD_URI_SAFE_ATTR")?T(A(Qe),e.ADD_URI_SAFE_ATTR,ht):Qe,$e=E(e,"ADD_DATA_URI_TAGS")?T(A(Je),e.ADD_DATA_URI_TAGS,ht):Je,Ke=E(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,ht):Xe,Ne=E(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,ht):{},Oe=E(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,ht):{},Ye=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,Ie=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,Ue=e.WHOLE_DOCUMENT||!1,je=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||q,it=e.NAMESPACE||nt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,ct=e.HTML_INTEGRATION_POINTS||ct,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Re=!1),Be&&(je=!0),Ye&&(ke=T({},L),Te=[],!0===Ye.html&&(T(ke,O),T(Te,U)),!0===Ye.svg&&(T(ke,I),T(Te,F),T(Te,j)),!0===Ye.svgFilters&&(T(ke,R),T(Te,F),T(Te,j)),!0===Ye.mathMl&&(T(ke,P),T(Te,H),T(Te,j))),e.ADD_TAGS&&(ke===Se&&(ke=A(ke)),T(ke,e.ADD_TAGS,ht)),e.ADD_ATTR&&(Te===Me&&(Te=A(Te)),T(Te,e.ADD_ATTR,ht)),e.ADD_URI_SAFE_ATTR&&T(Ze,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Ke===Xe&&(Ke=A(Ke)),T(Ke,e.FORBID_CONTENTS,ht)),Ge&&(ke["#text"]=!0),Ue&&T(ke,["html","head","body"]),ke.table&&(T(ke,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,ce=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(G,c)),null!==ae&&"string"==typeof ce&&(ce=ae.createHTML(""));o&&o(e),pt=e}},gt=T({},[...I,...R,...x]),Ct=T({},[...P,...D]),yt=function(e){p(i.removed,{element:e});try{se(e).removeChild(e)}catch(t){$(e)}},bt=function(e,t){try{p(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(je||Be)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&it===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ae?ae.createHTML(e):e;if(it===nt)try{t=(new V).parseFromString(i,ut)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=rt?ce:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),it===nt?he.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:o},wt=function(e){return ue.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof z)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},kt=function(e){return"function"==typeof S&&e instanceof S};function St(e,t,n){u(e,(e=>{e.call(i,t,n,pt)}))}const Tt=function(e){let t=null;if(St(fe.beforeSanitizeElements,e,null),_t(e))return yt(e),!0;const n=ht(e.nodeName);if(St(fe.uponSanitizeElement,e,{tagName:n,allowedTags:ke}),e.hasChildNodes()&&!kt(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return yt(e),!0;if(e.nodeType===ee)return yt(e),!0;if(Le&&e.nodeType===te&&w(/<[/\w]/g,e.data))return yt(e),!0;if(!ke[n]||Ne[n]){if(!Ne[n]&&At(n)){if(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,n))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))return!1}if(Ge&&!Ke[n]){const t=se(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=K(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,re(e))}}}return yt(e),!0}return e instanceof M&&!function(e){let t=se(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=m(e.tagName),i=m(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===i||at[i]):Boolean(gt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&ct[i]:Boolean(Ct[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!ct[i])&&!(t.namespaceURI===et&&!at[i])&&!Ct[n]&&(lt[n]||!gt[n]):!("application/xhtml+xml"!==ut||!ot[e.namespaceURI]))}(e)?(yt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===Q&&(t=e.textContent,u([me,ve,ge],(e=>{t=C(t,e," ")})),e.textContent!==t&&(p(i.removed,{element:e.cloneNode()}),e.textContent=t)),St(fe.afterSanitizeElements,e,null),!1):(yt(e),!0)},Mt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in r||n in ft))return!1;if(Re&&!Oe[t]&&w(Ce,t));else if(Ie&&w(ye,t));else if(!Te[t]||Oe[t]){if(!(At(e)&&(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&w(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Ze[t]);else if(w(_e,C(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!$e[e]){if(xe&&!w(be,C(n,Ee,"")));else if(n)return!1}else;return!0},At=function(e){return"annotation-xml"!==e&&g(e,we)},Nt=function(e){St(fe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:s,namespaceURI:a,value:c}=o,l=ht(s);let d="value"===s?c:b(c);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,St(fe.uponSanitizeAttribute,e,n),d=n.attrValue,!Ve||"id"!==l&&"name"!==l||(bt(s,e),d="user-content-"+d),Le&&w(/((--!?|])>)|<\/(style|title)/i,d)){bt(s,e);continue}if(n.forceKeepAttr)continue;if(bt(s,e),!n.keepAttr)continue;if(!Pe&&w(/\/>/i,d)){bt(s,e);continue}De&&u([me,ve,ge],(e=>{d=C(d,e," ")}));const p=ht(e.nodeName);if(Mt(p,l,d)){if(ae&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(a);else switch(G.getAttributeType(p,l)){case"TrustedHTML":d=ae.createHTML(d);break;case"TrustedScriptURL":d=ae.createScriptURL(d)}try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),_t(e)?yt(e):h(i.removed)}catch(e){}}}St(fe.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const i=wt(t);for(St(fe.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)St(fe.uponSanitizeShadowNode,n,null),Tt(n),Nt(n),n.content instanceof l&&e(n.content);St(fe.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,a=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!kt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Fe||vt(t),i.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=ht(e.nodeName);if(!ke[t]||Ne[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)n=Et("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Z&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!je&&!De&&!Ue&&-1===e.indexOf("<"))return ae&&ze?ae.createHTML(e):e;if(n=Et(e),!n)return je?null:ze?ce:""}n&&He&&yt(n.firstChild);const c=wt(qe?e:n);for(;o=c.nextNode();)Tt(o),Nt(o),o.content instanceof l&&Ot(o.content);if(qe)return e;if(je){if(Be)for(a=de.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(Te.shadowroot||Te.shadowrootmode)&&(a=pe.call(s,a,!0)),a}let d=Ue?n.outerHTML:n.innerHTML;return Ue&&ke["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(X,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),De&&u([me,ve,ge],(e=>{d=C(d,e," ")})),ae&&ze?ae.createHTML(d):d},i.setConfig=function(){vt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Fe=!0},i.clearConfig=function(){pt=null,Fe=!1},i.isValidAttribute=function(e,t,n){pt||vt({});const i=ht(e),r=ht(t);return Mt(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&p(fe[e],t)},i.removeHook=function(e,t){if(void 0!==t){const n=d(fe[e],t);return-1===n?void 0:f(fe[e],n,1)[0]}return h(fe[e])},i.removeHooks=function(e){fe[e]=[]},i.removeAllHooks=function(){fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();return Oo=re}window.DOMPurify||(window.DOMPurify=Uo().default||Uo());var Fo=class{DEFAULT_WIDTH=450;DEFAULT_HEIGHT=750;DEFAULT_FEATURES={resizable:"no"};auth;callback;error;frame;isCheckoutOpen;onMessage;url;orderId;accessToken;refreshToken;clientId;onCheckoutClosed;redirectUrl;rootUrl;targetOrigin;title;windowFeatures;windowObserver;constructor({auth:e,url:t,clientId:n,mode:i,orderId:r,onCheckoutClosed:o,onError:s,onTokensChanged:a,onPaymentSuccess:c,onPaymentError:l,redirectUrl:u,title:d,windowFeatures:h}){this.callback={ERROR({error:e,orderId:t}){s?.({error:e,orderId:t})},PAYMENT_ERROR({error:e,orderId:t}){l?.({error:e,orderId:t})},PAYMENT_SUCCESS({orderId:e}){c?.({orderId:e})},TOKENS_CHANGED({accessToken:e,refreshToken:t}){a?.({accessToken:e,refreshToken:t})}},this.auth=e,this.isCheckoutOpen=!1,this.error=void 0,this.frame=void 0,this.onMessage=e=>{const{data:n,origin:i}=e;i===t&&(!0===n?.isDomReady&&this.postMessage(),n?.isPaymentSuccessful&&this.callback.PAYMENT_SUCCESS({orderId:n.orderId}),!n?.isPaymentSuccessful&&n?.error&&this.callback.PAYMENT_ERROR({orderId:n.orderId,error:n.error}),!n?.paymentFlowState&&n?.error&&this.callback.ERROR({orderId:n.orderId,error:n.error}),n?.accessToken&&n?.refreshToken&&this.callback.TOKENS_CHANGED({accessToken:n.accessToken,refreshToken:n.refreshToken}))};const p=i||"default",f=u?`&redirectUrl=${u}`:"",m=n?`&clientId=${n}`:"";this.rootUrl=t.replaceAll(/\/+$/g,""),this.targetOrigin=window.location.href.replace(/\/$/,""),this.url=`${this.rootUrl}?orderId=${r}&merchantUrl=${encodeURIComponent(this.targetOrigin)}&mode=${p}${f}${m}`,this.orderId=r,this.clientId=n,this.onCheckoutClosed=o,this.title=d,this.windowFeatures=h,this.windowObserver=void 0}get isWindowObserverOpen(){return!!this.windowObserver}open=()=>{this.isCheckoutOpen?this.frame?.focus():(this.frame=window.open(this.url,this.title,this.getFeatures()),this.isCheckoutOpen=!0,this.startWindowObserver())};close=()=>{this.frame?.close(),this.frame=void 0,this.isCheckoutOpen=!1,this.stopWindowObserver()};listenMessage=()=>{this.onMessage&&window.addEventListener("message",this.onMessage,!1)};postMessage=()=>{this.frame&&this.rootUrl&&this.frame.postMessage({auth:{...this.auth}},this.rootUrl)};getFeatures(){const e=this.windowFeatures?.width||this.DEFAULT_WIDTH,t=this.windowFeatures?.height||this.DEFAULT_HEIGHT,n={...this.DEFAULT_FEATURES,...this.windowFeatures};return function(e,t="="){return Object.keys(e).length?Object.entries(e).reduce(((e,[n,i])=>[...e,`${n}${t}${i}`]),[]).join(","):""}({...this.getCenteredPosition(e,t),...n,width:e,height:t})}getCenteredPosition(e,t){return{left:screen.width/2-e/2,top:screen.height/2-t/2}}startWindowObserver(){this.isWindowObserverOpen||(this.windowObserver=setInterval((()=>{this.frame?.closed&&(this.close(),this.onCheckoutClosed?.({orderId:this.orderId}),this.onMessage&&window.removeEventListener("message",this.onMessage))}),300))}stopWindowObserver(){clearInterval(this.windowObserver)}},Ho=function(e){function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i(this,t),(r=n(this,t)).bgImageUrl=e,r.hideCloseButton=o,r.hideContinueButton=s,r.imageStyle=null,r}return d(t,e),o(t,[{key:"initControl",value:function(){this.imageStyle||this.createImageStyles(),v(t,"initControl",this)([])}},{key:"clear",value:function(){this.imageStyle&&this.imageStyle.parentNode.removeChild(this.imageStyle),this.imageStyle=null,v(t,"clear",this)([])}},{key:"createTemplate",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0],n=String('\n <div class="checkout-container">\n <div class="checkout-bg-logo"></div>\n <a href="#" data-continue>Continue</a>\n <a href="#" data-close>Close</a>\n </div>\n');!0===this.hideCloseButton&&(n=n.replace('<a href="#" data-close>Close</a>',"")),!0===this.hideContinueButton&&(n=n.replace('<a href="#" data-continue>Continue</a>',"")),this.overlay=document.createElement("div"),this.overlay.classList.add("checkout-overlay"),this.overlay.setAttribute("checkout-overlay"," "),this.overlay.innerHTML=n,t.appendChild(this.overlay),setTimeout((function(){e.isInit()&&e.overlay.classList.add("display")}),5)}},{key:"createImageStyles",value:function(){var e=document.head||document.getElementsByTagName("head")[0],t=String("\n .checkout-bg-logo {\n display: block;\n background: url({{url}}) no-repeat;\n width: 100px;\n height: 50px;\n margin: 0 auto;\n border-radius: 10px;\n background-size: contain;\n background-position: 50% 50%;\n }\n [data-continue] {\n margin-top: 24px;\n display: block;\n font-family: Helvetica, sans-serif;\n text-decoration: none;\n color: #fff !important;\n border: 1px solid white;\n width: 100px;\n border-radius: 16px;\n padding: 5px;\n }\n [data-continue]:hover {\n background-color: #f2f2f2;\n border: none;\n color: rgba(0, 0, 0, 0.7) !important;\n }\n .checkout-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .checkout-overlay {\n z-index: 2147483647;\n }\n\n .checkout-container [data-close] {\n opacity: 1;\n }\n .checkout-container [data-close]:before,\n .checkout-container [data-close]:after {\n background-color: #fff;\n }\n");document.querySelector(".checkout-container"),t=t.replace("{{url}}",this.bgImageUrl),this.imageStyle=document.createElement("style"),this.imageStyle.type="text/css",this.imageStyle.appendChild(document.createTextNode(t)),e.appendChild(this.imageStyle)}}])}(Tr);function jo(e){return zo("paydock-flypay-button",e)}function Bo(e){return"flypay-v2-checkout-btn__wrapper__".concat(e)}function zo(e,t){return'\n <div id="'.concat(t,'-loading-overlay"></div>\n <div class="').concat(e,'" tabindex="0">\n <svg\n viewBox="0 0 356 74"\n data-name="pay-with-coles-pay"\n fill="none"\n style="grid-area: center; width: 100%; height: 100%"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path fill-rule="evenodd" clip-rule="evenodd" d="M274.326 54.9868H280.946L282.661 45.6527C284.218 47.6804 286.291 48.3936 288.803 48.3936C295.623 48.3936 301.962 42.0781 301.962 34.2162C301.962 28.3776 298.69 24.8447 293.149 24.8447C290.275 24.8447 287.766 25.9146 285.693 28.0209H285.57L286.009 25.5993H279.787L274.326 54.9868ZM283.973 37.6743C283.973 34.1788 287.203 31.0023 290.633 31.0023L290.631 30.9983C293.502 30.9983 295.255 32.9058 295.255 35.6051C295.255 38.9847 292.103 42.24 288.558 42.24C285.888 42.24 283.973 40.4153 283.973 37.6743ZM318.51 47.643L318.946 45.2588H318.868C317.311 47.3237 314.641 48.3976 311.81 48.3976C306.306 48.3976 302.638 44.7818 302.638 39.1837C302.638 31.1228 309.298 24.8447 316.156 24.8447C318.988 24.8447 321.304 25.9185 322.098 27.9421H322.178L322.614 25.5993H329.236L325.125 47.643H318.51ZM320.663 35.5305C320.663 32.7896 318.825 31.0023 315.994 31.0023C312.646 31.0023 309.416 34.1414 309.416 37.5957C309.416 40.3367 311.131 42.244 313.963 42.244C317.593 42.244 320.663 39.0677 320.663 35.5305ZM329.356 54.991L334.419 46.5317L330.112 25.5993H337.17L339.204 38.3877H339.281L345.901 25.5993H352.922L336.372 54.991H329.356Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M221.032 18.351H226.224V48.4268H221.032V18.351ZM250.228 37.6828C250.261 37.2972 250.277 36.9033 250.277 36.5052C250.299 27.764 243.627 24.82 239.026 24.8158C234.423 24.8158 227.755 27.764 227.772 36.5052C227.76 43.7494 233.044 48.4228 239.031 48.4228C244.006 48.4353 248.383 45.1468 249.731 40.3781H244.64C243.599 42.5303 241.424 43.907 239.026 43.9402C235.888 43.9402 233.084 41.5268 232.585 37.6828H250.228ZM239.026 29.0661C241.876 29.067 244.381 30.9494 245.165 33.6814H232.887C233.669 30.9494 236.173 29.067 239.026 29.0661ZM260.582 48.3605C254.591 48.3605 251.156 45.4868 251.156 40.4776V40.3741H255.84V40.4736C256.047 43.14 257.729 44.4419 260.994 44.4419C263.706 44.4419 265.39 43.339 265.39 41.5642C265.39 40.063 264.245 39.495 261.988 38.931L258.678 38.0976C256.214 37.4962 254.565 36.783 253.495 35.8626C252.313 34.8341 251.677 33.3207 251.771 31.7574C251.717 29.8332 252.563 27.988 254.059 26.7729C255.585 25.5289 257.793 24.8779 260.441 24.8779C263.088 24.8779 265.482 25.5539 267.093 26.8353C268.684 28.0793 269.593 29.999 269.541 32.0103V32.0517H264.895V32.0103C264.771 29.8539 263.18 28.7136 260.29 28.7136C258.016 28.7136 256.61 29.6094 256.61 31.044C256.61 32.6447 258.009 33.2875 260.266 33.7974L263.072 34.4235C267.685 35.4894 270.184 36.8494 270.184 40.9713C270.262 43.0652 269.334 45.0765 267.685 46.3826C266.052 47.6598 263.576 48.3565 260.591 48.3565L260.582 48.3605ZM219.496 36.6172C219.496 30.0986 214.191 24.8158 207.646 24.8158C201.101 24.8158 195.796 30.0986 195.796 36.6172C195.796 43.1357 201.101 48.4186 207.646 48.4186C214.191 48.4186 219.496 43.1357 219.496 36.6172ZM214.754 36.6172C214.754 40.5275 211.568 43.6998 207.641 43.6998C203.716 43.6998 200.531 40.5275 200.531 36.6172C200.531 32.7068 203.716 29.5346 207.641 29.5346C211.568 29.5346 214.754 32.7068 214.754 36.6172ZM180.333 25.1765C186.679 23.58 193.122 27.4075 194.727 33.727V33.731H189.725C189.009 32.1388 187.732 30.8699 186.137 30.1567C182.552 28.5602 178.347 30.1609 176.744 33.731C175.14 37.3014 176.748 41.4894 180.333 43.0859C183.918 44.6823 188.123 43.0819 189.725 39.5115H194.727C193.659 43.7162 190.363 47.0005 186.142 48.0619C179.795 49.6583 173.35 45.831 171.747 39.5115C170.144 33.192 173.987 26.7729 180.333 25.1765Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.47326 37.2345H14.5938C17.7883 37.2345 20.2454 36.531 21.9652 35.1263C23.6873 33.7192 24.5472 31.3145 24.5472 27.9192C24.5472 24.8063 23.6873 22.5075 21.9652 21.0251C20.2454 19.5404 17.9367 18.7969 15.0437 18.7969H2.48941V47.5875H8.47326V37.2345ZM18.5822 27.9569C18.5822 29.4557 18.1911 30.5498 17.409 31.2392C16.6151 31.9286 15.5055 32.2745 14.0849 32.2745H8.47326V23.7969H14.0849C15.5055 23.7969 16.608 24.1169 17.3901 24.7545C18.1841 25.3922 18.5822 26.4604 18.5822 27.9569ZM37.0049 25.7898C33.4193 25.7898 30.8891 26.7263 29.4167 28.6016C28.4909 29.8016 27.9702 31.331 27.8525 33.1898H33.2308C33.3604 32.371 33.6219 31.7216 34.013 31.2369C34.5595 30.5875 35.4925 30.2628 36.8094 30.2628C37.9826 30.2628 38.8684 30.4322 39.4668 30.771C40.0816 31.0957 40.3879 31.6933 40.3879 32.5663C40.3879 33.2839 39.9898 33.811 39.1935 34.1498C38.7506 34.3451 38.0132 34.5075 36.9837 34.6369L35.0873 34.8722C32.9364 35.1451 31.3061 35.6016 30.1989 36.2369C28.1776 37.411 27.1669 39.3051 27.1669 41.9216C27.1669 43.9404 27.7936 45.5028 29.0445 46.611C30.3096 47.7028 31.9069 48.251 33.8363 48.251C35.3488 48.251 36.7034 47.9051 37.9025 47.2157C38.891 46.6432 39.7876 45.9253 40.5622 45.0863C40.6023 45.5686 40.6541 45.9992 40.7201 46.3757C40.7837 46.7522 40.9015 47.1569 41.0711 47.5875H47.1327V46.7663C46.8069 46.6282 46.5237 46.4056 46.3129 46.1216C46.1291 45.8628 46.0184 45.3686 45.9807 44.6392C45.9548 43.6745 45.9406 42.8533 45.9406 42.1757V32.411C45.9406 29.8463 45.0336 28.1004 43.222 27.1757C41.4104 26.251 39.3372 25.7898 37.0049 25.7898ZM35.4783 44.2086C34.7221 44.2086 34.0837 43.9922 33.563 43.5639C33.0282 43.1475 32.7597 42.4628 32.7597 41.5122C32.7597 40.4439 33.1908 39.6581 34.0507 39.1498C34.5595 38.8486 35.4006 38.5945 36.5738 38.3875L37.8248 38.1522C38.4514 38.0345 38.9391 37.9122 39.2924 37.7828C39.6576 37.6392 40.0157 37.4557 40.3667 37.2345V39.3051C40.329 41.1663 39.8013 42.4486 38.7836 43.1522C37.8207 43.843 36.664 44.2129 35.4783 44.2086Z" fill="white"/>\n <path d="M63.9699 26.3L59.5716 42.0035L54.9164 26.3H48.7182L56.5396 48.5258C56.5914 48.6811 56.4736 49.1141 56.1886 49.8153C55.9129 50.5188 55.6138 50.98 55.2887 51.2035C54.9494 51.4364 54.5324 51.5847 54.0377 51.6506C53.5185 51.7164 52.9941 51.736 52.4711 51.7094L51.769 51.6694V56.1235C52.3674 56.1635 52.8174 56.1823 53.1166 56.1823C53.4181 56.1941 53.8139 56.2011 54.311 56.2011C56.7752 56.2011 58.4172 55.7141 59.2394 54.7376C60.0592 53.7729 61.1736 51.2741 62.5824 47.2364L69.8949 26.3H63.9699ZM97.1756 32.0811L100.519 47.587H106.25L112.43 26.3H106.62L103.296 41.6317L100.05 26.3H94.3981L91.3284 41.5729L88.0043 26.3H82.0204L88.0043 47.5894H93.7926L97.1756 32.0811ZM121.248 47.5894V26.3H115.596V47.5894H121.248ZM121.248 23.7611V18.6223H115.596V23.7611H121.248ZM136.424 47.7847V43.6247L135.856 43.6623H135.329C134.193 43.6623 133.517 43.5588 133.295 43.3494C133.074 43.1282 132.961 42.5823 132.961 41.7094V30.46H136.424V26.4953H132.961V20.5541H127.448V26.4929H124.475V30.46H127.448V43.5658C127.448 44.8929 127.759 45.8764 128.386 46.5141C129.352 47.5164 131.149 47.9729 133.783 47.8811L136.424 47.7847ZM159.264 47.5894V35.0882C159.264 33.187 159.198 31.82 159.068 30.987C158.918 30.0906 158.548 29.2451 157.992 28.5258C157.315 27.5988 156.395 26.876 155.334 26.4364C154.2 25.9687 152.983 25.7364 151.756 25.7541C150.58 25.7541 149.461 25.9988 148.392 26.4953C147.336 26.9753 146.403 27.8364 145.595 29.0717V18.8976H140.04V47.5894H145.595V36.0647C145.595 34.2411 145.972 32.8411 146.729 31.8647C147.499 30.8764 148.62 30.3823 150.093 30.3823C151.513 30.3823 152.479 30.8764 152.986 31.8647C153.379 32.5705 153.575 33.4929 153.575 34.6411V47.5894H159.264Z" fill="white"/>\n </svg>\n </div>\n ')}var Wo,Vo=function(e){function t(e,r){var o;if(i(this,t),(o=n(this,t,[e,r])).widgetId=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10),o.onFlypayV2ButtonClick=function(){var e=function(e){var t,n=document.getElementById((t=o.widgetId,"".concat(t,"-loading-overlay")));n&&(n.style.display=e)};o.disable(),e("flex"),o.handleMerchantOnButtonClickEvent().then((function(){var t;e("none"),o.background=o.initBackground(),null===(t=o.background)||void 0===t||t.initControl(),o.flypayV2Checkout(o.orderId)})).catch((function(t){e("none"),o.enable()}))},o.accessToken=null==r?void 0:r.access_token,o.refreshToken=null==r?void 0:r.refresh_token,!(null==r?void 0:r.client_id))throw new Error("Wallet meta `client_id` is required as part of initialization process.");return o.link=new Pi(""),o}return d(t,e),o(t,[{key:"load",value:function(e){var t=this;this.orderId?this.mount(e):this.getOrderId().then((function(n){t.orderId=n,t.mount(e)})).catch((function(e){console.error("Error generating order id",e),t.eventEmitter.emit(Po.UNAVAILABLE,{type:"create_order_id_error",error_code:e.code})}))}},{key:"setEnv",value:function(e){return this.link.setEnv(e),v(t,"setEnv",this)([e])}},{key:"enable",value:function(){var e=document.getElementById(this.widgetId);e&&(e.disabled=!1,this.flypayV2Button.innerHTML=jo(this.widgetId))}},{key:"disable",value:function(){var e=document.getElementById(this.widgetId);e&&(e.disabled=!0,this.flypayV2Button.innerHTML=zo("paydock-flypay-button paydock-flypay-button__disabled",this.widgetId))}},{key:"mount",value:function(e){this.flypayV2Button=this.getButton(),this.flypayV2Button.onclick=this.onFlypayV2ButtonClick,e.getElement().appendChild(this.flypayV2Button)}},{key:"getButton",value:function(){var e,t,n=document.createElement("style");return n.innerHTML=(e=this.widgetId,t=Bo(e),"\n .".concat(t," {\n position: relative;\n height: 100%;\n width: 100%;\n border: none; /* Remove borders */\n background: transparent; /* Make the button background transparent */\n cursor: pointer; /* Make it look clickable */\n outline: none; /* Remove focus outline */\n padding: 0; /* Remove any default padding */\n }\n\n .").concat(t,' .paydock-flypay-button {\n background-color: #212121;\n border-radius: 9999px;\n width: 100%; /* set hard pixel dimensions here for a button with intrinsic dimensions */\n height: 100%; /* and leave the 100% settings for the Coles use case (enabled by extra param object flag) */\n display: grid;\n grid-template-columns: 20% 1fr 20%;\n grid-template-rows: 20% 1fr 20%;\n grid-template-areas:\n ". . ."\n ". center ."\n ". . .";\n box-sizing: border-box;\n }\n\n .').concat(t," .paydock-flypay-button:hover {\n background-color: #3d3d3d;\n }\n\n .").concat(t," .paydock-flypay-button:focus-visible {\n outline-color: transparent;\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2670ee;\n outline-color: transparent;\n }\n\n .").concat(t," .paydock-flypay-button:active {\n background-color: #6f6f6f;\n }\n\n .").concat(t," .paydock-flypay-button:disabled,\n .").concat(t," .paydock-flypay-button__disabled {\n opacity: 25%;\n cursor: not-allowed;\n }\n\n #").concat(e,"-loading-overlay {\n position: absolute;\n height: 100%;\n width: 100%;\n background: rgba(255, 255, 255, 0.7);\n display: none;\n justify-content: center;\n align-items: center;\n cursor: not-allowed; /* Make it look not clickable */\n }\n\n #").concat(e,'-loading-overlay::after {\n content: "";\n height: 60%;\n aspect-ratio: 1 / 1;\n display: inline-block;\n border: 4px solid #ccc;\n border-top-color: #333;\n border-radius: 50%;\n /* Vendor prefixes for animation property */\n -webkit-animation: spin 1s infinite linear;\n -moz-animation: spin 1s infinite linear;\n -o-animation: spin 1s infinite linear;\n animation: spin 1s infinite linear;\n }\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @-o-keyframes spin {\n 0% {\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ')),document.head.appendChild(n),this.flypayV2Button=document.createElement("button"),this.flypayV2Button.classList.add(Bo(this.widgetId)),this.flypayV2Button.setAttribute("type","button"),this.flypayV2Button.setAttribute("aria-label","Pay with Coles Pay"),this.flypayV2Button.setAttribute("id",this.widgetId),this.flypayV2Button.innerHTML=jo(this.widgetId),this.flypayV2Button}},{key:"handleMerchantOnButtonClickEvent",value:function(){var e=this;return new Promise((function(t,n){var i;e.eventEmitter.emit(Po.BUTTON_CLICK,{attachResult:function(e){i=e}}),i instanceof Promise?i.then(t).catch(n):!1===i?n():t()}))}},{key:"getOrderId",value:function(){var e=this;return new Promise((function(t,n){return e.eventEmitter.emit(Po.CALLBACK,{data:{request_type:"CREATE_SESSION"},onSuccess:function(e){return t(e.id)},onError:function(t,i){console.error("Error generating order id",t),e.eventEmitter.emit(Po.PAYMENT_ERROR,{message:t}),n({message:t,code:i})}})}))}},{key:"flypayV2Checkout",value:function(e){var t,n=this;this.checkout=new Fo(c(c({orderId:e},this.accessToken&&this.refreshToken&&{auth:{access_token:this.accessToken,refresh_token:this.refreshToken},mode:"express"}),{clientId:this.meta.client_id,url:"live"===(null===(t=this.meta)||void 0===t?void 0:t.gateway_mode)?"https://checkout.colespay.com.au":"https://checkout.sandbox.cxbflypay.com.au",onCheckoutClosed:function(){var e;n.eventEmitter.emit(Po.CHECKOUT_CLOSE),null===(e=n.background)||void 0===e||e.clear(),n.enable()},onError:function(e){return n.eventEmitter.emit(Po.PAYMENT_ERROR,{error:e})},onPaymentSuccess:function(e){return n.eventEmitter.emit(Po.PAYMENT_SUCCESS,e)},onPaymentError:function(e){return n.eventEmitter.emit(Po.PAYMENT_ERROR,{error:e})},onTokensChanged:function(e){var t=e.accessToken,i=e.refreshToken;n.accessToken=t,n.refreshToken=i,n.eventEmitter.emit(Po.AUTH_TOKENS_CHANGED,{accessToken:t,refreshToken:i})}})),this.checkout.open(),this.checkout.isCheckoutOpen&&this.eventEmitter.emit(Po.CHECKOUT_OPEN,{}),this.checkout.listenMessage()}},{key:"initBackground",value:function(){var e=this,t=new Ho(this.link.getNetUrl()+xi,!1,!1);return t.setBackdropTitle(""),t.setBackdropDescription(""),t.onTrigger(kr,(function(){var t;e.checkout.close(),null===(t=e.background)||void 0===t||t.clear(),e.enable()})),t.onTrigger(Sr,(function(){return e.checkout.open()})),t}}])}(Do);!function(e){e.AFTER_LOAD="after_load",e.UNAVAILABLE="unavailable",e.START_LOADING="start_loading",e.END_LOADING="end_loading",e.UPDATE="update",e.PAYMENT_SUCCESSFUL="payment_successful",e.PAYMENT_IN_REVIEW="payment_in_review",e.PAYMENT_ERROR="payment_error"}(Wo||(Wo={}));var Go=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"on",value:function(e,t,n){for(var i in Wo)Wo.hasOwnProperty(i)&&e===Wo[i]&&this.listeners.push({event:e,listener:n,widget_id:t})}}])}(Hi),qo={CLOSE:"close",UPDATED:"updated"},Yo=function(e){function t(e,r){var o;return i(this,t),(o=n(this,t,[e])).widgetId=r,o}return d(t,e),o(t,[{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.iFrame.isExist()){-1===yo.values(qo).indexOf(e)&&console.warn("unsupported trigger type");var n={message_source:"wallet.paydock",reference_id:this.widgetId,trigger:e,destination:"widget.paydock",data:t};this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(n),"*")}}}])}(_o),Ko=function(e){function t(e,r){var o;i(this,t),(o=n(this,t,[e,r])).link=new Pi(Ri);var s=r.amount,a=r.currency,l=r.id,u=r.gateway_mode,d=r.reference,h=r.request_shipping;return o.link.setParams(c({token:e,amount:s,currency:a,gateway_mode:u,credentials:d||l},h?{request_shipping:h}:{})),Q.version&&o.link.setParams({sdk_version:Q.version,sdk_type:Q.type}),o.token=e,o.event=new Go(window),o}return d(t,e),o(t,[{key:"load",value:function(e){this.container=e,this.iFrame=new Ui(this.container);var t=this.link.getParams().widget_id;this.triggerElement=new Yo(this.iFrame,t),this.setupIFrameEvents(t),this.background=this.initBackground(),this.iFrame.load(this.link.getUrl())}},{key:"close",value:function(){this.triggerElement.push(qo.CLOSE),this.background.clear()}},{key:"update",value:function(e){this.triggerElement.push(qo.UPDATED,e)}},{key:"setEnv",value:function(e){return this.link.setEnv(e),this}},{key:"initBackground",value:function(){var e=this,t=new Ho(this.link.getNetUrl().replace(Ri,xi));return t.setBackdropTitle(""),t.setBackdropDescription(""),t.onTrigger(kr,(function(){return e.triggerElement.push(qo.CLOSE)})),t}},{key:"setupIFrameEvents",value:function(e){var t=this;this.event.on(Wo.UNAVAILABLE,e,(function(e){return t.eventEmitter.emit(Po.UNAVAILABLE,null)})),this.event.on(Wo.START_LOADING,e,(function(e){return t.background.initControl()})),this.event.on(Wo.END_LOADING,e,(function(e){return t.background.clear()})),this.event.on(Wo.UPDATE,e,(function(e){t.eventEmitter.emit(Po.UPDATE,t.parseUpdateData(e))})),this.event.on(Wo.PAYMENT_SUCCESSFUL,e,(function(e){t.eventEmitter.emit(Po.PAYMENT_SUCCESS,t.parsePaymentSuccessfulData(e)),t.iFrame.getElement()||t.background.clear()})),this.event.on(Wo.PAYMENT_IN_REVIEW,e,(function(e){t.eventEmitter.emit(Po.PAYMENT_IN_REVIEW,t.parsePaymentSuccessfulData(e)),t.iFrame.getElement()||t.background.clear()})),this.event.on(Wo.PAYMENT_ERROR,e,(function(e){t.eventEmitter.emit(Po.PAYMENT_ERROR,e),t.iFrame.getElement()||t.background.clear()}))}},{key:"parsePaymentSuccessfulData",value:function(e){var t;return{id:this.meta.id,amount:e.amount,currency:e.currencyCode,status:null===(t=e.charge)||void 0===t?void 0:t.status}}},{key:"parseUpdateData",value:function(e){return c(c(c({wallet_response_code:e.responseCode,wallet_session_id:e.sessionId},e.paymentMethodDetails?{payment_source:{wallet_payment_method_id:e.paymentMethodDetails.paymentMethodId,card_number_last4:e.paymentMethodDetails.lastFourDigitsOfPan,card_scheme:e.paymentMethodDetails.paymentScheme}}:{}),e.loyaltyAccountSummary?{wallet_loyalty_account:{id:e.loyaltyAccountSummary.loyaltyAccountId,barcode:e.loyaltyAccountSummary.loyaltyAccountBarcode}}:{}),e.deliveryAddressDetails?{shipping:{address_line1:e.deliveryAddressDetails.line1,address_line2:e.deliveryAddressDetails.line2,address_postcode:e.deliveryAddressDetails.postalCode,address_city:e.deliveryAddressDetails.city,address_state:e.deliveryAddressDetails.state,address_country:e.deliveryAddressDetails.countryCode,address_company:e.deliveryAddressDetails.companyName,wallet_address_id:e.deliveryAddressDetails.addressId,post_office_box_number:e.deliveryAddressDetails.postOfficeBoxNumber,wallet_address_created_timestamp:e.deliveryAddressDetails.createdTimestamp,wallet_address_updated_timestamp:e.deliveryAddressDetails.updatedTimestamp,wallet_address_name:e.deliveryAddressDetails.name}}:{})}}])}(Do),Xo=["paymentCredentialsAvailable"],$o=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r])).gatewayName=o,a.eventEmitter=s,a.latestShippingData={},a.onCancelPayment=function(e){return a.eventEmitter.emit(Po.CHECKOUT_CLOSE)},a.onValidateMerchant=function(e){a.handleMerchantOnButtonClickEvent().then((function(){a.getMerchantSession().then((function(e){a.paymentSession.completeMerchantValidation(e)})).catch((function(e){console.error("Error fetching merchant session",e),a.paymentSession.abort()}))})).catch((function(e){console.error("Error while processing merchant callback",e),a.paymentSession.abort()}))},a.onPaymentAuthorized=function(e){var t,n=e.payment,i=n.token,r=n.billingContact,o=n.shippingContact;a.latestShippingData.shippingContact=o;var s=null===(t=a.selectedShippingOption)||void 0===t?void 0:t.type,l=[null==o?void 0:o.givenName,null==o?void 0:o.familyName].join(" ").trim();a.eventEmitter.emit(Po.PAYMENT_METHOD_SELECTED,{data:c({customer:{payment_source:c(c({wallet_type:lr.APPLE},l&&{card_name:l}),{type:i.paymentMethod.type,card_scheme:i.paymentMethod.network,address_line1:null==r?void 0:r.addressLines[0],address_line2:null==r?void 0:r.addressLines[1],address_country:null==r?void 0:r.countryCode,address_city:null==r?void 0:r.locality,address_postcode:null==r?void 0:r.postalCode,address_state:null==r?void 0:r.administrativeArea,ref_token:i.paymentData?JSON.stringify(i.paymentData):""})}},a.meta.request_shipping&&o&&{shipping:c(c(c({},s&&{method:s}),a.hasShippingOptions()&&{options:a.meta.shipping_options}),{address_line1:o.addressLines[0],address_line2:o.addressLines[1],address_country:o.countryCode,address_city:o.locality,address_postcode:o.postalCode,address_state:o.administrativeArea,contact:{first_name:o.givenName,last_name:o.familyName,email:o.emailAddress,phone:o.phoneNumber}})}),onSuccess:function(){return a.paymentSession.completePayment(ApplePaySession.STATUS_SUCCESS)},onError:function(){return a.paymentSession.completePayment(ApplePaySession.STATUS_FAILURE)}})},a.onShippingContactSelected=function(e){a.latestShippingData.shippingContact=e.shippingContact;var t=a.parseUpdateData(a.latestShippingData);return a.eventEmitter.emit(Po.UPDATE,t),new Promise((function(e,t){a.latestShippingChangePromiseResolve=e,a.latestShippingChangePromiseReject=t}))},a.onShippingMethodSelected=function(e){var t,n;a.latestShippingData.shippingMethod=e.shippingMethod;var i={newTotal:{label:a.meta.amount_label||(null===(n=null===(t=a.getMetaRawDataInitialization())||void 0===t?void 0:t.total)||void 0===n?void 0:n.label),amount:a.meta.amount.toString(),type:"final"}};a.paymentSession.completeShippingMethodSelection(i)},a.parseUpdateData=function(e){var t,n,i,r,o,s,a,l;return c({shipping:{address_city:null===(t=null==e?void 0:e.shippingContact)||void 0===t?void 0:t.locality,address_state:null===(n=null==e?void 0:e.shippingContact)||void 0===n?void 0:n.administrativeArea,address_postcode:null===(i=null==e?void 0:e.shippingContact)||void 0===i?void 0:i.postalCode,address_country:null===(r=null==e?void 0:e.shippingContact)||void 0===r?void 0:r.countryCode}},(null==e?void 0:e.shippingMethod)&&{selected_shipping_option:{id:null===(o=null==e?void 0:e.shippingMethod)||void 0===o?void 0:o.identifier,label:null===(s=null==e?void 0:e.shippingMethod)||void 0===s?void 0:s.label,detail:null===(a=null==e?void 0:e.shippingMethod)||void 0===a?void 0:a.detail,amount:null===(l=null==e?void 0:e.shippingMethod)||void 0===l?void 0:l.amount}})},a.formatShippingOptions=function(e){return e.map((function(e){return{identifier:e.id,label:e.label,detail:(null==e?void 0:e.detail)||"",amount:e.amount}}))},a.eventEmitter=s,a}return d(t,e),o(t,[{key:"getGatewayName",value:function(){return this.gatewayName}},{key:"getMerchantId",value:function(){var e,t,n;return(null===(n=null===(t=null===(e=this.meta)||void 0===e?void 0:e.credentials)||void 0===t?void 0:t[lr.APPLE])||void 0===n?void 0:n.merchant)||""}},{key:"getMetaStyles",value:function(){var e,t,n;if((null===(e=this.meta)||void 0===e?void 0:e.style)&&"object"===y(null===(t=this.meta)||void 0===t?void 0:t.style)){var i=JSON.parse(JSON.stringify(null===(n=this.meta)||void 0===n?void 0:n.style));return"google"in i&&(null==i||delete i.google),"apple"in i?null==i?void 0:i.apple:i}return null}},{key:"getMetaRawDataInitialization",value:function(){var e,t,n,i;if((null===(e=this.meta)||void 0===e?void 0:e.raw_data_initialization)&&(null===(t=this.meta)||void 0===t?void 0:t.raw_data_initialization)&&"object"===y(null===(n=this.meta)||void 0===n?void 0:n.raw_data_initialization)){var r=JSON.parse(JSON.stringify(null===(i=this.meta)||void 0===i?void 0:i.raw_data_initialization));return"google"in r&&(null==r||delete r.google),"apple"in r?null==r?void 0:r.apple:r}return null}},{key:"isShippingRequired",value:function(){var e;return null===(e=this.meta)||void 0===e?void 0:e.request_shipping}},{key:"hasShippingOptions",value:function(){var e,t;return(null===(e=this.meta)||void 0===e?void 0:e.request_shipping)&&!!(null===(t=this.meta)||void 0===t?void 0:t.shipping_options)}},{key:"load",value:function(e){var t=this;if(window.Promise)if(null===customElements||void 0===customElements?void 0:customElements.get("apple-pay-button"))this.onScriptLoaded(e);else{var n=document.createElement("script");n.src="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",n.type="text/javascript",n.crossOrigin="anonymous",n.onload=function(){t.onScriptLoaded(e)},n.onerror=function(e){console.error("AppleWalletService: Error loading ApplePay script",e),t.eventEmitter.emit(Po.UNAVAILABLE,{wallet:lr.APPLE})},document.head.appendChild(n)}else this.eventEmitter.emit(Po.UNAVAILABLE,{wallet:lr.APPLE})}},{key:"onScriptLoaded",value:function(e){var t=this;this.checkAvailability().then((function(n){var i;n?(t.isShippingRequired()&&t.hasShippingOptions()&&(t.selectedShippingOption=null===(i=t.meta)||void 0===i?void 0:i.shipping_options[0],t.latestShippingData.shippingMethod=t.formatShippingOptions([t.selectedShippingOption])[0]),t.mount(e)):t.eventEmitter.emit(Po.UNAVAILABLE,{wallet:lr.APPLE})})).catch((function(e){return console.error("Error checking ApplePay availability",e)}))}},{key:"update",value:function(e){var t,n,i;if(this.latestShippingChangePromiseResolve&&this.latestShippingChangePromiseReject){if(!e.success||!e.body)return this.latestShippingChangePromiseReject();var r=null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.amount,o=null===(n=null==e?void 0:e.body)||void 0===n?void 0:n.shipping_options;r&&(this.meta.amount=r),o&&(this.meta.shipping_options=o,this.selectedShippingOption=o?o[0]:void 0);var s=c({newTotal:{label:null===(i=this.meta)||void 0===i?void 0:i.amount_label,amount:this.meta.amount.toString(),type:"final"}},this.isShippingRequired()&&this.hasShippingOptions()&&{newShippingMethods:this.formatShippingOptions(this.meta.shipping_options)});this.paymentSession.completeShippingContactSelection(s),this.latestShippingChangePromiseResolve({})}}},{key:"checkAvailability",value:function(){var e=this;return new Promise((function(t,n){var i;window.ApplePaySession&&ApplePaySession||t(!1);var r=Xo;(null===(i=e.meta.apple_pay_capabilities)||void 0===i?void 0:i.length)>0&&(r=e.formatCapabilities(e.meta.apple_pay_capabilities)),ApplePaySession.applePayCapabilities(e.getMerchantId()).then((function(e){var n=r.includes(null==e?void 0:e.paymentCredentialStatus);t(n)})).catch((function(e){return t(!1)}))}))}},{key:"mount",value:function(e){var t,n,i=document.createElement("style");i.innerHTML=this.createButtonStyle(),document.head.appendChild(i);var r=e.getElement(),o="".concat((null===(t=this.getMetaStyles())||void 0===t?void 0:t.button_style)||"black"),s="".concat((null===(n=this.getMetaStyles())||void 0===n?void 0:n.button_type)||"plain");r.innerHTML='<apple-pay-button buttonstyle="'.concat(o,'" type="').concat(s,'" tabindex="0"></apple-pay-button>');var a=r.querySelector("apple-pay-button");if(!a)return console.error("AppleWalletService: Query selector does not found <apple-pay-button> element"),void this.eventEmitter.emit(Po.UNAVAILABLE,{wallet:lr.APPLE});a.addEventListener("click",this.onApplePayButtonClicked.bind(this))}},{key:"onApplePayButtonClicked",value:function(){this.paymentSession=new ApplePaySession(14,this.createRequest()),this.paymentSession.onvalidatemerchant=this.onValidateMerchant,this.paymentSession.onpaymentauthorized=this.onPaymentAuthorized,this.paymentSession.oncancel=this.onCancelPayment,this.paymentSession.onshippingcontactselected=this.onShippingContactSelected,this.paymentSession.onshippingmethodselected=this.onShippingMethodSelected,this.paymentSession.begin()}},{key:"createRequest",value:function(){var e,t=this.getMetaRawDataInitialization();return t&&"object"===y(t)&&("object"===y(t.total)?t.total.amount=this.meta.amount.toString():t.total={label:(null===(e=this.meta)||void 0===e?void 0:e.amount_label)||"",amount:this.meta.amount.toString()},this.isShippingRequired()&&this.hasShippingOptions()&&(t.shippingMethods=this.formatShippingOptions(this.meta.shipping_options))),t||c(c(c({countryCode:this.meta.country.toUpperCase(),currencyCode:this.meta.currency.toUpperCase(),merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:["visa","masterCard","amex","discover"]},this.meta.show_billing_address&&{requiredBillingContactFields:["name","postalAddress"]}),this.isShippingRequired()&&c({requiredShippingContactFields:["postalAddress","name","phone","email"]},this.hasShippingOptions()&&{shippingMethods:this.formatShippingOptions(this.meta.shipping_options)})),{total:{label:this.meta.amount_label,amount:this.meta.amount.toString(),type:"final"}})}},{key:"getMerchantSession",value:function(){var e=this;return new Promise((function(t,n){return e.eventEmitter.emit(Po.CALLBACK,{data:c({request_type:"CREATE_SESSION",wallet_type:lr.APPLE,session_id:window.location.hostname},e.isShippingRequired()&&{request_shipping:e.meta.request_shipping}),onSuccess:function(e){return t(e)},onError:function(t){console.error("Error generating order id",t),e.eventEmitter.emit(Po.PAYMENT_ERROR,{message:t}),n(t)}})}))}},{key:"handleMerchantOnButtonClickEvent",value:function(){var e=this;return new Promise((function(t,n){var i;e.eventEmitter.emit(Po.BUTTON_CLICK,{attachResult:function(e){i=e}}),i instanceof Promise?i.then(t).catch(n):!1===i?n():t()}))}},{key:"formatCapabilities",value:function(e){var t={credentials_available:"paymentCredentialsAvailable",credentials_status_unknown:"paymentCredentialStatusUnknown",credentials_unavailable:"paymentCredentialsUnavailable"};return e.map((function(e){return t[e]||e}))}},{key:"createButtonStyle",value:function(){return"\n apple-pay-button {\n display: inline-block;\n --apple-pay-button-width: 100%;\n --apple-pay-button-height: 40px;\n --apple-pay-button-border-radius: 5px;\n --apple-pay-button-padding: 5px 0px;\n }\n "}}])}(Do),Jo=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r])).gatewayName=o,a.eventEmitter=s,a.processingButtonClick=!1,a.isProcessingAuthorization=!1,a.parseUpdateData=function(e){var t,n,i,r,o,s,l=null===(n=null===(t=a.meta)||void 0===t?void 0:t.shipping_options)||void 0===n?void 0:n.find((function(t){var n;return t.id===(null===(n=null==e?void 0:e.shippingOptionData)||void 0===n?void 0:n.id)}));return c({shipping:{address_city:null===(i=e.shippingAddress)||void 0===i?void 0:i.locality,address_state:null===(r=e.shippingAddress)||void 0===r?void 0:r.administrativeArea,address_postcode:null===(o=null==e?void 0:e.shippingAddress)||void 0===o?void 0:o.postalCode,address_country:null===(s=null==e?void 0:e.shippingAddress)||void 0===s?void 0:s.countryCode}},l&&{selected_shipping_option:{id:null==l?void 0:l.id,label:null==l?void 0:l.label,detail:null==l?void 0:l.detail,type:null==l?void 0:l.type}})},a.formatShippingOptions=function(e){return e.map((function(e){return{id:e.id,label:e.label,description:(null==e?void 0:e.detail)||""}}))},a.eventEmitter=s,a}return d(t,e),o(t,[{key:"getGatewayName",value:function(){return this.gatewayName}},{key:"getMerchantId",value:function(){var e,t,n;return null===(n=null===(t=null===(e=this.meta)||void 0===e?void 0:e.credentials)||void 0===t?void 0:t[lr.GOOGLE])||void 0===n?void 0:n.merchant}},{key:"getMetaStyles",value:function(){var e,t,n,i;return"object"===y(null===(e=this.meta)||void 0===e?void 0:e.style)&&"google"in(null===(t=this.meta)||void 0===t?void 0:t.style)?null===(i=null===(n=this.meta)||void 0===n?void 0:n.style)||void 0===i?void 0:i.google:null}},{key:"getMetaRawDataInitialization",value:function(){var e,t,n,i,r;return(null===(e=this.meta)||void 0===e?void 0:e.raw_data_initialization)&&"object"===y(null===(t=this.meta)||void 0===t?void 0:t.raw_data_initialization)&&"google"in(null===(n=this.meta)||void 0===n?void 0:n.raw_data_initialization)?null===(r=null===(i=this.meta)||void 0===i?void 0:i.raw_data_initialization)||void 0===r?void 0:r.google:null}},{key:"isShippingRequired",value:function(){return!!this.meta.request_shipping}},{key:"hasShippingOptions",value:function(){return this.meta.request_shipping&&!!this.meta.shipping_options}},{key:"load",value:function(e){var t=this;if(this.processingButtonClick=!1,window.Promise)return new Promise((function(n,i){var r=document.createElement("script");r.type="text/javascript",r.src="https://pay.google.com/gp/p/js/pay.js",r.async=!0,r.onload=function(){var r,o,s,a;if(!window.google)return t.eventEmitter.emit(Po.UNAVAILABLE,{wallet:lr.GOOGLE}),void i();t.isShippingRequired()&&t.hasShippingOptions()&&(t.selectedShippingOption=null===(r=t.meta)||void 0===r?void 0:r.shipping_options[0]),t.paymentsClient=new google.payments.api.PaymentsClient(c({merchantInfo:c(c({},(null===(o=t.meta)||void 0===o?void 0:o.merchant_name)?{merchantName:null===(s=t.meta)||void 0===s?void 0:s.merchant_name}:{}),{merchantId:t.getMerchantId()}),paymentDataCallbacks:c({onPaymentAuthorized:function(e){return t.onPaymentAuthorized(e)}},t.isShippingRequired()&&{onPaymentDataChanged:function(e){return t.onPaymentDataChanged(e)}})},"live"===(null===(a=t.meta)||void 0===a?void 0:a.gateway_mode)?{environment:"PRODUCTION"}:{environment:"TEST"})),t.checkAvailability().then((function(r){if(!r)return t.eventEmitter.emit(Po.UNAVAILABLE,{wallet:lr.GOOGLE}),void i();t.mount(e),n()}))},document.head.appendChild(r)}));this.eventEmitter.emit(Po.UNAVAILABLE,{wallet:lr.GOOGLE})}},{key:"update",value:function(e){var t,n,i,r;if(this.latestShippingChangePromiseResolve&&this.latestShippingChangePromiseReject){if(!e.success)return this.latestShippingChangePromiseReject();var o=(null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.amount)||this.meta.amount,s=null===(n=null==e?void 0:e.body)||void 0===n?void 0:n.shipping_options;o&&(this.meta.amount=o),s&&(this.meta.shipping_options=s,this.selectedShippingOption=s?s[0]:void 0);var a=c({newTransactionInfo:{totalPriceStatus:"FINAL",totalPriceLabel:this.meta.amount_label,totalPrice:null===(i=this.meta.amount)||void 0===i?void 0:i.toString(),currencyCode:this.meta.currency.toUpperCase(),countryCode:this.meta.country.toUpperCase()}},this.isShippingRequired()&&this.hasShippingOptions()&&s&&{newShippingOptionParameters:{defaultSelectedOptionId:null===(r=this.selectedShippingOption)||void 0===r?void 0:r.id,shippingOptions:this.formatShippingOptions(this.meta.shipping_options)}});this.latestShippingChangePromiseResolve(a)}}},{key:"checkAvailability",value:function(){return ie(this,void 0,void 0,p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.paymentsClient.isReadyToPay(this.createRequest()).then((function(e){return!!e.result})).catch((function(e){return console.error("Error checking GooglePay availability",e),!1})));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"mount",value:function(e){var t,n,i,r=this;e.getElement().appendChild(this.paymentsClient.createButton({onClick:function(){return r.onGooglePayButtonClicked()},buttonType:(null===(t=this.getMetaStyles())||void 0===t?void 0:t.button_type)||"pay",buttonSizeMode:(null===(n=this.getMetaStyles())||void 0===n?void 0:n.button_size_mode)||"fill",buttonColor:(null===(i=this.getMetaStyles())||void 0===i?void 0:i.button_color)||"default"}))}},{key:"onGooglePayButtonClicked",value:function(){var e=this;this.processingButtonClick?console.warn("Google Pay button clicked while processing."):(this.processingButtonClick=!0,this.handleMerchantOnButtonClickEvent().then((function(){e.loadPaymentData().finally((function(){e.processingButtonClick=!1}))})).catch((function(t){e.processingButtonClick=!1,console.error("Error while processing merchant callback",t)})))}},{key:"handleMerchantOnButtonClickEvent",value:function(){var e=this;return new Promise((function(t,n){var i;e.eventEmitter.emit(Po.BUTTON_CLICK,{attachResult:function(e){i=e}}),i instanceof Promise?i.then(t).catch(n):!1===i?n():t()}))}},{key:"loadPaymentData",value:function(){return ie(this,void 0,void 0,p().mark((function e(){var t=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.paymentsClient.loadPaymentData(this.createPaymentDataRequest()).catch((function(e){throw t.eventEmitter.emit(Po.CHECKOUT_CLOSE),t.processingButtonClick=!1,console.error("Error while loading payment data",e),e})));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"onPaymentAuthorized",value:function(e){var t,n,i,r,o,s,a,l,u,d,h,p,f,m,v,g=this,C=null===(i=null===(n=null===(t=e.paymentMethodData)||void 0===t?void 0:t.info)||void 0===n?void 0:n.billingAddress)||void 0===i?void 0:i.address1,y=null===(s=null===(o=null===(r=e.paymentMethodData)||void 0===r?void 0:r.info)||void 0===o?void 0:o.billingAddress)||void 0===s?void 0:s.address2,b=null===(a=null==e?void 0:e.shippingAddress)||void 0===a?void 0:a.address1,E=null===(l=null==e?void 0:e.shippingAddress)||void 0===l?void 0:l.address2,w=null===(u=this.selectedShippingOption)||void 0===u?void 0:u.type,_=null===(d=null==e?void 0:e.shippingAddress)||void 0===d?void 0:d.countryCode,k=null===(h=null==e?void 0:e.shippingAddress)||void 0===h?void 0:h.locality,S=null===(p=null==e?void 0:e.shippingAddress)||void 0===p?void 0:p.postalCode,T=null===(f=null==e?void 0:e.shippingAddress)||void 0===f?void 0:f.administrativeArea,M=null===(m=null==e?void 0:e.shippingAddress)||void 0===m?void 0:m.name,A=null==e?void 0:e.email,N=null===(v=null==e?void 0:e.shippingAddress)||void 0===v?void 0:v.phoneNumber,O=new Promise((function(t){g.isProcessingAuthorization?(console.warn("Duplicate payment authorization detected. Ignoring."),t({transactionState:"ERROR",error:{intent:"PAYMENT_AUTHORIZATION",message:"Another payment authorization is already in progress",reason:"OTHER_ERROR"}})):(g.isProcessingAuthorization=!0,function(){var n,i,r,o,s,a,l,u,d,h,p,f,m,v;g.eventEmitter.emit(Po.PAYMENT_METHOD_SELECTED,{data:c({customer:{payment_source:c(c(c({wallet_type:lr.GOOGLE,type:e.paymentMethodData.type,card_scheme:null===(i=null===(n=e.paymentMethodData)||void 0===n?void 0:n.info)||void 0===i?void 0:i.cardNetwork},C&&{address_line1:C}),y&&{address_line2:y}),{address_country:null===(s=null===(o=null===(r=e.paymentMethodData)||void 0===r?void 0:r.info)||void 0===o?void 0:o.billingAddress)||void 0===s?void 0:s.countryCode,address_city:null===(u=null===(l=null===(a=e.paymentMethodData)||void 0===a?void 0:a.info)||void 0===l?void 0:l.billingAddress)||void 0===u?void 0:u.locality,address_postcode:null===(p=null===(h=null===(d=e.paymentMethodData)||void 0===d?void 0:d.info)||void 0===h?void 0:h.billingAddress)||void 0===p?void 0:p.postalCode,address_state:null===(v=null===(m=null===(f=e.paymentMethodData)||void 0===f?void 0:f.info)||void 0===m?void 0:m.billingAddress)||void 0===v?void 0:v.administrativeArea,ref_token:e.paymentMethodData.tokenizationData.token})}},g.isShippingRequired()&&{shipping:c(c(c(c(c(c(c(c(c({},w&&{method:w}),g.hasShippingOptions()&&{options:g.meta.shipping_options}),b&&{address_line1:b}),E&&{address_line2:E}),_&&{address_country:_}),k&&{address_city:k}),S&&{address_postcode:S}),T&&{address_state:T}),{contact:c(c(c({},M&&{first_name:M}),A&&{email:A}),N&&{phone:N})})}),onSuccess:function(){g.processingButtonClick=!1,g.isProcessingAuthorization=!1,t({transactionState:"SUCCESS"})},onError:function(e){g.processingButtonClick=!1,g.isProcessingAuthorization=!1,t({transactionState:"ERROR",error:{intent:"PAYMENT_AUTHORIZATION",message:(null==e?void 0:e.message)||"Error processing payment",reason:"PAYMENT_DATA_INVALID"}})}})}())}));return O}},{key:"onPaymentDataChanged",value:function(e){var t=this;if(this.isShippingRequired()){var n=this.parseUpdateData(e),i=new Promise((function(e,n){t.latestShippingChangePromiseResolve=e,t.latestShippingChangePromiseReject=n}));return this.eventEmitter.emit(Po.UPDATE,n),i}}},{key:"createRequest",value:function(){var e="Apple Safari"===w.getBrowserName();return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[this.createCardData()],existingPaymentMethodRequired:!e}}},{key:"createPaymentDataRequest",value:function(){var e,t,n,i;this.isShippingRequired()&&this.hasShippingOptions()&&(this.selectedShippingOption=null===(e=this.meta)||void 0===e?void 0:e.shipping_options[0]);var r=this.getMerchantId();return c({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[c(c({},this.createCardData()),{tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:"paydock",gatewayMerchantId:r}}})],transactionInfo:{totalPriceStatus:"FINAL",totalPriceLabel:this.meta.amount_label,totalPrice:this.meta.amount.toString(),currencyCode:this.meta.currency.toUpperCase(),countryCode:this.meta.country.toUpperCase()},merchantInfo:c(c({},(null===(t=this.meta)||void 0===t?void 0:t.merchant_name)?{merchantName:null===(n=this.meta)||void 0===n?void 0:n.merchant_name}:{}),{merchantId:r}),callbackIntents:["PAYMENT_AUTHORIZATION"].concat(g(this.isShippingRequired()?["SHIPPING_ADDRESS"]:[]),g(this.hasShippingOptions()?["SHIPPING_OPTION"]:[]))},this.isShippingRequired()&&c({shippingAddressRequired:!0},this.hasShippingOptions()&&{shippingOptionRequired:!0,shippingOptionParameters:{defaultSelectedOptionId:null===(i=this.selectedShippingOption)||void 0===i?void 0:i.id,shippingOptions:this.formatShippingOptions(this.meta.shipping_options)}}))}},{key:"createCardData",value:function(){return this.getMetaRawDataInitialization()||{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["AMEX","DISCOVER","INTERAC","JCB","MASTERCARD","VISA"],billingAddressRequired:!!this.meta.show_billing_address}}}}])}(Do),Zo=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"initializeChildWallets",value:function(){var e,t,n,i,r,o;this.childWallets=[];var s=!!(null===(n=null===(t=null===(e=this.meta)||void 0===e?void 0:e.credentials)||void 0===t?void 0:t.apple)||void 0===n?void 0:n.merchant),a=!!(null===(o=null===(r=null===(i=this.meta)||void 0===i?void 0:i.credentials)||void 0===r?void 0:r.google)||void 0===o?void 0:o.merchant);!s||this.meta.wallets&&!this.meta.wallets.includes(lr.APPLE)||this.childWallets.push(new $o(this.publicKey,this.meta,this.getGatewayName(),this.eventEmitter)),!a||this.meta.wallets&&!this.meta.wallets.includes(lr.GOOGLE)||this.childWallets.push(new Jo(this.publicKey,this.meta,this.getGatewayName(),this.eventEmitter))}},{key:"getGatewayName",value:function(){return cr.MASTERCARD}},{key:"setEnv",value:function(e){return this.childWallets.forEach((function(t){return t.setEnv(e)})),this}},{key:"update",value:function(e){this.childWallets.forEach((function(t){return t.update(e)}))}}])}(Do),Qo=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"load",value:function(e){return window.Promise?(!0===this.meta.standalone?this.renderPaypalStandaloneComponent(e):this.renderPaypalCommonComponent(e),Promise.resolve()):(this.eventEmitter.emit(Po.UNAVAILABLE,null),Promise.resolve())}},{key:"update",value:function(e){var t=this;if(this.latestShippingChangePromiseResolve&&this.latestShippingChangePromiseReject)return e.success?void this.eventEmitter.emit(Po.CALLBACK,{data:{request_type:"UPDATE_TRANSACTION",shipping:this.latestShippingData},onSuccess:function(e){return t.latestShippingChangePromiseResolve(!0)},onError:function(){return t.latestShippingChangePromiseReject()}}):this.latestShippingChangePromiseReject()}},{key:"renderPaypalCommonComponent",value:function(e){var t,n=this,i=(null===(t=e.getElement())||void 0===t?void 0:t.id)||"",r=document.createElement("script");r.src="https://www.paypal.com/sdk/js?client-id=".concat(this.publicKey,"¤cy=").concat(this.meta.currency).concat(!0===this.meta.pay_later?"&enable-funding=paylater&disable-funding=card":"&disable-funding=credit,card").concat(this.meta.capture?"":"&intent=authorize"),r.async=!0,r.onload=function(){window.paypal?(n.paypal=window.paypal,n.paypal.Buttons(c({},n.paypalSharedProps())).render("#".concat(i))):n.eventEmitter.emit(Po.UNAVAILABLE,null)},document.head.appendChild(r)}},{key:"renderPaypalStandaloneComponent",value:function(e){var t,n,i=this,r=(null===(t=e.getElement())||void 0===t?void 0:t.id)||"",o=document.createElement("script");o.src="https://www.paypal.com/sdk/js?client-id=".concat(this.publicKey,"¤cy=").concat(this.meta.currency,"&components=buttons,funding-eligibility,messages&enable-funding=paylater").concat(this.meta.capture?"":"&intent=authorize").concat("live"===(null===(n=this.meta)||void 0===n?void 0:n.gateway_mode)?"":"&buyer-country=AU"),o.async=!0,o.onload=function(){if(window.paypal){i.paypal=window.paypal;var e=!!i.meta.pay_later,t=i.paypal.Buttons(c({fundingSource:e?i.paypal.FUNDING.PAYLATER:i.paypal.FUNDING.PAYPAL},i.paypalSharedProps()));if(t.isEligible()){if(t.render("#".concat(r)),e&&!i.meta.hide_message)i.paypal.Messages(c({amount:i.meta.amount,currency:i.meta.currency,placement:"payment"},i.meta.style&&i.meta.style.messages&&{style:i.meta.style.messages})).render("#".concat(r))}else i.eventEmitter.emit(Po.UNAVAILABLE,null)}else i.eventEmitter.emit(Po.UNAVAILABLE,null)},document.head.appendChild(o)}},{key:"paypalSharedProps",value:function(){var e=this;return c(c({},this.meta.style&&{style:this.meta.style}),{onClick:function(t,n){var i;return e.eventEmitter.emit(Po.BUTTON_CLICK,{attachResult:function(e){i=e&&e instanceof Promise?e.then((function(){return n.resolve()})).catch((function(){return n.reject()})):e}}),i},createOrder:function(){return new Promise((function(t,n){e.eventEmitter.emit(Po.CALLBACK,{data:c({request_type:"CREATE_TRANSACTION"},e.meta.request_shipping&&{request_shipping:e.meta.request_shipping}),onSuccess:function(e){return t(e.id)},onError:function(t){console.error("Error generating order id",t),e.eventEmitter.emit(Po.PAYMENT_ERROR,{error:t}),n(t)}})}))},onShippingChange:function(t,n){return new Promise((function(n,i){var r=e.parseUpdateData(t);e.latestShippingData=r.shipping,e.latestShippingChangePromiseResolve=n,e.latestShippingChangePromiseReject=i,e.eventEmitter.emit(Po.UPDATE,r)}))},onApprove:function(t){return e.pendingApprovalPromise=e.pendingApprovalPromise||new Promise((function(n,i){return e.eventEmitter.emit(Po.PAYMENT_METHOD_SELECTED,{data:{payment_method_id:t.orderID,customer:{payment_source:{external_payer_id:t.payerID}}},onSuccess:function(){e.pendingApprovalPromise=void 0,n(!0)},onError:function(t){e.pendingApprovalPromise=void 0,i(t)}})})),e.pendingApprovalPromise},onCancel:function(){return e.eventEmitter.emit(Po.CHECKOUT_CLOSE)},onError:function(e){}})}},{key:"parseUpdateData",value:function(e){var t;return c(c({wallet_order_id:e.orderID,wallet_session_id:e.paymentID,payment_source:{wallet_payment_method_id:e.paymentToken}},e.shipping_address&&{shipping:{address_city:e.shipping_address.city,address_state:e.shipping_address.state,address_postcode:e.shipping_address.postal_code,address_country:e.shipping_address.country_code}}),e.selected_shipping_option&&{selected_shipping_option:{id:e.selected_shipping_option.id,label:e.selected_shipping_option.label,amount:e.selected_shipping_option.amount.value,currency:e.selected_shipping_option.amount.currency_code,type:null===(t=e.selected_shipping_option)||void 0===t?void 0:t.type}})}}])}(Do),es={};function ts(e){return ts="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},ts(e)}Object.defineProperty(es,"__esModule",{value:!0});var ns,is="https://js.stripe.com/v3",rs=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,os="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",ss=null,as=function(e){return null!==ss||(ss=new Promise((function(t,n){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(os),window.Stripe)t(window.Stripe);else try{var i=function(){for(var e=document.querySelectorAll('script[src^="'.concat(is,'"]')),t=0;t<e.length;t++){var n=e[t];if(rs.test(n.src))return n}return null}();i&&e?console.warn(os):i||(i=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(is).concat(t);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(n),n}(e)),i.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),i.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))),ss},cs=function(e){var t="invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(e),"\n");if(null===e||"object"!==ts(e))throw new Error(t);if(1===Object.keys(e).length&&"boolean"==typeof e.advancedFraudSignals)return e;throw new Error(t)},ls=!1,us=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ls=!0;var i=Date.now();return as(ns).then((function(e){return function(e,t,n){if(null===e)return null;var i=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:t})}(i,n),i}(e,t,i)}))};us.setLoadParameters=function(e){if(ls&&ns){var t=cs(e);if(Object.keys(t).reduce((function(t,n){var i;return t&&e[n]===(null===(i=ns)||void 0===i?void 0:i[n])}),!0))return}if(ls)throw new Error("You cannot change load parameters after calling loadStripe");ns=cs(e)},es.loadStripe=us;var ds,hs=es,ps="success",fs="fail",ms=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"initPaymentRequest",value:function(){return this.stripe.paymentRequest({country:this.meta.country.toUpperCase(),currency:this.meta.currency.toLowerCase(),total:{label:this.meta.amount_label,amount:Math.floor(100*this.meta.amount)},requestPayerName:!0===this.meta.request_payer_name,requestPayerEmail:!0===this.meta.request_payer_email,requestPayerPhone:!0===this.meta.request_payer_phone})}},{key:"createWalletButton",value:function(){return this.stripe.elements().create("paymentRequestButton",{paymentRequest:this.paymentRequest})}},{key:"load",value:function(e){var t=this;return hs.loadStripe(this.publicKey).then((function(e){t.stripe=e,t.paymentRequest=t.initPaymentRequest()})).then((function(){return t.checkAvailability()})).then((function(n){return t.mount(e,n)})).then((function(){return t.setOnPaymentMethodSelected()}))}},{key:"checkAvailability",value:function(){var e=this;return this.paymentRequest.canMakePayment().then((function(t){if(t){var n=!e.meta.wallets||e.meta.wallets.includes(lr.GOOGLE),i=!e.meta.wallets||e.meta.wallets.includes(lr.APPLE);return{google_pay:n&&!t.applePay,apple_pay:i&&t.applePay,flypay:!1}}}))}},{key:"mount",value:function(e,t){if(!t||!t.apple_pay&&!t.google_pay)return this.eventEmitter.emit(Po.UNAVAILABLE,null);this.createWalletButton().mount(e.getElement())}},{key:"setOnPaymentMethodSelected",value:function(){var e=this;this.paymentRequest.on("paymentmethod",(function(t){var n,i,r=t.paymentMethod,o=r.id,s=r.card,a=r.billing_details,c=a.name,l=a.address,u={payment_method_id:o,customer:{payer_name:t.payerName,payer_email:t.payerEmail,payer_phone:t.payerPhone,payment_source:{wallet_type:e.getWalletType(null===(n=null==s?void 0:s.wallet)||void 0===n?void 0:n.type),card_name:c,type:null===(i=null==s?void 0:s.wallet)||void 0===i?void 0:i.type,card_scheme:null==s?void 0:s.brand,card_number_last4:null==s?void 0:s.last4,expire_month:null==s?void 0:s.exp_month,expire_year:null==s?void 0:s.exp_year,address_line1:l.line1,address_line2:l.line2,address_city:l.city,address_postcode:l.postal_code,address_state:l.state,address_country:l.country}}};e.eventEmitter.emit(Po.PAYMENT_METHOD_SELECTED,{data:u,onSuccess:function(){return t.complete(ps)},onError:function(e){return t.complete(fs)}})}))}},{key:"getWalletType",value:function(e){return e?"google_pay"===e?lr.GOOGLE:lr.APPLE:null}}])}(Do);!function(e){e.UNAVAILABLE="unavailable",e.UPDATE="update",e.PAYMENT_SUCCESSFUL="paymentSuccessful",e.PAYMENT_ERROR="paymentError",e.PAYMENT_IN_REVIEW="paymentInReview",e.AUTH_TOKENS_CHANGED="authTokensChanged",e.ON_CLICK="onClick",e.ON_CHECKOUT_OPEN="onCheckoutOpen",e.ON_CHECKOUT_CLOSE="onCheckoutClose"}(ds||(ds={}));var vs,gs,Cs,ys,bs,Es,ws={UNAVAILABLE:ds.UNAVAILABLE,UPDATE:ds.UPDATE,PAYMENT_SUCCESSFUL:ds.PAYMENT_SUCCESSFUL,PAYMENT_ERROR:ds.PAYMENT_ERROR,PAYMENT_IN_REVIEW:ds.PAYMENT_IN_REVIEW,AUTH_TOKENS_CHANGED:ds.AUTH_TOKENS_CHANGED,ON_CLICK:ds.ON_CLICK,ON_CHECKOUT_OPEN:ds.ON_CHECKOUT_OPEN,ON_CHECKOUT_CLOSE:ds.ON_CHECKOUT_CLOSE},_s=function(){return o((function e(t,n,r){var o,s;i(this,e),this.hasUpdateHandler=!1;var a=Le.validateJWT(n);if(!a)throw new Error("Invalid charge token");this.eventEmitter=new ir,this.container=new Li(t);var l=Le.extractMeta(a.body);switch(this.api=new er(n,Ei.TOKEN),l.gateway.type){case cr.STRIPE:this.service=new ms(l.credentials.client_auth,c(c({},r),{amount:l.charge.amount,currency:l.charge.currency}));break;case cr.FLYPAY:this.service=new Ko(n,c(c({},r),{id:l.charge.id,gateway_mode:l.gateway.mode,amount:l.charge.amount,currency:l.charge.currency,reference:l.charge.reference}));break;case cr.FLYPAY_V2:this.service=new Vo(n,c(c({},r),{id:l.charge.id,gateway_mode:l.gateway.mode,amount:l.charge.amount,currency:l.charge.currency,reference:l.charge.reference}));break;case cr.PAYPAL:this.service=new Qo(l.credentials.client_auth,c(c({},r),{id:l.charge.id,gateway_mode:l.gateway.mode,amount:l.charge.amount,currency:l.charge.currency,capture:l.charge.capture}));break;case cr.MASTERCARD:this.service=new Zo("",c(c({},r),{credentials:l.gateway.credentials,amount:l.charge.amount,currency:l.charge.currency,gateway_mode:l.gateway.mode}));break;case cr.AFTERPAY:this.service=new Lo(n,c(c({},r),{id:l.charge.id,gateway_mode:l.gateway.mode,amount:l.charge.amount,currency:l.charge.currency,reference:l.charge.reference,success_url:null===(o=l.charge.meta)||void 0===o?void 0:o.success_url,error_url:null===(s=l.charge.meta)||void 0===s?void 0:s.error_url}))}}),[{key:"load",value:function(){try{this.setupServiceCallbacks(),this.service.load(this.container)}catch(e){throw this.eventEmitter.emit(ws.UNAVAILABLE,null),e}}},{key:"update",value:function(e){this.service.update(e)}},{key:"setEnv",value:function(e,t){this.api.setEnv(e,t),this.service.setEnv(e)}},{key:"enable",value:function(){this.service.enable()}},{key:"disable",value:function(){this.service.disable()}},{key:"close",value:function(){"function"==typeof this.service.close&&this.service.close()}},{key:"on",value:function(e,t){var n=this;return e===ws.UPDATE&&(this.hasUpdateHandler=!0),"function"==typeof t?this.eventEmitter.subscribe(e,t):new Promise((function(t){return n.eventEmitter.subscribe(e,(function(e){return t(e)}))}))}},{key:"onUnavailable",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ws.UNAVAILABLE,e):new Promise((function(e){return t.eventEmitter.subscribe(ws.UNAVAILABLE,(function(){return e()}))}))}},{key:"onUpdate",value:function(e){var t=this;return this.hasUpdateHandler=!0,"function"==typeof e?this.eventEmitter.subscribe(ws.UPDATE,e):new Promise((function(e){return t.eventEmitter.subscribe(ws.UPDATE,(function(t){return e(t)}))}))}},{key:"onPaymentSuccessful",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ws.PAYMENT_SUCCESSFUL,e):new Promise((function(e){return t.eventEmitter.subscribe(ws.PAYMENT_SUCCESSFUL,(function(t){return e(t)}))}))}},{key:"onPaymentInReview",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ws.PAYMENT_IN_REVIEW,e):new Promise((function(e){return t.eventEmitter.subscribe(ws.PAYMENT_IN_REVIEW,(function(t){return e(t)}))}))}},{key:"onPaymentError",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ws.PAYMENT_ERROR,e):new Promise((function(e){return t.eventEmitter.subscribe(ws.PAYMENT_ERROR,(function(t){return e(t)}))}))}},{key:"onAuthTokensChanged",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ws.AUTH_TOKENS_CHANGED,e):new Promise((function(e){return t.eventEmitter.subscribe(ws.AUTH_TOKENS_CHANGED,(function(t){return e(t)}))}))}},{key:"onClick",value:function(e){if("function"==typeof e)return this.eventEmitter.subscribe(ws.ON_CLICK,e)}},{key:"onCheckoutOpen",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ws.ON_CHECKOUT_OPEN,e):new Promise((function(e){return t.eventEmitter.subscribe(ws.ON_CHECKOUT_OPEN,(function(t){return e(t)}))}))}},{key:"onCheckoutClose",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(ws.ON_CHECKOUT_CLOSE,e):new Promise((function(e){return t.eventEmitter.subscribe(ws.ON_CHECKOUT_CLOSE,(function(t){return e(t)}))}))}},{key:"setupServiceCallbacks",value:function(){this.setupUnavailableCallback(),this.setupUpdateCallback(),this.setupWalletCallback(),this.setupPaymentCallback(),this.setupPaymentSuccessCallback(),this.setupPaymentInReviewCallback(),this.setupPaymentErrorCallback(),this.setupAuthTokensChangedCallback(),this.setupOnClickCallback(),this.setupOnCheckoutOpenCallback(),this.setupOnCheckoutCloseCallback()}},{key:"setupUnavailableCallback",value:function(){var e=this;this.service.on(Po.UNAVAILABLE,(function(t){return e.eventEmitter.emit(ws.UNAVAILABLE,{event:ws.UNAVAILABLE,data:t})}))}},{key:"setupUpdateCallback",value:function(){var e=this;this.service.on(Po.UPDATE,(function(t){return e.hasUpdateHandler?e.eventEmitter.emit(ws.UPDATE,{event:ws.UPDATE,data:t}):e.update({success:!0})}))}},{key:"setupOnClickCallback",value:function(){var e=this;this.service.on(Po.BUTTON_CLICK,(function(t){return e.eventEmitter.emit(ws.ON_CLICK,{event:ws.ON_CLICK,data:t})}))}},{key:"setupOnCheckoutOpenCallback",value:function(){var e=this;this.service.on(Po.CHECKOUT_OPEN,(function(t){return e.eventEmitter.emit(ws.ON_CHECKOUT_OPEN,{event:ws.ON_CHECKOUT_OPEN,data:t})}))}},{key:"setupOnCheckoutCloseCallback",value:function(){var e=this;this.service.on(Po.CHECKOUT_CLOSE,(function(t){return e.eventEmitter.emit(ws.ON_CHECKOUT_CLOSE,{event:ws.ON_CHECKOUT_CLOSE,data:t})}))}},{key:"setupWalletCallback",value:function(){var e=this;this.service.on(Po.CALLBACK,(function(t){var n=t.data,i=t.onSuccess,r=t.onError;e.api.charge().walletCallback(n).then((function(e){return i(e)}),(function(e){return r(e.message,e.code)}))}))}},{key:"setupPaymentCallback",value:function(){var e=this;this.service.on(Po.PAYMENT_METHOD_SELECTED,(function(t){var n=t.data,i=t.onSuccess,r=t.onError;e.api.charge().walletCapture(n).then((function(t){"function"==typeof i&&i();var r="inreview"===t.status?ws.PAYMENT_IN_REVIEW:ws.PAYMENT_SUCCESSFUL;e.eventEmitter.emit(r,{event:r,data:c(c({},t),n.customer&&{payer_name:n.customer.payer_name,payer_email:n.customer.payer_email,payer_phone:n.customer.payer_phone})})}),(function(t){"function"==typeof r&&r(t),e.eventEmitter.emit(ws.PAYMENT_ERROR,{event:ws.PAYMENT_ERROR,data:t})}))}))}},{key:"setupPaymentSuccessCallback",value:function(){var e=this;this.service.on(Po.PAYMENT_SUCCESS,(function(t){return e.eventEmitter.emit(ws.PAYMENT_SUCCESSFUL,{event:ws.PAYMENT_SUCCESSFUL,data:t})}))}},{key:"setupPaymentInReviewCallback",value:function(){var e=this;this.service.on(Po.PAYMENT_IN_REVIEW,(function(t){return e.eventEmitter.emit(ws.PAYMENT_IN_REVIEW,{event:ws.PAYMENT_IN_REVIEW,data:t})}))}},{key:"setupPaymentErrorCallback",value:function(){var e=this;this.service.on(Po.PAYMENT_ERROR,(function(t){return e.eventEmitter.emit(ws.PAYMENT_ERROR,{event:ws.PAYMENT_ERROR,data:t})}))}},{key:"setupAuthTokensChangedCallback",value:function(){var e=this;this.service.on(Po.AUTH_TOKENS_CHANGED,(function(t){return e.eventEmitter.emit(ws.AUTH_TOKENS_CHANGED,{event:ws.AUTH_TOKENS_CHANGED,data:t})}))}}])}();function ks(e){var t,n,i,r,o,s=function(e){var t=function(e){var t=[ys.GATEWAY_ID,ys.TYPE];if(e.predefined_fields.type===vs.GIFT_CARD)return t.concat([ys.CARD_SCHEME,ys.CARD_PROCESSING_NETWORK]);return t}(e).map((function(t){return e.predefined_fields[t]?"":t})).filter(Boolean);if(t.length)return t.join(", ").concat(" ".concat(t.length>1?"are":"is"," cannot be empty"))}(e);if(s)throw console.error("Errors when creating a token"),console.error("--- | ".concat(s)),new Error(s);return{allowed_response_data:{event:[Cs.PAYMENT_SOURCE_TOKEN],url:[]},defined_form_fields:e.dynamic_fields_position?Ms(e):Ts(e),dynamic_fields_position:null!==(t=e.dynamic_fields_position)&&void 0!==t&&t,error_redirect_url:null!==(n=e.error_redirect_url)&&void 0!==n?n:"",label:null!==(i=e.label)&&void 0!==i?i:"",meta:As(e),predefined_fields:Ns(e),purpose:e.purpose,success_redirect_url:null!==(r=e.success_redirect_url)&&void 0!==r?r:"",webhook_destination:null!==(o=e.webhook_destination)&&void 0!==o?o:"",handle_cvv:Os(e)}}function Ss(e){var t=[bs.FIRST_NAME,bs.LAST_NAME,bs.EMAIL,bs.PHONE,bs.PHONE2,bs.ADDRESS_LINE1,bs.ADDRESS_LINE2,bs.ADDRESS_STATE,bs.ADDRESS_COUNTRY,bs.ADDRESS_CITY,bs.ADDRESS_POSTCODE,bs.ADDRESS_COMPANY];switch(e.predefined_fields.type){case vs.BANK_ACCOUNT:case vs.BSB:return t.concat([bs.ACCOUNT_BANK_NAME,bs.ACCOUNT_BSB,bs.ACCOUNT_HOLDER_TYPE,bs.ACCOUNT_ROUTING,bs.ACCOUNT_TYPE,bs.ACCOUNT_NUMBER,bs.ACCOUNT_NAME]);case vs.CARD:return t.concat([bs.CARD_NAME,bs.CARD_NUMBER,bs.EXPIRE_MONTH,bs.EXPIRE_YEAR,bs.CARD_CCV]);case vs.GIFT_CARD:return t.concat([bs.CARD_NUMBER,bs.CARD_SCHEME,bs.CARD_PROCESSING_NETWORK,bs.CARD_PIN])}}function Ts(e){return Ss(e).map((function(t){var n,i;return(null===(n=e.defined_form_fields)||void 0===n?void 0:n.includes(t))?t:(null===(i=e.defined_form_fields)||void 0===i?void 0:i.includes("".concat(t,"*")))?"".concat(t,"*"):void 0})).filter(Boolean)}function Ms(e){var t,n=Ss(e);return null===(t=e.defined_form_fields)||void 0===t?void 0:t.map((function(e){var t=e.replace("*","");if(n.includes(t))return e})).filter(Boolean)}function As(e){return Object.values(Es).reduce((function(t,n){var i;return(null===(i=e.meta)||void 0===i?void 0:i[n])?c({},t,a({},n,e.meta[n])):t}),{})}function Ns(e){var t="not_configured"===e.predefined_fields.gateway_id?"":e.predefined_fields.gateway_id;return c({},e.predefined_fields,{gateway_id:t})}function Os(e){switch(e.purpose){case gs.CARD_PAYMENT_SOURCE_WITH_CVV:return!0;case gs.CARD_PAYMENT_SOURCE_WITHOUT_CVV:return!1;default:return}}!function(e){e.CARD="card",e.GIFT_CARD="gift_card",e.BSB="bsb",e.CHECKOUT="checkout",e.BANK_ACCOUNT="bank_account"}(vs||(vs={})),function(e){e.PAYMENT_SOURCE="payment_source",e.CARD_PAYMENT_SOURCE_WITH_CVV="card_payment_source_with_cvv",e.CARD_PAYMENT_SOURCE_WITHOUT_CVV="card_payment_source_without_cvv"}(gs||(gs={})),function(e){e.PAYMENT_SOURCE_TOKEN="payment_source"}(Cs||(Cs={})),function(e){e.GATEWAY_ID="gateway_id",e.TYPE="type",e.CUSTOMER_ID="customer_id",e.CARD_SCHEME="card_scheme",e.CARD_PROCESSING_NETWORK="card_processing_network"}(ys||(ys={})),function(e){e.ACCOUNT_NAME="account_name",e.ACCOUNT_BSB="account_bsb",e.ACCOUNT_NUMBER="account_number",e.ACCOUNT_ROUTING="account_routing",e.ACCOUNT_HOLDER_TYPE="account_holder_type",e.ACCOUNT_BANK_NAME="account_bank_name",e.ACCOUNT_TYPE="account_type",e.CARD_NAME="card_name",e.CARD_NUMBER="card_number",e.EXPIRE_MONTH="expire_month",e.EXPIRE_YEAR="expire_year",e.CARD_CCV="card_ccv",e.CARD_PIN="card_pin",e.FIRST_NAME="first_name",e.LAST_NAME="last_name",e.EMAIL="email",e.PHONE="phone",e.PHONE2="phone2",e.ADDRESS_LINE1="address_line1",e.ADDRESS_LINE2="address_line2",e.ADDRESS_STATE="address_state",e.ADDRESS_COUNTRY="address_country",e.ADDRESS_CITY="address_city",e.ADDRESS_POSTCODE="address_postcode",e.ADDRESS_COMPANY="address_company",e.CARD_SCHEME="card_scheme",e.CARD_PROCESSING_NETWORK="card_processing_network"}(bs||(bs={})),function(e){e.BRAND_NAME="brand_name",e.CART_BORDER_COLOR="cart_border_color",e.REFERENCE="reference",e.EMAIL="email",e.HDR_IMG="hdr_img",e.LOGO_IMG="logo_img",e.PAY_FLOW_COLOR="pay_flow_color",e.FIRST_NAME="first_name",e.LAST_NAME="last_name",e.ADDRESS_LINE="address_line",e.ADDRESS_LINE2="address_line2",e.ADDRESS_CITY="address_city",e.ADDRESS_STATE="address_state",e.ADDRESS_POSTCODE="address_postcode",e.ADDRESS_COUNTRY="address_country",e.PHONE="phone",e.HIDE_SHIPPING_ADDRESS="hide_shipping_address",e.CUSTOMER_STORAGE_NUMBER="customer_storage_number",e.TOKENISE_ALGORITHM="tokenise_algorithm"}(Es||(Es={}));var Is="configuration",Rs="identity_access_management",xs="internal",Ps="process",Ds="resource",Ls="validation",Us="aborted",Fs="access_forbidden",Hs="already_exists",js="canceled",Bs="invalid_configuration",zs="invalid_input",Ws="not_found",Vs="not_implemented",Gs="rate_limited",qs="server_busy",Ys="service_unreachable",Ks="unauthorized",Xs="unknown_error",$s="unprocessable_entity",Js=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[s.message])).cause=e,a.category=r,a.retryable=o,a.details=s,Object.setPrototypeOf(a,t.prototype),a.name=t.name,a}return d(t,e),o(t,[{key:"toJSON",value:function(){return{error:{category:this.category,cause:this.cause,details:this.details,retryable:this.retryable}}}},{key:"setContextId",value:function(e){this.details.contextId=e}},{key:"setPurpose",value:function(e){this.purpose=e}}],[{key:"create",value:function(e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r={cause:e,contextId:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",message:n,timestamp:(new Date).toISOString()},o=function(e){switch(e){case Bs:return Is;case Fs:case Ks:return Rs;case Ys:case Vs:case qs:return xs;case Us:case js:return Ps;case Ws:case Gs:return Ds;case Hs:case zs:case $s:return Ls;default:return xs}}(e);return new t(e,o,i,r)}}])}(E(Error));function Zs(e){var t,n;switch(e.status){case 400:t=zs,n=e.message||"validation_error";break;case 401:t=Ks,n=e.message||"unauthorized_resource";break;case 403:t=Fs,n=e.message||"invalid_credentials";break;case 404:t=Ws,n=e.message||"not_found";break;case 429:t=Gs,n=e.message||"rate_limited";break;case 500:t=qs,n=e.message||"server_busy";break;case 503:t=Ys,n=e.message||"service_unreachable";break;default:t=Xs,n=e.message||"unknown_error"}return{cause:t,message:n}}var Qs={CARD:"card",GIFT_CARD:"gift_card",BANK_ACCOUNT:"bank_account",CHECKOUT:"checkout",BSB:"bsb"};e.PURPOSE=void 0,function(e){e.PAYMENT_SOURCE="payment_source",e.CARD_PAYMENT_SOURCE_WITH_CVV="card_payment_source_with_cvv",e.CARD_PAYMENT_SOURCE_WITHOUT_CVV="card_payment_source_without_cvv"}(e.PURPOSE||(e.PURPOSE={}));var ea=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qs.CARD,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.PURPOSE.PAYMENT_SOURCE;if(i(this,t),-1===yo.values(Qs).indexOf(r))throw new Error("unsupported payment type");if(r===Qs.CHECKOUT)throw new Error('Payment type "checkout" is deprecated. Use CheckoutButton for this type of payments https://www.npmjs.com/package/@paydock/client-sdk#checkout-button');if(-1===yo.values(e.PURPOSE).indexOf(o))throw new Error("unsupported purpose");this.env=new Z(q),this.configs={purpose:o,meta:{},dynamic_fields_position:!0,predefined_fields:{gateway_id:n,type:r,card_scheme:null,card_processing_network:null},defined_form_fields:[]}}return o(t,[{key:"setWebHookDestination",value:function(e){this.configs.webhook_destination=e}},{key:"setSuccessRedirectUrl",value:function(e){this.configs.success_redirect_url=e}},{key:"setErrorRedirectUrl",value:function(e){this.configs.error_redirect_url=e}},{key:"setFormFields",value:function(e){for(var t in Array.isArray(this.configs.defined_form_fields)||(this.configs.defined_form_fields=[]),e)e.hasOwnProperty(t)&&(-1!==yo.values(hr).indexOf(e[t].replace("*",""))?this.configs.defined_form_fields.push(e[t]):console.warn("Configuration::setFormFields: unsupported form field ".concat(e[t])))}},{key:"setMeta",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(-1!==gr.indexOf(t)?this.configs.meta[t]=e[t]:console.warn("Configuration::setMeta: unsupported meta key ".concat(t)))}},{key:"setEnv",value:function(e,t){this.env.setEnv(e,t)}},{key:"setLabel",value:function(e){this.configs.label=e}},{key:"getEnv",value:function(){return this.env.getEnv()}},{key:"createToken",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){};this.send(e,this.getUrl(),"POST",(function(e,i){if(i>=200&&i<300)return t(e.resource.data.configuration_token);void 0===e.error||void 0===e.error.message?n("unknown error"):n(e.error.message)}))}},{key:"getDefaultGateway",value:function(e,t,n){var i=Ue.create(t,n).setHeader(Le.getAccessHeaderNameByToken(e),e).setContentTypeJson().setSdkVersion().inner();return new Promise((function(e,t){i.onload=function(){try{var n=JSON.parse(i.responseText);e(n)}catch(e){t(e)}},i.send()}))}},{key:"send",value:function(e,t,n,i){var r=Ue.create(n,t).setHeader(Le.getAccessHeaderNameByToken(e),e).setContentTypeJson().setSdkVersion().inner();r.onload=function(){var e={};try{e=JSON.parse(r.responseText)}catch(e){}i(e,r.status)},r.send(JSON.stringify(this.getConfigs()))}},{key:"getConfigs",value:function(){return this.configs}},{key:"getUrl",value:function(){return this.env.getConf().url+"/v1/remote-action/configs"}},{key:"getDefaultGatewayUrl",value:function(){return this.env.getConf().url+"/v1/gateways/default"}},{key:"setGiftCardSchemeData",value:function(e,t){if(this.configs.predefined_fields.type!==Qs.GIFT_CARD)throw new Error("unsupported payment type");if(!e||!t)throw new Error("");this.configs.predefined_fields.card_scheme=e,this.configs.predefined_fields.card_processing_network=t}}],[{key:"createEachToken",value:function(e,n){return ie(this,void 0,void 0,p().mark((function i(){var r,o,s,a,c,l,u,d;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:r=new Array(n.length),i.t0=p().keys(n);case 2:if((i.t1=i.t0()).done){i.next=20;break}if(o=i.t1.value,!n.hasOwnProperty(o)){i.next=18;break}if("default"!==n[o].configs.predefined_fields.gateway_id){i.next=16;break}return i.next=8,n[o].getDefaultGateway(e,"GET",n[o].getDefaultGatewayUrl());case 8:if(200===(s=i.sent).status){i.next=15;break}throw console.error("--- | gateway: default | ".concat(s.error.message)),a=Zs({status:s.status,message:s.error.message}),c=a.cause,l=a.message,(u=Js.create(c,l)).setPurpose(n[o].configs.purpose),u;case 15:n[o].configs.predefined_fields.gateway_id=s.resource.data._id;case 16:(d=ks(n[o].configs))&&t.addTokenInBase64(r,JSON.stringify(d),o);case 18:i.next=2;break;case 20:return i.abrupt("return",r);case 21:case"end":return i.stop()}}),i)})))}},{key:"addTokenInBase64",value:function(e,t,n){e[n]=window.btoa(t)}}])}(),ta={INPUT:"input",SUBMIT_BUTTON:"submit_button",LABEL:"label",TITLE:"title",TITLE_DESCRIPTION:"title_description"},na={ERROR:"error",FOCUS:"focus",HOVER:"hover"},ia=[{element:ta.INPUT,states:[na.FOCUS,na.ERROR],styles:["color","border","border_radius","background_color","height","text_decoration","font_size","font_family","line_height","font_weight","padding","margin","transition"]},{element:ta.SUBMIT_BUTTON,states:[na.HOVER],styles:["color","border","border_radius","background_color","text_decoration","font_size","font_family","line_height","font_weight","padding","margin","transition","opacity"]},{element:ta.LABEL,states:[],styles:["color","text_decoration","font_size","font_family","line_height","font_weight","padding","margin"]},{element:ta.TITLE,states:[],styles:["color","text_decoration","font_size","font_family","line_height","font_weight","padding","margin","text_align"]},{element:ta.TITLE_DESCRIPTION,states:[],styles:["color","text_decoration","font_size","font_family","line_height","font_weight","padding","margin","text_align"]}],ra=function(){return o((function e(){i(this,e)}),null,[{key:"check",value:function(e,t,n,i){for(var r in e)if(e.hasOwnProperty(r)&&e[r].element===t){if(-1===e[r].states.indexOf(n)&&n)return!1;for(var o in i)if(i.hasOwnProperty(o)&&-1===e[r].styles.indexOf(o.replace("-","_")))return!1;return!0}return!1}},{key:"encode",value:function(e,t,n){var i=[];for(var r in n)n.hasOwnProperty(r)&&i.push("".concat(r.replace("_","-"),":").concat(n[r]));var o=i.join(";");return t?"".concat(e,"::").concat(t,"{").concat(o,"}"):"".concat(e,"{").concat(o,"}")}},{key:"decode",value:function(e){var t=(e.match("::(.*){")||["",null])[1],n=null!==t?(e.match("(.*)::")||["",""])[1].trim():(e.match("(.*){")||["",""])[1].trim(),i=(e.match("{(.*)}")||["",""])[1].split(";"),r={};for(var o in i)if(i.hasOwnProperty(o)){var s=i[o].split(":");(s||2===s.length)&&(r[s[0].trim()]=(s[1]||"").trim())}return{element:n,state:t,styles:r}}}])}(),oa=function(){return o((function e(t,n){i(this,e),this.configs=[],this.configTokens=[],this.link=new Pi("/remote-action"),Q.version&&this.link.setParams({sdk_version:Q.version,sdk_type:Q.type});var r=Le.validateJWT(t);if(r){if(!Le.validateJWTWhitelistedDomains(r.body))throw Error("access Token is not valid for current domain");this.link.setParams({token:t})}else this.link.setParams({public_key:t});if(this.accessToken=t,!n||Array.isArray(n)&&!n.length)throw Error("configuration token is required");if("string"==typeof n)this.configTokens.push(n);else if(n instanceof ea)this.configs.push(n);else if(Array.isArray(n)&&"string"==typeof n[0])this.configTokens=n;else{if(!(Array.isArray(n)&&n[0]instanceof ea))throw Error("Unsupported type of configuration token");this.configs=n}this.event=new Hi(window)}),[{key:"setStyles",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setStyle(t,e[t])}},{key:"usePhoneCountryMask",value:function(e){return e?!e.only_countries||/^[a-z]+$/.test(e.only_countries.join(""))&&2*e.only_countries.length===e.only_countries.join("").length?!e.preferred_countries||/^[a-z]+$/.test(e.preferred_countries.join(""))&&2*e.preferred_countries.length===e.preferred_countries.join("").length?e.default_country&&2!==e.default_country.length?console.warn("Widget::usePhoneCountryMask[s: default_country - incorrect value length"):(this.link.setParams({use_country_phone_mask:!0}),e.only_countries&&this.link.setParams({phone_mask_only_countries:e.only_countries.join(",")}),e.preferred_countries&&this.link.setParams({phone_mask_preferred_countries:e.preferred_countries.join(",")}),void(e.default_country&&this.link.setParams({phone_mask_default_country:e.default_country}))):console.warn("Widget::usePhoneCountryMask[s: preferred_countries - unsupported symbols or incorrect length of value"):console.warn("Widget::usePhoneCountryMask[s: only_countries - unsupported symbols or incorrect length of value"):this.link.setParams({use_country_phone_mask:!0})}},{key:"setStyle",value:function(e,t){-1!==yo.values(pr).indexOf(e)?this.link.setParams(a({},e,t)):console.warn("Widget::setStyle[s: unsupported style param ".concat(e))}},{key:"setTexts",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setText(t,e[t])}},{key:"setText",value:function(e,t){-1!==yo.values(fr).indexOf(e)?this.link.setParams(a({},e,t)):console.warn("Widget::setText[s: unsupported text param ".concat(e))}},{key:"setElementStyle",value:function(e,t,n){var i=3===arguments.length?t:null,r=3===arguments.length?n:t;if(!ra.check(ia,e,i,r))return console.warn('Styles for "'.concat(e,'" element with "').concat(i||"default",'" state was ignored because some of the arguments are unacceptable'));this.link.concatParams({element_styles:ra.encode(e,i,r)})}},{key:"setFormValues",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setFormValue(t,e[t])}},{key:"setFormValue",value:function(e,t){return-1===yo.values(hr).indexOf(e)?console.warn("Widget::setFormValues[s: unsupported field ".concat(e)):/\,/.test(t)||/\:/.test(t)?console.warn("Widget::setFormValues[s: ".concat(e," - unsupported symbols (: or ,) in value")):void("string"==typeof this.link.getParams().form_values&&this.link.getParams().form_values.length?this.link.setParams({form_values:"".concat(this.link.getParams().form_values,",").concat(e,":").concat(t)}):this.link.setParams({form_values:"".concat(e,":").concat(t)}))}},{key:"setFormLabels",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setFormLabel(t,e[t])}},{key:"setFormLabel",value:function(e,t){if(-1===yo.values(hr).indexOf(e))return console.warn("Widget::setFormLabel[s: unsupported field ".concat(e));var n=null===t||""===t?" ":t;if(/\,/.test(n)||/\:/.test(n))return console.warn("Widget::setFormLabel[s: ".concat(e," - unsupported symbols (: or ,) in value"));this.link.concatParams({form_labels:"".concat(e,":").concat(n)})}},{key:"setFormPlaceholders",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setFormPlaceholder(t,e[t])}},{key:"setFormPlaceholder",value:function(e,t){if(-1===yo.values(hr).indexOf(e))return console.warn("Widget::setFormPlaceholder[s: unsupported field ".concat(e));var n=null===t||""===t?" ":t;if(/\,/.test(n)||/\:/.test(n))return console.warn("Widget::setFormPlaceholder[s: ".concat(e," - unsupported symbols (: or ,) in value"));this.link.concatParams({form_placeholders:"".concat(e,":").concat(n)})}},{key:"setFormElements",value:function(e){var t=this;e.forEach((function(e){return t.setFormElement(e)}))}},{key:"setFormElement",value:function(e){e.value&&this.setFormValue(e.field,e.value),e.label&&this.setFormLabel(e.field,e.label),e.placeholder&&this.setFormPlaceholder(e.field,e.placeholder)}},{key:"setIcons",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setIcon(t,e[t])}},{key:"setIcon",value:function(e,t){if(/\,/.test(t)||/\:/.test(t))return console.warn("Widget::setIcon[s: ".concat(e," - unsupported symbols (: or ,) in value"));"string"==typeof this.link.getParams().icons&&this.link.getParams().icons.length?this.link.setParams({icons:"".concat(this.link.getParams().icons,",").concat(e,":").concat(t)}):this.link.setParams({icons:"".concat(e,":").concat(t)})}},{key:"setHiddenElements",value:function(e){var t=[],n=yo.values(mr).concat(yo.values(hr));for(var i in e)e.hasOwnProperty(i)&&(-1!==n.indexOf(e[i])?t.push(e[i]):console.warn("Widget::setHiddenElements: unsupported element ".concat(e[i])));t.length&&this.link.concatParams({hidden_elements:t.join(",")})}},{key:"setRefId",value:function(e){this.link.setParams({ref_id:e})}},{key:"useGatewayFieldValidation",value:function(){this.link.setParams({fields_validation:!0})}},{key:"setSupportedCardIcons",value:function(e,t){var n=[];for(var i in e)e.hasOwnProperty(i)&&(-1!==yo.values(vr).indexOf(e[i])?n.push(e[i]):console.warn("Widget::cardTypes: unsupported type of cards ".concat(e[i])));n.length&&this.link.concatParams({supported_card_types:n.join(",")}),t&&this.link.setParams({validate_card_types:t})}},{key:"hideUiErrors",value:function(){this.link.setParams({hide_ui_errors:!0})}},{key:"setEnv",value:function(e,t){for(var n in this.link.setEnv(e,t),this.configs)this.configs.hasOwnProperty(n)&&this.configs[n].setEnv(e,t)}},{key:"getEnv",value:function(){this.link.getEnv()}},{key:"loadIFrameUrl",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){};this.link.setParams({configuration_tokens:"",sdk_origin:!0}),this.configTokens.length?(this.link.setParams({configuration_tokens:this.configTokens.join(",")}),e(this.link.getUrl())):ea.createEachToken(this.accessToken,this.configs).then((function(n){t.link.concatParams({configuration_tokens:n.join(",")}),e(t.link.getUrl())})).catch(n)}},{key:"setLanguage",value:function(e){this.link.setParams({language:e})}},{key:"getLink",value:function(){return this.link}},{key:"handleErrorEvent",value:function(e,t,n){Object.values(Fi).includes(e)?this.event.emit({error:t,event:e,message_source:"client-sdk.paydock",purpose:n,widget_id:this.link.getParams().widget_id}):console.error("Unknown event: ",{event:e,error:t})}},{key:"enableSaveCardConsentCheckbox",value:function(){var e,t,n;"card"===(null===(n=null===(t=null===(e=this.configs[0])||void 0===e?void 0:e.getConfigs())||void 0===t?void 0:t.predefined_fields)||void 0===n?void 0:n.type)&&this.setFormValue("save_card_consent_accepted","false")}}])}(),sa=function(){return o((function e(t){i(this,e),this.intercepted=!1,this.selector=t}),[{key:"getElement",value:function(){return document.querySelector(this.selector)}},{key:"isExist",value:function(){return!!this.getElement()}},{key:"beforeSubmit",value:function(e){var t=this;this.isExist()&&this.subscribe(this.getElement(),(function(n){n.preventDefault(),t.intercepted=!0,e.apply(t,[])}))}},{key:"continueSubmit",value:function(){var e=this;this.isExist()&&this.intercepted&&(this.intercepted=!1,setTimeout((function(){e.getElement().submit()}),50))}},{key:"subscribe",value:function(e,t){e.addEventListener?e.addEventListener("submit",t):e.attachEvent("onsubmit",t)}}])}(),aa=function(e){function t(e,r,o){var s;return i(this,t),(s=n(this,t,[r,o])).validationData={},s.container=new Li(e),s.iFrame=new Ui(s.container),s.triggerElement=new _o(s.iFrame),s}return d(t,e),o(t,[{key:"load",value:function(){var e=this;this.setStyles(this.container.getStyles(yo.values(pr))),this.setTexts(this.container.getAttr(yo.values(fr))),this.loadIFrameUrl((function(t){e.iFrame.load(t,{title:"Card details"}),e.afterLoad()}),(function(t){t instanceof Js&&(t.setContextId(e.link.getParams().widget_id),e.handleErrorEvent(Fi.ERROR,t.toJSON().error,t.purpose)),console.error("Error when creating a token, widget will not be loaded")}))}},{key:"afterLoad",value:function(){var e=this;this.on(Fi.VALIDATION,(function(t){e.validationData=t}))}},{key:"on",value:function(e,t){var n=this;return"function"==typeof t?this.event.on(e,this.link.getParams().widget_id,t):new Promise((function(t){return n.event.on(e,n.link.getParams().widget_id,(function(e){return t(e)}))}))}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.triggerElement.push(e,t)}},{key:"getValidationState",value:function(){return this.validationData}},{key:"isValidForm",value:function(){return!!this.validationData.form_valid}},{key:"isInvalidField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!this.validationData.invalid_fields&&-1!==this.validationData.invalid_fields.indexOf(e)}},{key:"isFieldErrorShowed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!this.validationData.invalid_showed_fields&&-1!==this.validationData.invalid_showed_fields.indexOf(e)}},{key:"isInvalidFieldByValidator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=!1;if(!this.validationData.validators)return n;var i=this.validationData.validators[t];return i?-1!==i.indexOf(e):n}},{key:"hide",value:function(e){this.iFrame.hide(e)}},{key:"show",value:function(){this.iFrame.show()}},{key:"reload",value:function(){this.iFrame.remove(),this.load()}},{key:"hideElements",value:function(e){var t=[],n=yo.values(mr).concat(yo.values(hr));for(var i in e)e.hasOwnProperty(i)&&(-1!==n.indexOf(e[i])?t.push(e[i]):console.warn("Widget::hideElements: unsupported element ".concat(e[i])));t.length&&this.trigger(wo.HIDE_ELEMENTS,{elements:t.join(",")})}},{key:"showElements",value:function(e){var t=[],n=yo.values(mr).concat(yo.values(hr));for(var i in e)e.hasOwnProperty(i)&&(-1!==n.indexOf(e[i])?t.push(e[i]):console.warn("Widget::showElements: unsupported element ".concat(e[i])));t.length&&this.trigger(wo.SHOW_ELEMENTS,{elements:t.join(",")})}},{key:"updateFormValues",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.updateFormValue(t,e[t])}},{key:"updateFormValue",value:function(e,t){return-1===yo.values(hr).indexOf(e)?console.warn("Widget::setFormValues[s: unsupported field ".concat(e)):/\,/.test(t)||/\:/.test(t)?console.warn("Widget::setFormValues[s: ".concat(e," - unsupported symbols (: or ,) in value")):void this.trigger(wo.UPDATE_FORM_VALUES,{form_values:"".concat(e,":").concat(t)})}},{key:"onFinishInsert",value:function(e,t){this.on(Fi.FINISH,(function(n){Di.insertToInput(e,t,n)}))}},{key:"interceptSubmitForm",value:function(e){var t=this;this.setHiddenElements([mr.SUBMIT_BUTTON]);var n=new sa(e);n.beforeSubmit((function(){t.triggerElement.push(wo.SUBMIT_FORM,{}),t.event.on(Fi.FINISH,t.link.getParams().widget_id,(function(){n.continueSubmit()}))}))}},{key:"useCheckoutAutoSubmit",value:function(){var e=this;this.setHiddenElements([mr.SUBMIT_BUTTON]),this.on(Fi.CHECKOUT_SUCCESS,(function(t){e.trigger(wo.SUBMIT_FORM)})),this.on(Fi.VALIDATION_ERROR,(function(t){e.trigger(wo.REFRESH_CHECKOUT)})),this.on(Fi.SYSTEM_ERROR,(function(t){e.trigger(wo.REFRESH_CHECKOUT)}))}},{key:"useAutoResize",value:function(){var e=this;this.on(Fi.RESIZE,(function(t){e.iFrame.getElement()&&(e.iFrame.getElement().scrolling="no",t.height&&e.iFrame.setStyle("height",t.height+"px"))}))}}])}(oa),ca=function(e){function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",s=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return i(this,t),n(this,t,[e,r,new ea(o,s,a)])}return d(t,e),o(t,[{key:"setWebHookDestination",value:function(e){this.configs[0].setWebHookDestination(e)}},{key:"setSuccessRedirectUrl",value:function(e){this.configs[0].setSuccessRedirectUrl(e)}},{key:"setErrorRedirectUrl",value:function(e){this.configs[0].setErrorRedirectUrl(e)}},{key:"setFormFields",value:function(e){this.configs[0].setFormFields(e)}},{key:"setFormElements",value:function(e){var t,n=s(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.setFormElement(i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"setFormElement",value:function(e){this.configs[0].setFormFields([e.field]),v(t,"setFormElement",this)([c(c({},e),{field:e.field.replace("*","")})])}},{key:"setMeta",value:function(e){this.configs[0].setMeta(e)}},{key:"setGiftCardScheme",value:function(e,t){this.configs[0].setGiftCardSchemeData(e,t)}}])}(aa),la=function(){return o((function e(){i(this,e)}),null,[{key:"getSpinnerElement",value:function(){return document.getElementById("spinner")}},{key:"show",value:function(){var e=this.getSpinnerElement();null==e||e.classList.remove("spinner-wrapper--hidden")}},{key:"hide",value:function(){var e=this.getSpinnerElement();null==e||e.classList.add("spinner-wrapper--hidden")}}])}(),ua=function(){return o((function e(){i(this,e),this.instructions=[]}),[{key:"getInstruction",value:function(e){return this.instructions.find((function(t){return t.instruction==e}))}}])}();var da=function(){return o((function e(t,n,r,o){i(this,e),this.selector=t,this.formSelector=n,this.api=r,this.checkoutWidget=o}),[{key:"getEnv",value:function(e){var t=Le.validateJWT(e);if(!t)throw new Error("Invalid instruction token.");return Le.extractEnv(t.body)}}])}();function ha(e){return function(t){var r;return r=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t)}(t),r.instruction=e,r}}var pa=function(){return o((function e(){i(this,e)}),null,[{key:"sessionId",get:function(){return window.sessionStorage.getItem("sessionId")},set:function(e){window.sessionStorage.setItem("sessionId",e)}},{key:"setExpired",value:function(e){this.expired.next(e)}}])}();pa.expired=new xe(!1);var fa={zipmoney:'<svg id="svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="90"\n height="{{iconHeight}}" viewBox="0, 0, 400,198.7987987987988">\n <g id="svgg">\n <path id="path0"\n d="M138.764 66.505 C 138.630 66.667,138.397 66.799,138.246 66.799 C 138.095 66.799,137.972 66.978,137.972 67.197 C 137.972 67.416,138.100 67.594,138.257 67.594 C 138.821 67.594,139.116 71.699,138.590 72.225 C 138.469 72.346,138.371 72.539,138.373 72.654 C 138.374 72.769,138.454 72.740,138.549 72.589 C 139.373 71.289,139.848 75.804,139.075 77.584 C 138.959 77.851,139.018 77.932,139.329 77.932 C 139.872 77.932,140.007 78.448,139.932 80.240 C 139.893 81.185,139.951 81.781,140.092 81.869 C 140.676 82.235,140.934 84.735,140.536 86.171 C 140.357 86.816,140.371 86.993,140.617 87.173 C 141.079 87.511,141.364 88.886,141.285 90.388 C 141.231 91.396,141.295 91.876,141.531 92.237 C 141.878 92.770,141.968 96.025,141.664 97.068 C 141.540 97.493,141.571 97.614,141.804 97.614 C 142.460 97.614,142.791 100.359,142.264 101.417 C 142.080 101.785,142.041 101.974,142.178 101.838 C 142.960 101.056,143.446 103.705,142.930 105.943 C 142.754 106.707,142.777 106.861,143.117 107.177 C 143.729 107.747,143.923 110.242,143.444 111.382 C 143.340 111.627,143.389 111.730,143.609 111.730 C 144.285 111.730,144.499 114.377,144.021 116.821 C 143.921 117.328,143.971 117.458,144.297 117.543 C 144.756 117.663,145.085 119.720,144.831 120.877 C 144.741 121.284,144.771 121.572,144.912 121.659 C 145.352 121.930,145.620 123.952,145.394 125.290 C 145.207 126.390,145.223 126.581,145.525 126.871 C 145.915 127.245,146.201 129.182,146.009 130.144 C 145.930 130.540,146.002 130.984,146.211 131.390 C 146.636 132.210,146.803 134.196,146.568 135.636 C 146.430 136.486,146.442 136.779,146.616 136.779 C 147.179 136.779,147.610 141.200,147.068 141.419 C 146.910 141.483,146.937 141.525,147.143 141.535 C 147.770 141.565,148.106 143.972,147.715 145.626 C 147.565 146.261,147.588 146.467,147.827 146.648 C 148.458 147.124,148.733 149.390,148.281 150.382 C 148.082 150.819,148.114 150.932,148.529 151.269 C 149.057 151.696,149.202 153.894,148.834 155.915 C 148.689 156.712,148.711 156.859,148.974 156.859 C 149.583 156.859,149.960 159.731,149.508 160.921 C 149.353 161.328,149.374 161.431,149.612 161.431 C 150.046 161.431,150.298 162.273,150.298 163.716 C 150.298 164.601,150.392 165.075,150.611 165.294 C 150.893 165.577,156.544 165.606,209.834 165.606 L 268.744 165.606 268.844 165.159 C 268.899 164.913,268.959 164.091,268.977 163.332 C 268.995 162.573,269.054 161.880,269.108 161.792 C 269.359 161.387,269.343 160.835,269.081 160.835 C 268.604 160.835,268.390 160.127,268.390 158.549 C 268.390 157.714,268.482 156.858,268.595 156.647 C 268.756 156.346,268.736 156.262,268.503 156.262 C 267.818 156.262,267.520 152.966,268.085 151.640 C 268.199 151.373,268.138 151.292,267.824 151.292 C 267.515 151.292,267.388 151.133,267.311 150.646 C 267.055 149.028,267.058 147.986,267.318 147.478 C 267.592 146.943,267.502 146.233,267.186 146.428 C 266.657 146.755,266.340 143.058,266.794 141.862 C 266.949 141.455,266.928 141.352,266.690 141.352 C 266.051 141.352,265.699 138.370,266.189 137.104 C 266.384 136.600,266.351 136.480,265.908 136.070 C 265.540 135.728,265.398 135.379,265.371 134.751 C 265.307 133.228,265.444 131.517,265.651 131.262 C 265.798 131.083,265.766 131.014,265.538 131.014 C 264.866 131.014,264.445 129.134,264.830 127.849 C 265.045 127.131,265.034 127.000,264.740 126.785 C 264.140 126.346,263.988 123.070,264.510 121.819 C 264.620 121.555,264.559 121.471,264.257 121.471 C 263.515 121.471,263.168 119.001,263.702 117.520 C 264.103 116.408,264.097 116.302,263.632 116.302 C 262.968 116.302,262.648 112.800,263.214 111.741 C 263.401 111.393,263.376 111.332,263.042 111.332 C 262.203 111.332,262.071 109.442,262.749 107.108 C 262.818 106.869,262.696 106.701,262.360 106.574 C 261.760 106.345,261.495 104.671,261.809 103.082 C 261.974 102.250,261.954 102.048,261.690 101.846 C 261.076 101.376,260.984 98.521,261.532 96.918 C 261.616 96.673,261.602 96.612,261.495 96.759 C 260.940 97.522,260.342 95.416,260.568 93.494 C 260.665 92.670,260.598 92.242,260.244 91.419 C 259.766 90.309,259.744 88.269,260.209 88.115 C 260.334 88.073,260.436 87.845,260.434 87.608 C 260.432 87.334,260.376 87.264,260.280 87.415 C 259.545 88.571,258.952 85.112,259.514 82.946 C 259.766 81.975,259.760 81.909,259.418 81.909 C 258.766 81.909,258.524 79.431,259.006 77.684 C 259.188 77.026,259.169 76.956,258.790 76.900 C 258.199 76.813,257.985 75.799,258.116 73.708 C 258.176 72.745,258.146 71.968,258.048 71.968 C 257.514 71.968,257.296 69.396,257.755 68.516 C 258.161 67.738,258.134 67.411,257.673 67.532 C 257.412 67.600,257.254 67.502,257.163 67.216 C 256.815 66.119,261.472 66.199,197.719 66.205 C 146.119 66.210,138.979 66.246,138.764 66.505 "\n stroke="none" fill="#ac93fb" fill-rule="evenodd"></path>\n <path id="path1"\n d="M154.005 22.515 C 153.942 22.754,153.717 22.863,153.285 22.863 C 152.939 22.863,152.521 22.997,152.357 23.161 C 152.193 23.325,151.880 23.459,151.661 23.459 C 151.443 23.459,151.130 23.593,150.966 23.757 C 150.802 23.921,150.495 24.056,150.284 24.056 C 150.073 24.056,149.901 24.145,149.901 24.254 C 149.901 24.364,149.783 24.453,149.639 24.453 C 149.495 24.453,149.100 24.766,148.761 25.149 C 148.422 25.532,148.087 25.845,148.015 25.845 C 147.943 25.845,147.767 25.957,147.624 26.093 C 147.482 26.230,147.175 26.474,146.943 26.634 C 146.711 26.795,146.520 27.019,146.518 27.131 C 146.514 27.411,145.040 29.026,144.789 29.026 C 144.679 29.026,144.632 29.255,144.685 29.535 C 144.759 29.922,144.688 30.068,144.390 30.146 C 144.095 30.224,144.021 30.372,144.092 30.743 C 144.162 31.112,144.088 31.262,143.799 31.338 C 143.500 31.416,143.432 31.570,143.498 32.019 C 143.609 32.778,143.396 33.598,143.088 33.598 C 142.903 33.598,142.843 34.507,142.843 37.326 C 142.843 39.376,142.773 41.322,142.688 41.650 C 142.588 42.035,142.598 42.148,142.717 41.969 C 143.084 41.419,143.539 41.888,143.539 42.815 C 143.539 43.414,143.634 43.732,143.837 43.809 C 144.022 43.880,144.135 44.183,144.135 44.605 C 144.135 45.026,144.249 45.329,144.433 45.400 C 144.597 45.463,144.732 45.733,144.732 46.001 C 144.732 46.269,144.799 46.518,144.881 46.554 C 145.110 46.656,145.924 47.870,145.924 48.110 C 145.924 48.227,146.193 48.586,146.521 48.907 C 146.849 49.227,147.117 49.627,147.117 49.794 C 147.117 49.962,147.207 50.099,147.316 50.099 C 147.425 50.099,147.515 50.224,147.515 50.376 C 147.515 50.529,147.649 50.705,147.813 50.768 C 147.977 50.831,148.111 51.067,148.111 51.292 C 148.111 51.518,148.246 51.754,148.410 51.817 C 148.574 51.880,148.708 52.056,148.708 52.208 C 148.708 52.360,148.832 52.485,148.985 52.485 C 149.137 52.485,149.314 52.621,149.378 52.788 C 149.456 52.991,149.646 53.053,149.951 52.977 C 150.418 52.859,152.087 54.146,152.087 54.623 C 152.087 54.740,152.275 54.784,152.510 54.723 C 152.784 54.652,152.998 54.728,153.117 54.940 C 153.217 55.121,153.464 55.268,153.663 55.268 C 153.863 55.268,154.138 55.403,154.274 55.567 C 154.410 55.731,154.743 55.865,155.013 55.865 C 155.322 55.865,155.540 56.000,155.600 56.229 C 155.673 56.511,155.879 56.589,156.513 56.577 C 157.199 56.563,157.349 56.632,157.443 57.002 C 157.528 57.337,157.626 57.398,157.853 57.254 C 158.251 57.000,159.573 57.006,160.053 57.263 C 160.531 57.520,160.548 57.802,160.089 57.892 C 159.898 57.929,161.016 57.958,162.574 57.956 C 164.132 57.954,165.317 57.922,165.208 57.886 C 164.384 57.610,165.262 57.058,166.524 57.058 C 167.011 57.058,167.629 56.914,167.898 56.738 C 168.191 56.545,168.577 56.465,168.863 56.537 C 169.228 56.629,169.362 56.564,169.442 56.261 C 169.510 55.999,169.713 55.865,170.040 55.865 C 170.312 55.865,170.583 55.738,170.643 55.582 C 170.710 55.406,170.910 55.341,171.173 55.409 C 171.475 55.488,171.622 55.414,171.694 55.146 C 171.823 54.660,173.200 53.678,173.751 53.678 C 173.986 53.678,174.123 53.588,174.056 53.479 C 173.988 53.370,174.028 53.280,174.143 53.280 C 174.259 53.280,174.354 53.083,174.354 52.843 C 174.354 52.582,174.715 52.064,175.249 51.560 C 175.742 51.093,176.143 50.532,176.143 50.308 C 176.143 50.084,176.233 49.901,176.342 49.901 C 176.451 49.901,176.541 49.728,176.541 49.517 C 176.541 49.306,176.668 49.007,176.823 48.852 C 176.978 48.697,177.135 48.313,177.171 48.000 C 177.219 47.584,177.370 47.400,177.732 47.315 C 178.066 47.237,178.146 47.150,177.980 47.047 C 177.445 46.716,177.748 45.129,178.346 45.129 C 178.662 45.129,178.696 45.033,178.574 44.483 C 178.376 43.597,178.392 40.648,178.600 39.587 C 178.726 38.945,178.711 38.754,178.542 38.859 C 178.416 38.937,178.182 38.892,178.023 38.760 C 177.695 38.488,177.629 37.265,177.932 37.078 C 178.234 36.891,178.170 36.523,177.857 36.643 C 177.283 36.863,176.820 35.607,177.354 35.277 C 177.485 35.196,177.388 35.053,177.105 34.911 C 176.823 34.770,176.638 34.498,176.635 34.221 C 176.632 33.969,176.476 33.677,176.287 33.572 C 176.099 33.466,175.944 33.216,175.944 33.016 C 175.944 32.817,175.810 32.542,175.646 32.406 C 175.482 32.269,175.348 32.042,175.348 31.901 C 175.348 31.759,175.281 31.614,175.199 31.577 C 174.982 31.481,173.757 29.690,173.757 29.470 C 173.757 29.368,173.489 29.078,173.161 28.827 C 172.833 28.576,172.565 28.287,172.565 28.186 C 172.565 27.879,171.425 26.839,171.089 26.839 C 170.916 26.839,170.775 26.750,170.775 26.640 C 170.775 26.531,170.664 26.441,170.527 26.441 C 170.390 26.441,169.925 26.127,169.493 25.742 C 169.061 25.358,168.368 24.894,167.952 24.710 C 167.537 24.527,167.197 24.305,167.197 24.216 C 167.197 24.128,166.970 24.056,166.694 24.056 C 166.417 24.056,166.139 23.921,166.076 23.757 C 166.004 23.571,165.701 23.459,165.268 23.459 C 164.772 23.459,164.549 23.359,164.483 23.107 C 164.410 22.827,164.229 22.771,163.594 22.831 C 162.947 22.893,162.779 22.838,162.701 22.537 C 162.556 21.983,154.150 21.962,154.005 22.515 M142.020 37.575 C 142.020 38.613,142.053 39.038,142.094 38.519 C 142.135 38.000,142.135 37.150,142.094 36.630 C 142.053 36.111,142.020 36.536,142.020 37.575 M353.777 66.021 C 352.793 66.109,335.080 66.154,314.414 66.120 C 293.748 66.087,275.564 66.106,274.006 66.162 L 271.173 66.265 271.173 66.951 C 271.173 67.485,271.240 67.611,271.478 67.520 C 272.153 67.261,272.297 68.881,271.850 71.720 C 271.730 72.483,271.756 72.565,272.127 72.565 C 272.667 72.565,272.891 74.172,272.582 75.840 C 272.300 77.370,272.308 77.535,272.669 77.535 C 273.340 77.535,273.483 79.065,273.037 81.464 C 272.937 82.004,272.970 82.092,273.235 81.990 C 273.930 81.723,274.115 83.788,273.632 86.431 C 273.530 86.989,273.570 87.078,273.922 87.078 C 274.253 87.078,274.355 87.247,274.466 87.985 C 274.591 88.821,274.561 89.251,274.234 91.274 C 274.136 91.879,274.181 92.008,274.519 92.096 C 274.819 92.175,274.954 92.434,275.059 93.131 C 275.190 94.009,275.154 94.555,274.833 96.575 C 274.717 97.307,274.742 97.407,275.020 97.300 C 275.693 97.042,275.936 99.338,275.428 101.143 C 275.334 101.477,275.385 101.590,275.628 101.590 C 276.319 101.590,276.516 103.818,276.019 106.026 C 275.916 106.482,275.969 106.604,276.307 106.693 C 276.994 106.872,277.091 108.272,276.618 111.183 C 276.511 111.843,276.544 111.928,276.908 111.928 C 277.585 111.928,277.713 113.812,277.214 116.451 C 277.108 117.011,277.147 117.097,277.503 117.097 C 278.163 117.097,278.347 119.761,277.815 121.620 C 277.712 121.981,277.767 122.068,278.099 122.068 C 278.784 122.068,278.890 123.343,278.416 125.899 C 278.299 126.529,278.326 126.629,278.586 126.529 C 279.301 126.255,279.520 128.529,279.015 130.964 C 278.898 131.528,278.934 131.610,279.292 131.610 C 279.963 131.610,280.115 133.909,279.598 136.233 C 279.496 136.692,279.542 136.779,279.888 136.779 C 280.555 136.779,280.720 139.205,280.201 141.404 C 280.100 141.836,280.134 141.930,280.362 141.843 C 281.102 141.559,281.326 143.570,280.800 145.775 C 280.689 146.239,280.732 146.322,281.086 146.322 C 281.762 146.322,281.893 148.258,281.392 150.847 C 281.289 151.379,281.321 151.475,281.572 151.379 C 282.298 151.100,282.494 153.299,281.985 156.014 C 281.881 156.568,281.920 156.660,282.262 156.660 C 282.912 156.660,283.194 159.048,282.699 160.351 C 282.439 161.035,282.605 161.558,283.125 161.694 C 283.536 161.802,283.586 163.228,283.240 165.048 C 283.092 165.830,283.107 165.830,301.988 165.764 L 318.787 165.706 318.922 164.811 C 318.996 164.319,319.119 163.665,319.196 163.358 C 319.311 162.895,319.264 162.780,318.917 162.690 C 318.229 162.510,318.143 161.333,318.597 158.314 C 318.712 157.551,318.689 157.492,318.320 157.589 C 317.648 157.764,317.512 155.785,318.013 153.144 C 318.120 152.580,318.089 152.523,317.727 152.618 C 317.065 152.791,316.957 151.436,317.372 148.161 C 317.439 147.632,317.386 147.515,317.081 147.515 C 316.711 147.515,316.380 146.784,316.537 146.314 C 316.619 146.067,353.265 146.014,357.853 146.255 C 360.143 146.375,360.317 146.359,360.068 146.059 C 359.505 145.378,362.376 145.106,364.493 145.638 C 364.915 145.744,365.030 145.720,364.923 145.547 C 364.524 144.901,366.090 144.445,367.013 144.938 C 367.337 145.112,367.430 145.064,367.591 144.640 C 367.800 144.091,368.676 143.952,369.633 144.315 C 370.043 144.471,370.105 144.438,370.093 144.067 C 370.082 143.700,370.205 143.629,370.951 143.576 C 371.431 143.541,371.960 143.377,372.127 143.209 C 372.316 143.021,372.630 142.945,372.955 143.010 C 373.334 143.086,373.546 143.009,373.719 142.731 C 373.852 142.519,374.144 142.346,374.370 142.346 C 374.595 142.346,374.922 142.203,375.096 142.029 C 375.301 141.824,375.604 141.751,375.956 141.821 C 376.389 141.908,376.521 141.846,376.607 141.517 C 376.694 141.187,376.817 141.129,377.224 141.232 C 377.652 141.339,377.734 141.291,377.734 140.933 C 377.734 140.566,377.816 140.523,378.330 140.626 C 378.732 140.707,378.928 140.666,378.930 140.502 C 378.935 140.155,379.850 139.331,380.159 139.396 C 380.301 139.426,380.714 139.176,381.075 138.840 C 381.547 138.403,381.870 138.257,382.218 138.323 C 382.576 138.392,382.704 138.329,382.704 138.084 C 382.704 137.648,388.136 132.207,388.573 132.207 C 388.829 132.207,388.881 132.093,388.790 131.730 C 388.700 131.372,388.820 131.092,389.266 130.615 C 389.593 130.265,389.861 129.818,389.861 129.623 C 389.861 129.427,389.995 129.216,390.159 129.153 C 390.323 129.090,390.457 128.868,390.457 128.659 C 390.457 128.450,390.591 128.168,390.755 128.032 C 390.919 127.896,391.054 127.661,391.054 127.510 C 391.054 127.360,391.217 127.237,391.417 127.237 C 391.707 127.237,391.763 127.117,391.693 126.642 C 391.631 126.222,391.700 126.012,391.926 125.925 C 392.134 125.845,392.247 125.564,392.247 125.122 C 392.247 124.700,392.360 124.397,392.545 124.326 C 392.729 124.255,392.843 123.953,392.843 123.531 C 392.843 123.109,392.956 122.807,393.141 122.736 C 393.327 122.664,393.439 122.361,393.439 121.928 C 393.439 121.435,393.540 121.209,393.787 121.144 C 394.077 121.069,394.124 120.870,394.066 119.957 C 394.005 118.978,394.043 118.848,394.417 118.750 C 394.807 118.648,394.828 118.549,394.709 117.388 C 394.566 115.997,394.712 115.109,395.083 115.109 C 395.553 115.109,395.424 102.431,394.952 102.308 C 394.608 102.218,394.585 102.051,394.675 100.325 C 394.765 98.610,394.741 98.432,394.405 98.344 C 394.097 98.264,394.036 98.050,394.036 97.058 C 394.036 96.183,393.957 95.837,393.738 95.753 C 393.543 95.678,393.439 95.369,393.439 94.859 C 393.439 94.348,393.336 94.039,393.141 93.964 C 392.938 93.886,392.843 93.568,392.843 92.970 C 392.843 92.371,392.748 92.054,392.545 91.976 C 392.360 91.905,392.247 91.602,392.247 91.181 C 392.247 90.759,392.133 90.456,391.948 90.385 C 391.782 90.321,391.650 90.026,391.650 89.716 C 391.650 89.374,391.496 89.065,391.248 88.910 C 390.923 88.707,390.886 88.583,391.056 88.266 C 391.235 87.931,391.203 87.873,390.839 87.873 C 390.478 87.873,390.426 87.781,390.500 87.276 C 390.565 86.829,390.509 86.680,390.274 86.679 C 389.949 86.677,389.264 85.662,389.264 85.183 C 389.264 85.033,389.117 84.828,388.936 84.727 C 388.724 84.608,388.648 84.394,388.719 84.121 C 388.780 83.888,388.765 83.698,388.685 83.698 C 388.435 83.698,387.276 82.580,387.276 82.338 C 387.276 82.211,387.187 82.107,387.078 82.107 C 386.968 82.107,386.879 81.976,386.879 81.815 C 386.879 81.655,385.492 80.147,383.797 78.464 C 382.102 76.782,380.716 75.303,380.716 75.178 C 380.716 75.053,380.508 74.950,380.254 74.950 C 380.001 74.950,379.493 74.682,379.125 74.354 C 378.758 74.026,378.339 73.757,378.195 73.757 C 378.050 73.757,377.932 73.668,377.932 73.559 C 377.932 73.449,377.801 73.360,377.641 73.360 C 377.481 73.360,377.254 73.181,377.137 72.962 C 377.020 72.744,376.749 72.565,376.534 72.565 C 376.319 72.565,376.142 72.498,376.141 72.416 C 376.140 72.333,375.648 72.048,375.048 71.781 C 374.269 71.435,373.956 71.186,373.956 70.912 C 373.956 70.609,373.899 70.576,373.683 70.754 C 373.434 70.961,372.808 70.870,372.565 70.591 C 372.359 70.356,371.055 69.798,370.577 69.741 C 370.235 69.700,370.060 69.542,370.016 69.235 C 369.945 68.735,369.776 68.674,369.429 69.020 C 369.124 69.325,368.191 68.927,368.191 68.493 C 368.191 68.132,368.151 68.127,367.530 68.410 C 366.931 68.683,366.110 68.322,366.286 67.864 C 366.373 67.637,366.296 67.598,365.953 67.697 C 365.708 67.767,365.355 67.867,365.169 67.919 C 364.983 67.970,364.638 67.819,364.402 67.583 C 364.061 67.241,363.823 67.177,363.248 67.269 C 362.239 67.430,361.630 67.235,361.630 66.751 C 361.630 66.387,361.554 66.366,360.785 66.516 C 359.064 66.852,357.256 66.639,357.256 66.100 C 357.256 65.768,356.732 65.756,353.777 66.021 M4.905 66.153 C 4.504 66.828,4.563 69.136,4.984 69.246 C 5.425 69.361,5.429 69.392,5.305 71.837 C 5.183 74.242,5.191 74.313,5.602 74.421 C 6.010 74.527,6.020 74.607,5.914 76.909 C 5.809 79.189,5.822 79.292,6.213 79.395 C 6.604 79.497,6.617 79.596,6.495 81.577 C 6.373 83.582,6.383 83.657,6.793 83.764 C 7.207 83.872,7.215 83.942,7.101 86.351 C 6.991 88.684,7.007 88.833,7.369 88.928 C 7.666 89.006,7.762 89.224,7.792 89.892 C 7.848 91.162,7.835 91.437,7.664 92.694 C 7.533 93.660,7.556 93.837,7.817 93.837 C 8.253 93.837,8.417 94.504,8.409 96.256 C 8.403 97.643,8.441 97.791,8.824 97.895 C 9.055 97.957,21.590 98.009,36.680 98.009 L 64.115 98.009 64.052 98.806 C 64.004 99.420,64.060 99.602,64.297 99.602 C 64.597 99.602,64.664 99.777,64.898 101.173 C 65.031 101.962,63.658 103.488,62.977 103.310 C 62.783 103.260,62.623 103.322,62.622 103.448 C 62.621 103.574,62.167 103.991,61.613 104.374 C 61.059 104.756,60.267 105.360,59.852 105.716 C 59.437 106.071,59.001 106.362,58.885 106.362 C 58.768 106.362,58.377 106.632,58.015 106.962 C 57.653 107.293,57.223 107.543,57.058 107.517 C 56.894 107.492,56.372 107.848,55.898 108.308 C 55.425 108.769,54.960 109.145,54.866 109.145 C 54.771 109.145,54.354 109.461,53.938 109.846 C 53.486 110.265,53.040 110.513,52.833 110.461 C 52.642 110.414,52.485 110.484,52.485 110.617 C 52.485 110.915,51.415 111.730,51.023 111.730 C 50.867 111.730,50.687 111.864,50.624 112.028 C 50.561 112.192,50.414 112.326,50.298 112.326 C 50.181 112.326,49.816 112.602,49.486 112.940 C 49.117 113.317,48.768 113.508,48.580 113.436 C 48.380 113.359,48.237 113.457,48.169 113.717 C 48.112 113.936,47.941 114.115,47.790 114.115 C 47.639 114.115,47.515 114.200,47.515 114.303 C 47.515 114.489,46.750 114.979,46.074 115.227 C 45.882 115.297,45.726 115.436,45.726 115.535 C 45.726 115.634,45.524 115.803,45.278 115.909 C 44.698 116.160,44.197 116.495,43.589 117.041 C 43.318 117.284,42.921 117.538,42.705 117.607 C 42.490 117.675,42.066 117.991,41.762 118.309 C 41.458 118.627,41.063 118.887,40.883 118.887 C 40.704 118.887,40.557 118.978,40.557 119.090 C 40.557 119.202,40.333 119.379,40.060 119.483 C 39.786 119.587,39.563 119.764,39.563 119.876 C 39.563 119.988,39.406 120.080,39.215 120.082 C 39.023 120.083,38.431 120.485,37.899 120.976 C 37.367 121.467,36.808 121.869,36.658 121.869 C 36.508 121.869,36.138 122.122,35.837 122.431 C 35.535 122.740,35.154 123.057,34.990 123.135 C 34.385 123.422,33.882 123.774,33.321 124.306 C 33.004 124.606,32.625 124.851,32.478 124.851 C 32.331 124.851,31.954 125.119,31.640 125.447 C 31.327 125.775,30.933 126.044,30.765 126.044 C 30.597 126.044,30.172 126.312,29.821 126.640 C 29.470 126.968,29.053 127.237,28.894 127.237 C 28.736 127.237,28.358 127.508,28.055 127.840 C 27.752 128.171,27.167 128.623,26.754 128.845 C 26.342 129.066,25.802 129.465,25.554 129.733 C 25.306 130.000,24.934 130.219,24.727 130.219 C 24.519 130.219,24.127 130.491,23.855 130.823 C 23.583 131.156,22.980 131.619,22.515 131.852 C 22.050 132.086,21.670 132.347,21.670 132.431 C 21.670 132.516,21.334 132.743,20.924 132.935 C 20.514 133.127,19.926 133.534,19.617 133.839 C 19.308 134.144,18.905 134.394,18.721 134.394 C 18.538 134.394,18.126 134.707,17.807 135.089 C 17.488 135.472,17.102 135.785,16.949 135.785 C 16.796 135.785,16.547 135.897,16.394 136.034 C 15.663 136.689,15.368 136.904,14.718 137.252 C 14.332 137.459,13.899 137.795,13.756 137.999 C 13.613 138.203,13.367 138.370,13.209 138.370 C 13.052 138.370,12.922 138.465,12.922 138.580 C 12.922 138.696,12.994 138.747,13.081 138.693 C 13.749 138.280,14.044 140.328,13.639 142.565 C 13.490 143.388,13.513 143.491,13.872 143.585 C 14.402 143.723,14.581 144.862,14.319 146.421 C 14.054 147.990,14.062 148.119,14.411 147.985 C 15.087 147.726,15.238 149.406,14.792 152.237 C 14.681 152.944,14.713 153.082,14.989 153.082 C 15.697 153.082,15.827 154.481,15.381 157.319 C 15.278 157.970,15.319 158.092,15.671 158.184 C 16.229 158.330,16.443 160.030,16.105 161.624 C 15.851 162.821,15.925 163.221,16.401 163.221 C 16.578 163.221,16.719 163.555,16.800 164.165 C 16.868 164.684,16.942 165.244,16.964 165.408 C 17.030 165.906,135.515 165.956,135.662 165.458 C 136.054 164.124,136.022 161.885,135.610 161.777 C 135.281 161.692,135.182 161.500,135.158 160.903 C 135.117 159.906,135.116 159.921,135.278 158.195 C 135.405 156.838,135.384 156.706,135.035 156.614 C 134.552 156.488,134.380 155.518,134.603 154.175 C 134.850 152.683,134.828 152.286,134.497 152.286 C 133.950 152.286,133.761 150.461,134.073 148.190 C 134.227 147.070,134.209 146.969,133.842 146.872 C 133.321 146.736,133.105 145.243,133.392 143.760 C 133.706 142.133,133.662 141.614,133.201 141.493 C 132.801 141.388,132.750 141.179,132.734 139.563 C 132.731 139.180,132.799 138.321,132.887 137.653 C 133.034 136.540,133.014 136.431,132.654 136.337 C 132.383 136.266,132.217 135.994,132.122 135.463 C 132.046 135.039,131.879 134.448,131.751 134.150 L 131.518 133.609 104.328 133.601 C 86.101 133.596,77.137 133.660,77.137 133.795 C 77.137 134.084,76.402 134.043,76.291 133.748 C 76.240 133.611,76.274 132.881,76.366 132.126 C 76.511 130.933,76.488 130.721,76.189 130.502 C 75.838 130.246,76.479 129.225,76.991 129.225 C 77.091 129.225,77.333 129.026,77.530 128.784 C 77.835 128.406,77.933 128.381,78.208 128.609 C 78.486 128.840,78.529 128.820,78.529 128.454 C 78.529 128.222,78.633 128.032,78.760 128.032 C 78.887 128.032,79.240 127.752,79.546 127.410 C 79.938 126.971,80.221 126.819,80.508 126.894 C 80.754 126.959,80.915 126.904,80.915 126.757 C 80.915 126.407,82.070 125.480,83.025 125.064 C 83.256 124.964,83.499 124.740,83.565 124.568 C 83.631 124.396,83.822 124.254,83.990 124.254 C 84.157 124.254,84.294 124.165,84.294 124.056 C 84.294 123.946,84.433 123.857,84.602 123.857 C 84.772 123.857,85.233 123.544,85.627 123.161 C 86.021 122.778,86.423 122.465,86.520 122.465 C 86.709 122.465,87.065 122.196,87.669 121.599 C 87.874 121.396,88.158 121.268,88.300 121.315 C 88.442 121.363,88.988 120.954,89.512 120.407 C 90.244 119.643,90.520 119.467,90.700 119.646 C 91.034 119.981,91.252 119.936,91.256 119.533 C 91.261 119.055,92.178 118.221,92.545 118.362 C 92.726 118.432,92.843 118.362,92.843 118.185 C 92.843 118.024,92.939 117.893,93.057 117.893 C 93.175 117.893,93.540 117.624,93.868 117.296 C 94.196 116.968,94.596 116.700,94.757 116.700 C 94.918 116.700,95.366 116.392,95.753 116.017 C 96.140 115.641,96.560 115.374,96.687 115.422 C 96.814 115.471,97.180 115.197,97.500 114.813 C 98.044 114.160,98.807 113.869,98.807 114.314 C 98.807 114.423,98.894 114.513,99.000 114.513 C 99.106 114.513,99.137 114.370,99.070 114.196 C 98.910 113.778,100.306 112.525,100.931 112.525 C 101.184 112.525,101.392 112.423,101.392 112.299 C 101.392 111.873,102.403 111.112,102.802 111.238 C 103.034 111.312,103.181 111.264,103.181 111.114 C 103.181 110.820,104.529 109.586,105.024 109.427 C 105.217 109.366,105.662 109.053,106.012 108.733 C 106.363 108.413,106.790 108.151,106.962 108.151 C 107.134 108.151,107.495 107.886,107.763 107.563 C 108.031 107.240,108.366 106.971,108.507 106.967 C 108.789 106.957,108.877 106.895,110.040 105.871 C 110.477 105.486,110.946 105.170,111.082 105.170 C 111.217 105.169,111.596 104.890,111.922 104.548 C 112.332 104.119,112.639 103.960,112.918 104.032 C 113.166 104.097,113.320 104.041,113.320 103.885 C 113.320 103.746,113.678 103.385,114.115 103.082 C 114.553 102.778,114.911 102.443,114.911 102.335 C 114.911 102.228,115.095 102.189,115.320 102.248 C 115.592 102.319,115.769 102.243,115.846 102.022 C 115.993 101.601,116.712 101.004,117.080 100.998 C 117.234 100.996,117.610 100.714,117.915 100.372 C 118.307 99.933,118.590 99.781,118.878 99.856 C 119.116 99.919,119.284 99.867,119.284 99.731 C 119.284 99.603,119.562 99.276,119.902 99.004 C 120.241 98.732,120.637 98.397,120.782 98.260 C 120.927 98.124,121.230 98.012,121.457 98.012 C 121.683 98.012,121.869 97.895,121.869 97.751 C 121.869 97.302,122.942 96.637,123.323 96.850 C 123.572 96.989,123.658 96.961,123.658 96.739 C 123.658 96.350,124.624 95.385,124.916 95.482 C 125.040 95.524,125.422 95.260,125.765 94.896 C 126.108 94.532,126.490 94.235,126.614 94.235 C 126.738 94.235,126.839 94.156,126.839 94.059 C 126.839 93.962,127.018 93.837,127.237 93.779 C 127.724 93.652,127.808 92.644,127.331 92.644 C 126.667 92.644,126.529 91.326,126.959 89.103 C 127.067 88.547,127.023 88.428,126.674 88.337 C 126.191 88.211,125.924 86.960,126.119 85.739 C 126.507 83.309,126.507 83.300,126.164 83.300 C 125.454 83.300,125.307 81.640,125.763 78.773 C 125.880 78.041,125.854 77.941,125.576 78.048 C 124.872 78.318,124.730 76.837,125.168 73.805 C 125.271 73.097,125.241 72.978,124.987 73.075 C 124.277 73.348,124.085 71.587,124.579 69.334 C 124.678 68.880,124.631 68.787,124.301 68.787 C 123.835 68.787,123.665 68.299,123.661 66.948 L 123.658 66.004 64.326 66.004 C 31.693 66.004,4.954 66.071,4.905 66.153 M351.989 94.177 C 352.152 94.492,352.295 94.531,352.784 94.395 C 353.455 94.208,354.274 94.341,354.274 94.636 C 354.274 94.743,354.484 94.831,354.741 94.831 C 354.997 94.831,355.369 95.010,355.567 95.229 C 355.765 95.447,356.051 95.626,356.202 95.626 C 356.490 95.626,356.859 95.884,357.414 96.471 C 357.595 96.663,357.901 96.819,358.096 96.819 C 358.290 96.819,358.449 96.953,358.449 97.117 C 358.449 97.281,358.542 97.416,358.654 97.416 C 358.767 97.416,358.916 97.572,358.986 97.763 C 359.055 97.955,359.442 98.431,359.846 98.823 C 360.711 99.660,361.696 101.514,361.558 102.044 C 361.502 102.258,361.633 102.587,361.868 102.822 C 362.273 103.227,362.287 103.969,361.915 105.291 C 361.827 105.605,361.901 105.738,362.211 105.819 C 362.833 105.982,362.820 107.973,362.194 108.388 C 361.807 108.645,361.787 108.740,361.995 109.337 C 362.372 110.416,362.292 110.919,361.708 111.141 C 361.286 111.302,361.234 111.392,361.426 111.624 C 361.679 111.928,361.529 112.724,361.219 112.724 C 361.117 112.724,361.034 112.845,361.034 112.993 C 361.034 113.141,360.833 113.483,360.586 113.753 C 360.340 114.023,359.826 114.618,359.443 115.074 C 359.061 115.529,358.645 115.903,358.520 115.904 C 358.395 115.904,358.242 116.039,358.179 116.203 C 358.116 116.367,357.847 116.501,357.582 116.501 C 357.317 116.501,357.049 116.635,356.986 116.799 C 356.919 116.974,356.620 117.097,356.262 117.097 C 355.883 117.097,355.607 117.220,355.529 117.421 C 355.424 117.696,355.193 117.725,354.016 117.616 C 352.767 117.500,352.599 117.527,352.346 117.889 C 352.067 118.287,351.905 118.290,332.941 118.287 L 313.817 118.283 313.340 117.780 C 312.874 117.289,312.865 117.221,312.990 114.901 C 313.099 112.883,313.074 112.525,312.825 112.525 C 312.373 112.525,312.258 111.670,312.406 109.395 C 312.524 107.568,312.503 107.322,312.237 107.424 C 311.780 107.599,311.656 106.791,311.792 104.545 C 311.892 102.916,311.863 102.584,311.626 102.584 C 311.194 102.584,311.066 101.739,311.217 99.883 C 311.330 98.495,311.304 98.211,311.065 98.211 C 310.613 98.211,310.209 94.230,310.620 93.820 C 310.973 93.467,351.803 93.819,351.989 94.177 "\n stroke="none" fill="#fbfbfb" fill-rule="evenodd"></path>\n <path id="path2"\n d="M154.523 21.400 C 154.068 21.591,154.266 21.849,154.969 21.981 C 155.818 22.140,156.660 21.952,156.660 21.602 C 156.660 21.339,155.036 21.185,154.523 21.400 M159.932 21.484 C 159.665 21.916,161.928 22.234,162.340 21.822 C 162.648 21.514,162.117 21.272,161.133 21.272 C 160.545 21.272,160.004 21.368,159.932 21.484 M152.372 22.090 C 152.214 22.346,152.626 22.657,153.131 22.661 C 153.348 22.663,153.479 22.514,153.479 22.266 C 153.479 21.825,152.620 21.688,152.372 22.090 M163.224 22.018 C 163.233 22.474,163.587 22.660,164.208 22.536 C 164.820 22.414,164.842 22.383,164.504 22.136 C 164.115 21.851,163.219 21.769,163.224 22.018 M151.182 22.681 C 151.009 22.962,151.392 23.345,151.673 23.172 C 151.988 22.977,151.937 22.465,151.602 22.465 C 151.445 22.465,151.256 22.562,151.182 22.681 M165.048 22.813 C 165.085 23.004,165.291 23.161,165.507 23.161 C 165.723 23.161,165.929 23.004,165.966 22.813 C 166.016 22.553,165.901 22.465,165.507 22.465 C 165.113 22.465,164.998 22.553,165.048 22.813 M150.033 23.194 C 149.791 23.436,149.896 23.857,150.199 23.857 C 150.364 23.857,150.497 23.680,150.497 23.459 C 150.497 23.063,150.285 22.942,150.033 23.194 M166.600 23.481 C 166.600 23.832,166.683 23.879,167.114 23.771 C 167.524 23.668,167.649 23.724,167.734 24.048 C 167.792 24.271,167.963 24.453,168.115 24.453 C 168.511 24.453,168.454 23.869,168.042 23.713 C 167.850 23.640,167.576 23.464,167.431 23.321 C 167.033 22.927,166.600 23.010,166.600 23.481 M148.708 24.056 C 148.708 24.277,148.575 24.453,148.410 24.453 C 148.246 24.453,148.111 24.587,148.111 24.751 C 148.111 24.916,148.246 25.050,148.410 25.050 C 148.574 25.050,148.708 24.916,148.708 24.751 C 148.708 24.587,148.842 24.453,149.006 24.453 C 149.172 24.453,149.304 24.277,149.304 24.056 C 149.304 23.835,149.172 23.658,149.006 23.658 C 148.840 23.658,148.708 23.835,148.708 24.056 M168.986 24.652 C 168.986 24.873,169.119 25.050,169.284 25.050 C 169.448 25.050,169.583 25.184,169.583 25.348 C 169.583 25.512,169.717 25.646,169.881 25.646 C 170.046 25.646,170.179 25.469,170.179 25.249 C 170.179 25.030,170.054 24.851,169.902 24.851 C 169.750 24.851,169.574 24.717,169.511 24.553 C 169.344 24.119,168.986 24.187,168.986 24.652 M146.322 25.944 C 146.322 26.108,146.456 26.243,146.620 26.243 C 146.784 26.243,146.918 26.108,146.918 25.944 C 146.918 25.780,146.784 25.646,146.620 25.646 C 146.456 25.646,146.322 25.780,146.322 25.944 M171.372 26.541 C 171.372 26.705,171.506 26.839,171.670 26.839 C 171.834 26.839,171.968 26.973,171.968 27.137 C 171.968 27.301,172.102 27.435,172.266 27.435 C 172.430 27.435,172.565 27.570,172.565 27.734 C 172.565 27.898,172.699 28.032,172.863 28.032 C 173.337 28.032,173.214 27.700,172.459 26.945 C 171.703 26.190,171.372 26.066,171.372 26.541 M145.175 27.671 C 145.298 28.040,145.726 28.101,145.726 27.750 C 145.726 27.577,145.584 27.435,145.411 27.435 C 145.238 27.435,145.132 27.542,145.175 27.671 M144.533 28.330 C 144.533 28.494,144.399 28.628,144.235 28.628 C 144.053 28.628,143.936 28.814,143.936 29.104 C 143.936 29.366,144.071 29.631,144.235 29.694 C 144.458 29.780,144.533 29.661,144.533 29.218 C 144.533 28.826,144.633 28.628,144.831 28.628 C 144.995 28.628,145.129 28.494,145.129 28.330 C 145.129 28.166,144.995 28.032,144.831 28.032 C 144.667 28.032,144.533 28.166,144.533 28.330 M173.294 28.164 C 173.065 28.393,173.149 28.628,173.459 28.628 C 173.623 28.628,173.757 28.494,173.757 28.330 C 173.757 28.020,173.522 27.936,173.294 28.164 M143.340 30.417 C 143.340 30.815,143.439 31.014,143.638 31.014 C 143.837 31.014,143.936 30.815,143.936 30.417 C 143.936 30.020,143.837 29.821,143.638 29.821 C 143.439 29.821,143.340 30.020,143.340 30.417 M174.553 30.119 C 174.553 30.283,174.642 30.417,174.751 30.417 C 174.861 30.417,174.950 30.552,174.950 30.716 C 174.950 30.881,175.127 31.014,175.348 31.014 C 175.569 31.014,175.746 30.881,175.746 30.716 C 175.746 30.552,175.611 30.417,175.447 30.417 C 175.283 30.417,175.149 30.283,175.149 30.119 C 175.149 29.955,175.015 29.821,174.851 29.821 C 174.687 29.821,174.553 29.955,174.553 30.119 M142.744 31.992 C 142.744 32.201,142.692 32.508,142.628 32.673 C 142.542 32.898,142.616 32.946,142.927 32.865 C 143.430 32.733,143.533 31.610,143.042 31.610 C 142.878 31.610,142.744 31.782,142.744 31.992 M176.143 32.498 C 176.143 32.658,176.322 32.885,176.541 33.002 C 176.890 33.189,176.938 33.153,176.938 32.711 C 176.938 32.339,176.834 32.207,176.541 32.207 C 176.322 32.207,176.143 32.338,176.143 32.498 M142.075 34.477 C 141.934 35.675,142.051 36.183,142.467 36.183 C 142.677 36.183,142.744 35.848,142.744 34.791 C 142.744 33.022,142.272 32.801,142.075 34.477 M176.872 33.532 C 176.642 33.762,176.727 33.975,177.137 34.195 C 177.486 34.382,177.535 34.346,177.535 33.904 C 177.535 33.429,177.176 33.228,176.872 33.532 M177.435 35.388 C 177.269 35.657,177.494 35.984,177.845 35.984 C 178.002 35.984,178.131 35.805,178.131 35.586 C 178.131 35.175,177.652 35.038,177.435 35.388 M178.008 37.267 C 177.866 37.636,178.073 37.972,178.441 37.972 C 178.614 37.972,178.728 37.775,178.728 37.475 C 178.728 36.929,178.197 36.775,178.008 37.267 M142.169 39.238 C 141.881 39.585,142.146 41.583,142.495 41.700 C 142.678 41.761,142.744 41.412,142.744 40.374 C 142.744 38.981,142.607 38.711,142.169 39.238 M178.622 40.439 C 178.462 41.718,178.567 44.438,178.784 44.655 C 179.184 45.055,179.333 44.241,179.281 41.948 C 179.219 39.250,178.870 38.451,178.622 40.439 M142.677 42.511 C 142.713 42.657,142.744 43.082,142.744 43.456 C 142.744 43.927,142.835 44.135,143.042 44.135 C 143.257 44.135,143.340 43.914,143.340 43.340 C 143.340 42.786,143.254 42.545,143.058 42.545 C 142.903 42.545,142.739 42.478,142.693 42.396 C 142.647 42.314,142.640 42.366,142.677 42.511 M143.340 44.930 C 143.340 45.151,143.472 45.328,143.638 45.328 C 143.804 45.328,143.936 45.151,143.936 44.930 C 143.936 44.710,143.804 44.533,143.638 44.533 C 143.472 44.533,143.340 44.710,143.340 44.930 M143.936 46.198 C 143.936 46.349,144.071 46.584,144.235 46.720 C 144.487 46.929,144.533 46.887,144.533 46.446 C 144.533 46.115,144.424 45.924,144.235 45.924 C 144.071 45.924,143.936 46.048,143.936 46.198 M178.063 46.214 C 177.900 46.637,178.114 47.117,178.464 47.117 C 178.662 47.117,178.734 46.948,178.691 46.586 C 178.619 45.981,178.239 45.756,178.063 46.214 M144.533 47.416 C 144.533 47.580,144.667 47.714,144.831 47.714 C 144.995 47.714,145.129 47.580,145.129 47.416 C 145.129 47.251,144.995 47.117,144.831 47.117 C 144.667 47.117,144.533 47.251,144.533 47.416 M177.433 48.120 C 177.285 48.584,177.454 48.907,177.845 48.907 C 178.223 48.907,178.222 47.990,177.843 47.845 C 177.669 47.778,177.507 47.887,177.433 48.120 M145.129 48.509 C 145.129 48.730,145.262 48.907,145.427 48.907 C 145.591 48.907,145.726 49.041,145.726 49.205 C 145.726 49.369,145.860 49.503,146.024 49.503 C 146.188 49.503,146.322 49.369,146.322 49.205 C 146.322 49.041,146.188 48.907,146.024 48.907 C 145.858 48.907,145.726 48.730,145.726 48.509 C 145.726 48.288,145.593 48.111,145.427 48.111 C 145.262 48.111,145.129 48.288,145.129 48.509 M176.839 49.503 C 176.673 49.772,176.897 50.099,177.248 50.099 C 177.406 50.099,177.535 49.920,177.535 49.702 C 177.535 49.290,177.055 49.153,176.839 49.503 M176.143 50.994 C 176.143 51.158,176.009 51.292,175.845 51.292 C 175.679 51.292,175.547 51.469,175.547 51.690 C 175.547 52.197,175.553 52.195,176.306 51.523 C 177.041 50.867,177.090 50.696,176.541 50.696 C 176.320 50.696,176.143 50.828,176.143 50.994 M147.515 51.367 C 147.515 51.409,147.649 51.554,147.813 51.690 C 148.057 51.893,148.111 51.879,148.111 51.615 C 148.111 51.437,147.977 51.292,147.813 51.292 C 147.649 51.292,147.515 51.326,147.515 51.367 M150.497 53.976 C 150.497 54.140,150.631 54.274,150.795 54.274 C 150.959 54.274,151.093 54.409,151.093 54.573 C 151.093 54.737,151.228 54.871,151.392 54.871 C 151.556 54.871,151.690 54.737,151.690 54.573 C 151.690 54.409,151.556 54.274,151.392 54.274 C 151.228 54.274,151.093 54.140,151.093 53.976 C 151.093 53.812,150.959 53.678,150.795 53.678 C 150.631 53.678,150.497 53.812,150.497 53.976 M171.968 55.169 C 171.968 55.333,171.834 55.467,171.670 55.467 C 171.506 55.467,171.372 55.601,171.372 55.765 C 171.372 55.929,171.506 56.064,171.670 56.064 C 171.834 56.064,171.968 55.940,171.968 55.789 C 171.968 55.637,172.147 55.467,172.366 55.410 C 172.584 55.352,172.763 55.208,172.763 55.088 C 172.763 54.969,172.584 54.871,172.366 54.871 C 172.145 54.871,171.968 55.003,171.968 55.169 M152.883 55.765 C 152.883 55.931,153.059 56.064,153.280 56.064 C 153.501 56.064,153.678 55.931,153.678 55.765 C 153.678 55.600,153.501 55.467,153.280 55.467 C 153.059 55.467,152.883 55.600,152.883 55.765 M154.076 56.362 C 154.076 56.547,154.263 56.660,154.573 56.660 C 154.882 56.660,155.070 56.547,155.070 56.362 C 155.070 56.176,154.882 56.064,154.573 56.064 C 154.263 56.064,154.076 56.176,154.076 56.362 M170.046 56.362 C 170.046 56.526,170.210 56.660,170.411 56.660 C 170.611 56.660,170.775 56.526,170.775 56.362 C 170.775 56.198,170.611 56.064,170.411 56.064 C 170.210 56.064,170.046 56.198,170.046 56.362 M155.865 56.935 C 155.865 57.086,156.039 57.256,156.251 57.311 C 156.716 57.433,156.868 57.313,156.724 56.939 C 156.586 56.578,155.865 56.575,155.865 56.935 M168.390 57.079 C 168.390 57.379,168.479 57.464,168.704 57.377 C 168.877 57.311,169.145 57.256,169.301 57.256 C 169.456 57.256,169.583 57.122,169.583 56.958 C 169.583 56.759,169.384 56.660,168.986 56.660 C 168.512 56.660,168.390 56.746,168.390 57.079 M157.654 57.555 C 157.654 57.874,157.683 57.882,159.046 57.947 C 159.538 57.970,159.784 57.952,159.592 57.907 C 159.401 57.861,159.245 57.696,159.245 57.540 C 159.245 57.342,159.005 57.256,158.449 57.256 C 157.875 57.256,157.654 57.339,157.654 57.555 M166.117 57.433 C 165.916 57.759,166.534 58.055,167.156 57.931 C 168.172 57.727,168.136 57.256,167.103 57.256 C 166.621 57.256,166.177 57.336,166.117 57.433 M161.777 57.990 C 161.066 58.176,161.689 58.449,162.823 58.449 C 163.973 58.449,164.515 58.209,163.899 57.973 C 163.550 57.839,162.318 57.849,161.777 57.990 M3.976 66.700 C 3.976 68.621,4.515 68.916,4.612 67.048 L 4.672 65.905 64.262 65.855 L 123.852 65.805 123.977 66.588 C 124.161 67.737,124.652 67.826,124.652 66.710 C 124.652 66.230,124.598 65.696,124.531 65.523 C 124.422 65.237,118.920 65.209,64.193 65.209 L 3.976 65.209 3.976 66.700 M137.309 65.341 C 137.047 65.603,137.173 66.810,137.475 66.926 C 137.717 67.019,137.774 67.494,137.776 69.455 C 137.780 71.959,137.909 72.509,138.449 72.302 C 139.099 72.052,138.927 67.594,138.267 67.594 C 138.105 67.594,137.972 67.416,137.972 67.197 C 137.972 66.978,138.095 66.799,138.246 66.799 C 138.397 66.799,138.630 66.667,138.764 66.505 C 138.979 66.246,146.119 66.210,197.719 66.205 C 261.433 66.199,256.815 66.121,257.161 67.209 C 257.543 68.414,258.215 66.893,257.891 65.557 C 257.804 65.199,137.667 64.984,137.309 65.341 M270.811 65.464 C 270.666 65.638,270.663 65.811,270.802 66.011 C 270.955 66.231,271.029 66.242,271.105 66.054 C 271.185 65.856,279.858 65.805,313.535 65.805 C 351.029 65.805,355.865 65.771,355.865 65.507 C 355.865 65.091,271.156 65.048,270.811 65.464 M358.847 66.103 C 358.847 66.335,359.112 66.402,360.040 66.402 C 360.968 66.402,361.233 66.335,361.233 66.103 C 361.233 65.871,360.968 65.805,360.040 65.805 C 359.112 65.805,358.847 65.871,358.847 66.103 M362.425 66.700 C 362.425 66.921,362.657 66.998,363.320 66.998 C 363.983 66.998,364.215 66.921,364.215 66.700 C 364.215 66.479,363.983 66.402,363.320 66.402 C 362.657 66.402,362.425 66.479,362.425 66.700 M364.944 67.131 C 364.659 67.416,364.838 67.594,365.408 67.594 C 365.805 67.594,366.004 67.495,366.004 67.296 C 366.004 66.995,365.204 66.870,364.944 67.131 M366.998 67.893 C 366.998 68.101,367.208 68.191,367.694 68.191 C 368.414 68.191,368.626 67.926,368.075 67.715 C 367.517 67.501,366.998 67.587,366.998 67.893 M257.649 68.701 C 257.301 69.618,257.588 71.968,258.048 71.968 C 258.146 71.968,258.176 72.745,258.116 73.708 C 257.981 75.861,258.195 76.813,258.834 76.906 L 259.295 76.973 259.209 74.579 C 259.143 72.720,259.051 72.104,258.796 71.823 C 258.548 71.549,258.494 71.224,258.574 70.491 C 258.781 68.610,258.149 67.386,257.649 68.701 M368.920 68.323 C 368.668 68.575,368.789 68.787,369.185 68.787 C 369.406 68.787,369.583 68.655,369.583 68.489 C 369.583 68.186,369.162 68.081,368.920 68.323 M370.577 69.085 C 370.577 69.251,370.753 69.384,370.974 69.384 C 371.195 69.384,371.372 69.251,371.372 69.085 C 371.372 68.920,371.195 68.787,370.974 68.787 C 370.753 68.787,370.577 68.920,370.577 69.085 M271.214 70.312 C 271.298 72.223,271.769 72.292,271.769 70.394 C 271.769 69.257,271.710 68.986,271.462 68.986 C 271.210 68.986,271.165 69.223,271.214 70.312 M124.598 70.176 C 124.472 71.118,124.644 71.847,125.010 71.922 C 125.204 71.962,125.253 71.671,125.208 70.745 C 125.140 69.326,124.760 68.972,124.598 70.176 M371.968 69.667 C 371.968 69.852,372.138 69.980,372.382 69.980 C 372.867 69.980,372.798 69.516,372.300 69.419 C 372.103 69.381,371.968 69.482,371.968 69.667 M373.161 70.278 C 373.161 70.442,373.337 70.577,373.552 70.577 C 373.819 70.577,373.907 70.481,373.829 70.278 C 373.766 70.114,373.590 69.980,373.438 69.980 C 373.286 69.980,373.161 70.114,373.161 70.278 M4.614 72.005 C 4.651 72.922,4.760 73.457,4.920 73.510 C 5.321 73.642,5.264 70.854,4.862 70.700 C 4.600 70.600,4.564 70.790,4.614 72.005 M374.354 70.875 C 374.354 71.040,374.531 71.173,374.751 71.173 C 374.972 71.173,375.149 71.040,375.149 70.875 C 375.149 70.709,374.972 70.577,374.751 70.577 C 374.531 70.577,374.354 70.709,374.354 70.875 M375.547 71.471 C 375.547 71.637,375.723 71.769,375.944 71.769 C 376.165 71.769,376.342 71.637,376.342 71.471 C 376.342 71.306,376.165 71.173,375.944 71.173 C 375.723 71.173,375.547 71.306,375.547 71.471 M376.740 72.068 C 376.740 72.232,376.842 72.366,376.966 72.366 C 377.091 72.366,377.300 72.512,377.431 72.691 C 377.562 72.870,377.779 72.980,377.913 72.936 C 378.077 72.881,378.004 72.678,377.690 72.312 C 377.178 71.716,376.740 71.603,376.740 72.068 M138.494 72.672 C 138.287 73.210,138.355 76.675,138.583 77.273 C 139.152 78.762,139.836 75.353,139.339 73.510 C 139.055 72.459,138.708 72.114,138.494 72.672 M378.529 73.247 C 378.529 73.404,378.708 73.589,378.926 73.658 C 379.145 73.727,379.324 73.868,379.324 73.970 C 379.324 74.072,379.443 74.155,379.589 74.155 C 379.735 74.155,379.854 74.021,379.854 73.857 C 379.854 73.693,379.735 73.559,379.589 73.559 C 379.443 73.559,379.324 73.424,379.324 73.260 C 379.324 73.095,379.147 72.962,378.926 72.962 C 378.708 72.962,378.529 73.090,378.529 73.247 M271.769 75.216 C 271.769 76.584,271.892 77.137,272.197 77.137 C 272.487 77.137,272.314 74.103,272.018 74.005 C 271.836 73.945,271.769 74.270,271.769 75.216 M125.206 74.751 C 125.075 75.646,125.257 76.541,125.569 76.541 C 125.774 76.541,125.845 76.232,125.845 75.348 C 125.845 74.048,125.374 73.608,125.206 74.751 M380.517 74.553 C 380.517 74.662,380.606 74.751,380.716 74.751 C 380.825 74.751,380.915 74.855,380.915 74.981 C 380.915 75.252,382.435 76.740,382.712 76.740 C 382.817 76.740,382.903 76.829,382.903 76.938 C 382.903 77.048,383.037 77.137,383.201 77.137 C 383.365 77.137,383.499 77.003,383.499 76.839 C 383.499 76.675,383.404 76.541,383.288 76.541 C 383.173 76.541,383.142 76.644,383.220 76.770 C 383.308 76.912,383.274 76.946,383.132 76.858 C 383.006 76.780,382.903 76.542,382.903 76.330 C 382.903 76.118,382.768 75.944,382.604 75.944 C 382.440 75.944,382.306 75.810,382.306 75.646 C 382.306 75.482,382.172 75.348,382.008 75.348 C 381.844 75.348,381.710 75.214,381.710 75.050 C 381.710 74.884,381.533 74.751,381.312 74.751 C 381.093 74.751,380.915 74.662,380.915 74.553 C 380.915 74.443,380.825 74.354,380.716 74.354 C 380.606 74.354,380.517 74.443,380.517 74.553 M5.210 77.370 C 5.294 79.426,5.765 79.496,5.765 77.452 C 5.765 76.225,5.708 75.944,5.458 75.944 C 5.205 75.944,5.162 76.192,5.210 77.370 M258.921 78.055 C 258.561 80.273,258.792 81.909,259.465 81.909 C 260.023 81.909,259.974 77.979,259.410 77.416 C 259.100 77.106,259.068 77.149,258.921 78.055 M384.638 78.163 C 384.702 78.419,384.875 78.700,385.022 78.787 C 385.168 78.875,385.288 79.121,385.288 79.334 C 385.288 79.547,385.422 79.722,385.586 79.722 C 385.750 79.722,385.885 79.856,385.885 80.020 C 385.885 80.184,386.019 80.318,386.183 80.318 C 386.347 80.318,386.481 80.452,386.481 80.616 C 386.481 80.780,386.615 80.915,386.779 80.915 C 386.943 80.915,387.078 81.049,387.078 81.213 C 387.078 81.377,387.212 81.511,387.376 81.511 C 387.540 81.511,387.674 81.386,387.674 81.234 C 387.674 81.082,387.540 80.906,387.376 80.843 C 387.212 80.780,387.078 80.591,387.078 80.424 C 387.078 80.256,386.943 80.119,386.779 80.119 C 386.615 80.119,386.481 79.985,386.481 79.821 C 386.481 79.657,386.347 79.523,386.183 79.523 C 386.019 79.523,385.885 79.399,385.885 79.248 C 385.885 79.097,385.697 78.924,385.467 78.864 C 385.237 78.804,385.101 78.671,385.164 78.569 C 385.227 78.467,385.108 78.229,384.900 78.040 C 384.536 77.711,384.525 77.716,384.638 78.163 M138.983 79.612 C 138.953 80.997,139.009 81.355,139.304 81.650 C 139.613 81.959,139.654 82.300,139.599 84.160 C 139.549 85.883,139.600 86.410,139.857 86.802 C 140.099 87.170,140.188 87.861,140.218 89.578 C 140.243 91.001,140.342 91.917,140.480 92.006 C 140.616 92.092,140.740 93.141,140.798 94.701 C 140.865 96.462,140.973 97.304,141.147 97.412 C 141.319 97.518,141.409 98.177,141.430 99.475 C 141.463 101.462,141.698 102.120,142.197 101.620 C 142.750 101.067,142.427 97.614,141.822 97.614 C 141.569 97.614,141.537 97.502,141.664 97.068 C 141.968 96.025,141.878 92.770,141.531 92.237 C 141.295 91.876,141.231 91.396,141.285 90.388 C 141.364 88.886,141.079 87.511,140.617 87.173 C 140.371 86.993,140.357 86.816,140.536 86.171 C 140.934 84.735,140.676 82.235,140.092 81.869 C 139.951 81.781,139.893 81.185,139.932 80.240 C 140.005 78.497,139.869 77.932,139.377 77.932 C 139.065 77.932,139.016 78.142,138.983 79.612 M272.366 80.053 C 272.366 81.040,272.430 81.312,272.664 81.312 C 272.898 81.312,272.962 81.040,272.962 80.053 C 272.962 79.066,272.898 78.794,272.664 78.794 C 272.430 78.794,272.366 79.066,272.366 80.053 M125.807 79.861 C 125.703 81.106,125.824 81.710,126.175 81.710 C 126.399 81.710,126.447 81.428,126.401 80.384 C 126.330 78.794,125.926 78.438,125.807 79.861 M5.805 81.843 C 5.891 83.462,6.362 83.531,6.362 81.925 C 6.362 80.965,6.298 80.716,6.054 80.716 C 5.805 80.716,5.757 80.932,5.805 81.843 M387.674 82.306 C 387.674 82.527,387.806 82.704,387.972 82.704 C 388.136 82.704,388.270 82.838,388.270 83.002 C 388.270 83.166,388.405 83.300,388.569 83.300 C 388.733 83.300,388.867 83.434,388.867 83.598 C 388.867 83.762,389.015 83.897,389.196 83.897 C 389.502 83.897,389.502 83.871,389.196 83.533 C 389.015 83.333,388.865 83.087,388.863 82.986 C 388.852 82.402,387.674 81.728,387.674 82.306 M259.460 83.111 C 259.085 84.861,259.298 87.140,259.871 87.494 C 260.285 87.749,260.388 87.348,260.422 85.359 C 260.475 82.212,259.927 80.932,259.460 83.111 M272.962 84.791 C 272.962 85.807,273.026 86.083,273.260 86.083 C 273.495 86.083,273.559 85.807,273.559 84.791 C 273.559 83.775,273.495 83.499,273.260 83.499 C 273.026 83.499,272.962 83.775,272.962 84.791 M126.441 85.686 C 126.441 86.614,126.508 86.879,126.740 86.879 C 126.972 86.879,127.038 86.614,127.038 85.686 C 127.038 84.758,126.972 84.493,126.740 84.493 C 126.508 84.493,126.441 84.758,126.441 85.686 M389.463 84.791 C 389.463 84.955,389.597 85.089,389.761 85.089 C 389.925 85.089,390.060 84.955,390.060 84.791 C 390.060 84.627,389.925 84.493,389.761 84.493 C 389.597 84.493,389.463 84.627,389.463 84.791 M6.362 86.559 C 6.362 87.506,6.438 87.859,6.660 87.945 C 6.908 88.040,6.958 87.823,6.958 86.674 C 6.958 85.575,6.897 85.288,6.660 85.288 C 6.426 85.288,6.362 85.562,6.362 86.559 M390.060 85.984 C 390.060 86.148,390.194 86.282,390.358 86.282 C 390.522 86.282,390.656 86.148,390.656 85.984 C 390.656 85.820,390.522 85.686,390.358 85.686 C 390.194 85.686,390.060 85.820,390.060 85.984 M390.656 87.177 C 390.656 87.341,390.790 87.475,390.954 87.475 C 391.118 87.475,391.252 87.341,391.252 87.177 C 391.252 87.013,391.118 86.879,390.954 86.879 C 390.790 86.879,390.656 87.013,390.656 87.177 M259.966 88.519 C 259.734 89.387,259.846 90.494,260.265 91.469 C 260.598 92.242,260.663 92.681,260.568 93.494 C 260.411 94.824,260.685 96.564,261.100 96.876 C 261.372 97.081,261.394 97.308,261.241 98.370 C 261.030 99.839,261.243 101.503,261.686 101.846 C 261.949 102.050,261.966 102.264,261.797 103.217 C 261.514 104.801,261.783 106.363,262.376 106.581 C 262.943 106.791,263.080 103.000,262.531 102.275 C 262.321 101.997,262.237 101.329,262.230 99.901 C 262.220 97.733,262.103 97.018,261.756 97.018 C 261.597 97.018,261.550 96.315,261.597 94.623 C 261.651 92.691,261.603 92.135,261.349 91.747 C 261.127 91.409,261.034 90.792,261.034 89.669 C 261.034 88.118,261.020 88.072,260.560 88.072 C 260.237 88.072,260.048 88.214,259.966 88.519 M391.252 88.370 C 391.252 88.534,391.387 88.668,391.551 88.668 C 391.750 88.668,391.849 88.867,391.849 89.264 C 391.849 89.662,391.948 89.861,392.147 89.861 C 392.346 89.861,392.445 89.662,392.445 89.264 C 392.445 88.867,392.346 88.668,392.147 88.668 C 391.983 88.668,391.849 88.534,391.849 88.370 C 391.849 88.206,391.715 88.072,391.551 88.072 C 391.387 88.072,391.252 88.206,391.252 88.370 M273.599 89.994 C 273.667 91.523,274.074 91.955,274.184 90.616 C 274.289 89.339,274.169 88.668,273.835 88.668 C 273.599 88.668,273.552 88.930,273.599 89.994 M127.038 90.457 C 127.038 91.385,127.104 91.650,127.336 91.650 C 127.568 91.650,127.634 91.385,127.634 90.457 C 127.634 89.529,127.568 89.264,127.336 89.264 C 127.104 89.264,127.038 89.529,127.038 90.457 M7.196 90.429 C 6.853 90.646,6.950 93.074,7.306 93.192 C 7.490 93.252,7.555 92.883,7.555 91.766 C 7.555 90.937,7.532 90.260,7.505 90.261 C 7.478 90.263,7.339 90.338,7.196 90.429 M392.445 90.971 C 392.445 91.594,392.912 91.525,393.006 90.889 C 393.048 90.602,392.965 90.457,392.757 90.457 C 392.554 90.457,392.445 90.637,392.445 90.971 M393.042 92.429 C 393.042 93.032,393.122 93.241,393.352 93.241 C 393.588 93.241,393.647 93.066,393.600 92.510 C 393.512 91.462,393.042 91.393,393.042 92.429 M274.155 95.105 C 274.155 96.749,274.666 97.377,274.787 95.882 C 274.892 94.587,274.761 93.837,274.431 93.837 C 274.225 93.837,274.155 94.157,274.155 95.105 M310.736 95.278 C 310.736 96.339,310.798 96.620,311.034 96.620 C 311.259 96.620,311.332 96.377,311.332 95.626 L 311.332 94.632 331.213 94.632 C 348.752 94.632,351.093 94.597,351.093 94.334 C 351.093 94.170,350.937 94.033,350.746 94.031 C 350.554 94.028,341.474 94.005,330.567 93.981 L 310.736 93.936 310.736 95.278 M393.638 94.599 C 393.638 94.967,393.741 95.162,393.936 95.162 C 394.131 95.162,394.235 94.967,394.235 94.599 C 394.235 94.231,394.131 94.036,393.936 94.036 C 393.741 94.036,393.638 94.231,393.638 94.599 M126.062 95.044 C 125.710 95.337,125.641 95.502,125.803 95.664 C 125.966 95.826,126.159 95.758,126.528 95.408 C 127.380 94.599,126.975 94.284,126.062 95.044 M352.286 94.943 C 352.286 95.173,352.451 95.238,352.917 95.192 C 353.828 95.102,353.897 94.632,352.999 94.632 C 352.485 94.632,352.286 94.719,352.286 94.943 M354.076 95.527 C 354.076 95.693,354.252 95.825,354.473 95.825 C 354.694 95.825,354.871 95.693,354.871 95.527 C 354.871 95.361,354.694 95.229,354.473 95.229 C 354.252 95.229,354.076 95.361,354.076 95.527 M7.687 95.560 C 7.345 95.902,7.551 98.394,7.939 98.601 C 8.629 98.970,64.016 98.880,64.016 98.510 C 64.016 98.247,60.734 98.206,36.133 98.162 L 8.250 98.111 8.192 96.769 C 8.137 95.521,8.016 95.231,7.687 95.560 M355.268 96.123 C 355.268 96.289,355.445 96.421,355.666 96.421 C 355.887 96.421,356.064 96.289,356.064 96.123 C 356.064 95.958,355.887 95.825,355.666 95.825 C 355.445 95.825,355.268 95.958,355.268 96.123 M394.235 96.736 C 394.235 97.910,394.705 97.841,394.793 96.655 C 394.840 96.010,394.785 95.825,394.544 95.825 C 394.309 95.825,394.235 96.044,394.235 96.736 M123.906 96.670 C 124.032 97.046,124.652 97.100,124.652 96.734 C 124.652 96.550,124.482 96.421,124.238 96.421 C 123.995 96.421,123.858 96.524,123.906 96.670 M356.461 96.720 C 356.461 96.884,356.586 97.018,356.738 97.018 C 356.890 97.018,357.067 97.152,357.130 97.316 C 357.257 97.649,357.654 97.725,357.654 97.416 C 357.654 97.158,356.918 96.421,356.660 96.421 C 356.551 96.421,356.461 96.556,356.461 96.720 M122.195 97.913 C 122.132 98.077,121.943 98.211,121.776 98.211 C 121.430 98.211,121.368 98.521,121.676 98.711 C 121.877 98.836,122.853 98.054,122.859 97.763 C 122.866 97.487,122.310 97.612,122.195 97.913 M358.250 98.416 C 358.250 98.529,358.385 98.672,358.549 98.735 C 358.713 98.798,358.847 98.974,358.847 99.127 C 358.847 99.279,358.981 99.404,359.145 99.404 C 359.309 99.404,359.443 99.538,359.443 99.702 C 359.443 99.866,359.578 100.000,359.742 100.000 C 360.226 100.000,360.086 99.615,359.340 98.890 C 358.635 98.205,358.250 98.038,358.250 98.416 M274.792 99.738 C 274.860 101.271,275.233 101.635,275.410 100.343 C 275.551 99.313,275.415 98.677,275.021 98.525 C 274.784 98.435,274.744 98.650,274.792 99.738 M120.477 98.994 C 120.477 99.328,120.830 99.410,120.947 99.104 C 121.016 98.924,120.946 98.807,120.769 98.807 C 120.609 98.807,120.477 98.891,120.477 98.994 M311.332 100.066 C 311.332 101.053,311.397 101.325,311.630 101.325 C 311.864 101.325,311.928 101.053,311.928 100.066 C 311.928 99.080,311.864 98.807,311.630 98.807 C 311.397 98.807,311.332 99.080,311.332 100.066 M394.831 99.901 C 394.831 100.740,394.900 100.994,395.129 100.994 C 395.358 100.994,395.427 100.740,395.427 99.901 C 395.427 99.061,395.358 98.807,395.129 98.807 C 394.900 98.807,394.831 99.061,394.831 99.901 M119.682 99.716 C 119.682 99.902,119.817 100.003,120.013 99.965 C 120.512 99.868,120.581 99.404,120.096 99.404 C 119.852 99.404,119.682 99.532,119.682 99.716 M360.040 100.795 C 360.040 101.247,360.538 101.337,360.701 100.914 C 360.825 100.589,360.679 100.398,360.305 100.398 C 360.159 100.398,360.040 100.577,360.040 100.795 M117.893 100.895 C 117.893 101.059,117.758 101.193,117.594 101.193 C 117.430 101.193,117.296 101.327,117.296 101.491 C 117.296 101.655,117.430 101.789,117.594 101.789 C 117.758 101.789,117.893 101.655,117.893 101.491 C 117.893 101.325,118.069 101.193,118.290 101.193 C 118.511 101.193,118.688 101.060,118.688 100.895 C 118.688 100.729,118.511 100.596,118.290 100.596 C 118.069 100.596,117.893 100.729,117.893 100.895 M64.016 101.491 C 64.016 101.655,63.882 101.789,63.718 101.789 C 63.552 101.789,63.419 101.966,63.419 102.187 C 63.419 102.408,63.552 102.584,63.718 102.584 C 63.882 102.584,64.016 102.447,64.016 102.280 C 64.016 102.113,64.150 101.924,64.314 101.861 C 64.478 101.798,64.612 101.622,64.612 101.470 C 64.612 101.317,64.478 101.193,64.314 101.193 C 64.150 101.193,64.016 101.327,64.016 101.491 M142.198 101.839 C 142.025 102.057,142.001 103.206,142.114 105.830 C 142.155 106.776,142.766 106.799,142.967 105.862 C 143.420 103.744,142.889 100.965,142.198 101.839 M360.636 102.161 C 360.636 102.682,360.931 103.157,361.127 102.952 C 361.398 102.670,361.292 101.689,360.984 101.629 C 360.715 101.577,360.636 101.696,360.636 102.161 M116.103 102.087 C 116.103 102.251,115.969 102.386,115.805 102.386 C 115.641 102.386,115.507 102.520,115.507 102.684 C 115.507 102.848,115.599 102.982,115.712 102.982 C 115.825 102.982,115.969 102.848,116.031 102.684 C 116.094 102.520,116.300 102.386,116.489 102.386 C 116.678 102.386,116.832 102.251,116.832 102.087 C 116.832 101.923,116.668 101.789,116.468 101.789 C 116.267 101.789,116.103 101.923,116.103 102.087 M61.630 103.380 C 61.630 103.601,61.763 103.777,61.928 103.777 C 62.094 103.777,62.227 103.601,62.227 103.380 C 62.227 103.159,62.094 102.982,61.928 102.982 C 61.763 102.982,61.630 103.159,61.630 103.380 M275.389 104.410 C 275.457 106.062,275.825 106.443,276.015 105.057 C 276.164 103.968,276.020 103.252,275.620 103.099 C 275.380 103.007,275.341 103.233,275.389 104.410 M311.928 104.457 C 311.928 105.683,311.986 105.964,312.235 105.964 C 312.633 105.964,312.577 103.163,312.177 103.031 C 311.993 102.970,311.928 103.339,311.928 104.457 M395.427 108.654 C 395.427 113.553,395.468 114.314,395.726 114.314 C 395.984 114.314,396.024 113.565,396.024 108.769 C 396.024 104.023,395.981 103.207,395.726 103.109 C 395.465 103.009,395.427 103.705,395.427 108.654 M361.233 104.248 C 361.233 105.706,361.776 105.812,361.870 104.373 C 361.917 103.667,361.860 103.480,361.581 103.422 C 361.290 103.362,361.233 103.499,361.233 104.248 M61.034 103.860 C 61.034 104.033,61.175 104.175,61.349 104.175 C 61.522 104.175,61.628 104.069,61.585 103.939 C 61.462 103.570,61.034 103.509,61.034 103.860 M113.718 103.877 C 113.718 104.041,113.852 104.175,114.016 104.175 C 114.180 104.175,114.314 104.041,114.314 103.877 C 114.314 103.713,114.180 103.579,114.016 103.579 C 113.852 103.579,113.718 103.713,113.718 103.877 M59.841 104.452 C 59.841 104.604,59.707 104.780,59.543 104.843 C 59.379 104.906,59.245 105.050,59.245 105.163 C 59.245 105.276,59.379 105.368,59.543 105.368 C 59.707 105.368,59.841 105.278,59.841 105.169 C 59.841 105.060,59.975 104.970,60.139 104.970 C 60.305 104.970,60.437 104.793,60.437 104.573 C 60.437 104.352,60.305 104.175,60.139 104.175 C 59.975 104.175,59.841 104.300,59.841 104.452 M111.928 105.070 C 111.928 105.234,111.794 105.368,111.630 105.368 C 111.466 105.368,111.332 105.502,111.332 105.666 C 111.332 105.830,111.424 105.964,111.537 105.964 C 111.650 105.964,111.794 105.830,111.857 105.666 C 111.919 105.502,112.096 105.368,112.248 105.368 C 112.400 105.368,112.525 105.234,112.525 105.070 C 112.525 104.906,112.391 104.771,112.227 104.771 C 112.063 104.771,111.928 104.906,111.928 105.070 M58.124 105.666 C 58.061 105.830,57.885 105.964,57.732 105.964 C 57.580 105.964,57.455 106.143,57.455 106.362 C 57.455 106.583,57.588 106.759,57.753 106.759 C 57.919 106.759,58.052 106.583,58.052 106.362 C 58.052 106.141,58.184 105.964,58.350 105.964 C 58.514 105.964,58.648 105.830,58.648 105.666 C 58.648 105.502,58.556 105.368,58.443 105.368 C 58.330 105.368,58.187 105.502,58.124 105.666 M109.891 106.499 C 109.480 106.606,109.419 107.157,109.818 107.157 C 109.969 107.157,110.140 106.978,110.197 106.759 C 110.254 106.541,110.287 106.372,110.270 106.385 C 110.253 106.398,110.082 106.449,109.891 106.499 M56.113 107.030 C 55.867 107.152,55.666 107.354,55.666 107.479 C 55.666 107.605,55.478 107.756,55.247 107.817 C 54.773 107.941,54.832 108.416,55.335 108.514 C 55.531 108.552,55.666 108.450,55.666 108.265 C 55.666 108.093,55.800 107.952,55.964 107.952 C 56.130 107.952,56.262 107.776,56.262 107.555 C 56.262 107.334,56.395 107.157,56.561 107.157 C 56.725 107.157,56.859 107.068,56.859 106.958 C 56.859 106.721,56.708 106.735,56.113 107.030 M142.672 107.565 C 142.431 108.771,142.767 111.332,143.167 111.332 C 143.981 111.332,143.871 107.404,143.048 107.088 C 142.882 107.024,142.745 107.198,142.672 107.565 M262.455 108.196 C 262.319 108.803,262.251 109.511,262.304 109.769 C 262.357 110.027,262.453 110.485,262.516 110.785 C 262.595 111.159,262.757 111.332,263.026 111.332 C 263.523 111.332,263.637 108.101,263.150 107.813 C 263.002 107.726,262.841 107.528,262.792 107.373 C 262.742 107.219,262.591 107.589,262.455 108.196 M108.101 107.692 C 107.910 107.742,107.753 107.910,107.753 108.066 C 107.753 108.222,107.619 108.350,107.455 108.350 C 107.291 108.350,107.157 108.484,107.157 108.648 C 107.157 108.812,107.291 108.946,107.455 108.946 C 107.619 108.946,107.753 108.812,107.753 108.648 C 107.753 108.484,107.877 108.350,108.029 108.350 C 108.180 108.350,108.350 108.171,108.408 107.952 C 108.465 107.734,108.497 107.565,108.480 107.578 C 108.463 107.590,108.293 107.642,108.101 107.692 M53.559 108.818 C 53.329 109.053,53.180 109.356,53.227 109.493 C 53.349 109.844,53.877 109.803,53.877 109.443 C 53.877 109.279,54.011 109.145,54.175 109.145 C 54.341 109.145,54.473 108.968,54.473 108.748 C 54.473 108.242,54.094 108.271,53.559 108.818 M275.944 109.526 C 275.944 111.489,276.396 112.037,276.620 110.346 C 276.775 109.183,276.608 108.350,276.221 108.350 C 276.016 108.350,275.944 108.654,275.944 109.526 M312.525 109.725 C 312.525 110.863,312.584 111.133,312.832 111.133 C 313.228 111.133,313.172 108.531,312.773 108.399 C 312.590 108.338,312.525 108.687,312.525 109.725 M361.466 109.004 C 361.027 109.533,361.238 110.825,361.707 110.480 C 362.024 110.247,362.055 110.086,361.904 109.448 C 361.748 108.791,361.691 108.733,361.466 109.004 M105.964 109.245 C 105.964 109.409,105.830 109.543,105.666 109.543 C 105.502 109.543,105.368 109.677,105.368 109.841 C 105.368 110.005,105.502 110.139,105.666 110.139 C 105.830 110.139,105.964 110.005,105.964 109.841 C 105.964 109.677,106.098 109.543,106.262 109.543 C 106.426 109.543,106.561 109.409,106.561 109.245 C 106.561 109.081,106.426 108.946,106.262 108.946 C 106.098 108.946,105.964 109.081,105.964 109.245 M51.425 110.272 C 51.151 110.545,51.307 110.934,51.690 110.934 C 51.955 110.934,52.087 110.802,52.087 110.537 C 52.087 110.154,51.698 109.998,51.425 110.272 M103.579 111.034 C 103.579 111.198,103.713 111.332,103.877 111.332 C 104.041 111.332,104.175 111.198,104.175 111.034 C 104.175 110.870,104.041 110.736,103.877 110.736 C 103.713 110.736,103.579 110.870,103.579 111.034 M360.875 111.173 C 360.539 111.509,360.578 112.127,360.934 112.127 C 361.133 112.127,361.233 111.928,361.233 111.531 C 361.233 110.861,361.210 110.838,360.875 111.173 M49.358 111.845 C 48.713 112.581,48.696 112.638,49.119 112.670 C 49.334 112.686,49.503 112.573,49.503 112.413 C 49.503 112.256,49.682 112.127,49.901 112.127 C 50.166 112.127,50.298 111.995,50.298 111.730 C 50.298 111.186,49.891 111.236,49.358 111.845 M263.117 111.942 C 262.669 113.353,263.017 116.302,263.632 116.302 C 264.023 116.302,264.234 112.728,263.895 111.845 C 263.724 111.399,263.271 111.455,263.117 111.942 M143.340 114.293 C 143.340 117.130,143.674 117.952,144.115 116.200 C 144.552 114.466,144.254 111.730,143.629 111.730 C 143.391 111.730,143.340 112.184,143.340 114.293 M101.789 112.227 C 101.789 112.391,101.923 112.525,102.087 112.525 C 102.251 112.525,102.386 112.391,102.386 112.227 C 102.386 112.063,102.251 111.928,102.087 111.928 C 101.923 111.928,101.789 112.063,101.789 112.227 M360.288 112.671 C 360.152 112.718,360.040 112.884,360.040 113.038 C 360.040 113.193,359.906 113.320,359.742 113.320 C 359.578 113.320,359.443 113.454,359.443 113.618 C 359.443 113.782,359.309 113.917,359.145 113.917 C 358.981 113.917,358.847 114.051,358.847 114.215 C 358.847 114.379,358.981 114.513,359.145 114.513 C 359.309 114.513,359.443 114.379,359.443 114.215 C 359.443 114.051,359.573 113.917,359.732 113.917 C 359.890 113.917,360.092 113.795,360.179 113.647 C 360.266 113.499,360.438 113.343,360.560 113.300 C 360.682 113.256,360.727 113.078,360.659 112.903 C 360.592 112.728,360.425 112.624,360.288 112.671 M47.786 113.022 C 47.723 113.186,47.547 113.320,47.394 113.320 C 47.242 113.320,47.117 113.454,47.117 113.618 C 47.117 113.784,47.294 113.917,47.515 113.917 C 47.736 113.917,47.913 113.784,47.913 113.618 C 47.913 113.454,48.047 113.320,48.211 113.320 C 48.375 113.320,48.509 113.186,48.509 113.022 C 48.509 112.858,48.372 112.724,48.204 112.724 C 48.037 112.724,47.849 112.858,47.786 113.022 M100.000 113.419 C 100.000 113.583,99.866 113.718,99.702 113.718 C 99.538 113.718,99.404 113.852,99.404 114.016 C 99.404 114.180,99.538 114.314,99.702 114.314 C 99.866 114.314,100.000 114.180,100.000 114.016 C 100.000 113.834,100.185 113.718,100.476 113.718 C 100.737 113.718,101.003 113.583,101.066 113.419 C 101.152 113.196,101.033 113.121,100.590 113.121 C 100.198 113.121,100.000 113.221,100.000 113.419 M276.541 114.697 C 276.541 116.428,277.024 116.852,277.237 115.307 C 277.388 114.210,277.257 113.607,276.831 113.444 C 276.594 113.353,276.541 113.582,276.541 114.697 M313.121 114.811 C 313.121 116.004,313.181 116.302,313.419 116.302 C 313.658 116.302,313.718 116.004,313.718 114.811 C 313.718 113.618,313.658 113.320,313.419 113.320 C 313.181 113.320,313.121 113.618,313.121 114.811 M45.924 114.215 C 45.924 114.379,45.790 114.513,45.626 114.513 C 45.462 114.513,45.328 114.647,45.328 114.811 C 45.328 114.975,45.194 115.109,45.030 115.109 C 44.866 115.109,44.732 115.244,44.732 115.408 C 44.732 115.572,44.856 115.706,45.009 115.706 C 45.161 115.706,45.337 115.572,45.400 115.408 C 45.463 115.244,45.651 115.109,45.819 115.109 C 45.986 115.109,46.123 114.975,46.123 114.811 C 46.123 114.647,46.257 114.513,46.421 114.513 C 46.585 114.513,46.720 114.379,46.720 114.215 C 46.720 114.049,46.543 113.917,46.322 113.917 C 46.101 113.917,45.924 114.049,45.924 114.215 M358.557 114.897 C 358.485 115.014,358.252 115.109,358.040 115.109 C 357.828 115.109,357.654 115.234,357.654 115.386 C 357.654 115.539,357.520 115.715,357.356 115.778 C 357.192 115.841,357.058 115.984,357.058 116.097 C 357.058 116.414,357.597 116.339,357.726 116.004 C 357.789 115.840,357.977 115.706,358.145 115.706 C 358.312 115.706,358.449 115.579,358.449 115.424 C 358.449 115.269,358.561 115.103,358.698 115.054 C 358.834 115.005,358.888 114.902,358.817 114.825 C 358.746 114.748,358.629 114.781,358.557 114.897 M97.614 115.186 C 97.614 115.337,97.435 115.507,97.217 115.565 C 96.756 115.685,96.677 116.103,97.115 116.103 C 97.498 116.103,98.211 115.493,98.211 115.165 C 98.211 115.025,98.077 114.911,97.913 114.911 C 97.749 114.911,97.614 115.034,97.614 115.186 M43.539 116.004 C 43.539 116.168,43.405 116.302,43.241 116.302 C 43.077 116.302,42.942 116.436,42.942 116.600 C 42.942 116.764,43.077 116.899,43.241 116.899 C 43.405 116.899,43.539 116.764,43.539 116.600 C 43.539 116.435,43.715 116.302,43.936 116.302 C 44.157 116.302,44.334 116.170,44.334 116.004 C 44.334 115.838,44.157 115.706,43.936 115.706 C 43.715 115.706,43.539 115.838,43.539 116.004 M95.577 116.518 C 94.897 117.262,95.309 117.613,96.024 116.899 C 96.243 116.680,96.421 116.412,96.421 116.302 C 96.421 115.984,95.955 116.103,95.577 116.518 M355.268 116.600 C 355.268 116.799,355.467 116.899,355.865 116.899 C 356.262 116.899,356.461 116.799,356.461 116.600 C 356.461 116.402,356.262 116.302,355.865 116.302 C 355.467 116.302,355.268 116.402,355.268 116.600 M394.958 116.440 C 394.683 116.716,394.825 118.091,395.129 118.091 C 395.344 118.091,395.427 117.872,395.427 117.308 C 395.427 116.553,395.223 116.175,394.958 116.440 M41.750 117.197 C 41.750 117.361,41.615 117.495,41.451 117.495 C 41.287 117.495,41.153 117.629,41.153 117.793 C 41.153 117.957,41.287 118.091,41.451 118.091 C 41.615 118.091,41.750 117.957,41.750 117.793 C 41.750 117.628,41.926 117.495,42.147 117.495 C 42.368 117.495,42.545 117.362,42.545 117.197 C 42.545 117.031,42.368 116.899,42.147 116.899 C 41.926 116.899,41.750 117.031,41.750 117.197 M263.620 117.786 C 263.201 119.284,263.566 121.471,264.236 121.471 C 264.620 121.471,264.824 118.078,264.492 117.213 C 264.268 116.631,263.871 116.892,263.620 117.786 M353.479 117.184 C 353.479 117.408,353.678 117.495,354.192 117.495 C 355.090 117.495,355.021 117.026,354.110 116.936 C 353.644 116.890,353.479 116.955,353.479 117.184 M94.036 117.671 C 94.036 117.767,93.857 117.893,93.638 117.950 C 93.174 118.072,93.096 118.688,93.545 118.688 C 93.712 118.688,93.901 118.554,93.964 118.390 C 94.027 118.226,94.203 118.091,94.355 118.091 C 94.508 118.091,94.632 117.957,94.632 117.793 C 94.632 117.629,94.498 117.495,94.334 117.495 C 94.170 117.495,94.036 117.574,94.036 117.671 M143.936 119.745 C 143.936 121.588,143.994 122.047,144.235 122.139 C 144.473 122.231,144.533 122.667,144.533 124.323 C 144.533 125.920,144.601 126.449,144.831 126.640 C 145.066 126.835,145.129 127.393,145.129 129.255 C 145.129 131.176,145.185 131.644,145.427 131.737 C 145.669 131.830,145.726 132.298,145.726 134.216 C 145.726 136.413,145.753 136.581,146.106 136.581 C 146.850 136.581,146.904 132.748,146.180 131.334 C 145.998 130.980,145.933 130.524,146.009 130.144 C 146.201 129.182,145.915 127.245,145.525 126.871 C 145.223 126.581,145.207 126.390,145.394 125.290 C 145.615 123.980,145.342 121.840,144.935 121.705 C 144.822 121.667,144.785 121.168,144.846 120.512 C 144.988 119.002,144.724 117.618,144.279 117.532 C 143.971 117.472,143.936 117.695,143.936 119.745 M277.258 118.804 C 277.023 119.416,277.130 121.218,277.416 121.455 C 277.646 121.646,277.718 121.514,277.831 120.692 C 278.037 119.191,277.628 117.840,277.258 118.804 M39.364 118.986 C 39.364 119.152,39.541 119.284,39.761 119.284 C 39.982 119.284,40.159 119.152,40.159 118.986 C 40.159 118.820,39.982 118.688,39.761 118.688 C 39.541 118.688,39.364 118.820,39.364 118.986 M91.520 119.392 C 91.455 119.561,91.454 119.751,91.518 119.814 C 91.718 120.015,92.247 119.707,92.247 119.390 C 92.247 118.993,91.672 118.995,91.520 119.392 M38.243 119.583 C 38.180 119.747,38.004 119.881,37.851 119.881 C 37.699 119.881,37.575 120.015,37.575 120.179 C 37.575 120.343,37.440 120.477,37.276 120.477 C 37.112 120.477,36.978 120.611,36.978 120.775 C 36.978 120.939,37.112 121.074,37.276 121.074 C 37.440 121.074,37.575 120.939,37.575 120.775 C 37.575 120.611,37.709 120.477,37.873 120.477 C 38.037 120.477,38.171 120.343,38.171 120.179 C 38.171 120.015,38.335 119.881,38.535 119.881 C 38.736 119.881,38.900 119.747,38.900 119.583 C 38.900 119.418,38.778 119.284,38.629 119.284 C 38.479 119.284,38.306 119.418,38.243 119.583 M394.235 120.278 C 394.235 120.853,394.317 121.074,394.533 121.074 C 394.748 121.074,394.831 120.853,394.831 120.278 C 394.831 119.704,394.748 119.483,394.533 119.483 C 394.317 119.483,394.235 119.704,394.235 120.278 M89.503 120.775 C 89.017 121.279,88.934 121.672,89.314 121.667 C 89.550 121.663,90.457 120.832,90.457 120.619 C 90.457 120.294,89.874 120.389,89.503 120.775 M35.785 121.372 C 35.785 121.536,35.651 121.670,35.487 121.670 C 35.323 121.670,35.189 121.804,35.189 121.968 C 35.189 122.132,35.323 122.266,35.487 122.266 C 35.651 122.266,35.785 122.132,35.785 121.968 C 35.785 121.804,35.919 121.670,36.083 121.670 C 36.248 121.670,36.382 121.536,36.382 121.372 C 36.382 121.208,36.248 121.074,36.083 121.074 C 35.919 121.074,35.785 121.208,35.785 121.372 M87.624 122.046 C 87.433 122.240,87.276 122.503,87.276 122.631 C 87.276 122.758,87.142 122.863,86.978 122.863 C 86.814 122.863,86.680 122.994,86.680 123.155 C 86.680 123.333,86.796 123.402,86.978 123.332 C 87.142 123.269,87.276 123.138,87.276 123.040 C 87.276 122.943,87.361 122.863,87.465 122.863 C 87.757 122.863,88.678 121.945,88.532 121.799 C 88.318 121.585,87.992 121.674,87.624 122.046 M264.423 122.144 C 263.928 123.442,264.212 126.672,264.840 126.882 C 265.046 126.950,265.046 127.128,264.839 127.818 C 264.453 129.107,264.855 131.014,265.514 131.014 C 265.964 131.014,265.936 127.330,265.484 127.077 C 265.215 126.926,265.168 126.532,265.194 124.631 C 265.230 122.083,264.879 120.951,264.423 122.144 M393.638 122.283 C 393.638 123.044,394.106 122.975,394.198 122.201 C 394.243 121.825,394.170 121.670,393.950 121.670 C 393.734 121.670,393.638 121.859,393.638 122.283 M34.068 122.565 C 34.005 122.729,33.829 122.863,33.677 122.863 C 33.524 122.863,33.400 122.987,33.400 123.140 C 33.400 123.292,33.265 123.468,33.101 123.531 C 32.937 123.594,32.803 123.738,32.803 123.851 C 32.803 123.963,32.937 124.056,33.101 124.056 C 33.265 124.056,33.400 123.921,33.400 123.757 C 33.400 123.593,33.534 123.459,33.698 123.459 C 33.862 123.459,33.996 123.325,33.996 123.161 C 33.996 122.997,34.130 122.863,34.294 122.863 C 34.458 122.863,34.592 122.729,34.592 122.565 C 34.592 122.401,34.500 122.266,34.387 122.266 C 34.275 122.266,34.131 122.401,34.068 122.565 M393.042 123.956 C 393.042 124.442,393.132 124.652,393.340 124.652 C 393.548 124.652,393.638 124.442,393.638 123.956 C 393.638 123.470,393.548 123.260,393.340 123.260 C 393.132 123.260,393.042 123.470,393.042 123.956 M85.487 123.757 C 85.487 123.921,85.353 124.056,85.189 124.056 C 85.025 124.056,84.891 124.190,84.891 124.354 C 84.891 124.518,85.025 124.652,85.189 124.652 C 85.353 124.652,85.487 124.518,85.487 124.354 C 85.487 124.190,85.621 124.056,85.785 124.056 C 85.949 124.056,86.083 123.921,86.083 123.757 C 86.083 123.593,85.949 123.459,85.785 123.459 C 85.621 123.459,85.487 123.593,85.487 123.757 M277.814 123.735 C 277.636 124.198,277.819 125.710,278.062 125.790 C 278.340 125.881,278.616 124.445,278.432 123.865 C 278.284 123.398,277.969 123.332,277.814 123.735 M31.610 124.354 C 31.610 124.518,31.476 124.652,31.312 124.652 C 31.148 124.652,31.014 124.786,31.014 124.950 C 31.014 125.114,31.148 125.249,31.312 125.249 C 31.476 125.249,31.610 125.114,31.610 124.950 C 31.610 124.786,31.745 124.652,31.909 124.652 C 32.073 124.652,32.207 124.518,32.207 124.354 C 32.207 124.190,32.073 124.056,31.909 124.056 C 31.745 124.056,31.610 124.190,31.610 124.354 M83.698 124.950 C 83.698 125.114,83.564 125.249,83.400 125.249 C 83.236 125.249,83.101 125.383,83.101 125.547 C 83.101 125.711,83.236 125.845,83.400 125.845 C 83.564 125.845,83.698 125.711,83.698 125.547 C 83.698 125.383,83.832 125.249,83.996 125.249 C 84.160 125.249,84.294 125.114,84.294 124.950 C 84.294 124.786,84.160 124.652,83.996 124.652 C 83.832 124.652,83.698 124.786,83.698 124.950 M392.445 125.447 C 392.445 125.668,392.578 125.845,392.744 125.845 C 392.909 125.845,393.042 125.668,393.042 125.447 C 393.042 125.226,392.909 125.050,392.744 125.050 C 392.578 125.050,392.445 125.226,392.445 125.447 M29.821 125.547 C 29.821 125.711,29.698 125.845,29.547 125.845 C 29.397 125.845,29.162 125.979,29.026 126.143 C 28.817 126.395,28.859 126.441,29.300 126.441 C 29.631 126.441,29.821 126.332,29.821 126.143 C 29.821 125.979,29.955 125.845,30.119 125.845 C 30.283 125.845,30.417 125.711,30.417 125.547 C 30.417 125.383,30.283 125.249,30.119 125.249 C 29.955 125.249,29.821 125.383,29.821 125.547 M28.104 126.740 C 28.041 126.904,27.905 127.038,27.802 127.038 C 27.632 127.038,26.640 127.995,26.640 128.160 C 26.640 128.199,26.819 128.231,27.038 128.231 C 27.259 128.231,27.435 128.098,27.435 127.932 C 27.435 127.768,27.570 127.634,27.734 127.634 C 27.898 127.634,28.032 127.500,28.032 127.336 C 28.032 127.172,28.166 127.038,28.330 127.038 C 28.494 127.038,28.628 126.904,28.628 126.740 C 28.628 126.576,28.536 126.441,28.423 126.441 C 28.310 126.441,28.167 126.576,28.104 126.740 M81.312 126.740 C 81.312 126.904,81.446 127.038,81.610 127.038 C 81.774 127.038,81.909 126.904,81.909 126.740 C 81.909 126.576,81.774 126.441,81.610 126.441 C 81.446 126.441,81.312 126.576,81.312 126.740 M391.849 126.740 C 391.849 126.904,391.983 127.038,392.147 127.038 C 392.311 127.038,392.445 126.904,392.445 126.740 C 392.445 126.576,392.311 126.441,392.147 126.441 C 391.983 126.441,391.849 126.576,391.849 126.740 M79.523 127.932 C 79.523 128.096,79.389 128.231,79.225 128.231 C 79.061 128.231,78.926 128.365,78.926 128.529 C 78.926 128.693,79.061 128.827,79.225 128.827 C 79.389 128.827,79.523 128.693,79.523 128.529 C 79.523 128.365,79.657 128.231,79.821 128.231 C 79.985 128.231,80.119 128.096,80.119 127.932 C 80.119 127.768,79.985 127.634,79.821 127.634 C 79.657 127.634,79.523 127.768,79.523 127.932 M391.252 127.932 C 391.252 128.096,391.387 128.231,391.551 128.231 C 391.715 128.231,391.849 128.096,391.849 127.932 C 391.849 127.768,391.715 127.634,391.551 127.634 C 391.387 127.634,391.252 127.768,391.252 127.932 M278.330 129.213 C 278.330 130.813,278.827 131.185,279.059 129.757 C 279.206 128.847,279.001 128.032,278.624 128.032 C 278.397 128.032,278.330 128.302,278.330 129.213 M25.519 128.529 C 25.456 128.693,25.280 128.827,25.128 128.827 C 24.976 128.827,24.851 128.961,24.851 129.125 C 24.851 129.289,24.985 129.423,25.149 129.423 C 25.485 129.423,26.243 128.734,26.243 128.429 C 26.243 128.116,25.646 128.198,25.519 128.529 M390.656 129.026 C 390.656 129.247,390.789 129.423,390.954 129.423 C 391.120 129.423,391.252 129.247,391.252 129.026 C 391.252 128.805,391.120 128.628,390.954 128.628 C 390.789 128.628,390.656 128.805,390.656 129.026 M77.734 129.014 C 77.734 129.385,78.176 129.464,78.491 129.149 C 78.788 128.852,78.770 128.827,78.273 128.827 C 77.976 128.827,77.734 128.911,77.734 129.014 M23.929 129.722 C 23.866 129.886,23.645 130.020,23.438 130.020 C 23.231 130.020,23.062 130.154,23.062 130.318 C 23.062 130.484,23.238 130.616,23.459 130.616 C 23.680 130.616,23.857 130.484,23.857 130.318 C 23.857 130.154,23.991 130.020,24.155 130.020 C 24.319 130.020,24.453 129.886,24.453 129.722 C 24.453 129.558,24.361 129.423,24.248 129.423 C 24.135 129.423,23.992 129.558,23.929 129.722 M76.870 129.787 C 76.411 130.294,76.384 133.598,76.839 133.598 C 77.231 133.598,77.278 130.905,76.889 130.748 C 76.690 130.668,76.690 130.645,76.889 130.632 C 77.025 130.623,77.137 130.482,77.137 130.318 C 77.137 130.154,77.271 130.020,77.435 130.020 C 77.599 130.020,77.734 129.886,77.734 129.722 C 77.734 129.312,77.268 129.347,76.870 129.787 M390.060 130.219 C 390.060 130.440,389.927 130.616,389.761 130.616 C 389.597 130.616,389.463 130.750,389.463 130.915 C 389.463 131.335,389.691 131.280,390.209 130.734 C 390.726 130.189,390.786 129.821,390.358 129.821 C 390.192 129.821,390.060 129.998,390.060 130.219 M22.139 130.915 C 22.077 131.079,21.849 131.213,21.634 131.213 C 21.376 131.213,21.265 131.325,21.307 131.544 C 21.405 132.047,21.880 132.106,22.005 131.631 C 22.065 131.401,22.228 131.213,22.368 131.213 C 22.507 131.213,22.673 131.079,22.736 130.915 C 22.806 130.731,22.736 130.616,22.552 130.616 C 22.388 130.616,22.202 130.750,22.139 130.915 M265.509 131.408 C 265.013 132.210,265.406 135.863,266.023 136.193 C 266.403 136.396,266.412 136.333,266.358 133.860 C 266.303 131.350,266.031 130.564,265.509 131.408 M20.481 132.103 C 20.343 132.269,20.129 132.408,20.005 132.411 C 19.882 132.414,19.520 132.683,19.201 133.008 L 18.622 133.598 19.152 133.598 C 19.490 133.598,19.682 133.491,19.682 133.300 C 19.682 133.136,19.816 133.002,19.980 133.002 C 20.144 133.002,20.278 132.900,20.278 132.775 C 20.278 132.651,20.435 132.434,20.626 132.295 C 20.817 132.155,20.919 131.986,20.853 131.920 C 20.787 131.854,20.619 131.936,20.481 132.103 M388.270 132.704 C 388.270 132.868,388.136 133.002,387.972 133.002 C 387.808 133.002,387.674 133.136,387.674 133.300 C 387.674 133.464,387.808 133.598,387.972 133.598 C 388.136 133.598,388.270 133.464,388.270 133.300 C 388.270 133.136,388.405 133.002,388.569 133.002 C 388.733 133.002,388.867 132.868,388.867 132.704 C 388.867 132.540,388.733 132.406,388.569 132.406 C 388.405 132.406,388.270 132.540,388.270 132.704 M278.946 134.385 C 278.910 135.612,279.122 136.252,279.454 135.920 C 279.814 135.561,279.755 133.431,279.380 133.231 C 279.007 133.031,278.984 133.092,278.946 134.385 M17.766 133.897 C 17.703 134.061,17.520 134.195,17.360 134.195 C 17.006 134.195,17.088 134.821,17.458 134.945 C 17.603 134.993,17.769 134.844,17.830 134.613 C 17.890 134.383,18.063 134.195,18.214 134.195 C 18.365 134.195,18.489 134.061,18.489 133.897 C 18.489 133.733,18.352 133.598,18.185 133.598 C 18.017 133.598,17.829 133.733,17.766 133.897 M132.406 134.294 C 132.406 134.780,132.496 134.990,132.704 134.990 C 132.912 134.990,133.002 134.780,133.002 134.294 C 133.002 133.808,132.912 133.598,132.704 133.598 C 132.496 133.598,132.406 133.808,132.406 134.294 M15.245 135.805 C 15.185 136.035,15.056 136.173,14.957 136.112 C 14.859 136.051,14.778 136.132,14.778 136.291 C 14.778 136.450,14.897 136.581,15.043 136.581 C 15.189 136.581,15.308 136.501,15.308 136.405 C 15.308 136.308,15.487 136.182,15.706 136.125 C 16.211 135.993,16.230 135.388,15.729 135.388 C 15.516 135.388,15.308 135.567,15.245 135.805 M13.576 136.978 C 13.519 137.197,13.349 137.376,13.197 137.376 C 13.046 137.376,12.922 137.510,12.922 137.674 C 12.922 137.838,13.057 137.972,13.221 137.972 C 13.385 137.972,13.519 137.848,13.519 137.697 C 13.519 137.546,13.698 137.375,13.917 137.318 C 14.388 137.195,14.455 136.581,13.997 136.581 C 13.823 136.581,13.634 136.759,13.576 136.978 M266.179 137.131 C 265.695 138.379,266.059 141.352,266.695 141.352 C 267.147 141.352,267.145 136.878,266.693 136.705 C 266.487 136.626,266.321 136.764,266.179 137.131 M146.322 139.066 L 146.322 141.352 146.819 141.352 C 147.403 141.352,147.525 139.702,147.083 137.789 C 146.656 135.939,146.322 136.500,146.322 139.066 M133.002 138.674 C 133.002 139.862,133.062 140.159,133.300 140.159 C 133.536 140.159,133.598 139.874,133.598 138.789 C 133.598 137.754,133.525 137.390,133.300 137.304 C 133.052 137.208,133.002 137.436,133.002 138.674 M383.250 137.591 C 382.824 138.058,382.804 138.370,383.201 138.370 C 383.365 138.370,383.499 138.236,383.499 138.072 C 383.499 137.908,383.633 137.773,383.797 137.773 C 383.961 137.773,384.095 137.639,384.095 137.475 C 384.095 137.070,383.674 137.128,383.250 137.591 M279.744 138.356 C 279.546 138.479,279.496 138.871,279.557 139.830 C 279.686 141.864,280.084 141.961,280.261 140.003 C 280.378 138.712,280.181 138.086,279.744 138.356 M381.041 139.264 C 380.978 139.428,380.790 139.563,380.623 139.563 C 380.455 139.563,380.318 139.697,380.318 139.861 C 380.318 140.025,380.455 140.159,380.623 140.159 C 380.790 140.159,380.978 140.025,381.041 139.861 C 381.104 139.697,381.280 139.563,381.433 139.563 C 381.585 139.563,381.710 139.428,381.710 139.264 C 381.710 139.100,381.585 138.966,381.433 138.966 C 381.280 138.966,381.104 139.100,381.041 139.264 M12.922 141.352 C 12.922 142.280,12.989 142.545,13.221 142.545 C 13.453 142.545,13.519 142.280,13.519 141.352 C 13.519 140.424,13.453 140.159,13.221 140.159 C 12.989 140.159,12.922 140.424,12.922 141.352 M379.125 140.457 C 379.125 140.623,379.302 140.755,379.523 140.755 C 379.744 140.755,379.920 140.623,379.920 140.457 C 379.920 140.292,379.744 140.159,379.523 140.159 C 379.302 140.159,379.125 140.292,379.125 140.457 M378.131 141.070 C 378.131 141.243,378.237 141.350,378.367 141.306 C 378.736 141.183,378.797 140.755,378.446 140.755 C 378.273 140.755,378.131 140.897,378.131 141.070 M376.872 141.637 C 376.800 141.823,376.885 141.913,377.115 141.895 C 377.310 141.881,377.469 141.752,377.469 141.610 C 377.469 141.261,377.008 141.281,376.872 141.637 M146.918 143.816 C 146.918 145.975,147.175 146.834,147.609 146.131 C 148.131 145.287,147.795 141.551,147.197 141.551 C 146.975 141.551,146.918 142.007,146.918 143.816 M266.728 141.988 C 266.477 142.926,266.590 145.834,266.892 146.234 C 267.053 146.447,267.188 146.531,267.194 146.421 C 267.199 146.312,267.291 146.357,267.399 146.521 C 267.533 146.723,267.580 145.990,267.545 144.237 C 267.503 142.040,267.447 141.646,267.173 141.593 C 266.975 141.555,266.803 141.708,266.728 141.988 M375.547 142.346 C 375.547 142.784,375.571 142.798,376.027 142.623 C 376.478 142.450,376.416 141.948,375.944 141.948 C 375.679 141.948,375.547 142.081,375.547 142.346 M374.296 142.942 C 374.188 143.358,374.309 143.421,374.835 143.219 C 375.274 143.051,375.229 142.545,374.775 142.545 C 374.567 142.545,374.354 142.722,374.296 142.942 M133.598 144.135 C 133.598 145.240,133.660 145.527,133.897 145.527 C 134.133 145.527,134.195 145.240,134.195 144.135 C 134.195 143.031,134.133 142.744,133.897 142.744 C 133.660 142.744,133.598 143.031,133.598 144.135 M280.119 144.116 C 280.119 145.910,280.700 146.098,280.867 144.358 C 280.949 143.511,280.905 143.349,280.540 143.154 C 280.133 142.936,280.119 142.968,280.119 144.116 M372.565 143.560 C 372.565 143.860,372.654 143.945,372.879 143.858 C 373.052 143.792,373.320 143.738,373.476 143.738 C 373.631 143.738,373.757 143.603,373.757 143.439 C 373.757 143.241,373.559 143.141,373.161 143.141 C 372.687 143.141,372.565 143.227,372.565 143.560 M370.726 144.103 C 370.634 144.457,370.782 144.491,371.819 144.354 C 371.901 144.343,371.968 144.200,371.968 144.036 C 371.968 143.580,370.847 143.640,370.726 144.103 M368.390 144.689 C 368.390 144.941,368.563 145.058,368.986 145.090 C 369.467 145.127,369.583 145.058,369.583 144.735 C 369.583 144.422,369.452 144.334,368.986 144.334 C 368.546 144.334,368.390 144.427,368.390 144.689 M13.519 146.102 C 13.519 146.960,13.599 147.304,13.817 147.388 C 14.063 147.482,14.115 147.278,14.115 146.216 C 14.115 145.206,14.051 144.930,13.817 144.930 C 13.586 144.930,13.519 145.193,13.519 146.102 M365.901 145.135 C 365.824 145.260,365.850 145.452,365.959 145.561 C 366.248 145.850,367.097 145.677,367.097 145.328 C 367.097 144.967,366.104 144.807,365.901 145.135 M361.953 145.829 C 361.775 146.007,361.630 146.173,361.630 146.199 C 361.630 146.225,362.189 146.241,362.873 146.235 C 363.839 146.225,364.115 146.156,364.115 145.924 C 364.115 145.479,362.379 145.403,361.953 145.829 M317.228 146.271 C 316.830 146.916,317.231 146.928,337.324 146.873 C 355.845 146.823,357.775 146.775,357.373 146.372 C 357.164 146.163,317.356 146.064,317.228 146.271 M147.558 148.646 C 147.616 150.819,147.837 151.357,148.276 150.393 C 148.739 149.377,148.424 146.882,147.803 146.644 C 147.543 146.544,147.509 146.822,147.558 148.646 M267.331 147.453 C 267.057 147.987,267.051 148.997,267.311 150.646 C 267.387 151.124,267.516 151.292,267.809 151.292 C 268.182 151.292,268.201 151.175,268.148 149.171 C 268.088 146.914,267.856 146.428,267.331 147.453 M134.201 149.056 C 134.196 150.384,134.252 150.696,134.493 150.696 C 134.908 150.696,134.913 148.348,134.499 147.801 C 134.235 147.452,134.207 147.570,134.201 149.056 M280.847 147.649 C 280.623 147.872,280.702 150.266,280.937 150.411 C 281.287 150.628,281.505 150.084,281.508 148.981 C 281.511 148.023,281.166 147.329,280.847 147.649 M317.433 148.836 C 317.288 148.981,317.238 151.093,317.379 151.093 C 317.425 151.093,317.593 151.144,317.753 151.205 C 317.990 151.296,318.038 151.088,318.017 150.079 C 317.994 148.944,317.780 148.489,317.433 148.836 M14.156 150.829 C 14.241 152.739,14.712 152.809,14.712 150.911 C 14.712 149.773,14.653 149.503,14.404 149.503 C 14.152 149.503,14.108 149.740,14.156 150.829 M148.155 153.711 C 148.218 156.654,148.510 157.279,148.914 155.333 C 149.311 153.418,148.964 151.093,148.280 151.093 C 148.179 151.093,148.124 152.238,148.155 153.711 M267.919 152.302 C 267.552 154.139,267.865 156.262,268.503 156.262 C 268.964 156.262,268.831 151.821,268.367 151.733 C 268.144 151.690,268.007 151.865,267.919 152.302 M281.342 154.142 C 281.457 156.412,281.882 156.569,282.056 154.406 C 282.150 153.227,282.122 153.104,281.713 152.884 L 281.267 152.646 281.342 154.142 M134.791 154.158 C 134.791 155.207,134.852 155.467,135.099 155.467 C 135.350 155.467,135.396 155.241,135.347 154.240 C 135.262 152.476,134.791 152.406,134.791 154.158 M318.017 153.785 C 317.709 154.587,317.881 156.014,318.299 156.124 C 318.682 156.224,318.702 156.154,318.647 154.920 C 318.591 153.656,318.280 153.098,318.017 153.785 M14.844 154.606 C 14.679 154.771,14.669 156.716,14.832 157.141 C 15.108 157.858,15.308 157.363,15.308 155.964 C 15.308 154.593,15.193 154.257,14.844 154.606 M268.514 156.766 C 268.069 157.926,268.487 160.835,269.099 160.835 C 269.561 160.835,269.426 156.593,268.961 156.504 C 268.784 156.470,268.583 156.588,268.514 156.766 M148.708 159.046 C 148.708 161.055,148.738 161.233,149.082 161.233 C 149.702 161.233,149.933 159.190,149.493 157.604 C 149.058 156.039,148.708 156.682,148.708 159.046 M135.388 159.046 C 135.388 160.150,135.449 160.437,135.686 160.437 C 135.923 160.437,135.984 160.150,135.984 159.046 C 135.984 157.941,135.923 157.654,135.686 157.654 C 135.449 157.654,135.388 157.941,135.388 159.046 M281.982 159.294 C 282.002 160.255,282.076 160.537,282.306 160.537 C 282.533 160.537,282.619 160.240,282.664 159.294 C 282.717 158.180,282.683 158.052,282.340 158.052 C 282.000 158.052,281.960 158.191,281.982 159.294 M318.590 159.267 C 318.406 160.492,318.518 161.116,318.936 161.195 C 319.385 161.281,319.439 159.333,319.005 158.740 C 318.747 158.387,318.716 158.426,318.590 159.267 M15.349 160.968 C 15.433 162.879,15.905 162.948,15.905 161.050 C 15.905 159.913,15.846 159.642,15.597 159.642 C 15.345 159.642,15.300 159.879,15.349 160.968 M269.228 161.132 C 269.306 161.216,269.289 161.436,269.190 161.622 C 269.090 161.807,268.995 162.578,268.977 163.335 C 268.958 164.092,268.899 164.913,268.844 165.159 L 268.744 165.606 209.834 165.606 C 156.544 165.606,150.893 165.577,150.611 165.294 C 150.392 165.075,150.298 164.601,150.298 163.716 C 150.298 162.267,150.045 161.431,149.607 161.431 C 149.161 161.431,149.157 165.761,149.602 165.932 C 149.766 165.995,149.901 166.171,149.901 166.323 C 149.901 166.560,158.754 166.600,209.940 166.600 L 269.980 166.600 269.980 164.023 C 269.980 161.551,269.962 161.436,269.533 161.213 C 269.287 161.085,269.149 161.049,269.228 161.132 M282.655 162.763 C 282.422 163.199,282.516 164.573,282.795 164.804 C 283.196 165.137,283.347 164.753,283.263 163.607 C 283.207 162.833,282.868 162.364,282.655 162.763 M135.984 164.385 C 135.984 165.153,135.895 165.837,135.785 165.905 C 135.387 166.151,135.585 166.600,136.091 166.600 L 136.596 166.600 136.539 164.877 C 136.465 162.657,135.984 162.231,135.984 164.385 M319.209 163.924 C 319.141 164.102,319.085 164.642,319.085 165.126 C 319.085 165.609,318.996 166.004,318.887 166.004 C 318.777 166.004,318.688 166.144,318.688 166.315 C 318.688 166.538,318.844 166.609,319.235 166.564 C 319.772 166.502,319.781 166.478,319.781 165.126 C 319.781 163.799,319.491 163.190,319.209 163.924 M15.905 165.414 C 15.905 166.561,15.922 166.600,16.425 166.600 C 16.874 166.600,16.925 166.540,16.802 166.153 C 16.723 165.907,16.614 165.421,16.559 165.073 C 16.370 163.859,15.905 164.101,15.905 165.414 M283.214 166.182 C 283.100 166.366,283.535 166.600,283.991 166.600 C 284.134 166.600,284.303 166.466,284.366 166.302 C 284.494 165.968,283.415 165.856,283.214 166.182 "\n stroke="none" fill="#9488c4" fill-rule="evenodd"></path>\n <path id="path3"\n d="M156.660 21.554 C 156.660 21.709,156.548 21.881,156.412 21.936 C 156.275 21.991,157.147 22.033,158.350 22.029 C 159.553 22.025,160.374 21.979,160.174 21.928 C 159.961 21.873,159.856 21.718,159.920 21.553 C 160.007 21.325,159.712 21.272,158.344 21.272 C 157.024 21.272,156.660 21.333,156.660 21.554 M162.964 22.266 C 163.021 22.485,163.147 22.664,163.244 22.664 C 163.452 22.664,163.459 22.601,163.299 22.183 C 163.124 21.727,162.841 21.797,162.964 22.266 M164.754 22.863 C 164.811 23.082,164.928 23.260,165.015 23.260 C 165.101 23.260,165.125 23.082,165.068 22.863 C 165.010 22.644,164.893 22.465,164.807 22.465 C 164.720 22.465,164.696 22.644,164.754 22.863 M147.763 24.994 C 147.425 25.115,147.448 25.646,147.792 25.646 C 148.092 25.646,148.382 25.113,148.152 24.983 C 148.075 24.940,147.900 24.945,147.763 24.994 M170.126 25.566 C 169.872 25.821,170.247 26.243,170.728 26.243 L 171.234 26.243 170.775 25.845 C 170.256 25.394,170.285 25.407,170.126 25.566 M175.547 31.887 C 175.547 32.224,176.084 32.463,176.248 32.198 C 176.313 32.094,176.310 31.918,176.243 31.809 C 176.059 31.512,175.547 31.569,175.547 31.887 M176.143 33.071 C 176.143 33.226,176.322 33.400,176.541 33.457 C 176.759 33.514,176.938 33.483,176.938 33.388 C 176.938 33.293,176.759 33.119,176.541 33.002 C 176.230 32.836,176.143 32.851,176.143 33.071 M176.740 34.287 C 176.740 34.460,176.912 34.592,177.137 34.592 C 177.356 34.592,177.535 34.551,177.535 34.500 C 177.535 34.449,177.356 34.312,177.137 34.195 C 176.820 34.025,176.740 34.044,176.740 34.287 M177.336 35.991 C 177.336 36.276,177.757 36.438,177.963 36.232 C 178.090 36.105,178.015 36.000,177.747 35.930 C 177.521 35.871,177.336 35.898,177.336 35.991 M142.147 37.668 C 142.147 38.906,142.197 39.134,142.445 39.038 C 142.670 38.952,142.744 38.588,142.744 37.553 C 142.744 36.468,142.682 36.183,142.445 36.183 C 142.207 36.183,142.147 36.480,142.147 37.668 M177.932 38.090 C 177.932 38.244,178.111 38.370,178.330 38.370 C 178.549 38.370,178.728 38.291,178.728 38.194 C 178.728 38.098,178.549 37.972,178.330 37.915 C 178.072 37.847,177.932 37.908,177.932 38.090 M142.744 42.346 C 142.744 42.455,142.878 42.545,143.042 42.545 C 143.206 42.545,143.340 42.455,143.340 42.346 C 143.340 42.237,143.206 42.147,143.042 42.147 C 142.878 42.147,142.744 42.237,142.744 42.346 M143.340 44.334 C 143.340 44.443,143.474 44.533,143.638 44.533 C 143.802 44.533,143.936 44.443,143.936 44.334 C 143.936 44.225,143.802 44.135,143.638 44.135 C 143.474 44.135,143.340 44.225,143.340 44.334 M178.069 45.655 C 177.994 45.730,177.934 45.934,177.935 46.107 C 177.938 46.363,177.971 46.370,178.112 46.147 C 178.211 45.991,178.392 45.939,178.532 46.026 C 178.691 46.124,178.748 46.084,178.691 45.915 C 178.587 45.600,178.260 45.464,178.069 45.655 M177.427 47.727 C 177.355 47.844,177.350 47.993,177.415 48.058 C 177.481 48.124,177.535 48.076,177.535 47.952 C 177.535 47.823,177.677 47.781,177.866 47.853 C 178.088 47.939,178.149 47.904,178.053 47.748 C 177.873 47.458,177.599 47.448,177.427 47.727 M145.129 47.913 C 145.129 48.022,145.263 48.111,145.427 48.111 C 145.591 48.111,145.726 48.022,145.726 47.913 C 145.726 47.803,145.591 47.714,145.427 47.714 C 145.263 47.714,145.129 47.803,145.129 47.913 M146.322 49.708 C 146.322 49.923,146.456 50.099,146.620 50.099 C 146.784 50.099,146.918 49.975,146.918 49.822 C 146.918 49.670,146.784 49.494,146.620 49.431 C 146.417 49.353,146.322 49.442,146.322 49.708 M175.199 51.833 C 174.900 51.940,174.864 52.485,175.155 52.485 C 175.360 52.485,175.662 51.928,175.522 51.808 C 175.481 51.773,175.335 51.784,175.199 51.833 M172.493 54.573 C 172.415 54.775,172.503 54.871,172.770 54.871 C 172.985 54.871,173.161 54.737,173.161 54.573 C 173.161 54.409,173.036 54.274,172.884 54.274 C 172.732 54.274,172.556 54.409,172.493 54.573 M152.353 55.169 C 152.353 55.333,152.514 55.467,152.711 55.467 C 152.948 55.467,153.030 55.366,152.955 55.169 C 152.892 55.005,152.730 54.871,152.596 54.871 C 152.462 54.871,152.353 55.005,152.353 55.169 M153.678 55.765 C 153.678 55.929,153.767 56.064,153.877 56.064 C 153.986 56.064,154.076 55.929,154.076 55.765 C 154.076 55.601,153.986 55.467,153.877 55.467 C 153.767 55.467,153.678 55.601,153.678 55.765 M155.070 56.362 C 155.070 56.526,155.159 56.660,155.268 56.660 C 155.378 56.660,155.467 56.526,155.467 56.362 C 155.467 56.198,155.378 56.064,155.268 56.064 C 155.159 56.064,155.070 56.198,155.070 56.362 M159.245 57.555 C 159.245 57.719,159.379 57.853,159.543 57.853 C 159.707 57.853,159.841 57.719,159.841 57.555 C 159.841 57.391,159.707 57.256,159.543 57.256 C 159.379 57.256,159.245 57.391,159.245 57.555 M165.606 57.555 C 165.606 57.719,165.726 57.853,165.871 57.853 C 166.017 57.853,166.137 57.719,166.137 57.555 C 166.137 57.391,166.017 57.256,165.871 57.256 C 165.726 57.256,165.606 57.391,165.606 57.555 M291.899 65.954 C 303.352 65.983,322.095 65.983,333.549 65.954 C 345.002 65.926,335.631 65.903,312.724 65.903 C 289.816 65.903,280.445 65.926,291.899 65.954 M358.052 66.094 C 358.052 66.420,359.122 66.686,359.865 66.545 C 360.189 66.484,360.104 66.447,359.592 66.429 C 359.074 66.410,358.847 66.311,358.847 66.103 C 358.847 65.938,358.670 65.805,358.449 65.805 C 358.231 65.805,358.052 65.935,358.052 66.094 M123.927 67.195 C 123.949 67.873,124.040 68.104,124.304 68.154 C 124.724 68.234,124.778 67.686,124.373 67.455 C 124.220 67.368,124.050 67.073,123.996 66.799 C 123.941 66.526,123.910 66.704,123.927 67.195 M362.065 66.750 C 362.111 66.995,362.335 67.106,362.825 67.125 C 363.345 67.146,363.382 67.131,362.972 67.063 C 362.671 67.013,362.425 66.843,362.425 66.687 C 362.425 66.530,362.329 66.402,362.212 66.402 C 362.095 66.402,362.028 66.558,362.065 66.750 M364.649 67.346 C 364.689 67.554,364.914 67.707,365.211 67.726 C 365.679 67.757,365.681 67.754,365.243 67.661 C 364.945 67.598,364.819 67.462,364.889 67.280 C 364.949 67.125,364.904 66.998,364.790 66.998 C 364.676 66.998,364.613 67.155,364.649 67.346 M366.600 67.879 C 366.600 68.177,367.339 68.513,367.543 68.308 C 367.608 68.244,367.512 68.191,367.329 68.191 C 367.147 68.191,366.998 68.057,366.998 67.893 C 366.998 67.729,366.909 67.594,366.799 67.594 C 366.690 67.594,366.600 67.723,366.600 67.879 M271.173 68.489 C 271.173 68.790,271.286 68.986,271.460 68.986 C 271.660 68.986,271.770 69.274,271.822 69.930 L 271.897 70.875 271.932 69.746 C 271.958 68.947,271.877 68.526,271.656 68.304 C 271.235 67.884,271.173 67.908,271.173 68.489 M368.626 68.536 C 368.662 68.727,368.870 68.900,369.088 68.923 C 369.425 68.957,369.430 68.948,369.121 68.858 C 368.909 68.796,368.803 68.635,368.866 68.472 C 368.925 68.317,368.880 68.191,368.766 68.191 C 368.653 68.191,368.589 68.346,368.626 68.536 M370.179 69.072 C 370.179 69.369,370.917 69.706,371.122 69.501 C 371.186 69.437,371.090 69.384,370.908 69.384 C 370.726 69.384,370.577 69.250,370.577 69.085 C 370.577 68.921,370.487 68.787,370.378 68.787 C 370.268 68.787,370.179 68.915,370.179 69.072 M371.833 69.680 C 371.857 69.911,372.037 70.092,372.269 70.116 C 372.555 70.145,372.572 70.129,372.328 70.056 C 372.144 70.001,371.948 69.805,371.892 69.620 C 371.820 69.377,371.803 69.393,371.833 69.680 M4.648 70.070 C 4.587 70.229,4.595 70.452,4.666 70.567 C 4.898 70.942,5.169 70.786,5.169 70.278 C 5.169 69.739,4.827 69.603,4.648 70.070 M373.026 70.276 C 373.049 70.508,373.230 70.688,373.462 70.712 C 373.748 70.741,373.765 70.725,373.521 70.652 C 373.337 70.597,373.140 70.401,373.085 70.216 C 373.013 69.973,372.996 69.989,373.026 70.276 M374.218 70.872 C 374.242 71.104,374.423 71.285,374.654 71.308 C 374.941 71.338,374.957 71.321,374.714 71.249 C 374.529 71.194,374.333 70.997,374.278 70.813 C 374.205 70.569,374.189 70.586,374.218 70.872 M124.515 71.769 C 124.550 72.425,125.149 72.847,125.149 72.217 C 125.149 72.080,125.060 71.973,124.950 71.980 C 124.841 71.986,124.690 71.785,124.614 71.533 C 124.509 71.182,124.485 71.238,124.515 71.769 M375.411 71.469 C 375.435 71.701,375.615 71.881,375.847 71.905 C 376.134 71.934,376.150 71.918,375.907 71.845 C 375.722 71.790,375.526 71.594,375.471 71.409 C 375.398 71.166,375.382 71.182,375.411 71.469 M376.604 72.065 C 376.628 72.297,376.808 72.477,377.040 72.501 C 377.327 72.531,377.343 72.514,377.100 72.442 C 376.915 72.386,376.719 72.190,376.664 72.006 C 376.591 71.762,376.575 71.779,376.604 72.065 M271.769 73.444 C 271.769 73.702,271.904 73.965,272.068 74.028 C 272.274 74.107,272.377 74.467,272.401 75.193 L 272.435 76.243 272.514 75.352 C 272.617 74.182,272.426 73.227,272.062 73.087 C 271.855 73.008,271.769 73.112,271.769 73.444 M379.128 74.006 C 379.126 74.240,379.272 74.349,379.573 74.338 C 379.871 74.328,379.921 74.285,379.722 74.209 C 379.558 74.147,379.358 73.997,379.277 73.877 C 379.187 73.742,379.130 73.791,379.128 74.006 M5.169 75.547 C 5.169 75.768,5.302 75.944,5.467 75.944 C 5.633 75.944,5.765 75.768,5.765 75.547 C 5.765 75.326,5.633 75.149,5.467 75.149 C 5.302 75.149,5.169 75.326,5.169 75.547 M125.122 76.342 C 125.150 77.252,125.659 77.658,125.807 76.889 C 125.847 76.682,125.753 76.541,125.575 76.541 C 125.402 76.541,125.237 76.309,125.185 75.994 C 125.136 75.693,125.108 75.850,125.122 76.342 M382.836 76.673 C 382.636 76.874,382.678 77.336,382.896 77.336 C 383.146 77.336,384.493 78.683,384.493 78.933 C 384.493 79.039,384.621 79.125,384.777 79.125 C 384.933 79.125,385.103 79.282,385.155 79.473 C 385.207 79.665,385.240 79.540,385.228 79.197 C 385.214 78.773,385.124 78.604,384.949 78.671 C 384.800 78.729,384.692 78.627,384.692 78.429 C 384.692 77.933,383.870 77.145,383.350 77.141 C 383.104 77.139,382.903 77.042,382.903 76.927 C 382.903 76.811,383.006 76.780,383.132 76.858 C 383.274 76.946,383.308 76.912,383.220 76.770 C 383.055 76.504,383.016 76.494,382.836 76.673 M272.465 78.330 C 272.303 78.592,272.541 78.965,272.777 78.819 C 272.881 78.754,272.977 79.167,272.997 79.760 C 273.031 80.808,273.032 80.809,273.109 79.936 C 273.231 78.563,272.873 77.670,272.465 78.330 M5.765 80.318 C 5.765 80.539,5.898 80.716,6.064 80.716 C 6.229 80.716,6.362 80.539,6.362 80.318 C 6.362 80.097,6.229 79.920,6.064 79.920 C 5.898 79.920,5.765 80.097,5.765 80.318 M125.673 81.447 C 125.658 81.795,125.787 82.220,125.959 82.391 C 126.379 82.812,126.441 82.788,126.441 82.207 C 126.441 81.908,126.328 81.710,126.157 81.710 C 126.001 81.710,125.834 81.508,125.786 81.262 C 125.723 80.931,125.693 80.979,125.673 81.447 M272.962 83.002 C 272.962 83.311,273.075 83.499,273.260 83.499 C 273.487 83.499,273.567 83.774,273.594 84.642 L 273.630 85.785 273.707 84.792 C 273.749 84.245,273.729 83.507,273.662 83.152 C 273.517 82.377,272.962 82.258,272.962 83.002 M388.867 84.195 C 388.867 84.359,388.947 84.493,389.044 84.493 C 389.142 84.493,389.277 84.717,389.346 84.990 C 389.464 85.461,390.060 85.710,390.060 85.288 C 390.060 85.179,389.925 85.089,389.761 85.089 C 389.563 85.089,389.463 84.891,389.463 84.493 C 389.463 84.095,389.364 83.897,389.165 83.897 C 389.001 83.897,388.867 84.031,388.867 84.195 M6.362 84.797 C 6.362 85.101,6.475 85.288,6.660 85.288 C 6.824 85.288,6.958 85.119,6.958 84.912 C 6.958 84.705,6.824 84.484,6.660 84.421 C 6.445 84.338,6.362 84.443,6.362 84.797 M126.279 85.918 C 126.259 86.538,126.297 87.187,126.363 87.359 C 126.536 87.810,127.038 87.748,127.038 87.276 C 127.038 87.058,126.908 86.879,126.750 86.879 C 126.545 86.879,126.441 86.580,126.389 85.835 L 126.316 84.791 126.279 85.918 M389.924 85.982 C 389.948 86.214,390.128 86.394,390.360 86.418 C 390.647 86.447,390.663 86.431,390.420 86.358 C 390.235 86.303,390.039 86.107,389.984 85.922 C 389.911 85.679,389.895 85.695,389.924 85.982 M273.559 88.256 C 273.559 88.483,273.687 88.668,273.844 88.668 C 274.000 88.668,274.169 88.914,274.218 89.215 C 274.268 89.515,274.296 89.360,274.281 88.869 C 274.253 87.924,273.559 87.335,273.559 88.256 M7.091 89.596 C 7.018 89.669,6.958 89.900,6.958 90.109 C 6.958 90.625,7.438 90.441,7.519 89.895 C 7.580 89.477,7.362 89.324,7.091 89.596 M126.920 90.754 C 126.935 91.721,127.004 91.957,127.286 92.011 C 127.478 92.047,127.634 91.981,127.634 91.863 C 127.634 91.746,127.505 91.650,127.346 91.650 C 127.142 91.650,127.036 91.349,126.980 90.606 C 126.904 89.601,126.902 89.606,126.920 90.754 M7.609 91.252 C 7.609 91.745,7.648 91.946,7.695 91.700 C 7.742 91.454,7.742 91.051,7.695 90.805 C 7.648 90.559,7.609 90.760,7.609 91.252 M274.155 93.425 C 274.155 93.651,274.283 93.837,274.440 93.837 C 274.597 93.837,274.765 94.083,274.815 94.384 C 274.864 94.684,274.892 94.529,274.878 94.038 C 274.849 93.093,274.155 92.504,274.155 93.425 M321.436 93.986 C 326.502 94.016,334.733 94.016,339.727 93.986 C 344.721 93.956,340.577 93.932,330.517 93.932 C 320.457 93.932,316.371 93.956,321.436 93.986 M350.746 93.974 C 350.937 94.024,351.093 94.193,351.093 94.349 C 351.093 94.505,351.219 94.632,351.373 94.632 C 351.555 94.632,351.616 94.493,351.549 94.235 C 351.476 93.955,351.289 93.844,350.921 93.860 C 350.584 93.875,350.522 93.916,350.746 93.974 M353.048 94.578 C 353.522 94.637,353.679 94.741,353.601 94.944 C 353.519 95.157,353.665 95.229,354.181 95.229 C 354.662 95.229,354.871 95.319,354.871 95.527 C 354.871 95.726,355.070 95.825,355.467 95.825 C 355.821 95.825,356.064 95.929,356.064 96.081 C 356.064 96.222,356.237 96.350,356.448 96.366 C 356.849 96.396,357.527 96.971,357.713 97.440 C 357.789 97.631,357.826 97.607,357.837 97.360 C 357.846 97.165,357.719 96.954,357.555 96.891 C 357.391 96.828,357.256 96.652,357.256 96.500 C 357.256 96.347,357.078 96.223,356.859 96.223 C 356.640 96.223,356.461 96.142,356.461 96.043 C 356.461 95.945,356.193 95.770,355.865 95.656 C 355.537 95.542,355.268 95.354,355.268 95.239 C 355.268 95.124,354.965 95.030,354.594 95.030 C 354.178 95.030,353.875 94.916,353.805 94.732 C 353.731 94.540,353.457 94.445,353.038 94.465 L 352.386 94.497 353.048 94.578 M7.555 95.123 C 7.555 95.478,7.637 95.582,7.853 95.499 C 8.017 95.436,8.151 95.216,8.151 95.009 C 8.151 94.802,8.017 94.632,7.853 94.632 C 7.668 94.632,7.555 94.819,7.555 95.123 M8.205 96.421 C 8.205 96.914,8.244 97.115,8.291 96.869 C 8.339 96.623,8.339 96.220,8.291 95.974 C 8.244 95.728,8.205 95.929,8.205 96.421 M124.508 95.904 C 124.423 96.047,124.220 96.219,124.056 96.286 C 123.892 96.352,124.064 96.388,124.438 96.365 C 124.812 96.341,125.152 96.221,125.192 96.098 C 125.299 95.770,124.690 95.597,124.508 95.904 M310.736 97.018 C 310.736 97.239,310.868 97.416,311.034 97.416 C 311.199 97.416,311.332 97.239,311.332 97.018 C 311.332 96.797,311.199 96.620,311.034 96.620 C 310.868 96.620,310.736 96.797,310.736 97.018 M122.527 97.283 C 122.288 97.402,122.046 97.682,121.990 97.905 C 121.900 98.266,121.915 98.275,122.135 97.982 C 122.271 97.801,122.595 97.622,122.855 97.584 C 123.116 97.546,123.366 97.403,123.411 97.266 C 123.507 96.973,123.136 96.980,122.527 97.283 M394.483 97.547 C 394.137 97.687,394.172 98.012,394.533 98.012 C 394.697 98.012,394.831 97.878,394.831 97.714 C 394.831 97.550,394.809 97.423,394.781 97.431 C 394.754 97.440,394.620 97.492,394.483 97.547 M274.838 98.032 C 274.757 98.164,274.823 98.369,274.987 98.489 C 275.150 98.609,275.336 98.842,275.399 99.006 C 275.470 99.188,275.521 99.101,275.531 98.782 C 275.549 98.168,275.073 97.653,274.838 98.032 M22.217 98.161 C 29.898 98.190,42.468 98.190,50.149 98.161 C 57.831 98.132,51.546 98.109,36.183 98.109 C 20.820 98.109,14.535 98.132,22.217 98.161 M358.499 98.149 C 358.690 98.199,358.847 98.320,358.847 98.417 C 358.847 98.515,359.026 98.690,359.245 98.807 C 359.514 98.951,359.642 98.954,359.642 98.814 C 359.642 98.701,359.518 98.608,359.365 98.608 C 359.213 98.608,359.037 98.474,358.974 98.310 C 358.911 98.146,358.700 98.022,358.505 98.035 C 358.173 98.057,358.173 98.064,358.499 98.149 M120.338 98.877 C 120.250 99.025,120.045 99.197,119.881 99.259 C 119.710 99.324,119.821 99.379,120.141 99.388 C 120.503 99.398,120.651 99.326,120.563 99.183 C 120.488 99.061,120.549 98.883,120.700 98.788 C 120.883 98.672,120.895 98.613,120.736 98.611 C 120.604 98.610,120.425 98.729,120.338 98.877 M359.801 99.375 C 359.943 99.465,360.074 99.726,360.091 99.956 C 360.108 100.185,360.283 100.415,360.479 100.466 C 360.909 100.578,360.959 100.234,360.537 100.072 C 360.373 100.009,360.239 99.788,360.239 99.581 C 360.239 99.354,360.101 99.206,359.891 99.208 C 359.631 99.210,359.609 99.253,359.801 99.375 M118.489 100.184 C 118.489 100.286,118.333 100.409,118.141 100.459 C 117.950 100.509,118.074 100.561,118.418 100.573 C 118.807 100.588,119.086 100.484,119.157 100.298 C 119.235 100.095,119.147 100.000,118.880 100.000 C 118.665 100.000,118.489 100.083,118.489 100.184 M64.016 100.895 C 64.016 101.059,64.150 101.193,64.314 101.193 C 64.478 101.193,64.612 101.059,64.612 100.895 C 64.612 100.731,64.478 100.596,64.314 100.596 C 64.150 100.596,64.016 100.731,64.016 100.895 M394.831 101.271 C 394.831 101.423,394.965 101.599,395.129 101.662 C 395.332 101.740,395.427 101.652,395.427 101.385 C 395.427 101.170,395.293 100.994,395.129 100.994 C 394.965 100.994,394.831 101.119,394.831 101.271 M311.459 101.331 C 311.222 101.568,311.331 101.988,311.630 101.988 C 311.794 101.988,311.928 101.859,311.928 101.702 C 311.928 101.369,311.645 101.145,311.459 101.331 M64.364 101.782 C 64.172 101.968,64.016 102.237,64.016 102.379 C 64.016 102.522,64.205 102.398,64.436 102.104 C 64.921 101.487,64.876 101.283,64.364 101.782 M62.823 102.672 C 62.823 103.081,63.235 103.281,63.429 102.967 C 63.518 102.822,63.548 102.632,63.494 102.544 C 63.327 102.274,62.823 102.370,62.823 102.672 M275.348 102.674 C 275.348 102.833,275.469 103.034,275.617 103.121 C 275.765 103.209,275.937 103.415,275.999 103.579 C 276.076 103.782,276.117 103.740,276.127 103.446 C 276.136 103.209,276.089 102.873,276.022 102.700 C 275.871 102.306,275.348 102.286,275.348 102.674 M114.314 103.158 C 114.314 103.254,114.135 103.380,113.917 103.437 C 113.687 103.497,113.529 103.696,113.542 103.908 C 113.563 104.241,113.573 104.242,113.656 103.926 C 113.716 103.695,113.942 103.579,114.329 103.579 C 114.713 103.579,114.911 103.477,114.911 103.280 C 114.911 103.116,114.776 102.982,114.612 102.982 C 114.448 102.982,114.314 103.061,114.314 103.158 M361.352 103.148 C 361.289 103.251,361.420 103.382,361.644 103.441 C 361.891 103.506,362.022 103.461,361.977 103.327 C 361.877 103.028,361.494 102.918,361.352 103.148 M61.534 103.810 C 61.618 104.030,61.539 104.171,61.297 104.234 C 60.986 104.314,60.982 104.331,61.271 104.351 C 61.715 104.381,61.934 104.001,61.641 103.710 C 61.463 103.534,61.438 103.558,61.534 103.810 M112.525 104.351 C 112.525 104.447,112.346 104.573,112.127 104.630 C 111.898 104.690,111.739 104.889,111.753 105.101 C 111.774 105.434,111.784 105.435,111.867 105.119 C 111.927 104.888,112.152 104.771,112.539 104.771 C 112.924 104.771,113.121 104.670,113.121 104.473 C 113.121 104.309,112.987 104.175,112.823 104.175 C 112.659 104.175,112.525 104.254,112.525 104.351 M59.841 105.136 C 59.841 105.263,59.573 105.368,59.245 105.368 C 58.847 105.368,58.648 105.467,58.648 105.666 C 58.648 105.830,58.514 105.964,58.350 105.964 C 58.186 105.964,58.059 106.121,58.067 106.312 C 58.077 106.520,58.123 106.560,58.183 106.412 C 58.239 106.275,58.500 106.163,58.764 106.163 C 59.059 106.163,59.245 106.048,59.245 105.865 C 59.245 105.701,59.373 105.567,59.531 105.567 C 59.855 105.567,60.141 105.204,59.960 105.023 C 59.895 104.958,59.841 105.008,59.841 105.136 M110.083 106.222 C 110.024 106.374,110.143 106.491,110.375 106.509 C 110.694 106.533,110.722 106.485,110.527 106.251 C 110.236 105.900,110.207 105.898,110.083 106.222 M311.928 106.378 C 311.928 106.863,312.393 106.794,312.490 106.296 C 312.528 106.099,312.426 105.964,312.241 105.964 C 312.057 105.964,311.928 106.134,311.928 106.378 M56.859 106.892 C 56.859 107.038,56.993 107.157,57.157 107.157 C 57.321 107.157,57.455 107.038,57.455 106.892 C 57.455 106.746,57.321 106.627,57.157 106.627 C 56.993 106.627,56.859 106.746,56.859 106.892 M108.366 107.437 L 107.886 107.704 108.416 107.704 C 108.733 107.704,108.946 107.594,108.946 107.430 C 108.946 107.104,108.968 107.104,108.366 107.437 M275.944 107.938 C 275.944 108.164,276.072 108.350,276.228 108.350 C 276.384 108.350,276.556 108.506,276.611 108.698 C 276.665 108.889,276.694 108.733,276.675 108.352 C 276.636 107.565,275.944 107.173,275.944 107.938 M52.813 109.596 C 52.484 109.837,52.479 109.887,52.763 110.122 C 53.025 110.340,53.097 110.331,53.197 110.069 C 53.402 109.535,53.214 109.303,52.813 109.596 M104.103 110.437 C 104.025 110.640,104.114 110.736,104.380 110.736 C 104.595 110.736,104.771 110.601,104.771 110.437 C 104.771 110.273,104.647 110.139,104.494 110.139 C 104.342 110.139,104.166 110.273,104.103 110.437 M361.519 110.630 C 361.143 110.914,361.144 110.922,361.581 110.928 C 361.848 110.932,362.028 110.815,362.028 110.636 C 362.028 110.268,361.998 110.267,361.519 110.630 M50.919 110.990 C 50.588 111.320,50.648 111.531,51.072 111.531 C 51.519 111.531,51.778 111.011,51.403 110.867 C 51.260 110.812,51.042 110.867,50.919 110.990 M312.525 111.431 C 312.525 111.595,312.659 111.730,312.823 111.730 C 312.987 111.730,313.121 111.595,313.121 111.431 C 313.121 111.267,312.987 111.133,312.823 111.133 C 312.659 111.133,312.525 111.267,312.525 111.431 M102.314 111.630 C 102.236 111.833,102.325 111.928,102.591 111.928 C 102.806 111.928,102.982 111.794,102.982 111.630 C 102.982 111.466,102.857 111.332,102.705 111.332 C 102.553 111.332,102.377 111.466,102.314 111.630 M361.233 111.814 C 361.233 111.970,361.076 112.139,360.885 112.189 C 360.623 112.257,360.647 112.286,360.984 112.303 C 361.307 112.320,361.431 112.215,361.431 111.928 C 361.431 111.710,361.387 111.531,361.332 111.531 C 361.277 111.531,361.233 111.658,361.233 111.814 M276.541 112.878 C 276.541 113.073,276.720 113.385,276.938 113.572 C 277.408 113.974,277.556 113.222,277.097 112.763 C 276.758 112.424,276.541 112.468,276.541 112.878 M46.720 114.215 C 46.720 114.379,46.809 114.513,46.918 114.513 C 47.028 114.513,47.117 114.379,47.117 114.215 C 47.117 114.051,47.028 113.917,46.918 113.917 C 46.809 113.917,46.720 114.051,46.720 114.215 M98.012 114.600 C 98.012 114.763,98.182 114.873,98.410 114.856 C 98.628 114.839,98.807 114.711,98.807 114.570 C 98.807 114.429,98.628 114.314,98.410 114.314 C 98.191 114.314,98.012 114.443,98.012 114.600 M394.831 116.170 C 394.831 116.315,394.965 116.435,395.129 116.435 C 395.293 116.435,395.427 116.315,395.427 116.170 C 395.427 116.024,395.293 115.905,395.129 115.905 C 394.965 115.905,394.831 116.024,394.831 116.170 M313.167 116.538 C 313.290 116.907,313.718 116.968,313.718 116.617 C 313.718 116.444,313.576 116.302,313.403 116.302 C 313.230 116.302,313.124 116.408,313.167 116.538 M354.793 117.180 C 354.859 117.353,355.001 117.495,355.107 117.495 C 355.369 117.495,355.205 117.043,354.908 116.944 C 354.763 116.896,354.718 116.987,354.793 117.180 M93.840 117.644 C 93.842 117.859,93.899 117.908,93.989 117.773 C 94.069 117.653,94.269 117.504,94.433 117.441 C 94.633 117.365,94.583 117.322,94.284 117.312 C 93.984 117.301,93.838 117.410,93.840 117.644 M41.750 117.793 C 41.750 117.992,41.551 118.091,41.153 118.091 C 40.755 118.091,40.557 118.191,40.557 118.390 C 40.557 118.554,40.691 118.688,40.855 118.688 C 41.019 118.688,41.153 118.609,41.153 118.512 C 41.153 118.416,41.332 118.290,41.551 118.233 C 41.886 118.145,42.149 117.495,41.849 117.495 C 41.794 117.495,41.750 117.629,41.750 117.793 M315.905 117.793 C 315.905 117.957,316.039 118.091,316.203 118.091 C 316.367 118.091,316.501 117.957,316.501 117.793 C 316.501 117.629,316.367 117.495,316.203 117.495 C 316.039 117.495,315.905 117.629,315.905 117.793 M277.153 118.439 C 277.162 118.740,277.214 118.874,277.269 118.738 C 277.413 118.380,277.690 118.432,277.795 118.837 C 277.845 119.028,277.897 118.894,277.909 118.539 C 277.928 118.017,277.856 117.893,277.535 117.893 C 277.230 117.893,277.141 118.020,277.153 118.439 M92.186 118.815 C 92.116 118.885,92.104 119.015,92.159 119.105 C 92.283 119.305,92.843 119.109,92.843 118.865 C 92.843 118.661,92.375 118.626,92.186 118.815 M394.235 119.284 C 394.235 119.394,394.369 119.483,394.533 119.483 C 394.697 119.483,394.831 119.394,394.831 119.284 C 394.831 119.175,394.697 119.085,394.533 119.085 C 394.369 119.085,394.235 119.175,394.235 119.284 M38.875 119.469 C 38.721 119.719,39.176 119.984,39.336 119.737 C 39.406 119.630,39.597 119.492,39.761 119.429 C 39.938 119.362,39.841 119.309,39.525 119.300 C 39.230 119.291,38.938 119.368,38.875 119.469 M90.187 120.179 C 90.110 120.378,90.195 120.477,90.442 120.477 C 90.646 120.477,90.864 120.343,90.927 120.179 C 91.003 119.980,90.918 119.881,90.671 119.881 C 90.468 119.881,90.249 120.015,90.187 120.179 M37.575 120.759 C 37.575 120.914,37.463 121.086,37.326 121.141 C 37.139 121.216,37.137 121.245,37.319 121.257 C 37.452 121.265,37.656 121.093,37.773 120.875 C 37.918 120.605,37.920 120.477,37.780 120.477 C 37.667 120.477,37.575 120.604,37.575 120.759 M35.785 121.968 C 35.785 122.167,35.586 122.266,35.189 122.266 C 34.791 122.266,34.592 122.366,34.592 122.565 C 34.592 122.729,34.727 122.863,34.891 122.863 C 35.055 122.863,35.189 122.773,35.189 122.664 C 35.189 122.555,35.320 122.465,35.480 122.465 C 35.640 122.465,35.867 122.286,35.984 122.068 C 36.128 121.798,36.131 121.670,35.991 121.670 C 35.878 121.670,35.785 121.804,35.785 121.968 M277.870 122.792 C 277.639 123.024,277.714 123.694,277.955 123.545 C 278.076 123.470,278.258 123.532,278.360 123.682 C 278.489 123.875,278.527 123.784,278.486 123.375 C 278.430 122.802,278.137 122.525,277.870 122.792 M33.996 123.161 C 33.996 123.325,33.862 123.459,33.698 123.459 C 33.534 123.459,33.400 123.552,33.400 123.665 C 33.400 123.805,33.528 123.802,33.797 123.658 C 34.143 123.473,34.372 122.863,34.095 122.863 C 34.041 122.863,33.996 122.997,33.996 123.161 M84.979 123.940 C 84.767 124.095,84.660 124.289,84.742 124.371 C 84.824 124.453,84.891 124.415,84.891 124.288 C 84.891 124.160,85.025 124.056,85.189 124.056 C 85.353 124.056,85.487 123.966,85.487 123.857 C 85.487 123.597,85.437 123.605,84.979 123.940 M32.207 124.354 C 32.207 124.518,32.073 124.652,31.909 124.652 C 31.745 124.652,31.610 124.745,31.610 124.858 C 31.610 124.997,31.738 124.995,32.008 124.851 C 32.354 124.666,32.582 124.056,32.306 124.056 C 32.251 124.056,32.207 124.190,32.207 124.354 M392.445 124.851 C 392.445 124.960,392.580 125.050,392.744 125.050 C 392.908 125.050,393.042 124.960,393.042 124.851 C 393.042 124.742,392.908 124.652,392.744 124.652 C 392.580 124.652,392.445 124.742,392.445 124.851 M30.417 125.577 C 30.417 125.911,30.446 125.910,31.122 125.559 L 31.673 125.273 31.045 125.291 C 30.660 125.302,30.417 125.413,30.417 125.577 M29.821 126.143 C 29.821 126.399,29.326 126.551,28.777 126.465 C 28.695 126.452,28.628 126.576,28.628 126.740 C 28.628 127.107,28.628 127.107,29.374 126.735 C 29.968 126.438,30.395 125.845,30.014 125.845 C 29.908 125.845,29.821 125.979,29.821 126.143 M81.909 126.021 C 81.909 126.117,81.730 126.243,81.511 126.300 C 81.281 126.360,81.123 126.559,81.136 126.771 C 81.157 127.104,81.168 127.105,81.250 126.789 C 81.311 126.558,81.536 126.441,81.923 126.441 C 82.308 126.441,82.505 126.340,82.505 126.143 C 82.505 125.979,82.371 125.845,82.207 125.845 C 82.043 125.845,81.909 125.924,81.909 126.021 M80.119 127.237 C 80.119 127.346,80.007 127.437,79.871 127.439 C 79.498 127.444,78.677 128.386,78.794 128.675 C 78.856 128.829,78.901 128.792,78.911 128.579 C 78.919 128.387,79.061 128.231,79.225 128.231 C 79.389 128.231,79.523 128.096,79.523 127.932 C 79.523 127.734,79.722 127.634,80.119 127.634 C 80.517 127.634,80.716 127.535,80.716 127.336 C 80.716 127.172,80.582 127.038,80.417 127.038 C 80.253 127.038,80.119 127.127,80.119 127.237 M278.330 127.620 C 278.330 127.846,278.457 128.032,278.612 128.032 C 278.767 128.032,278.943 128.144,279.003 128.280 C 279.063 128.417,279.093 128.261,279.069 127.934 C 279.018 127.227,278.330 126.935,278.330 127.620 M26.243 128.457 C 26.243 128.582,26.086 128.810,25.895 128.965 C 25.581 129.219,25.590 129.225,25.994 129.030 C 26.375 128.845,26.642 128.231,26.342 128.231 C 26.287 128.231,26.243 128.333,26.243 128.457 M77.038 129.474 C 76.600 129.932,76.472 130.108,76.752 129.865 C 77.033 129.622,77.394 129.423,77.555 129.423 C 77.716 129.423,77.847 129.245,77.847 129.026 C 77.847 128.807,77.844 128.631,77.840 128.635 C 77.836 128.638,77.475 129.016,77.038 129.474 M390.457 129.125 C 390.457 129.289,390.368 129.423,390.258 129.423 C 390.149 129.423,390.060 129.513,390.060 129.622 C 390.060 129.732,390.194 129.821,390.358 129.821 C 390.543 129.821,390.656 129.633,390.656 129.324 C 390.656 129.051,390.611 128.827,390.557 128.827 C 390.502 128.827,390.457 128.961,390.457 129.125 M24.456 129.771 C 24.458 129.995,24.512 130.038,24.605 129.891 C 24.686 129.765,24.975 129.621,25.249 129.570 C 25.669 129.492,25.646 129.473,25.099 129.451 C 24.605 129.430,24.454 129.505,24.456 129.771 M22.736 130.915 C 22.673 131.079,22.507 131.213,22.368 131.213 C 22.228 131.213,22.063 131.414,22.001 131.660 C 21.899 132.067,21.912 132.076,22.149 131.759 C 22.292 131.568,22.552 131.412,22.726 131.412 C 22.900 131.412,23.113 131.290,23.201 131.142 C 23.288 130.994,23.494 130.823,23.658 130.761 C 23.830 130.696,23.722 130.641,23.403 130.632 C 23.084 130.623,22.802 130.742,22.736 130.915 M20.803 132.107 C 20.725 132.310,20.814 132.406,21.080 132.406 C 21.295 132.406,21.471 132.271,21.471 132.107 C 21.471 131.943,21.347 131.809,21.194 131.809 C 21.042 131.809,20.866 131.943,20.803 132.107 M387.922 132.686 C 387.676 132.945,387.475 133.257,387.475 133.378 C 387.475 133.499,387.386 133.598,387.276 133.598 C 387.167 133.598,387.078 133.740,387.078 133.913 C 387.078 134.438,387.570 134.104,387.637 133.533 C 387.672 133.241,387.818 133.002,387.962 133.002 C 388.106 133.002,388.271 132.823,388.328 132.604 C 388.456 132.114,388.466 132.112,387.922 132.686 M76.392 133.050 C 76.426 133.501,76.547 133.704,76.793 133.726 C 77.017 133.745,77.039 133.723,76.855 133.665 C 76.695 133.615,76.514 133.311,76.453 132.990 C 76.347 132.432,76.344 132.435,76.392 133.050 M279.100 132.439 C 278.918 132.913,279.038 133.314,279.361 133.314 C 279.623 133.314,279.720 133.195,279.680 132.925 C 279.632 132.600,279.182 132.223,279.100 132.439 M18.489 133.763 C 18.489 133.853,18.757 133.888,19.085 133.840 C 19.414 133.791,19.682 133.718,19.682 133.675 C 19.682 133.633,19.414 133.598,19.085 133.598 C 18.757 133.598,18.489 133.672,18.489 133.763 M132.243 134.095 C 132.199 134.946,132.407 135.586,132.727 135.586 C 132.878 135.586,133.002 135.452,133.002 135.288 C 133.002 135.124,132.873 134.990,132.716 134.990 C 132.531 134.990,132.402 134.725,132.352 134.245 C 132.286 133.618,132.269 133.594,132.243 134.095 M386.481 134.493 C 386.481 134.657,386.347 134.791,386.183 134.791 C 386.019 134.791,385.885 134.925,385.885 135.089 C 385.885 135.253,385.750 135.388,385.586 135.388 C 385.422 135.388,385.288 135.522,385.288 135.686 C 385.288 135.850,385.154 135.984,384.990 135.984 C 384.826 135.984,384.692 136.118,384.692 136.282 C 384.692 136.446,384.522 136.581,384.316 136.581 C 384.109 136.581,383.888 136.715,383.825 136.879 C 383.743 137.092,383.844 137.177,384.178 137.177 C 384.486 137.177,384.683 137.034,384.755 136.759 C 384.824 136.494,384.952 136.396,385.107 136.492 C 385.267 136.591,385.298 136.559,385.200 136.399 C 385.104 136.245,385.201 136.117,385.465 136.048 C 385.693 135.988,385.827 135.854,385.763 135.749 C 385.699 135.645,385.834 135.511,386.063 135.451 C 386.293 135.390,386.481 135.218,386.481 135.066 C 386.481 134.915,386.613 134.791,386.773 134.791 C 386.951 134.791,387.020 134.675,386.951 134.493 C 386.888 134.329,386.756 134.195,386.659 134.195 C 386.561 134.195,386.481 134.329,386.481 134.493 M16.587 135.012 C 16.512 135.134,16.571 135.308,16.719 135.399 C 16.971 135.555,17.286 135.304,17.293 134.940 C 17.298 134.708,16.739 134.765,16.587 135.012 M15.308 136.367 C 15.308 136.468,15.152 136.592,14.960 136.642 C 14.686 136.714,14.702 136.738,15.038 136.756 C 15.273 136.769,15.516 136.645,15.579 136.481 C 15.642 136.317,15.607 136.183,15.501 136.183 C 15.395 136.183,15.308 136.266,15.308 136.367 M279.523 137.913 C 279.523 138.265,279.607 138.380,279.808 138.303 C 279.965 138.243,280.137 138.300,280.190 138.431 C 280.243 138.561,280.294 138.432,280.302 138.144 C 280.313 137.780,280.197 137.589,279.920 137.517 C 279.601 137.433,279.523 137.511,279.523 137.913 M132.839 138.991 C 132.787 140.045,133.012 140.954,133.325 140.954 C 133.475 140.954,133.598 140.775,133.598 140.557 C 133.598 140.338,133.469 140.159,133.311 140.159 C 133.111 140.159,133.001 139.871,132.949 139.215 C 132.888 138.433,132.869 138.395,132.839 138.991 M12.922 139.761 C 12.922 139.982,13.055 140.159,13.221 140.159 C 13.439 140.159,13.528 140.412,13.554 141.103 L 13.588 142.048 13.666 141.169 C 13.709 140.686,13.692 140.082,13.628 139.827 C 13.486 139.261,12.922 139.209,12.922 139.761 M379.854 139.695 C 379.625 139.924,379.709 140.159,380.020 140.159 C 380.184 140.159,380.318 140.025,380.318 139.861 C 380.318 139.550,380.083 139.466,379.854 139.695 M280.119 142.623 C 280.119 142.791,280.305 143.028,280.533 143.150 C 280.901 143.347,280.939 143.321,280.881 142.910 C 280.807 142.393,280.119 142.133,280.119 142.623 M133.438 144.533 C 133.420 145.025,133.459 145.629,133.525 145.875 C 133.673 146.429,134.195 146.467,134.195 145.924 C 134.195 145.706,134.066 145.527,133.908 145.527 C 133.708 145.527,133.598 145.239,133.546 144.583 L 133.471 143.638 133.438 144.533 M370.378 144.015 C 370.378 144.167,370.502 144.339,370.653 144.397 C 370.847 144.471,370.899 144.389,370.829 144.120 C 370.714 143.680,370.378 143.601,370.378 144.015 M13.519 144.539 C 13.519 144.754,13.653 144.930,13.817 144.930 C 14.030 144.930,14.124 145.171,14.147 145.775 C 14.176 146.550,14.186 146.565,14.261 145.947 C 14.368 145.070,14.194 144.407,13.819 144.263 C 13.614 144.184,13.519 144.272,13.519 144.539 M367.992 144.732 C 367.992 144.950,368.082 145.129,368.191 145.129 C 368.300 145.129,368.390 144.950,368.390 144.732 C 368.390 144.513,368.300 144.334,368.191 144.334 C 368.082 144.334,367.992 144.513,367.992 144.732 M365.360 145.288 C 365.300 145.520,365.382 145.654,365.593 145.670 C 365.790 145.685,365.919 145.544,365.919 145.312 C 365.919 144.830,365.485 144.811,365.360 145.288 M361.133 145.726 C 360.934 146.047,361.187 146.272,361.747 146.272 C 362.118 146.272,362.191 146.222,361.999 146.098 C 361.776 145.954,361.781 145.891,362.028 145.729 C 362.262 145.575,362.212 145.532,361.791 145.530 C 361.497 145.528,361.201 145.616,361.133 145.726 M316.700 146.597 C 316.700 146.910,316.840 147.108,317.113 147.179 C 317.441 147.265,317.498 147.218,317.388 146.954 C 317.311 146.770,317.245 146.508,317.239 146.372 C 317.222 145.904,316.700 146.122,316.700 146.597 M355.417 146.264 C 355.664 146.311,356.066 146.311,356.312 146.264 C 356.558 146.216,356.357 146.177,355.865 146.177 C 355.373 146.177,355.171 146.216,355.417 146.264 M280.716 147.250 C 280.716 147.541,280.775 147.721,280.847 147.649 C 280.918 147.577,281.097 147.618,281.244 147.740 C 281.455 147.915,281.511 147.857,281.511 147.461 C 281.511 147.048,281.196 146.720,280.799 146.720 C 280.753 146.720,280.716 146.958,280.716 147.250 M14.259 148.630 C 14.004 148.885,14.106 149.503,14.403 149.503 C 14.602 149.503,14.713 149.791,14.764 150.447 L 14.839 151.392 14.875 150.287 C 14.909 149.225,14.572 148.318,14.259 148.630 M134.032 149.528 C 133.979 150.582,134.205 151.491,134.518 151.491 C 134.668 151.491,134.791 151.312,134.791 151.093 C 134.791 150.875,134.662 150.696,134.504 150.696 C 134.304 150.696,134.194 150.408,134.142 149.751 C 134.081 148.970,134.062 148.931,134.032 149.528 M317.296 151.491 C 317.296 151.756,317.429 151.889,317.694 151.889 C 318.166 151.889,318.227 151.387,317.777 151.214 C 317.321 151.039,317.296 151.053,317.296 151.491 M281.394 152.408 C 281.482 153.008,282.107 153.171,282.107 152.594 C 282.107 152.228,282.002 152.087,281.727 152.087 C 281.491 152.087,281.365 152.209,281.394 152.408 M14.712 154.169 C 14.712 154.523,14.794 154.628,15.010 154.545 C 15.250 154.453,15.315 154.639,15.344 155.496 L 15.380 156.561 15.456 155.580 C 15.498 155.040,15.480 154.392,15.416 154.138 C 15.259 153.514,14.712 153.537,14.712 154.169 M134.630 154.473 C 134.612 154.856,134.652 155.370,134.718 155.616 C 134.851 156.114,135.388 156.233,135.388 155.765 C 135.388 155.601,135.259 155.467,135.101 155.467 C 134.908 155.467,134.789 155.191,134.738 154.622 C 134.669 153.856,134.659 153.842,134.630 154.473 M317.893 156.461 C 317.893 156.761,317.996 156.868,318.241 156.821 C 318.432 156.784,318.588 156.622,318.588 156.461 C 318.588 156.300,318.432 156.138,318.241 156.101 C 317.996 156.054,317.893 156.162,317.893 156.461 M281.909 157.654 C 281.909 157.919,282.041 158.052,282.306 158.052 C 282.571 158.052,282.704 157.919,282.704 157.654 C 282.704 157.389,282.571 157.256,282.306 157.256 C 282.041 157.256,281.909 157.389,281.909 157.654 M135.224 159.369 C 135.170 160.325,135.407 161.233,135.711 161.233 C 135.861 161.233,135.984 161.054,135.984 160.835 C 135.984 160.616,135.855 160.437,135.697 160.437 C 135.504 160.437,135.386 160.161,135.334 159.592 C 135.277 158.955,135.250 158.900,135.224 159.369 M15.308 159.329 C 15.308 159.501,15.438 159.642,15.596 159.642 C 15.801 159.642,15.906 159.944,15.962 160.686 C 16.028 161.561,16.038 161.521,16.022 160.439 C 16.007 159.377,15.943 159.137,15.656 159.083 C 15.444 159.042,15.308 159.139,15.308 159.329 M318.489 161.450 C 318.489 161.658,318.616 161.829,318.771 161.829 C 318.926 161.829,319.097 161.941,319.153 162.078 C 319.208 162.214,319.260 162.090,319.269 161.803 C 319.280 161.438,319.163 161.247,318.887 161.175 C 318.592 161.098,318.489 161.169,318.489 161.450 M282.552 162.308 C 282.527 162.615,282.628 162.738,282.908 162.738 C 283.397 162.738,283.416 162.395,282.944 162.100 C 282.645 161.913,282.582 161.946,282.552 162.308 M15.905 163.991 C 15.905 164.103,16.031 164.266,16.186 164.354 C 16.340 164.441,16.509 164.781,16.560 165.109 C 16.619 165.480,16.644 165.368,16.627 164.813 C 16.604 164.026,15.905 163.231,15.905 163.991 M135.717 165.697 C 135.652 165.866,135.469 166.004,135.311 166.004 C 135.153 166.004,134.978 166.116,134.922 166.252 C 134.842 166.451,134.786 166.451,134.646 166.253 C 134.324 165.799,16.736 165.800,16.854 166.254 C 16.941 166.586,19.836 166.603,76.216 166.598 L 135.487 166.592 135.734 166.064 C 135.869 165.774,135.947 165.503,135.907 165.463 C 135.867 165.423,135.781 165.528,135.717 165.697 M318.765 165.807 C 318.642 165.930,312.285 166.020,301.499 166.053 C 288.054 166.093,284.409 166.156,284.344 166.352 C 284.278 166.549,287.792 166.600,301.474 166.600 C 316.193 166.600,318.688 166.560,318.688 166.319 C 318.688 166.164,318.800 165.997,318.936 165.948 C 319.073 165.900,319.134 165.804,319.072 165.736 C 319.010 165.668,318.872 165.700,318.765 165.807 "\n stroke="none" fill="#b3b3b3" fill-rule="evenodd"></path>\n <path id="path4"\n d="M153.678 22.287 C 153.678 22.656,153.583 22.697,152.883 22.630 C 152.206 22.565,152.087 22.611,152.087 22.933 C 152.087 23.256,151.983 23.296,151.392 23.200 C 150.785 23.101,150.696 23.139,150.696 23.497 C 150.696 23.846,150.608 23.889,150.099 23.787 C 149.598 23.687,149.503 23.730,149.503 24.061 C 149.503 24.277,149.592 24.453,149.702 24.453 C 149.811 24.453,149.901 24.364,149.901 24.254 C 149.901 24.145,150.073 24.056,150.284 24.056 C 150.495 24.056,150.802 23.921,150.966 23.757 C 151.130 23.593,151.443 23.459,151.661 23.459 C 151.880 23.459,152.193 23.325,152.357 23.161 C 152.521 22.997,152.939 22.863,153.285 22.863 C 153.741 22.863,153.942 22.756,154.015 22.476 C 154.071 22.263,154.264 22.050,154.444 22.002 C 154.624 21.954,154.525 21.905,154.225 21.892 C 153.794 21.874,153.678 21.958,153.678 22.287 M162.256 22.002 C 162.436 22.050,162.632 22.273,162.690 22.498 C 162.781 22.843,162.923 22.895,163.594 22.831 C 164.229 22.771,164.410 22.827,164.483 23.107 C 164.549 23.359,164.772 23.459,165.268 23.459 C 165.701 23.459,166.004 23.571,166.076 23.757 C 166.139 23.921,166.417 24.056,166.694 24.056 C 166.970 24.056,167.197 24.128,167.197 24.216 C 167.197 24.305,167.537 24.527,167.952 24.710 C 168.368 24.894,169.061 25.358,169.493 25.742 C 169.925 26.127,170.390 26.441,170.527 26.441 C 170.664 26.441,170.775 26.531,170.775 26.640 C 170.775 26.750,170.910 26.839,171.074 26.839 C 171.238 26.839,171.372 26.705,171.372 26.541 C 171.372 26.344,171.175 26.243,170.797 26.243 C 170.469 26.243,170.172 26.114,170.107 25.944 C 170.044 25.780,169.856 25.646,169.688 25.646 C 169.521 25.646,169.384 25.512,169.384 25.348 C 169.384 25.184,169.250 25.050,169.085 25.050 C 168.921 25.050,168.787 24.874,168.787 24.657 C 168.787 24.331,168.691 24.284,168.219 24.378 C 167.766 24.469,167.630 24.412,167.548 24.098 C 167.469 23.795,167.324 23.727,166.923 23.803 C 166.499 23.885,166.402 23.828,166.402 23.501 C 166.402 23.150,166.306 23.112,165.635 23.202 C 164.986 23.289,164.853 23.244,164.764 22.901 C 164.673 22.556,164.543 22.512,163.869 22.603 C 163.187 22.694,163.065 22.652,162.970 22.289 C 162.895 22.002,162.713 21.876,162.394 21.892 C 162.092 21.907,162.044 21.945,162.256 22.002 M156.720 22.216 C 157.682 22.252,159.203 22.252,160.099 22.215 C 160.996 22.179,160.209 22.149,158.350 22.149 C 156.491 22.149,155.757 22.179,156.720 22.216 M148.455 25.075 C 148.062 25.501,147.792 25.635,147.511 25.545 C 147.205 25.448,147.117 25.512,147.117 25.832 C 147.117 26.110,146.989 26.243,146.720 26.243 C 146.499 26.243,146.322 26.375,146.322 26.541 C 146.322 26.705,146.188 26.839,146.024 26.839 C 145.828 26.839,145.726 27.035,145.726 27.414 C 145.726 27.742,145.597 28.038,145.427 28.104 C 145.263 28.167,145.129 28.355,145.129 28.523 C 145.129 28.690,144.973 28.834,144.781 28.843 C 144.555 28.853,144.524 28.895,144.694 28.963 C 144.958 29.069,146.513 27.508,146.518 27.131 C 146.520 27.019,146.711 26.795,146.943 26.634 C 147.175 26.474,147.482 26.230,147.624 26.093 C 147.767 25.957,147.935 25.845,147.998 25.845 C 148.120 25.845,148.641 25.339,149.080 24.793 C 149.543 24.217,149.039 24.445,148.455 25.075 M171.700 27.143 C 171.846 27.524,172.565 27.938,172.565 27.641 C 172.565 27.528,172.430 27.435,172.266 27.435 C 172.102 27.435,171.968 27.301,171.968 27.137 C 171.968 26.973,171.882 26.839,171.776 26.839 C 171.670 26.839,171.636 26.976,171.700 27.143 M172.565 28.201 C 172.565 28.294,172.833 28.576,173.161 28.827 C 173.489 29.078,173.757 29.368,173.757 29.470 C 173.757 29.690,174.982 31.481,175.199 31.577 C 175.281 31.614,175.348 31.759,175.348 31.901 C 175.348 32.042,175.482 32.269,175.646 32.406 C 175.810 32.542,175.944 32.818,175.944 33.019 C 175.944 33.221,176.123 33.481,176.342 33.598 C 176.612 33.743,176.740 33.745,176.740 33.605 C 176.740 33.492,176.605 33.400,176.441 33.400 C 176.257 33.400,176.143 33.213,176.143 32.912 C 176.143 32.645,175.996 32.343,175.815 32.242 C 175.603 32.123,175.526 31.909,175.598 31.635 C 175.682 31.314,175.618 31.213,175.329 31.213 C 175.121 31.213,174.950 31.076,174.950 30.908 C 174.950 30.741,174.809 30.550,174.637 30.484 C 174.418 30.400,174.361 30.218,174.446 29.877 C 174.542 29.497,174.480 29.367,174.163 29.284 C 173.940 29.226,173.757 29.055,173.757 28.903 C 173.757 28.752,173.623 28.628,173.459 28.628 C 173.295 28.628,173.161 28.494,173.161 28.330 C 173.161 28.166,173.027 28.032,172.863 28.032 C 172.699 28.032,172.565 28.108,172.565 28.201 M144.548 29.402 C 144.540 29.554,144.376 29.797,144.185 29.942 C 143.854 30.193,143.855 30.206,144.191 30.212 C 144.579 30.219,144.828 29.783,144.667 29.380 C 144.589 29.186,144.560 29.191,144.548 29.402 M143.952 30.751 C 143.943 30.989,143.780 31.224,143.588 31.274 C 143.262 31.360,143.263 31.367,143.595 31.388 C 143.980 31.414,144.233 30.980,144.070 30.573 C 144.014 30.433,143.961 30.513,143.952 30.751 M143.370 32.256 C 143.349 32.773,143.249 33.002,143.042 33.002 C 142.878 33.002,142.744 33.136,142.744 33.300 C 142.744 33.464,142.876 33.598,143.038 33.598 C 143.389 33.598,143.603 32.874,143.485 32.082 C 143.412 31.593,143.395 31.618,143.370 32.256 M176.564 34.205 C 176.551 34.374,176.648 34.620,176.779 34.751 C 177.069 35.041,177.535 35.066,177.535 34.791 C 177.535 34.682,177.362 34.592,177.152 34.592 C 176.941 34.592,176.728 34.436,176.678 34.245 C 176.608 33.977,176.582 33.968,176.564 34.205 M142.825 37.575 C 142.825 39.488,142.855 40.271,142.892 39.314 C 142.928 38.357,142.928 36.792,142.892 35.835 C 142.855 34.878,142.825 35.661,142.825 37.575 M177.157 35.795 C 177.134 36.389,177.467 36.793,177.857 36.643 C 178.242 36.496,178.199 36.221,177.797 36.255 C 177.598 36.271,177.405 36.081,177.320 35.785 L 177.177 35.288 177.157 35.795 M177.765 37.799 C 177.733 38.538,178.135 39.110,178.520 38.872 C 178.860 38.662,178.756 38.370,178.343 38.370 C 178.057 38.370,177.937 38.203,177.877 37.724 L 177.797 37.078 177.765 37.799 M178.399 42.147 C 178.399 43.077,178.434 43.457,178.476 42.992 C 178.517 42.527,178.517 41.767,178.476 41.302 C 178.434 40.837,178.399 41.218,178.399 42.147 M142.744 41.934 C 142.744 42.051,142.878 42.147,143.042 42.147 C 143.267 42.147,143.340 42.390,143.340 43.141 C 143.340 43.892,143.413 44.135,143.638 44.135 C 143.854 44.135,143.936 44.356,143.936 44.930 C 143.936 45.505,144.019 45.726,144.235 45.726 C 144.433 45.726,144.533 45.924,144.533 46.322 C 144.533 46.720,144.632 46.918,144.831 46.918 C 144.997 46.918,145.129 47.095,145.129 47.316 C 145.129 47.537,145.262 47.714,145.427 47.714 C 145.613 47.714,145.726 47.901,145.726 48.211 C 145.726 48.520,145.838 48.708,146.024 48.708 C 146.188 48.708,146.322 48.845,146.322 49.012 C 146.322 49.180,146.456 49.368,146.620 49.431 C 146.790 49.496,146.918 49.793,146.918 50.121 C 146.918 50.499,147.020 50.696,147.217 50.696 C 147.381 50.696,147.515 50.830,147.515 50.994 C 147.515 51.158,147.649 51.292,147.813 51.292 C 147.977 51.292,148.111 51.200,148.111 51.087 C 148.111 50.974,147.977 50.831,147.813 50.768 C 147.649 50.705,147.515 50.529,147.515 50.376 C 147.515 50.224,147.425 50.099,147.316 50.099 C 147.207 50.099,147.117 49.962,147.117 49.794 C 147.117 49.627,146.849 49.227,146.521 48.907 C 146.193 48.586,145.924 48.227,145.924 48.110 C 145.924 47.870,145.110 46.656,144.881 46.554 C 144.799 46.518,144.732 46.269,144.732 46.001 C 144.732 45.733,144.597 45.463,144.433 45.400 C 144.251 45.330,144.135 45.028,144.135 44.621 C 144.135 44.251,144.009 43.886,143.851 43.797 C 143.688 43.706,143.539 43.256,143.503 42.745 C 143.446 41.948,142.744 41.197,142.744 41.934 M177.854 45.444 C 177.788 45.617,177.745 46.042,177.760 46.388 L 177.786 47.018 177.911 46.322 C 178.000 45.824,178.134 45.634,178.382 45.654 C 178.572 45.669,178.728 45.557,178.728 45.405 C 178.728 45.025,178.003 45.056,177.854 45.444 M177.270 47.449 C 177.197 47.522,177.137 47.796,177.137 48.059 C 177.137 48.322,177.003 48.672,176.839 48.836 C 176.675 49.000,176.541 49.306,176.541 49.517 C 176.541 49.728,176.451 49.901,176.342 49.901 C 175.988 49.901,176.132 50.448,176.511 50.547 C 176.822 50.628,176.876 50.531,176.859 49.924 C 176.844 49.385,176.917 49.210,177.152 49.227 C 177.392 49.243,177.462 49.058,177.450 48.431 C 177.438 47.770,177.502 47.620,177.783 47.642 C 177.975 47.657,178.131 47.590,178.131 47.493 C 178.131 47.287,177.465 47.253,177.270 47.449 M174.982 51.784 C 174.637 52.164,174.354 52.656,174.354 52.877 C 174.354 53.099,174.259 53.280,174.143 53.280 C 174.028 53.280,173.990 53.372,174.059 53.485 C 174.289 53.857,175.143 52.835,175.019 52.336 C 174.955 52.081,174.999 51.889,175.121 51.889 C 175.238 51.889,175.430 51.710,175.547 51.491 C 175.854 50.917,175.697 50.999,174.982 51.784 M149.901 53.280 C 149.901 53.608,150.032 53.677,150.646 53.674 L 151.392 53.669 150.895 53.280 C 150.255 52.780,149.901 52.780,149.901 53.280 M172.528 54.232 C 171.833 54.744,171.399 55.467,171.788 55.467 C 171.887 55.467,171.968 55.378,171.968 55.268 C 171.968 54.895,172.762 54.274,173.239 54.274 C 173.501 54.274,173.766 54.140,173.829 53.976 C 174.012 53.499,173.345 53.630,172.528 54.232 M151.292 54.069 C 151.292 54.182,151.420 54.274,151.576 54.274 C 151.732 54.274,151.900 54.431,151.950 54.622 C 152.034 54.943,152.043 54.944,152.064 54.629 C 152.077 54.442,151.909 54.193,151.690 54.076 C 151.420 53.931,151.292 53.929,151.292 54.069 M152.485 54.816 C 152.649 54.878,152.855 55.050,152.942 55.198 C 153.030 55.346,153.320 55.467,153.588 55.467 C 153.889 55.467,154.076 55.581,154.076 55.765 C 154.076 55.972,154.284 56.064,154.757 56.064 C 155.234 56.064,155.469 56.168,155.541 56.412 C 155.621 56.683,155.634 56.672,155.603 56.362 C 155.576 56.092,155.393 55.944,155.033 55.903 C 154.741 55.869,154.395 55.712,154.265 55.555 C 154.134 55.397,153.856 55.268,153.647 55.268 C 153.439 55.268,153.216 55.134,153.153 54.970 C 153.090 54.806,152.847 54.679,152.613 54.688 C 152.319 54.698,152.280 54.738,152.485 54.816 M170.632 55.556 C 170.547 55.705,170.254 55.858,169.982 55.895 C 169.505 55.962,169.127 56.660,169.568 56.660 C 169.685 56.660,169.781 56.531,169.781 56.374 C 169.781 56.188,170.037 56.066,170.511 56.026 C 171.274 55.962,171.607 55.600,171.087 55.401 C 170.921 55.337,170.716 55.407,170.632 55.556 M156.511 56.596 C 156.812 56.646,157.058 56.815,157.058 56.971 C 157.058 57.128,157.154 57.256,157.271 57.256 C 157.886 57.256,157.295 56.558,156.658 56.533 C 156.138 56.512,156.101 56.527,156.511 56.596 M167.881 56.753 C 167.669 56.914,167.077 57.048,166.567 57.051 C 166.057 57.055,165.497 57.112,165.324 57.178 C 164.925 57.332,164.912 57.853,165.308 57.853 C 165.472 57.853,165.606 57.719,165.606 57.555 C 165.606 57.320,165.882 57.256,166.899 57.256 C 167.887 57.256,168.191 57.190,168.191 56.972 C 168.191 56.816,168.392 56.649,168.638 56.602 C 169.045 56.523,169.049 56.513,168.676 56.488 C 168.451 56.473,168.093 56.593,167.881 56.753 M158.897 57.204 C 159.553 57.256,159.841 57.366,159.841 57.566 C 159.841 57.724,159.975 57.853,160.139 57.853 C 160.303 57.853,160.437 57.767,160.437 57.661 C 160.437 57.318,159.688 57.057,158.810 57.093 L 157.952 57.129 158.897 57.204 M4.902 65.954 C 4.851 66.036,31.550 66.081,64.234 66.053 L 123.658 66.003 123.661 66.948 C 123.665 68.274,123.837 68.787,124.278 68.787 C 124.771 68.787,124.761 68.266,124.266 68.136 C 123.954 68.055,123.867 67.828,123.818 66.970 L 123.757 65.905 64.376 65.855 C 31.716 65.827,4.952 65.872,4.902 65.954 M354.523 65.942 C 354.714 65.992,355.027 65.992,355.219 65.942 C 355.410 65.892,355.253 65.851,354.871 65.851 C 354.488 65.851,354.332 65.892,354.523 65.942 M357.256 66.082 C 357.256 66.434,357.592 66.560,358.894 66.694 C 360.037 66.811,359.982 66.706,358.797 66.508 C 358.335 66.431,358.052 66.274,358.052 66.094 C 358.052 65.935,357.873 65.805,357.654 65.805 C 357.435 65.805,357.256 65.930,357.256 66.082 M272.117 66.151 C 272.691 66.191,273.631 66.191,274.205 66.151 C 274.779 66.110,274.309 66.078,273.161 66.078 C 272.013 66.078,271.543 66.110,272.117 66.151 M286.928 66.153 C 289.525 66.184,293.775 66.184,296.372 66.153 C 298.969 66.122,296.844 66.096,291.650 66.096 C 286.456 66.096,284.332 66.122,286.928 66.153 M302.343 66.151 C 302.920 66.191,303.815 66.191,304.331 66.150 C 304.846 66.109,304.374 66.076,303.280 66.077 C 302.187 66.077,301.765 66.110,302.343 66.151 M323.211 66.151 C 323.894 66.190,325.012 66.190,325.696 66.151 C 326.379 66.112,325.820 66.081,324.453 66.081 C 323.086 66.081,322.527 66.112,323.211 66.151 M333.663 66.153 C 337.251 66.183,343.067 66.183,346.585 66.153 C 350.103 66.123,347.167 66.098,340.060 66.098 C 332.952 66.098,330.074 66.123,333.663 66.153 M361.630 66.783 C 361.630 67.161,362.699 67.586,362.970 67.315 C 363.035 67.250,362.886 67.197,362.639 67.197 C 362.357 67.197,362.151 67.049,362.085 66.799 C 361.953 66.292,361.630 66.281,361.630 66.783 M4.619 67.197 C 4.619 67.580,4.660 67.736,4.710 67.545 C 4.760 67.353,4.760 67.040,4.710 66.849 C 4.660 66.658,4.619 66.814,4.619 67.197 M363.686 67.139 C 363.887 67.190,364.223 67.404,364.432 67.612 C 364.640 67.821,364.923 67.989,365.060 67.986 C 365.198 67.983,365.153 67.890,364.960 67.777 C 364.769 67.666,364.612 67.445,364.612 67.286 C 364.612 67.089,364.409 67.005,363.966 67.021 C 363.595 67.034,363.476 67.084,363.686 67.139 M271.370 67.606 C 271.115 67.774,271.129 67.843,271.466 68.100 C 271.724 68.297,271.907 68.756,271.998 69.438 C 272.132 70.435,272.135 70.423,272.093 69.136 C 272.046 67.694,271.854 67.289,271.370 67.606 M366.317 67.774 C 366.119 68.089,366.670 68.597,367.185 68.575 C 367.395 68.566,367.354 68.494,367.057 68.350 C 366.816 68.234,366.591 67.994,366.556 67.817 C 366.503 67.550,366.462 67.543,366.317 67.774 M368.191 68.493 C 368.191 68.916,369.124 69.325,369.418 69.032 C 369.581 68.868,369.524 68.840,369.202 68.924 C 368.869 69.011,368.737 68.937,368.653 68.615 C 368.526 68.129,368.191 68.041,368.191 68.493 M370.035 69.185 C 370.068 69.552,370.210 69.697,370.577 69.741 C 371.068 69.799,372.372 70.363,372.565 70.599 C 372.619 70.667,372.888 70.783,373.161 70.857 C 373.575 70.970,373.600 70.956,373.310 70.775 C 373.119 70.655,372.962 70.425,372.962 70.265 C 372.962 70.050,372.826 70.007,372.453 70.100 C 372.041 70.204,371.922 70.146,371.831 69.796 C 371.740 69.450,371.613 69.385,371.197 69.473 C 370.628 69.592,370.306 69.447,370.115 68.986 C 370.044 68.816,370.010 68.901,370.035 69.185 M4.573 69.562 C 4.573 69.832,4.668 69.931,4.857 69.858 C 5.060 69.781,5.167 69.939,5.230 70.411 C 5.292 70.880,5.311 70.813,5.293 70.181 C 5.267 69.241,4.573 68.645,4.573 69.562 M124.286 71.483 C 124.253 72.534,124.618 73.328,125.020 73.080 C 125.374 72.861,125.290 72.407,124.901 72.438 C 124.626 72.459,124.528 72.256,124.435 71.471 L 124.317 70.477 124.286 71.483 M373.969 70.886 C 373.959 71.196,374.223 71.414,375.048 71.781 C 375.648 72.048,376.140 72.333,376.141 72.416 C 376.142 72.498,376.269 72.565,376.423 72.565 C 376.604 72.565,376.666 72.425,376.599 72.169 C 376.519 71.862,376.386 71.801,376.009 71.895 C 375.625 71.992,375.499 71.929,375.412 71.597 C 375.327 71.269,375.198 71.203,374.830 71.295 C 374.459 71.389,374.316 71.313,374.169 70.946 C 373.997 70.516,373.980 70.511,373.969 70.886 M271.769 72.754 C 271.769 72.857,271.912 73.022,272.085 73.119 C 272.276 73.226,272.464 73.725,272.558 74.372 C 272.679 75.207,272.719 75.292,272.736 74.751 C 272.779 73.430,272.544 72.565,272.141 72.565 C 271.937 72.565,271.769 72.650,271.769 72.754 M377.137 72.962 C 377.254 73.181,377.481 73.360,377.641 73.360 C 377.801 73.360,377.932 73.449,377.932 73.559 C 377.932 73.668,378.050 73.757,378.195 73.757 C 378.339 73.757,378.758 74.026,379.125 74.354 C 379.493 74.682,380.001 74.950,380.254 74.950 C 380.508 74.950,380.716 75.051,380.716 75.175 C 380.716 75.426,385.965 80.716,386.214 80.716 C 386.300 80.716,386.083 80.452,385.730 80.130 C 385.378 79.809,385.089 79.451,385.089 79.335 C 385.089 79.220,384.955 79.125,384.791 79.125 C 384.627 79.125,384.493 79.039,384.493 78.933 C 384.493 78.683,383.146 77.336,382.896 77.336 C 382.790 77.336,382.704 77.202,382.704 77.038 C 382.704 76.874,382.617 76.740,382.512 76.740 C 382.208 76.740,380.915 75.366,380.915 75.043 C 380.915 74.883,380.790 74.751,380.638 74.751 C 380.485 74.751,380.313 74.628,380.256 74.478 C 380.189 74.304,379.964 74.240,379.638 74.302 C 379.258 74.375,379.125 74.317,379.125 74.079 C 379.125 73.902,378.983 73.757,378.808 73.757 C 378.634 73.757,378.445 73.579,378.388 73.362 C 378.309 73.058,378.174 72.994,377.810 73.085 C 377.458 73.174,377.336 73.122,377.336 72.884 C 377.336 72.709,377.243 72.565,377.130 72.565 C 376.991 72.565,376.993 72.693,377.137 72.962 M5.169 74.737 C 5.169 74.964,5.298 75.149,5.455 75.149 C 5.627 75.149,5.775 75.406,5.827 75.795 C 5.876 76.159,5.903 76.007,5.889 75.449 C 5.864 74.426,5.169 73.739,5.169 74.737 M124.884 75.981 C 124.847 77.250,125.126 78.205,125.498 78.082 C 125.915 77.945,125.923 77.173,125.508 77.207 C 125.210 77.232,125.129 77.034,125.033 76.044 L 124.918 74.851 124.884 75.981 M5.816 77.435 C 5.818 77.873,5.858 78.028,5.906 77.781 C 5.954 77.534,5.952 77.176,5.902 76.986 C 5.852 76.796,5.813 76.998,5.816 77.435 M272.366 77.926 C 272.366 78.187,272.462 78.281,272.656 78.206 C 272.961 78.089,273.093 78.439,273.225 79.722 C 273.284 80.297,273.302 80.257,273.328 79.486 C 273.346 78.974,273.273 78.325,273.166 78.045 C 272.938 77.444,272.366 77.359,272.366 77.926 M5.765 79.608 C 5.765 79.780,5.894 79.920,6.051 79.920 C 6.223 79.920,6.371 80.178,6.424 80.567 C 6.482 80.999,6.503 80.918,6.486 80.320 C 6.462 79.454,5.765 78.766,5.765 79.608 M125.477 81.150 C 125.443 82.454,125.703 83.300,126.138 83.300 C 126.551 83.300,126.522 82.769,126.097 82.531 C 125.859 82.398,125.715 81.980,125.629 81.179 L 125.506 80.020 125.477 81.150 M386.531 81.191 C 386.722 81.337,386.879 81.602,386.879 81.781 C 386.879 81.961,386.968 82.107,387.078 82.107 C 387.187 82.107,387.276 82.238,387.276 82.399 C 387.276 82.559,387.455 82.786,387.674 82.903 C 387.944 83.047,388.072 83.049,388.072 82.910 C 388.072 82.796,387.927 82.704,387.750 82.704 C 387.519 82.704,387.460 82.584,387.541 82.274 C 387.667 81.792,386.981 80.919,386.481 80.924 C 386.240 80.927,386.250 80.978,386.531 81.191 M273.095 82.041 C 272.868 82.267,272.949 82.505,273.251 82.505 C 273.535 82.505,273.672 82.984,273.823 84.493 C 273.867 84.930,273.904 84.769,273.924 84.059 C 273.968 82.506,273.578 81.558,273.095 82.041 M388.270 83.499 C 388.656 83.748,388.867 83.748,388.867 83.499 C 388.867 83.390,388.666 83.302,388.419 83.303 C 388.058 83.306,388.029 83.343,388.270 83.499 M6.362 83.972 C 6.362 84.138,6.487 84.346,6.641 84.433 C 6.794 84.521,6.964 84.816,7.018 85.089 C 7.073 85.363,7.103 85.185,7.087 84.694 C 7.059 83.835,6.362 83.142,6.362 83.972 M388.691 84.223 C 388.678 84.458,388.802 84.701,388.966 84.764 C 389.130 84.827,389.264 84.792,389.264 84.686 C 389.264 84.580,389.182 84.493,389.080 84.493 C 388.979 84.493,388.855 84.336,388.805 84.145 C 388.733 83.871,388.709 83.887,388.691 84.223 M389.280 85.222 C 389.247 85.713,389.967 86.677,390.358 86.666 C 390.709 86.656,390.701 86.633,390.285 86.467 C 389.947 86.331,389.844 86.168,389.919 85.883 C 389.984 85.635,389.924 85.487,389.759 85.487 C 389.615 85.487,389.451 85.375,389.396 85.239 C 389.327 85.067,389.291 85.062,389.280 85.222 M126.077 86.108 C 126.028 87.460,126.228 88.220,126.661 88.334 C 126.933 88.405,127.038 88.327,127.038 88.053 C 127.038 87.845,126.905 87.674,126.743 87.674 C 126.429 87.674,126.291 87.259,126.180 85.984 L 126.111 85.189 126.077 86.108 M273.559 87.452 C 273.559 87.659,273.736 87.873,273.956 87.930 C 274.291 88.018,274.359 88.217,274.387 89.196 C 274.414 90.132,274.436 90.203,274.502 89.563 C 274.640 88.201,274.388 87.078,273.944 87.078 C 273.699 87.078,273.559 87.214,273.559 87.452 M390.984 88.364 C 390.922 88.525,391.033 88.771,391.229 88.911 C 391.426 89.051,391.639 89.299,391.702 89.463 C 391.783 89.671,391.822 89.633,391.833 89.337 C 391.843 89.072,391.700 88.874,391.450 88.809 C 391.185 88.739,391.092 88.599,391.174 88.388 C 391.240 88.214,391.250 88.072,391.196 88.072 C 391.141 88.072,391.046 88.203,390.984 88.364 M6.958 89.244 C 6.958 89.513,7.053 89.613,7.242 89.541 C 7.436 89.466,7.554 89.609,7.617 89.994 C 7.677 90.361,7.699 90.280,7.681 89.763 C 7.652 88.902,6.958 88.404,6.958 89.244 M391.650 90.084 C 391.650 90.187,391.784 90.322,391.948 90.385 C 392.131 90.456,392.247 90.757,392.247 91.164 C 392.247 91.530,392.368 91.901,392.516 91.988 C 392.664 92.076,392.835 92.281,392.897 92.445 C 392.963 92.618,393.017 92.514,393.026 92.197 C 393.036 91.836,392.940 91.650,392.744 91.650 C 392.530 91.650,392.445 91.432,392.445 90.878 C 392.445 90.273,392.359 90.083,392.048 90.002 C 391.829 89.945,391.650 89.982,391.650 90.084 M126.676 90.792 C 126.632 91.814,126.926 92.644,127.331 92.644 C 127.771 92.644,127.703 92.112,127.248 91.993 C 126.948 91.915,126.846 91.678,126.787 90.926 C 126.712 89.961,126.712 89.961,126.676 90.792 M274.155 92.507 C 274.155 92.824,274.291 93.031,274.542 93.097 C 274.859 93.179,274.942 93.410,275.002 94.362 L 275.074 95.527 275.092 94.334 C 275.114 92.850,274.933 92.168,274.494 92.084 C 274.249 92.037,274.155 92.154,274.155 92.507 M392.870 93.296 C 392.854 93.624,392.964 93.896,393.141 93.964 C 393.335 94.038,393.439 94.347,393.439 94.842 C 393.439 95.301,393.554 95.671,393.726 95.767 C 393.914 95.872,394.034 96.339,394.074 97.117 C 394.127 98.150,394.831 99.181,394.831 98.225 C 394.831 98.108,394.697 98.012,394.533 98.012 C 394.298 98.012,394.235 97.736,394.235 96.720 C 394.235 95.704,394.171 95.427,393.936 95.427 C 393.711 95.427,393.638 95.185,393.638 94.440 C 393.638 93.668,393.576 93.476,393.356 93.560 C 393.173 93.630,393.042 93.506,392.985 93.206 C 392.907 92.795,392.894 92.805,392.870 93.296 M127.187 93.795 C 126.996 93.834,126.839 93.949,126.839 94.050 C 126.839 94.152,126.708 94.235,126.548 94.235 C 126.388 94.235,126.161 94.414,126.044 94.632 C 125.899 94.902,125.897 95.030,126.037 95.030 C 126.150 95.030,126.243 94.884,126.243 94.707 C 126.243 94.453,126.372 94.410,126.847 94.504 C 127.275 94.590,127.483 94.542,127.561 94.337 C 127.723 93.916,127.583 93.713,127.187 93.795 M310.617 93.915 C 310.558 94.068,310.546 94.538,310.590 94.959 C 310.666 95.697,310.670 95.690,310.702 94.793 C 310.735 93.869,310.742 93.860,311.481 93.783 L 312.227 93.705 311.475 93.672 C 310.990 93.650,310.685 93.737,310.617 93.915 M350.128 93.785 C 351.240 93.843,351.465 93.916,351.551 94.243 C 351.664 94.676,352.087 94.779,352.087 94.374 C 352.087 93.818,351.602 93.638,350.209 93.677 L 348.807 93.716 350.128 93.785 M7.555 94.235 C 7.555 94.453,7.676 94.632,7.825 94.632 C 7.991 94.632,8.177 95.033,8.308 95.676 L 8.522 96.720 8.421 95.626 C 8.366 95.025,8.277 94.376,8.223 94.185 C 8.087 93.706,7.555 93.745,7.555 94.235 M353.429 94.440 C 353.675 94.538,353.877 94.712,353.877 94.825 C 353.877 94.937,354.180 95.030,354.551 95.030 C 354.968 95.030,355.270 95.144,355.340 95.328 C 355.403 95.492,355.561 95.626,355.691 95.626 C 355.831 95.626,355.781 95.466,355.567 95.229 C 355.369 95.010,355.035 94.831,354.826 94.831 C 354.616 94.831,354.311 94.697,354.147 94.533 C 353.983 94.369,353.653 94.240,353.415 94.247 L 352.982 94.260 353.429 94.440 M125.329 95.306 C 125.271 95.458,125.072 95.544,124.888 95.496 C 124.696 95.447,124.446 95.584,124.302 95.817 C 124.165 96.040,124.133 96.223,124.232 96.223 C 124.330 96.223,124.458 96.100,124.516 95.949 C 124.582 95.775,124.808 95.711,125.133 95.773 C 125.554 95.854,125.646 95.796,125.646 95.451 C 125.646 94.971,125.486 94.898,125.329 95.306 M356.238 95.806 C 356.389 95.901,356.456 96.071,356.387 96.182 C 356.312 96.304,356.417 96.344,356.653 96.282 C 357.094 96.167,356.740 95.623,356.227 95.629 C 356.018 95.632,356.020 95.668,356.238 95.806 M310.570 96.753 C 310.552 97.209,310.591 97.723,310.657 97.896 C 310.830 98.347,311.332 98.285,311.332 97.813 C 311.332 97.594,311.203 97.416,311.046 97.416 C 310.861 97.416,310.732 97.150,310.682 96.670 L 310.604 95.924 310.570 96.753 M357.263 96.450 C 357.259 96.630,357.391 96.828,357.555 96.891 C 357.719 96.954,357.853 97.104,357.853 97.225 C 357.853 97.503,358.248 97.896,358.698 98.067 C 358.889 98.139,359.046 98.291,359.046 98.403 C 359.046 98.516,359.202 98.606,359.394 98.602 C 359.725 98.597,359.725 98.587,359.394 98.394 C 359.202 98.282,359.046 98.058,359.046 97.896 C 359.046 97.734,358.912 97.550,358.748 97.487 C 358.583 97.424,358.449 97.248,358.449 97.096 C 358.449 96.944,358.275 96.819,358.062 96.819 C 357.848 96.819,357.583 96.663,357.471 96.471 C 357.291 96.163,357.268 96.160,357.263 96.450 M122.410 97.098 C 122.112 97.336,121.869 97.638,121.869 97.771 C 121.869 97.903,121.683 98.012,121.457 98.012 C 121.230 98.012,120.920 98.124,120.768 98.260 C 120.616 98.397,120.348 98.630,120.173 98.778 C 119.998 98.925,119.906 99.098,119.969 99.161 C 120.032 99.224,120.203 99.111,120.350 98.911 C 120.500 98.706,120.718 98.611,120.850 98.693 C 121.096 98.844,122.058 98.066,122.064 97.711 C 122.066 97.600,122.393 97.368,122.791 97.196 C 123.258 96.994,123.415 96.845,123.233 96.775 C 123.078 96.715,122.708 96.861,122.410 97.098 M8.174 97.565 C 8.156 97.909,8.254 98.007,8.598 97.989 C 8.915 97.973,8.948 97.940,8.710 97.877 C 8.525 97.829,8.334 97.638,8.286 97.453 C 8.223 97.215,8.190 97.248,8.174 97.565 M274.884 97.349 C 274.686 97.547,274.724 98.052,274.928 97.926 C 275.232 97.739,275.516 98.283,275.598 99.209 L 275.676 100.099 275.711 99.168 C 275.762 97.807,275.344 96.889,274.884 97.349 M359.642 98.999 C 359.642 99.112,359.787 99.205,359.964 99.205 C 360.194 99.205,360.260 99.337,360.195 99.674 C 360.130 100.013,360.193 100.138,360.421 100.122 C 360.648 100.106,360.735 100.278,360.734 100.746 C 360.732 101.142,360.831 101.392,360.989 101.392 C 361.130 101.392,361.326 101.593,361.425 101.839 C 361.561 102.177,361.608 102.202,361.618 101.941 C 361.636 101.433,360.421 99.210,360.003 98.986 C 359.762 98.858,359.642 98.862,359.642 98.999 M119.390 99.462 C 119.305 99.658,119.291 99.874,119.359 99.942 C 119.561 100.144,119.724 99.861,119.631 99.469 C 119.548 99.122,119.538 99.121,119.390 99.462 M394.715 100.694 C 394.729 102.041,394.784 102.292,395.080 102.348 C 395.504 102.429,395.552 101.879,395.141 101.648 C 394.956 101.545,394.826 101.062,394.776 100.297 C 394.718 99.406,394.702 99.506,394.715 100.694 M64.016 100.099 C 64.016 100.390,64.130 100.596,64.291 100.596 C 65.023 100.596,64.596 102.560,63.861 102.578 C 63.720 102.582,63.555 102.718,63.492 102.881 C 63.415 103.082,63.224 103.139,62.902 103.059 C 62.575 102.977,62.424 103.024,62.422 103.209 C 62.416 103.643,61.468 104.430,61.115 104.295 C 60.904 104.214,60.763 104.306,60.694 104.572 C 60.637 104.791,60.476 104.970,60.336 104.970 C 60.196 104.970,60.031 105.104,59.968 105.268 C 59.905 105.432,59.716 105.567,59.549 105.567 C 59.382 105.567,59.245 105.701,59.245 105.865 C 59.245 106.047,59.059 106.163,58.769 106.163 C 58.507 106.163,58.242 106.297,58.179 106.461 C 58.116 106.625,57.927 106.759,57.760 106.759 C 57.592 106.759,57.455 106.849,57.455 106.958 C 57.455 107.068,57.187 107.157,56.859 107.157 C 56.404 107.157,56.262 107.247,56.262 107.538 C 56.262 107.748,56.151 107.964,56.014 108.019 C 55.827 108.095,55.825 108.124,56.007 108.135 C 56.140 108.144,56.340 107.980,56.452 107.771 C 56.572 107.546,56.797 107.428,57.005 107.481 C 57.211 107.534,57.627 107.322,58.014 106.967 C 58.376 106.634,58.768 106.362,58.885 106.362 C 59.001 106.362,59.437 106.071,59.852 105.716 C 60.267 105.360,61.059 104.756,61.613 104.374 C 62.167 103.991,62.621 103.574,62.622 103.448 C 62.623 103.322,62.783 103.260,62.977 103.310 C 63.196 103.368,63.645 103.111,64.170 102.625 C 65.058 101.806,65.053 101.829,64.695 100.050 C 64.570 99.429,64.016 99.470,64.016 100.099 M311.172 100.729 C 311.150 101.404,311.188 102.097,311.254 102.270 C 311.407 102.670,311.928 102.682,311.928 102.286 C 311.928 102.122,311.799 101.988,311.640 101.988 C 311.426 101.988,311.333 101.667,311.280 100.746 L 311.210 99.503 311.172 100.729 M117.893 100.398 C 117.622 100.726,117.265 100.996,117.100 100.998 C 116.934 101.001,116.611 101.157,116.381 101.346 C 115.911 101.732,115.616 102.386,115.911 102.386 C 116.017 102.386,116.103 102.196,116.103 101.965 C 116.103 101.642,116.196 101.568,116.501 101.648 C 116.720 101.705,116.966 101.642,117.048 101.507 C 117.130 101.373,117.353 101.205,117.545 101.134 C 117.736 101.064,117.893 100.870,117.893 100.702 C 117.893 100.535,118.027 100.398,118.191 100.398 C 118.355 100.398,118.489 100.315,118.489 100.213 C 118.489 100.112,118.646 99.988,118.837 99.938 C 119.128 99.862,119.120 99.844,118.785 99.824 C 118.563 99.811,118.166 100.066,117.893 100.398 M275.348 101.988 C 275.348 102.207,275.480 102.386,275.642 102.386 C 275.956 102.386,276.095 102.800,276.206 104.076 C 276.260 104.696,276.282 104.622,276.309 103.741 C 276.327 103.119,276.255 102.381,276.148 102.100 C 275.918 101.496,275.348 101.416,275.348 101.988 M114.416 102.805 C 114.090 103.121,113.934 103.380,114.069 103.380 C 114.204 103.380,114.314 103.290,114.314 103.181 C 114.314 103.072,114.583 102.982,114.911 102.982 C 115.374 102.982,115.507 102.894,115.507 102.584 C 115.507 102.041,115.125 102.119,114.416 102.805 M361.233 102.861 C 361.233 103.012,361.388 103.124,361.579 103.109 C 361.826 103.089,361.960 103.280,362.050 103.777 C 362.162 104.405,362.177 104.418,362.200 103.913 C 362.215 103.605,362.134 103.181,362.021 102.969 C 361.784 102.526,361.233 102.451,361.233 102.861 M311.770 105.302 C 311.748 106.195,311.782 107.062,311.845 107.228 C 312.000 107.631,312.525 107.411,312.525 106.943 C 312.525 106.701,312.425 106.611,312.235 106.684 C 312.000 106.774,311.933 106.502,311.878 105.237 L 311.810 103.678 311.770 105.302 M111.882 104.576 C 111.583 104.902,111.225 105.169,111.087 105.170 C 110.948 105.170,110.477 105.486,110.040 105.871 C 108.894 106.880,108.787 106.958,108.557 106.958 C 108.443 106.958,108.171 107.137,107.952 107.356 C 107.734 107.575,107.638 107.753,107.739 107.753 C 107.841 107.753,108.058 107.619,108.222 107.455 C 108.386 107.291,108.706 107.157,108.932 107.157 C 109.166 107.157,109.344 107.028,109.344 106.859 C 109.344 106.695,109.481 106.561,109.648 106.561 C 109.816 106.561,110.004 106.426,110.067 106.262 C 110.133 106.092,110.429 105.964,110.757 105.964 C 111.136 105.964,111.332 105.862,111.332 105.666 C 111.332 105.502,111.421 105.368,111.531 105.368 C 111.640 105.368,111.730 105.225,111.730 105.051 C 111.730 104.877,111.909 104.687,112.127 104.630 C 112.346 104.573,112.525 104.454,112.525 104.365 C 112.525 104.277,112.681 104.163,112.873 104.113 C 113.165 104.037,113.157 104.019,112.823 104.003 C 112.604 103.992,112.181 104.250,111.882 104.576 M395.314 108.748 C 395.314 111.317,395.342 112.368,395.377 111.083 C 395.412 109.799,395.412 107.696,395.377 106.412 C 395.342 105.127,395.314 106.178,395.314 108.748 M361.829 107.149 C 361.829 108.512,361.844 108.555,362.236 108.345 C 362.790 108.049,362.740 105.910,362.177 105.802 C 361.872 105.744,361.829 105.911,361.829 107.149 M275.944 107.053 C 275.944 107.341,276.090 107.546,276.342 107.612 C 276.682 107.701,276.745 107.899,276.774 108.977 C 276.804 110.045,276.821 110.102,276.888 109.344 C 277.015 107.916,276.784 106.817,276.333 106.699 C 276.031 106.620,275.944 106.699,275.944 107.053 M107.042 108.088 C 106.815 108.133,106.347 108.427,106.002 108.742 C 105.657 109.057,105.217 109.366,105.024 109.427 C 104.434 109.616,103.132 110.891,103.244 111.169 C 103.313 111.342,103.354 111.313,103.364 111.083 C 103.373 110.892,103.517 110.736,103.684 110.736 C 103.852 110.736,104.040 110.601,104.103 110.437 C 104.166 110.273,104.432 110.139,104.693 110.139 C 104.984 110.139,105.169 110.023,105.169 109.841 C 105.169 109.677,105.303 109.543,105.467 109.543 C 105.631 109.543,105.765 109.409,105.765 109.245 C 105.765 109.046,105.964 108.946,106.362 108.946 C 106.759 108.946,106.958 108.847,106.958 108.648 C 106.958 108.484,107.092 108.350,107.256 108.350 C 107.420 108.350,107.555 108.260,107.555 108.151 C 107.555 108.042,107.532 107.964,107.505 107.979 C 107.478 107.994,107.269 108.043,107.042 108.088 M54.618 108.763 C 54.687 109.026,54.616 109.145,54.391 109.145 C 54.211 109.145,54.012 109.279,53.949 109.443 C 53.886 109.607,53.719 109.742,53.579 109.742 C 53.438 109.742,53.266 109.891,53.196 110.073 C 53.104 110.312,53.008 110.344,52.852 110.188 C 52.598 109.934,52.035 110.092,52.206 110.369 C 52.392 110.669,51.286 111.575,50.867 111.466 C 50.664 111.413,50.497 111.462,50.497 111.576 C 50.497 111.908,49.517 112.724,49.118 112.724 C 48.918 112.724,48.707 112.903,48.650 113.121 C 48.504 113.679,48.825 113.616,49.466 112.961 C 49.766 112.654,50.165 112.343,50.354 112.271 C 50.542 112.199,50.696 112.047,50.696 111.935 C 50.696 111.822,50.834 111.730,51.002 111.730 C 51.410 111.730,52.485 110.923,52.485 110.617 C 52.485 110.484,52.642 110.416,52.834 110.466 C 53.040 110.520,53.428 110.324,53.779 109.989 C 54.106 109.676,54.709 109.216,55.119 108.968 C 56.019 108.423,56.015 108.457,55.191 108.415 C 54.618 108.386,54.533 108.438,54.618 108.763 M312.366 110.371 C 312.344 111.210,312.380 112.037,312.447 112.210 C 312.620 112.661,313.121 112.599,313.121 112.127 C 313.121 111.909,312.991 111.730,312.832 111.730 C 312.611 111.730,312.526 111.386,312.474 110.288 L 312.405 108.847 312.366 110.371 M362.055 110.288 C 362.034 110.793,361.941 110.934,361.630 110.934 C 361.412 110.934,361.233 111.015,361.233 111.115 C 361.233 111.379,362.044 111.122,362.160 110.822 C 362.214 110.681,362.218 110.358,362.170 110.104 C 362.103 109.752,362.076 109.796,362.055 110.288 M101.819 111.641 C 101.562 111.897,101.398 112.223,101.455 112.365 C 101.522 112.532,101.565 112.501,101.575 112.276 C 101.583 112.085,101.705 111.928,101.844 111.928 C 101.984 111.928,102.252 111.750,102.439 111.531 C 102.923 110.966,102.404 111.057,101.819 111.641 M361.431 111.995 C 361.431 112.197,361.271 112.326,361.020 112.326 C 360.695 112.326,360.637 112.412,360.740 112.738 C 360.865 113.130,359.484 114.712,359.016 114.712 C 358.927 114.712,358.798 114.935,358.730 115.209 C 358.661 115.482,358.478 115.706,358.322 115.706 C 358.167 115.706,357.988 115.840,357.925 116.004 C 357.860 116.174,357.563 116.302,357.235 116.302 C 356.856 116.302,356.660 116.404,356.660 116.600 C 356.660 116.815,356.440 116.899,355.871 116.899 C 355.266 116.899,355.108 116.965,355.192 117.185 C 355.274 117.400,355.089 117.490,354.440 117.547 L 353.579 117.624 354.502 117.659 C 355.162 117.684,355.457 117.609,355.539 117.396 C 355.606 117.220,355.905 117.097,356.262 117.097 C 356.620 117.097,356.919 116.974,356.986 116.799 C 357.049 116.635,357.317 116.501,357.582 116.501 C 357.847 116.501,358.116 116.367,358.179 116.203 C 358.242 116.039,358.395 115.904,358.520 115.904 C 358.645 115.903,359.061 115.529,359.443 115.074 C 359.826 114.618,360.340 114.023,360.586 113.753 C 360.833 113.483,361.034 113.141,361.034 112.993 C 361.034 112.845,361.117 112.724,361.219 112.724 C 361.443 112.724,361.715 111.947,361.549 111.781 C 361.484 111.716,361.431 111.812,361.431 111.995 M276.541 112.179 C 276.541 112.317,276.720 112.541,276.938 112.678 C 277.259 112.878,277.343 113.165,277.373 114.167 L 277.410 115.408 277.485 114.314 C 277.593 112.733,277.406 111.928,276.929 111.928 C 276.716 111.928,276.541 112.041,276.541 112.179 M99.714 113.198 C 99.280 113.584,99.003 113.986,99.065 114.142 C 99.141 114.332,99.178 114.309,99.189 114.066 C 99.198 113.874,99.339 113.718,99.503 113.718 C 99.667 113.718,99.801 113.583,99.801 113.419 C 99.801 113.211,100.011 113.121,100.497 113.121 C 100.983 113.121,101.193 113.031,101.193 112.823 C 101.193 112.318,100.507 112.492,99.714 113.198 M47.984 113.618 C 47.921 113.782,47.701 113.917,47.494 113.917 C 47.287 113.917,47.117 114.051,47.117 114.215 C 47.117 114.379,46.980 114.513,46.812 114.513 C 46.645 114.513,46.245 114.781,45.924 115.109 C 45.580 115.462,45.135 115.706,44.838 115.706 C 44.561 115.706,44.334 115.795,44.334 115.905 C 44.334 116.285,43.536 116.899,43.042 116.899 C 42.732 116.899,42.545 117.011,42.545 117.197 C 42.545 117.361,42.411 117.495,42.247 117.495 C 42.083 117.495,41.948 117.638,41.948 117.812 C 41.948 117.986,41.769 118.175,41.551 118.233 C 41.332 118.290,41.153 118.416,41.153 118.512 C 41.153 118.609,40.940 118.688,40.679 118.688 C 40.373 118.688,40.169 118.828,40.101 119.085 C 39.981 119.545,40.314 119.631,40.485 119.185 C 40.548 119.021,40.737 118.887,40.904 118.887 C 41.072 118.887,41.458 118.627,41.762 118.309 C 42.066 117.991,42.490 117.675,42.705 117.607 C 42.921 117.538,43.318 117.284,43.589 117.041 C 44.197 116.495,44.698 116.160,45.278 115.909 C 45.524 115.803,45.726 115.634,45.726 115.535 C 45.726 115.436,45.882 115.297,46.074 115.227 C 46.750 114.979,47.515 114.489,47.515 114.303 C 47.515 114.200,47.639 114.115,47.790 114.115 C 47.941 114.115,48.112 113.936,48.169 113.718 C 48.290 113.255,48.152 113.181,47.984 113.618 M97.700 114.566 C 97.128 115.184,96.958 115.507,97.205 115.507 C 97.321 115.507,97.416 115.373,97.416 115.209 C 97.416 115.045,97.550 114.911,97.714 114.911 C 97.878 114.911,98.012 114.783,98.012 114.626 C 98.012 114.470,98.213 114.303,98.459 114.256 C 98.845 114.181,98.852 114.166,98.509 114.146 C 98.290 114.133,97.926 114.322,97.700 114.566 M312.961 115.678 C 312.927 117.158,312.971 117.391,313.370 117.811 L 313.817 118.283 332.913 118.287 C 352.031 118.290,352.485 118.276,352.485 117.654 C 352.485 117.567,344.389 117.495,334.493 117.495 C 318.633 117.495,316.501 117.530,316.501 117.793 C 316.501 117.957,316.367 118.091,316.203 118.091 C 316.039 118.091,315.905 117.957,315.905 117.793 C 315.905 117.572,315.673 117.495,315.010 117.495 C 314.347 117.495,314.115 117.572,314.115 117.793 C 314.115 117.957,314.037 118.091,313.941 118.091 C 313.846 118.091,313.767 117.863,313.767 117.585 C 313.767 117.306,313.625 116.971,313.451 116.839 C 313.235 116.675,313.114 116.195,313.067 115.308 C 313.003 114.086,312.997 114.106,312.961 115.678 M394.718 115.591 C 394.651 115.855,394.639 116.236,394.691 116.436 C 394.767 116.729,394.789 116.712,394.808 116.352 C 394.821 116.097,394.959 115.905,395.129 115.905 C 395.295 115.905,395.427 115.728,395.427 115.507 C 395.427 114.945,394.863 115.011,394.718 115.591 M95.869 115.893 C 95.201 116.504,95.093 116.700,95.427 116.700 C 95.537 116.700,95.626 116.555,95.626 116.378 C 95.626 116.143,95.759 116.082,96.123 116.152 C 96.540 116.232,96.620 116.171,96.620 115.778 C 96.620 115.192,96.640 115.189,95.869 115.893 M93.965 117.187 C 93.404 117.707,93.318 117.893,93.638 117.893 C 93.748 117.893,93.837 117.747,93.837 117.570 C 93.837 117.317,93.966 117.272,94.433 117.366 C 94.935 117.466,95.030 117.423,95.030 117.092 C 95.030 116.560,94.601 116.598,93.965 117.187 M277.137 117.495 C 277.137 117.760,277.270 117.893,277.535 117.893 C 277.890 117.893,277.936 118.037,277.969 119.235 C 278.006 120.569,278.006 120.571,278.081 119.483 C 278.190 117.902,278.002 117.097,277.526 117.097 C 277.270 117.097,277.137 117.233,277.137 117.495 M92.843 118.185 C 92.843 118.364,92.727 118.432,92.541 118.361 C 92.127 118.202,91.193 119.161,91.312 119.622 C 91.394 119.937,91.408 119.932,91.430 119.583 C 91.455 119.173,92.243 118.688,92.883 118.688 C 93.108 118.688,93.241 118.541,93.241 118.290 C 93.241 118.072,93.151 117.893,93.042 117.893 C 92.932 117.893,92.843 118.024,92.843 118.185 M394.116 118.963 C 394.058 119.115,394.045 119.629,394.088 120.106 L 394.165 120.974 394.200 120.030 C 394.225 119.338,394.314 119.085,394.533 119.085 C 394.697 119.085,394.831 118.996,394.831 118.887 C 394.831 118.585,394.237 118.649,394.116 118.963 M39.364 119.682 C 39.364 119.791,39.140 119.881,38.867 119.881 C 38.593 119.881,38.370 119.966,38.370 120.069 C 38.370 120.517,37.440 121.252,37.014 121.140 C 36.769 121.076,36.581 121.119,36.581 121.239 C 36.581 121.530,35.692 122.465,35.415 122.465 C 35.290 122.465,35.189 122.555,35.189 122.664 C 35.189 122.773,34.976 122.863,34.715 122.863 C 34.408 122.863,34.205 123.003,34.137 123.260 C 34.014 123.730,34.244 123.780,34.592 123.360 C 34.729 123.196,34.931 123.062,35.043 123.062 C 35.154 123.062,35.502 122.793,35.815 122.465 C 36.129 122.137,36.508 121.869,36.658 121.869 C 36.808 121.869,37.367 121.467,37.899 120.976 C 38.431 120.485,39.014 120.083,39.193 120.082 C 39.373 120.080,39.572 119.945,39.635 119.781 C 39.697 119.617,39.662 119.483,39.556 119.483 C 39.450 119.483,39.364 119.573,39.364 119.682 M89.947 119.934 C 89.374 120.552,89.204 120.875,89.451 120.875 C 89.567 120.875,89.662 120.741,89.662 120.577 C 89.662 120.413,89.796 120.278,89.960 120.278 C 90.124 120.278,90.258 120.189,90.258 120.080 C 90.258 119.970,90.398 119.881,90.568 119.881 C 90.739 119.881,90.823 119.791,90.755 119.682 C 90.574 119.388,90.403 119.441,89.947 119.934 M88.745 121.160 C 88.684 121.318,88.503 121.395,88.342 121.334 C 88.181 121.272,87.880 121.389,87.672 121.595 C 87.077 122.184,86.710 122.465,86.534 122.465 C 86.311 122.465,85.088 123.597,85.096 123.796 C 85.099 123.884,85.229 123.788,85.385 123.583 C 85.565 123.345,85.816 123.248,86.074 123.316 C 86.298 123.374,86.481 123.346,86.481 123.252 C 86.481 122.992,87.391 122.068,87.647 122.068 C 87.771 122.068,87.873 121.926,87.873 121.754 C 87.873 121.508,88.003 121.468,88.469 121.571 C 88.983 121.683,89.066 121.644,89.066 121.288 C 89.066 120.810,88.904 120.746,88.745 121.160 M393.572 121.206 C 393.499 121.279,393.439 121.627,393.439 121.980 C 393.439 122.367,393.321 122.667,393.141 122.736 C 392.956 122.807,392.843 123.109,392.843 123.531 C 392.843 123.953,392.729 124.255,392.545 124.326 C 392.360 124.397,392.247 124.700,392.247 125.122 C 392.247 125.543,392.133 125.846,391.948 125.917 C 391.772 125.985,391.661 126.256,391.677 126.584 C 391.700 127.053,391.717 127.069,391.790 126.690 C 391.838 126.444,392.005 126.243,392.161 126.243 C 392.360 126.243,392.445 126.004,392.445 125.447 C 392.445 124.873,392.528 124.652,392.744 124.652 C 392.959 124.652,393.042 124.431,393.042 123.857 C 393.042 123.283,393.125 123.062,393.340 123.062 C 393.555 123.062,393.638 122.841,393.638 122.266 C 393.638 121.692,393.721 121.471,393.936 121.471 C 394.100 121.471,394.235 121.382,394.235 121.272 C 394.235 121.049,393.775 121.003,393.572 121.206 M277.734 122.443 C 277.734 122.679,277.863 122.808,278.082 122.791 C 278.361 122.769,278.452 122.977,278.546 123.857 L 278.663 124.950 278.693 123.956 C 278.709 123.410,278.668 122.761,278.602 122.515 C 278.453 121.958,277.734 121.899,277.734 122.443 M33.472 123.955 C 33.397 124.150,33.204 124.213,32.909 124.139 C 32.568 124.053,32.434 124.126,32.352 124.439 C 32.223 124.930,32.449 124.962,33.092 124.541 C 33.522 124.259,33.926 123.658,33.685 123.658 C 33.631 123.658,33.535 123.792,33.472 123.955 M84.294 124.056 C 84.294 124.165,84.163 124.254,84.003 124.254 C 83.843 124.254,83.614 124.456,83.495 124.702 C 83.296 125.112,83.302 125.120,83.566 124.792 C 83.763 124.548,84.005 124.473,84.330 124.554 C 84.716 124.651,84.805 124.597,84.805 124.265 C 84.805 124.041,84.690 123.857,84.550 123.857 C 84.409 123.857,84.294 123.946,84.294 124.056 M31.687 125.137 C 31.605 125.350,31.416 125.443,31.185 125.382 C 30.981 125.329,30.865 125.367,30.926 125.466 C 30.988 125.566,30.809 125.734,30.529 125.840 C 30.249 125.947,30.020 126.121,30.020 126.228 C 30.020 126.406,29.235 126.828,28.380 127.110 C 28.188 127.173,28.035 127.383,28.038 127.578 C 28.044 127.915,28.058 127.915,28.309 127.584 C 28.454 127.393,28.710 127.237,28.878 127.237 C 29.045 127.237,29.470 126.968,29.821 126.640 C 30.172 126.312,30.588 126.044,30.745 126.044 C 31.114 126.044,32.130 125.106,31.953 124.929 C 31.879 124.855,31.759 124.948,31.687 125.137 M82.505 125.348 C 82.369 125.512,82.180 125.646,82.085 125.646 C 81.763 125.646,80.914 126.511,80.927 126.825 C 80.935 127.022,81.006 126.972,81.120 126.690 C 81.218 126.444,81.436 126.243,81.604 126.243 C 81.771 126.243,81.909 126.159,81.909 126.057 C 81.909 125.955,82.154 125.843,82.454 125.808 C 82.782 125.770,83.025 125.607,83.065 125.398 C 83.145 124.971,82.840 124.944,82.505 125.348 M278.463 126.574 C 278.206 126.831,278.334 127.191,278.718 127.292 C 279.046 127.377,279.117 127.604,279.176 128.756 L 279.246 130.119 279.285 128.665 C 279.331 126.949,278.980 126.057,278.463 126.574 M79.651 127.235 C 79.292 127.598,79.293 127.605,79.701 127.498 C 79.931 127.438,80.119 127.317,80.119 127.228 C 80.119 127.139,80.276 127.026,80.467 126.976 C 80.756 126.900,80.748 126.883,80.417 126.874 C 80.199 126.868,79.854 127.030,79.651 127.235 M27.513 128.118 C 27.419 128.361,27.246 128.425,26.911 128.341 C 26.621 128.268,26.441 128.311,26.441 128.453 C 26.441 128.811,25.470 129.622,25.039 129.622 C 24.826 129.622,24.652 129.701,24.652 129.798 C 24.652 129.894,24.473 130.020,24.254 130.077 C 24.036 130.135,23.857 130.324,23.857 130.498 C 23.857 130.673,23.732 130.815,23.580 130.815 C 23.428 130.815,23.251 130.949,23.189 131.113 C 23.126 131.277,22.902 131.412,22.692 131.412 C 22.481 131.412,22.257 131.546,22.195 131.710 C 22.132 131.874,21.943 132.008,21.776 132.008 C 21.608 132.008,21.471 132.097,21.471 132.207 C 21.471 132.316,21.203 132.406,20.875 132.406 C 20.411 132.406,20.278 132.494,20.278 132.803 C 20.278 133.022,20.309 133.201,20.347 133.201 C 20.561 133.201,21.670 132.551,21.670 132.426 C 21.670 132.344,22.050 132.086,22.515 131.852 C 22.980 131.619,23.583 131.156,23.855 130.823 C 24.127 130.491,24.519 130.219,24.727 130.219 C 24.934 130.219,25.309 129.997,25.561 129.725 C 25.813 129.454,26.382 129.042,26.827 128.810 C 27.666 128.373,27.955 128.087,27.758 127.891 C 27.695 127.828,27.585 127.930,27.513 128.118 M390.696 128.072 C 390.565 128.203,390.464 128.449,390.473 128.618 C 390.483 128.823,390.522 128.843,390.589 128.678 C 390.644 128.541,390.816 128.429,390.971 128.429 C 391.126 128.429,391.252 128.295,391.252 128.131 C 391.252 127.772,391.021 127.747,390.696 128.072 M77.575 128.668 C 77.443 128.799,77.339 129.000,77.342 129.115 C 77.345 129.230,77.437 129.171,77.546 128.984 C 77.667 128.777,77.871 128.693,78.070 128.770 C 78.288 128.853,78.348 128.818,78.251 128.662 C 78.068 128.366,77.875 128.368,77.575 128.668 M390.109 129.169 C 389.973 129.218,389.861 129.420,389.861 129.618 C 389.861 129.816,389.589 130.269,389.257 130.624 C 388.611 131.315,388.582 131.667,389.161 131.780 C 389.468 131.839,389.502 131.756,389.394 131.214 C 389.289 130.687,389.335 130.561,389.663 130.475 C 389.914 130.409,390.060 130.203,390.060 129.914 C 390.060 129.662,390.171 129.417,390.308 129.368 C 390.445 129.319,390.512 129.234,390.457 129.180 C 390.403 129.125,390.246 129.120,390.109 129.169 M76.356 129.707 C 76.107 129.972,75.962 130.285,76.035 130.403 C 76.219 130.700,76.594 130.671,76.483 130.368 C 76.433 130.231,76.576 129.918,76.800 129.672 C 77.023 129.426,77.117 129.225,77.008 129.225 C 76.898 129.225,76.605 129.442,76.356 129.707 M278.926 132.085 C 278.926 132.416,279.032 132.552,279.274 132.533 C 279.562 132.510,279.642 132.728,279.737 133.797 L 279.852 135.089 279.883 133.797 C 279.924 132.156,279.778 131.610,279.301 131.610 C 279.039 131.610,278.926 131.753,278.926 132.085 M385.338 135.083 C 382.929 137.514,382.714 137.773,383.101 137.773 C 383.211 137.773,383.300 137.684,383.300 137.575 C 383.300 137.270,384.058 136.581,384.394 136.581 C 384.558 136.581,384.692 136.446,384.692 136.282 C 384.692 136.118,384.826 135.984,384.990 135.984 C 385.154 135.984,385.288 135.850,385.288 135.686 C 385.288 135.522,385.422 135.388,385.586 135.388 C 385.750 135.388,385.885 135.253,385.885 135.089 C 385.885 134.925,386.019 134.791,386.183 134.791 C 386.347 134.791,386.481 134.657,386.481 134.493 C 386.481 134.132,386.806 134.097,386.946 134.443 C 387.001 134.580,387.053 134.446,387.062 134.145 C 387.070 133.844,387.167 133.598,387.276 133.598 C 387.386 133.598,387.475 133.469,387.475 133.310 C 387.475 133.151,387.632 132.931,387.823 132.819 C 388.014 132.708,388.082 132.618,387.972 132.621 C 387.863 132.623,386.677 133.731,385.338 135.083 M19.682 133.499 C 19.682 133.683,19.495 133.797,19.197 133.797 C 18.930 133.797,18.652 133.893,18.580 134.009 C 18.352 134.379,18.670 134.470,19.201 134.186 C 19.758 133.888,20.237 133.201,19.888 133.201 C 19.775 133.201,19.682 133.335,19.682 133.499 M76.216 133.466 C 76.285 133.666,76.342 133.867,76.342 133.913 C 76.342 133.959,76.543 133.989,76.789 133.980 C 77.078 133.970,77.131 133.927,76.938 133.858 C 76.774 133.799,76.516 133.605,76.365 133.426 C 76.114 133.130,76.101 133.133,76.216 133.466 M131.610 133.863 C 131.610 134.009,131.677 134.195,131.759 134.276 C 131.841 134.358,131.998 134.841,132.108 135.351 C 132.320 136.336,133.002 136.830,133.002 135.999 C 133.002 135.772,132.878 135.586,132.727 135.586 C 132.426 135.586,132.214 134.996,132.209 134.145 C 132.208 133.793,132.101 133.598,131.909 133.598 C 131.745 133.598,131.610 133.718,131.610 133.863 M17.893 134.692 C 17.893 134.856,17.756 134.990,17.588 134.990 C 17.421 134.990,17.236 135.114,17.178 135.266 C 17.117 135.425,16.909 135.500,16.689 135.443 C 16.442 135.378,16.259 135.468,16.171 135.698 C 15.936 136.309,15.293 136.822,14.892 136.717 C 14.644 136.652,14.513 136.720,14.513 136.916 C 14.513 137.080,14.334 137.261,14.115 137.318 C 13.897 137.375,13.718 137.546,13.718 137.697 C 13.718 137.848,13.539 137.972,13.320 137.972 C 13.101 137.972,12.922 138.062,12.922 138.171 C 12.922 138.507,13.481 138.391,13.756 137.999 C 13.899 137.795,14.332 137.459,14.718 137.252 C 15.368 136.904,15.663 136.689,16.394 136.034 C 16.547 135.897,16.790 135.784,16.934 135.782 C 17.188 135.779,17.864 135.153,18.167 134.642 C 18.248 134.505,18.219 134.394,18.103 134.394 C 17.987 134.394,17.893 134.528,17.893 134.692 M279.523 137.096 C 279.523 137.270,279.702 137.460,279.920 137.517 C 280.266 137.607,280.323 137.805,280.356 139.039 L 280.393 140.457 280.467 139.264 C 280.572 137.576,280.394 136.779,279.911 136.779 C 279.688 136.779,279.523 136.914,279.523 137.096 M381.140 138.773 C 380.488 139.368,380.383 139.563,380.716 139.563 C 380.825 139.563,380.915 139.434,380.915 139.277 C 380.915 139.102,381.158 138.967,381.545 138.929 C 382.214 138.863,382.513 138.492,382.043 138.311 C 381.889 138.252,381.482 138.460,381.140 138.773 M13.041 138.715 C 12.818 138.938,12.922 139.364,13.199 139.364 C 13.553 139.364,13.710 139.781,13.747 140.821 C 13.771 141.482,13.795 141.532,13.864 141.065 C 14.058 139.753,13.525 138.231,13.041 138.715 M379.356 139.861 C 379.100 140.131,378.937 140.465,378.992 140.603 C 379.055 140.757,379.100 140.720,379.110 140.507 C 379.118 140.316,379.215 140.159,379.324 140.159 C 379.433 140.159,379.702 139.980,379.920 139.761 C 380.157 139.525,380.217 139.365,380.070 139.367 C 379.933 139.369,379.612 139.591,379.356 139.861 M132.786 140.804 C 132.923 141.472,133.598 141.857,133.598 141.267 C 133.598 141.095,133.464 140.954,133.300 140.954 C 133.135 140.954,133.002 140.778,133.002 140.557 C 133.002 140.338,132.924 140.159,132.828 140.159 C 132.733 140.159,132.714 140.449,132.786 140.804 M377.757 141.004 C 377.773 141.321,377.806 141.353,377.868 141.116 C 377.917 140.931,378.108 140.740,378.293 140.691 C 378.530 140.629,378.498 140.596,378.181 140.580 C 377.837 140.562,377.739 140.660,377.757 141.004 M376.609 141.460 C 376.545 141.629,376.547 141.822,376.616 141.891 C 376.684 141.959,376.740 141.872,376.740 141.698 C 376.740 141.524,376.896 141.340,377.087 141.290 C 377.414 141.205,377.413 141.198,377.081 141.176 C 376.886 141.163,376.674 141.291,376.609 141.460 M280.252 141.882 C 280.019 142.115,280.108 142.297,280.506 142.401 C 280.823 142.484,280.907 142.714,280.966 143.666 L 281.038 144.831 281.076 143.529 C 281.117 142.114,280.751 141.383,280.252 141.882 M375.078 142.048 C 374.914 142.212,374.612 142.346,374.408 142.346 C 374.027 142.346,373.559 142.697,373.559 142.982 C 373.559 143.070,373.693 143.141,373.857 143.141 C 374.021 143.141,374.155 143.007,374.155 142.843 C 374.155 142.644,374.354 142.545,374.751 142.545 C 375.136 142.545,375.348 142.444,375.348 142.260 C 375.348 142.104,375.549 141.937,375.795 141.890 C 376.239 141.804,376.239 141.803,375.809 141.777 C 375.571 141.762,375.242 141.884,375.078 142.048 M372.096 143.241 C 371.928 143.409,371.442 143.539,370.982 143.539 C 370.387 143.539,370.132 143.633,370.038 143.887 C 369.967 144.078,369.827 144.291,369.725 144.359 C 369.623 144.427,369.762 144.483,370.033 144.483 C 370.430 144.483,370.506 144.405,370.421 144.082 C 370.324 143.710,370.389 143.688,371.341 143.780 C 372.229 143.865,372.366 143.831,372.366 143.523 C 372.366 143.314,372.549 143.134,372.813 143.083 C 373.257 142.997,373.257 142.996,372.827 142.969 C 372.589 142.955,372.260 143.077,372.096 143.241 M13.519 143.827 C 13.519 143.986,13.661 144.195,13.836 144.293 C 14.010 144.390,14.232 144.775,14.329 145.148 C 14.484 145.741,14.494 145.705,14.412 144.864 C 14.294 143.664,13.519 142.764,13.519 143.827 M367.657 144.483 C 367.589 144.674,367.497 144.898,367.453 144.980 C 367.408 145.062,367.512 145.129,367.682 145.129 C 367.856 145.129,367.992 144.960,367.992 144.744 C 367.992 144.444,368.159 144.341,368.738 144.280 L 369.483 144.202 368.632 144.169 C 367.981 144.143,367.752 144.217,367.657 144.483 M133.312 145.405 C 133.365 146.048,133.457 146.652,133.516 146.747 C 133.692 147.033,134.195 146.939,134.195 146.620 C 134.195 146.456,134.065 146.322,133.906 146.322 C 133.726 146.322,133.571 146.041,133.495 145.577 C 133.281 144.267,133.211 144.201,133.312 145.405 M365.003 145.038 C 364.806 145.275,364.802 145.399,364.985 145.582 C 365.168 145.765,365.247 145.720,365.335 145.385 C 365.420 145.061,365.631 144.933,366.173 144.875 L 366.899 144.798 366.078 144.765 C 365.548 144.743,365.167 144.840,365.003 145.038 M360.266 145.541 C 359.877 145.697,359.838 145.781,360.041 146.026 C 360.394 146.450,361.196 146.413,361.161 145.974 C 361.138 145.686,361.356 145.606,362.425 145.511 L 363.718 145.397 362.227 145.375 C 361.407 145.363,360.524 145.438,360.266 145.541 M316.573 146.223 C 316.365 146.765,316.678 147.515,317.113 147.515 C 317.336 147.515,317.463 147.425,317.396 147.316 C 317.328 147.207,317.144 147.117,316.986 147.117 C 316.411 147.117,316.649 146.157,317.247 146.067 L 317.793 145.984 317.240 145.954 C 316.910 145.936,316.641 146.045,316.573 146.223 M280.716 146.507 C 280.716 146.609,280.895 146.750,281.113 146.819 C 281.457 146.928,281.516 147.138,281.549 148.373 L 281.588 149.801 281.659 148.515 C 281.751 146.869,281.614 146.322,281.110 146.322 C 280.893 146.322,280.716 146.406,280.716 146.507 M14.248 148.045 C 14.045 148.248,14.090 148.747,14.300 148.617 C 14.582 148.443,14.791 148.902,14.929 150.000 L 15.053 150.994 15.081 149.963 C 15.121 148.501,14.718 147.574,14.248 148.045 M317.140 150.398 C 317.094 152.106,317.240 152.724,317.668 152.642 C 318.161 152.546,318.204 151.889,317.717 151.889 C 317.355 151.889,317.307 151.741,317.245 150.447 L 317.176 149.006 317.140 150.398 M133.924 150.578 C 133.984 151.224,134.079 151.872,134.135 152.019 C 134.294 152.433,134.791 152.334,134.791 151.889 C 134.791 151.670,134.664 151.491,134.508 151.491 C 134.325 151.491,134.153 151.122,134.020 150.447 L 133.816 149.404 133.924 150.578 M281.445 151.425 C 281.174 151.696,281.325 152.087,281.701 152.087 C 282.041 152.087,282.098 152.254,282.159 153.429 L 282.228 154.771 282.267 153.416 C 282.314 151.794,281.952 150.918,281.445 151.425 M14.712 153.380 C 14.712 153.544,14.844 153.678,15.006 153.678 C 15.320 153.678,15.459 154.093,15.570 155.368 C 15.630 156.064,15.643 156.035,15.672 155.132 C 15.691 154.565,15.619 153.872,15.512 153.591 C 15.304 153.044,14.712 152.887,14.712 153.380 M317.735 155.467 C 317.716 156.178,317.754 156.965,317.822 157.216 C 317.975 157.788,318.564 157.720,318.650 157.121 C 318.699 156.776,318.632 156.712,318.312 156.796 C 317.944 156.892,317.906 156.789,317.842 155.538 L 317.772 154.175 317.735 155.467 M134.530 155.567 C 134.683 156.631,135.388 157.284,135.388 156.362 C 135.388 156.198,135.266 156.064,135.118 156.064 C 134.970 156.064,134.751 155.773,134.632 155.417 C 134.417 154.775,134.417 154.776,134.530 155.567 M281.909 156.958 C 281.909 157.124,282.085 157.256,282.306 157.256 C 282.664 157.256,282.708 157.402,282.742 158.698 L 282.780 160.139 282.852 158.853 C 282.944 157.207,282.807 156.660,282.302 156.660 C 282.085 156.660,281.909 156.794,281.909 156.958 M15.308 158.544 C 15.308 158.832,15.454 159.038,15.706 159.103 C 16.036 159.190,16.108 159.387,16.130 160.270 C 16.145 160.854,16.198 161.115,16.248 160.849 C 16.433 159.865,16.107 158.298,15.694 158.190 C 15.395 158.112,15.308 158.191,15.308 158.544 M318.331 160.537 C 318.286 162.040,318.426 162.561,318.905 162.687 C 319.114 162.741,319.284 162.712,319.284 162.622 C 319.284 162.236,319.023 161.829,318.775 161.829 C 318.587 161.829,318.487 161.460,318.437 160.586 L 318.367 159.344 318.331 160.537 M135.258 161.032 C 135.289 161.741,135.984 162.232,135.984 161.545 C 135.984 161.373,135.856 161.233,135.700 161.233 C 135.543 161.233,135.373 161.031,135.321 160.785 C 135.269 160.539,135.241 160.650,135.258 161.032 M282.549 161.666 C 282.571 161.959,282.637 162.194,282.696 162.189 C 283.181 162.146,283.287 162.337,283.352 163.370 L 283.424 164.513 283.461 163.165 C 283.493 162.041,283.441 161.795,283.151 161.688 C 282.960 161.618,282.737 161.464,282.656 161.347 C 282.575 161.229,282.527 161.373,282.549 161.666 M15.905 163.415 C 15.905 163.611,16.078 163.816,16.290 163.872 C 16.594 163.951,16.689 164.179,16.738 164.939 L 16.799 165.905 76.186 165.955 L 135.572 166.005 135.789 165.557 C 135.985 165.153,135.979 165.143,135.724 165.458 C 135.322 165.956,17.030 165.906,16.964 165.408 C 16.942 165.244,16.869 164.694,16.803 164.186 C 16.678 163.235,15.905 162.571,15.905 163.415 M318.877 164.811 L 318.787 165.706 300.932 165.706 C 291.112 165.706,283.284 165.764,283.536 165.835 C 283.789 165.906,291.791 165.973,301.318 165.984 C 320.508 166.006,319.174 166.105,319.039 164.676 L 318.967 163.917 318.877 164.811 "\n stroke="none" fill="#c4c4c4" fill-rule="evenodd"></path>\n </g>\n</svg>',afterpay:'<svg version="1.0" class="payment-source__icon" xmlns="http://www.w3.org/2000/svg"\n width="52%" height="50px" viewBox="0 0 2560.000000 479.000000"\n preserveAspectRatio="xMidYMid meet">\n\n<g transform="translate(0.000000,479.000000) scale(0.100000,-0.100000)"\nfill="#000000" stroke="none">\n<path d="M23109 4775 c-248 -49 -462 -233 -538 -462 -26 -79 -45 -241 -36\n-317 8 -72 32 -123 78 -163 19 -17 114 -74 211 -128 166 -92 179 -97 222 -92\n28 3 55 14 71 28 45 42 53 77 53 232 0 133 2 147 23 178 32 49 81 71 142 66\n44 -4 140 -55 770 -406 396 -222 728 -410 739 -419 10 -9 25 -31 32 -49 31\n-72 7 -142 -63 -187 -36 -23 -1291 -723 -1398 -780 -89 -47 -179 -28 -225 46\n-16 27 -20 51 -20 133 0 251 -66 414 -226 564 -218 204 -552 253 -815 120\n-204 -102 -1724 -959 -1776 -1001 -105 -83 -180 -197 -224 -338 -30 -96 -32\n-261 -5 -360 39 -142 139 -289 255 -374 57 -42 1653 -934 1766 -987 351 -165\n781 -17 950 326 53 107 69 181 69 325 1 194 -16 216 -284 364 -189 104 -218\n112 -277 76 -61 -37 -67 -57 -73 -235 -4 -133 -8 -166 -23 -188 -27 -42 -75\n-67 -128 -67 -40 0 -79 19 -340 164 -306 170 -1022 569 -1121 625 -32 18 -67\n46 -79 62 -40 57 -34 143 14 186 12 12 236 140 497 286 1036 577 980 547 1027\n547 50 0 87 -16 122 -54 23 -25 26 -37 33 -174 10 -173 24 -239 78 -348 87\n-178 266 -317 475 -369 133 -33 321 -17 448 37 29 12 297 159 597 326 300 167\n684 381 854 475 172 96 335 194 370 223 211 174 297 472 211 730 -35 105 -75\n173 -149 251 -71 77 -121 111 -316 220 -80 44 -442 246 -805 448 -362 202\n-695 385 -740 406 -137 65 -295 84 -446 54z"/>\n<path d="M4055 4669 c-334 -32 -519 -171 -585 -440 -17 -66 -23 -129 -27 -291\nl-6 -208 -183 0 -184 0 0 -280 0 -280 185 0 185 0 0 -1000 0 -1000 335 0 335\n0 0 1000 0 1000 429 0 430 0 3 -732 c4 -719 4 -735 26 -813 51 -184 139 -302\n276 -369 136 -67 265 -86 579 -86 l207 0 0 284 0 284 -128 4 c-110 3 -134 7\n-177 28 -53 27 -88 70 -105 129 -6 22 -10 271 -10 654 l0 617 205 0 205 0 0\n280 0 280 -205 0 -205 0 0 310 0 310 -335 0 -335 0 0 -310 0 -310 -430 0 -430\n0 0 113 c1 191 29 259 128 305 51 23 72 27 195 30 l137 4 0 249 0 249 -212 -1\nc-117 -1 -253 -6 -303 -10z"/>\n<path d="M1180 3769 c-572 -43 -1039 -469 -1157 -1056 -27 -133 -24 -414 5\n-550 101 -470 404 -821 830 -963 434 -144 879 -59 1181 227 l71 68 0 -162 0\n-163 325 0 325 0 0 1280 0 1280 -325 0 -325 0 0 -156 0 -156 -67 62 c-182 167\n-409 270 -628 285 -44 3 -91 7 -105 9 -14 1 -72 -1 -130 -5z m435 -623 c242\n-82 412 -268 471 -513 23 -94 23 -276 -1 -368 -53 -210 -183 -374 -371 -468\n-113 -57 -180 -72 -334 -71 -125 0 -141 2 -223 31 -120 42 -189 85 -277 173\n-88 89 -131 157 -173 277 -25 75 -31 107 -35 213 -5 152 15 248 80 380 59 120\n178 239 300 300 130 64 207 81 358 76 104 -3 139 -8 205 -30z"/>\n<path d="M7550 3769 c-611 -42 -1096 -452 -1222 -1034 -27 -128 -35 -370 -14\n-500 31 -207 96 -378 202 -537 188 -283 476 -466 847 -540 91 -18 146 -22 297\n-22 199 0 308 14 470 61 363 104 662 360 802 685 20 47 40 98 44 112 l6 26\n-339 0 -339 0 -49 -62 c-93 -117 -230 -206 -375 -245 -49 -13 -102 -18 -210\n-17 -129 0 -154 3 -225 27 -133 44 -242 119 -318 219 -49 65 -100 174 -117\n248 -6 30 -14 63 -17 73 -4 16 49 17 1011 17 l1015 0 8 38 c12 61 6 270 -12\n371 -73 422 -323 758 -700 942 -233 114 -478 158 -765 138z m335 -589 c192\n-60 328 -185 400 -367 12 -32 26 -75 29 -95 l7 -38 -661 0 c-363 0 -660 4\n-660 8 0 5 7 33 16 63 63 213 238 379 464 439 103 28 302 23 405 -10z"/>\n<path d="M10505 3770 c-162 -15 -292 -76 -412 -196 l-83 -81 0 118 0 119 -325\n0 -325 0 0 -1280 0 -1280 335 0 334 0 3 822 3 823 23 66 c98 291 365 379 707\n232 44 -19 86 -37 93 -40 9 -4 12 64 12 320 l0 325 -63 21 c-57 19 -88 25\n-202 34 -16 2 -61 0 -100 -3z"/>\n<path d="M12570 3769 c-152 -11 -268 -43 -405 -112 -102 -51 -161 -93 -257\n-186 l-78 -74 0 166 0 167 -325 0 -325 0 0 -1805 0 -1805 340 0 340 0 0 671 0\n672 48 -45 c299 -280 733 -361 1164 -218 179 60 331 153 474 292 263 254 398\n583 397 968 -1 289 -73 531 -228 765 -204 305 -564 518 -914 541 -47 3 -97 6\n-111 8 -14 1 -68 -1 -120 -5z m126 -600 c350 -64 604 -396 581 -759 -8 -120\n-28 -193 -80 -300 -54 -111 -185 -247 -292 -302 -263 -136 -558 -111 -792 66\n-112 85 -210 236 -250 386 -22 82 -24 290 -4 369 71 279 272 476 546 536 75\n17 212 19 291 4z"/>\n<path d="M15375 3768 c-516 -36 -956 -382 -1119 -881 -51 -158 -61 -228 -61\n-437 0 -151 4 -214 18 -279 61 -285 166 -483 356 -672 230 -231 494 -347 831\n-366 314 -17 604 86 818 291 l82 79 0 -167 0 -166 325 0 325 0 0 1280 0 1280\n-325 0 -325 0 0 -162 0 -161 -70 69 c-221 217 -510 316 -855 292z m355 -603\nc335 -71 560 -356 560 -713 0 -132 -20 -224 -77 -342 -39 -81 -58 -108 -132\n-180 -95 -94 -175 -142 -301 -182 -108 -33 -302 -33 -410 0 -128 40 -206 88\n-300 182 -147 147 -212 305 -212 520 -1 314 169 571 452 684 114 46 289 59\n420 31z"/>\n<path d="M17294 3558 c46 -95 291 -593 545 -1106 l461 -932 -320 -691 c-176\n-380 -320 -692 -320 -695 0 -2 156 -3 346 -2 l345 3 820 1795 c450 987 819\n1796 819 1797 0 2 -158 2 -352 1 l-352 -3 -325 -733 c-179 -402 -328 -729\n-332 -725 -3 5 -147 335 -320 735 l-314 728 -392 0 -392 0 83 -172z"/>\n</g>\n</svg>'},ma="afterpay",va="zipmoney";function ga(e){return fa[e]}var Ca="50px",ya="320px",ba="10px",Ea="pointer",wa="#b2fce4",_a="none",ka="afterpay-checkout-button",Sa=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;this.createWidgetStructure(null===(t=null==e?void 0:e.customisation)||void 0===t?void 0:t.base),this.widget=new Jr("#".concat(ka),null==e?void 0:e.instruction_token,null==e?void 0:e.payload.gateway_id),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.setMeta(null==e?void 0:e.payload.meta),la.hide(),pa.expired.subscribe((function(){n.widget.close(),la.hide()})),this.widget.on("finish",(function(e){var t;globalThis.expired||la.show(),null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",ott_token:e.payment_source_token}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.on("error",(function(e){var t;globalThis.expired||la.show(),null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.event)||"error in afterpay checkout widget"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"createWidgetStructure",value:function(e){var t=document.createElement("button");t.id=ka,t.type="button";var n=(null==e?void 0:e.height)||Ca;t.style.marginLeft="auto",t.style.height=n,t.style.width=(null==e?void 0:e.width)||ya,t.style.borderRadius=(null==e?void 0:e.borderRadius)||ba,t.style.border=_a,t.style.backgroundColor=(null==e?void 0:e.background_color)||wa,t.style.padding="0",t.style.cursor=Ea,t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.innerHTML="".concat(ga(ma));var i=document.createElement("div");i.style.width="100%",i.style.padding="10px",i.style.paddingTop="0";var r=document.getElementById(this.formSelector.split("#").join(""));i.appendChild(t),r.appendChild(i)}}])}(da);Sa=ne([ha("instruction.afterpay_checkout_form.show")],Sa);var Ta="300px",Ma=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){this.setStyles(),this.widget=new _s(this.formSelector,e.payload.charge_token,e.payload.meta),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.load()}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"setStyles",value:function(){var e=document.createElement("div");e.id="button",e.style.width=Ta;var t=document.getElementById(this.formSelector.split("#").join(""));t.appendChild(e),t.style.textAlign="right",t.style.display="flex",t.style.justifyContent="right"}}])}(da);Ma=ne([ha("instruction.afterpay_wallet_form.show")],Ma);var Aa=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t=this;this.setStyles(),this.widget=new _s(this.formSelector,null==e?void 0:e.payload.charge_token,null==e?void 0:e.payload.meta),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.load(),la.hide(),this.widget.onPaymentSuccessful((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",message:"The payment was successful"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentError((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.data.message)||"error in apple pay widget"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentInReview((function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"in_review",message:"The payment is on fraud review"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"setStyles",value:function(){var e=document.getElementById(this.formSelector.split("#").join(""));e.style.textAlign="right",e.style.display="flex",e.style.justifyContent="right"}}])}(da);Aa=ne([ha("instruction.applepay_wallet_form.show")],Aa);var Na=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;this.widget=new ca(this.formSelector,null==e?void 0:e.instruction_token,"not_configured","bank_account"),(null===(t=e.payload.customisation)||void 0===t?void 0:t.base)&&this.widget.setStyles(e.payload.customisation.base),this.widget.setEnv(this.getEnv(null==e?void 0:e.instruction_token)),this.widget.load(),this.widget.useAutoResize(),this.widget.on("finish",(function(e){n.api.checkout().callback({event:"callback.bank_account_form.ott_created",payload:{ott_token:e.payment_source}}).then((function(e){return console.info("callback.bank_account_form.ott_created: ok")})).catch((function(e){return console.error("callback.bank_account_form.ott_created: error",e)}))})),this.widget.on("validationError",(function(e){n.api.checkout().callback({event:"callback.bank_account_form.ott_created",payload:{message:"Validation error during form submission process"}}).then((function(e){return console.info("callback.bank_account_form.ott_created: ok")})).catch((function(e){return console.error("callback.bank_account_form.ott_created: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}}])}(da);Na=ne([ha("instruction.bank_account_form.show")],Na);for(var Oa,Ia=function(e){var t,n,i=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}(e),r=i[0],o=i[1],s=new xa(function(e,t,n){return 3*(t+n)/4-n}(0,r,o)),a=0,c=o>0?r-4:r;for(n=0;n<c;n+=4)t=Ra[e.charCodeAt(n)]<<18|Ra[e.charCodeAt(n+1)]<<12|Ra[e.charCodeAt(n+2)]<<6|Ra[e.charCodeAt(n+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===o&&(t=Ra[e.charCodeAt(n)]<<2|Ra[e.charCodeAt(n+1)]>>4,s[a++]=255&t);1===o&&(t=Ra[e.charCodeAt(n)]<<10|Ra[e.charCodeAt(n+1)]<<4|Ra[e.charCodeAt(n+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},Ra=[],xa="undefined"!=typeof Uint8Array?Uint8Array:Array,Pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Da=0;Da<64;++Da)Ra[Pa.charCodeAt(Da)]=Da;Ra["-".charCodeAt(0)]=62,Ra["_".charCodeAt(0)]=63,function(e){e.HTML="html",e.URL="url",e.STANDALONE_3DS="standalone_3ds"}(Oa||(Oa={}));var La,Ua=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t=this,n=this.decodeBase64Token(e.payload._3ds_token),i=new sr(this.formSelector,e.payload._3ds_token);i.setEnv(this.getEnv(e.instruction_token)),i.on("chargeAuth",(function(){return la.show()})),i.on("chargeAuthChallenge",(function(){n.format===Oa.STANDALONE_3DS&&(la.hide(),t.observeIframeAndResize())})),i.on("chargeAuthDecoupled",(function(){n.format===Oa.STANDALONE_3DS&&(la.hide(),t.observeIframeAndResize())})),i.on("chargeAuthSuccess",(function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",message:"The authentication was successful"}}).then((function(){return console.info("callback.child_widget.status: - chargeAuthSuccess")})).catch((function(e){return console.error("callback.child_widget.status - chargeAuthSuccess: error",e)})),la.show()})),i.on("chargeAuthReject",(function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:"The authentication was not successful"}}).then((function(){return console.info("callback.child_widget.status: - chargeAuthReject")})).catch((function(e){return console.error("callback.child_widget.status - chargeAuthReject: error",e)})),la.show()})),i.on("error",(function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.event)||"error in 3ds widget"}}).then((function(){return console.info("callback.child_widget.status: - errorEvent")})).catch((function(e){return console.error("callback.child_widget.status - errorEvent: error",e)})),la.show()})),i.load(),n.format!==Oa.STANDALONE_3DS&&la.hide()}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"decodeBase64Token",value:function(e){try{var t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(4*Math.ceil(e.length/4),"="),n=Ia(t),i=(new TextDecoder).decode(n);return JSON.parse(i)}catch(e){throw console.error("Failed to decode _3ds_token:",e),e}}},{key:"observeIframeAndResize",value:function(){var e=document.querySelector("#standaloneWidget");e&&(e.style.display="flex",e.style.justifyContent="center");var t=document.querySelector("#paydock_authorization_iframe");if(t){var n=new MutationObserver((function(){var e=t.querySelector("iframe");e&&(e.style.width="100%",e.style.height="500px",e.style.border="none",e.style.display="block",console.info("3DS iframe resized",e),n.disconnect())}));n.observe(t,{childList:!0,subtree:!0})}else console.warn("Container not found")}}])}(da);Ua=ne([ha("instruction.canvas_3ds_form.show")],Ua),function(e){e.BTN_COLOR="#00A040",e.BORDER_COLOR="#BDBDBD",e.BG_COLOR="#EFF2F7",e.TEXT_COLOR="#000000",e.FONT_FAMILY="sans-serif",e.FONT_SIZE="16px"}(La||(La={}));var Fa=function(t){function r(){return i(this,r),n(this,r,arguments)}return d(r,t),o(r,[{key:"handle",value:function(t){var n,i=this;if(this.widget=new ca(this.formSelector,null==t?void 0:t.instruction_token,"not_configured","card",e.PURPOSE.CARD_PAYMENT_SOURCE_WITH_CVV),this.widget.setStyles(c({button_color:La.BTN_COLOR,background_color:La.BG_COLOR,border_color:La.BORDER_COLOR,text_color:La.TEXT_COLOR,font_size:La.FONT_SIZE,font_family:La.FONT_FAMILY},(null===(n=t.payload.customisation)||void 0===n?void 0:n.base)||{})),this.widget.setFormFields(["card_name*","expire_month*","expire_year*","card_ccv*"]),t.payload.form_fields){var r=Object.entries(t.payload.form_fields).reduce((function(e,t){var n=m(t,2),i=n[0],r=n[1];return"enable"===r?[].concat(g(e),[i]):"required"===r?[].concat(g(e),[i+"*"]):void 0}),[]);this.widget.setFormFields(r)}this.widget.setEnv(this.getEnv(t.instruction_token)),this.widget.load(),this.widget.useAutoResize(),this.widget.on("afterLoad",(function(e){i.timeoutId=setTimeout((function(){la.hide()}),500)})),this.widget.on("submit",(function(e){return la.show()})),this.widget.on("finish",(function(e){var n,r=new Ni(t.instruction_token);null===(n=i.checkoutWidget)||void 0===n||n.fetchInstruction(),i.api.checkout().callback({event:"callback.card_form.ott_created",payload:{status:"success",ott_token:e.payment_source,browser_details:r.getBrowserDetails()}}).then((function(e){return console.info("callback.card_form.ott_created: ok")})).catch((function(e){return console.error("callback.card_form.ott_created: error",e)}))})),this.widget.on("validationError",(function(e){var t;null===(t=i.checkoutWidget)||void 0===t||t.fetchInstruction(),i.api.checkout().callback({event:"callback.card_form.ott_created",payload:{status:"error",message:e.event}}).then((function(e){return console.info("callback.card_form.ott_created: ok")})).catch((function(e){return console.error("callback.card_form.ott_created: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML="",clearTimeout(this.timeoutId)}}])}(da);Fa=ne([ha("instruction.card_form.show")],Fa);var Ha={card:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="card" type="radio" name="radio-group" />\n <h2 class="payment-source__title">Pay with Credit or Debit card</h2>\n </div>\n </li>\n </label>',bank_account:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="bank_account" type="radio" name="radio-group" />\n <h2 class="payment-source__title">Pay Bank Account</h2>\n </div>\n </li>\n </label>',paypal_wallet:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="paypal_wallet" type="radio" name="radio-group">\n <svg xmlns="http://www.w3.org/2000/svg" height="28" viewBox="0 0 338.667 89.785" xmlns:v="https://vecta.io/nano"><g transform="translate(936.898 -21.779)"><path clip-path="none" d="M-828.604 39.734c-.697 0-1.289.506-1.398 1.195l-8.068 51.165a1.31 1.31 0 0 0 1.294 1.513h9.568c.696 0 1.289-.507 1.398-1.195l2.37-15.025c.108-.688.701-1.195 1.398-1.195h8.699c10.164 0 18.792-7.416 20.368-17.465 1.589-10.134-6.328-18.971-17.549-18.993zm9.301 11.422h6.96c5.73 0 7.596 3.381 7.006 7.12-.59 3.747-3.488 6.507-9.031 6.507h-7.084zm45.788 3.478c-2.416.009-5.196.504-8.317 1.804-7.159 2.984-10.597 9.151-12.057 13.647 0 0-4.647 13.717 5.852 21.253 0 0 9.737 7.255 20.698-.447l-.189 1.203a1.31 1.31 0 0 0 1.292 1.513h9.083c.697 0 1.289-.507 1.398-1.195l5.525-35.038a1.31 1.31 0 0 0-1.292-1.515h-9.083c-.697 0-1.29.507-1.398 1.195l-.297 1.886s-3.967-4.333-11.216-4.306zm.297 11.067c1.043 0 1.997.144 2.853.419 3.919 1.258 6.141 5.023 5.498 9.104-.793 5.025-4.914 8.725-10.199 8.725-1.042 0-1.996-.143-2.853-.418-3.918-1.258-6.154-5.023-5.511-9.104.793-5.025 4.927-8.727 10.212-8.727z" fill="#003087"/><path clip-path="none" d="M-697.804 39.734c-.697 0-1.289.506-1.398 1.195l-8.068 51.165a1.31 1.31 0 0 0 1.294 1.513h9.568c.696 0 1.289-.507 1.398-1.195l2.37-15.025c.108-.688.701-1.195 1.398-1.195h8.699c10.164 0 18.791-7.416 20.366-17.465 1.59-10.134-6.326-18.971-17.547-18.993zm9.301 11.422h6.96c5.73 0 7.596 3.381 7.006 7.12-.59 3.747-3.487 6.507-9.031 6.507h-7.084zm45.787 3.478c-2.416.009-5.196.504-8.317 1.804-7.159 2.984-10.597 9.151-12.057 13.647 0 0-4.645 13.717 5.854 21.253 0 0 9.735 7.255 20.697-.447l-.189 1.203a1.31 1.31 0 0 0 1.294 1.513h9.082c.697 0 1.289-.507 1.398-1.195l5.527-35.038a1.31 1.31 0 0 0-1.294-1.515h-9.083c-.697 0-1.29.507-1.398 1.195l-.297 1.886s-3.967-4.333-11.216-4.306zm.297 11.067c1.043 0 1.997.144 2.853.419 3.919 1.258 6.141 5.023 5.498 9.104-.793 5.025-4.914 8.725-10.199 8.725-1.042 0-1.996-.143-2.853-.418-3.918-1.258-6.154-5.023-5.511-9.104.793-5.025 4.927-8.727 10.212-8.727z" fill="#0070e0"/><path clip-path="none" d="M-745.92 55.859c-.72 0-1.232.703-1.012 1.388l9.958 30.901-9.004 14.562c-.437.707.071 1.62.902 1.62h10.642a1.77 1.77 0 0 0 1.513-.854l27.811-46.007c.427-.707-.083-1.611-.909-1.611h-10.641a1.77 1.77 0 0 0-1.522.869l-10.947 18.482-5.557-18.345c-.181-.597-.732-1.006-1.355-1.006z" fill="#003087"/><path clip-path="none" d="M-609.107 39.734c-.696 0-1.289.507-1.398 1.195l-8.07 51.163a1.31 1.31 0 0 0 1.294 1.515h9.568c.696 0 1.289-.507 1.398-1.195l8.068-51.165a1.31 1.31 0 0 0-1.292-1.513z" fill="#0070e0"/><path clip-path="none" d="M-908.37 39.734a2.59 2.59 0 0 0-2.556 2.185l-4.247 26.936c.198-1.258 1.282-2.185 2.556-2.185h12.445c12.525 0 23.153-9.137 25.095-21.519a20.76 20.76 0 0 0 .245-2.793c-3.183-1.669-6.922-2.624-11.019-2.624z" fill="#001c64"/><path clip-path="none" d="M-874.832 42.359a20.76 20.76 0 0 1-.245 2.793c-1.942 12.382-12.571 21.519-25.095 21.519h-12.445c-1.273 0-2.358.926-2.556 2.185l-3.905 24.752-2.446 15.528a2.1 2.1 0 0 0 2.075 2.43h13.508a2.59 2.59 0 0 0 2.556-2.185l3.558-22.567a2.59 2.59 0 0 1 2.558-2.185h7.953c12.525 0 23.153-9.137 25.095-21.519 1.379-8.788-3.047-16.784-10.611-20.75z" fill="#0070e0"/><path clip-path="none" d="M-923.716 21.779c-1.273 0-2.358.926-2.556 2.183l-10.6 67.216c-.201 1.276.785 2.43 2.077 2.43h15.719l3.903-24.752 4.247-26.936a2.59 2.59 0 0 1 2.556-2.185h22.519c4.098 0 7.836.956 11.019 2.624.218-11.273-9.084-20.58-21.873-20.58z" fill="#003087"/></g></svg>\n </div>\n </li>\n </label>',googlepay_wallet:'<label class="payment-source">\n <li class="payment-source">\n <div max-height: "28px" class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="googlepay_wallet" type="radio" name="radio-group" />\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n width="80px" height="38px" viewBox="0 0 80 38.1" xml:space="preserve">\n <style type="text/css">\n .st0{fill:#5F6368;}\n .st1{fill:#4285F4;}\n .st2{fill:#34A853;}\n .st3{fill:#FBBC04;}\n .st4{fill:#EA4335;}\n </style>\n <path class="st0" d="M37.8,19.7V29h-3V6h7.8c1.9,0,3.7,0.7,5.1,2c1.4,1.2,2.1,3,2.1,4.9c0,1.9-0.7,3.6-2.1,4.9c-1.4,1.3-3.1,2-5.1,2\n L37.8,19.7L37.8,19.7z M37.8,8.8v8h5c1.1,0,2.2-0.4,2.9-1.2c1.6-1.5,1.6-4,0.1-5.5c0,0-0.1-0.1-0.1-0.1c-0.8-0.8-1.8-1.3-2.9-1.2\n L37.8,8.8L37.8,8.8z"/>\n <path class="st0" d="M56.7,12.8c2.2,0,3.9,0.6,5.2,1.8s1.9,2.8,1.9,4.8V29H61v-2.2h-0.1c-1.2,1.8-2.9,2.7-4.9,2.7\n c-1.7,0-3.2-0.5-4.4-1.5c-1.1-1-1.8-2.4-1.8-3.9c0-1.6,0.6-2.9,1.8-3.9c1.2-1,2.9-1.4,4.9-1.4c1.8,0,3.2,0.3,4.3,1v-0.7\n c0-1-0.4-2-1.2-2.6c-0.8-0.7-1.8-1.1-2.9-1.1c-1.7,0-3,0.7-3.9,2.1l-2.6-1.6C51.8,13.8,53.9,12.8,56.7,12.8z M52.9,24.2\n c0,0.8,0.4,1.5,1,1.9c0.7,0.5,1.5,0.8,2.3,0.8c1.2,0,2.4-0.5,3.3-1.4c1-0.9,1.5-2,1.5-3.2c-0.9-0.7-2.2-1.1-3.9-1.1\n c-1.2,0-2.2,0.3-3,0.9C53.3,22.6,52.9,23.3,52.9,24.2z"/>\n <path class="st0" d="M80,13.3l-9.9,22.7h-3l3.7-7.9l-6.5-14.7h3.2l4.7,11.3h0.1l4.6-11.3H80z"/>\n <path class="st1" d="M25.9,17.7c0-0.9-0.1-1.8-0.2-2.7H13.2v5.1h7.1c-0.3,1.6-1.2,3.1-2.6,4v3.3H22C24.5,25.1,25.9,21.7,25.9,17.7z"\n />\n <path class="st2" d="M13.2,30.6c3.6,0,6.6-1.2,8.8-3.2l-4.3-3.3c-1.2,0.8-2.7,1.3-4.5,1.3c-3.4,0-6.4-2.3-7.4-5.5H1.4v3.4\n C3.7,27.8,8.2,30.6,13.2,30.6z"/>\n <path class="st3" d="M5.8,19.9c-0.6-1.6-0.6-3.4,0-5.1v-3.4H1.4c-1.9,3.7-1.9,8.1,0,11.9L5.8,19.9z"/>\n <path class="st4" d="M13.2,9.4c1.9,0,3.7,0.7,5.1,2l0,0l3.8-3.8c-2.4-2.2-5.6-3.5-8.8-3.4c-5,0-9.6,2.8-11.8,7.3l4.4,3.4\n C6.8,11.7,9.8,9.4,13.2,9.4z"/>\n </svg>\n </div>\n </li>\n </label>',flypay:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="flypay" type="radio" name="radio-group" />\n <div class="payment-source__icon">\n <svg xmlns="http://www.w3.org/2000/svg" height="38" viewBox="0 0 82 40" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18.2312 5.46959C18.2312 4.98803 18.6216 4.59766 19.1031 4.59766H77.3212C80.3349 4.59766 82.5618 7.40629 81.8747 10.3406L77.3202 29.7913C76.5899 32.9099 73.8086 35.1152 70.6056 35.1152H34.1637C33.6822 35.1152 33.2918 34.7248 33.2918 34.2432C33.2918 33.7617 33.6822 33.3713 34.1637 33.3713H70.6056C72.9986 33.3713 75.0766 31.7237 75.6222 29.3937L80.1768 9.94303C80.6077 8.10286 79.2111 6.34151 77.3212 6.34151H19.1031C18.6216 6.34151 18.2312 5.95114 18.2312 5.46959Z" fill="black"/>\n <path d="M4.29622 16.0912V27.204H0V13.6759C0 7.20014 3.7341 4.69238 7.7376 4.69238H11.5729V8.47799H7.7376C4.9845 8.47799 4.29622 11.0155 4.29622 12.2865H9.44925V16.0912H4.29622Z" fill="black"/>\n <path d="M17.2811 4.677L13.0007 5.78525V27.1886H17.2811V4.677Z" fill="black"/>\n <path d="M32.9749 29.2495V12.2073L28.7738 13.4755V19.579C28.7738 22.2741 28.0128 23.5424 25.9202 23.5424C23.8275 23.5424 23.1458 21.957 23.1458 20.1339V12.2073L19.1033 13.4755V20.451C19.1033 22.0363 19.3601 24.0179 21.2435 25.7618C23.3944 27.7535 27.0299 27.4 28.7738 26.7923V28.3776C28.7738 31.9287 27.7433 33.1336 25.0482 33.1336V36.9384C30.3591 36.9384 32.9749 33.9262 32.9749 29.2495Z" fill="black"/>\n <path d="M67.6141 27.1889H64.1264L65.6302 21.3583L62.72 12.2192H66.1873L68.0897 18.311L73.1558 12.2192H76.809L69.0409 21.6442L67.6141 27.1889Z" fill="black"/>\n <path d="M58.3963 23.8804H52.1572L50.166 27.1889H46.5293L56.4376 12.2192H59.9253L62.1448 27.1889H58.7363L58.3963 23.8804ZM57.8959 21.006L57.3095 16.3293L54.2181 21.006H57.8959Z" fill="black"/>\n <path d="M39.0708 27.1886H35.6699L39.1218 12.219H45.2077C49.3432 12.219 50.6898 15.7935 49.2718 19.256C47.7393 22.9981 43.469 22.5543 40.1532 22.5543L39.0708 27.1886ZM40.6637 19.8061C42.0281 19.8061 43.578 19.9845 44.8707 19.4997C46.1635 19.015 46.6087 18.4033 46.6087 16.9632C46.6087 15.3689 45.0509 15.2193 43.8905 15.2193H41.6848L40.6637 19.8061Z" fill="black"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M23.2249 0.713641C23.2249 0.319643 23.5443 0.000244169 23.9382 0.000244203L47.7181 0.000246282C48.1121 0.000246316 48.4315 0.319645 48.4315 0.713643C48.4315 1.10764 48.1121 1.42704 47.7181 1.42704L23.9382 1.42704C23.5443 1.42704 23.2249 1.10764 23.2249 0.713641Z" fill="black"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M39.2368 38.6028C39.2368 38.2088 39.5562 37.8894 39.9502 37.8894L63.7301 37.8894C64.1241 37.8894 64.4435 38.2088 64.4435 38.6028C64.4435 38.9968 64.1241 39.3162 63.7301 39.3162L39.9502 39.3162C39.5562 39.3162 39.2368 38.9968 39.2368 38.6028Z" fill="black"/>\n </svg>\n </div>\n </div>\n </li>\n </label>',zip_checkout:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="zip_checkout" type="radio" name="radio-group" />\n <svg height="30" viewBox="0 0 768 285" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0)">\n <path d="M19.53 227.27L26.19 281.53H259.36L251.73 219.39H143.01L142.06 211.69L242.19 141.72L235.5 87.3601H2.34998L9.97998 149.49H118.88L119.83 157.26L19.53 227.27Z" fill="black"/>\n <path d="M262.59 87.3601L286.44 281.53H519.78L495.93 87.3601H262.59Z" fill="#AA8FFF"/>\n <path d="M764.47 157.26C759.09 113.62 724.81 87.1701 678.21 87.3601H523L546.84 281.54H616.67L611.89 242.7H685.78C743.93 242.69 770.54 206.46 764.47 157.26ZM678.23 188.26L605.23 188.34L599.51 141.74L672.92 141.8C690.18 142.01 699.01 151.73 700.44 165.03C701.32 173.59 697.4 188.25 678.23 188.25V188.26Z" fill="black"/>\n <path d="M332.303 61.5598C344.584 48.3762 342.443 26.4212 327.522 12.522C312.601 -1.37727 290.549 -1.95741 278.269 11.2262C265.988 24.4098 268.129 46.3647 283.05 60.264C297.971 74.1632 320.023 74.7434 332.303 61.5598Z" fill="black"/>\n </g>\n <defs>\n <clipPath id="clip0">\n <rect width="768" height="285" fill="white"/>\n </clipPath>\n </defs>\n </svg>\n </div>\n </li>\n ',applepay_wallet:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="applepay_wallet" type="radio" name="radio-group" />\n <svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n width="78px" height="32px" viewBox="0 0 512 210.2" xml:space="preserve">\n <path id="XMLID_34_" d="M93.6,27.1C87.6,34.2,78,39.8,68.4,39c-1.2-9.6,3.5-19.8,9-26.1c6-7.3,16.5-12.5,25-12.9\n C103.4,10,99.5,19.8,93.6,27.1 M102.3,40.9c-13.9-0.8-25.8,7.9-32.4,7.9c-6.7,0-16.8-7.5-27.8-7.3c-14.3,0.2-27.6,8.3-34.9,21.2\n c-15,25.8-3.9,64,10.6,85c7.1,10.4,15.6,21.8,26.8,21.4c10.6-0.4,14.8-6.9,27.6-6.9c12.9,0,16.6,6.9,27.8,6.7\n c11.6-0.2,18.9-10.4,26-20.8c8.1-11.8,11.4-23.3,11.6-23.9c-0.2-0.2-22.4-8.7-22.6-34.3c-0.2-21.4,17.5-31.6,18.3-32.2\n C123.3,42.9,107.7,41.3,102.3,40.9 M182.6,11.9v155.9h24.2v-53.3h33.5c30.6,0,52.1-21,52.1-51.4c0-30.4-21.1-51.2-51.3-51.2H182.6z\n M206.8,32.3h27.9c21,0,33,11.2,33,30.9c0,19.7-12,31-33.1,31h-27.8V32.3z M336.6,169c15.2,0,29.3-7.7,35.7-19.9h0.5v18.7h22.4V90.2\n c0-22.5-18-37-45.7-37c-25.7,0-44.7,14.7-45.4,34.9h21.8c1.8-9.6,10.7-15.9,22.9-15.9c14.8,0,23.1,6.9,23.1,19.6v8.6l-30.2,1.8\n c-28.1,1.7-43.3,13.2-43.3,33.2C298.4,155.6,314.1,169,336.6,169z M343.1,150.5c-12.9,0-21.1-6.2-21.1-15.7c0-9.8,7.9-15.5,23-16.4\n l26.9-1.7v8.8C371.9,140.1,359.5,150.5,343.1,150.5z M425.1,210.2c23.6,0,34.7-9,44.4-36.3L512,54.7h-24.6l-28.5,92.1h-0.5\n l-28.5-92.1h-25.3l41,113.5l-2.2,6.9c-3.7,11.7-9.7,16.2-20.4,16.2c-1.9,0-5.6-0.2-7.1-0.4v18.7C417.3,210,423.3,210.2,425.1,210.2z\n "/>\n </svg>\n </div>\n </li>\n </label>',afterpay_wallet:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="afterpay_wallet" type="radio" name="radio-group">\n '.concat(ga(ma),"\n </div>\n </li>\n </label>"),afterpay_checkout:'<label class="payment-source">\n <li class="payment-source">\n <div class="payment-source__wrap">\n <input class="payment-source__radio" pm-button="afterpay_checkout" type="radio" name="radio-group">\n '.concat(ga(ma),"\n </div>\n </li>\n </label>")},ja="applepay_wallet",Ba=["card","afterpay_checkout","applepay_wallet","googlepay_wallet","paypal_wallet","zip_checkout"],za=function(){return o((function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];i(this,e),this.methods=n,this.styles=r,this.chosen=o,this.window=window,this.env=X,a||(this.container=new Li(t),this.iFrame=new Ui(this.container),this.setEnv(s),this.init())}),[{key:"init",value:function(){var e=this;this.setPaymentMethodsOrder(),this.setStylesToStandaloneWidget(),new Promise((function(t,n){var i,r=[],o=s(e.methods);try{for(o.s();!(i=o.n()).done;){var a=i.value;(a!==ja||e.isApplePaySupported())&&r.push(Ha[a])}}catch(e){o.e(e)}finally{o.f()}t(r.join(" "))})).then((function(t){var n=e.setStyles(t);la.show(),e.iFrame.loadFromHtml(n);var i=e.iFrame.getElement(),r=i.contentDocument||i.contentWindow.document;"complete"===r.readyState?(e.setListenerButtons(r),e.iFrame.setIframeHeight(i,r,".wrap")):e.iFrame.getElement().addEventListener("load",(function(t){e.setListenerButtons(r),e.iFrame.setIframeHeight(i,r,".wrap")}))}))}},{key:"setListenerButtons",value:function(e){var t=this,n="";la.hide();var i,r=s(e.querySelectorAll("[pm-button]"));try{for(r.s();!(i=r.n()).done;){i.value.addEventListener("click",(function(e){var i=e.target.getAttribute("pm-button");n===i||t.disablePaymentMethodOptions||(t.chosen(i),n=i,la.show())}))}}catch(e){r.e(e)}finally{r.f()}}},{key:"setEnv",value:function(e){var t=Le.validateJWT(e);if(!t)throw new Error("Invalid instruction token.");return Le.extractEnv(t.body)}},{key:"setStyles",value:function(e){var t,n,i,r,o,s,a="\n<style>\n @import url('https://fonts.cdnfonts.com/css/segoe-ui-4');\n @import url('https://fonts.cdnfonts.com/css/droid-sans-2');\n @import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');\n @import url('https://fonts.googleapis.com/css2?family=Cantarell&family=Fira+Sans&family=Oxygen&family=Roboto&family=Ubuntu&display=swap');\n \n /* RESET DEFAULT STYLES */\n *,\n *:before,\n *:after {\n box-sizing: border-box;\n }\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video,\n input {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n\n body {\n line-height: 1;\n }\n\n ol,\n ul {\n list-style: none;\n }\n\n ul {\n padding: 0;\n margin: 0;\n }\n\n /* MAIN STYLES */\n .wrap {\n padding: 10px;\n background-color: {{background_color}};\n }\n\n .widget-body {\n background-color: #fff;\n border: 1px solid {{border_color}};\n }\n\n .payment-source {\n cursor: pointer;\n padding: 1em 0.8em;\n display: flex;\n align-items: center;\n height: 70px;\n }\n\n .payment-source:not(:last-child) {\n border-bottom: 1px solid {{border_color}};\n }\n\n .payment-source__wrap {\n display: flex;\n align-items: center;\n font-family: {{font_family}};\n font-size: {{font_size}};\n color: {{text_color}}\n }\n\n .payment-source__radio {\n margin-right: 2em;\n width: 18px;\n min-width: 18px;\n height: 18px;\n border: 1px solid {{button_color}};\n border-radius: 50%;\n appearance: none;\n cursor: pointer;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n }\n }\n\n .payment-source__radio::before {\n content: \"\";\n display: block;\n width: 100%;\n height: 100%;\n background-color: #fff;\n border-radius: 50%;\n }\n\n .payment-source__radio:checked::before {\n border: 4px solid {{button_color}};\n outline: 1px solid {{button_color}};\n }\n\n .payment-source__title {\n margin-right: 2em;\n font-weight: 400;\n line-height: 1.2;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n font-size: 14px;\n }\n }\n\n .payment-source__icon {\n margin-right: 2em;\n max-height: 35px;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n }\n }\n\n .payment-source .card__scheme {\n margin-left: auto;\n display: flex;\n align-items: center;\n }\n\n .payment-source .card__scheme__item:not(:last-child) {\n margin-right: 10px;\n }\n\n .payment-source .card__scheme__img {\n max-width: 50px;\n\n @media screen and (max-width: 460px) {\n max-width: 40px;\n }\n\n @media screen and (max-width: 410px) {\n max-width: 30px;\n }\n }\n\n .payment-source__form {\n margin-top: 1em;\n margin-bottom: 1em;\n margin-left: calc(2em + 18px);\n\n @media screen and (max-width: 380px) {\n margin-left: calc(1em + 18px);\n }\n }\n\n .payment-source__form .form-group:not(:last-child) {\n margin-bottom: 1.5em;\n }\n\n .payment-source__form .form-control {\n padding: 10px 2px 10px 10px;\n height: 40px;\n background: #F9F9F9;\n border: 1px solid {{border_color}};\n }\n\n .payment-source__form .form-control:not(:last-child) {\n margin-right: 1.5em;\n }\n\n .payment-source__form .form-control.col-12 {\n width: calc(100% - 1.5em);\n }\n\n .payment-source__form .form-control.col-3 {\n width: calc(33.33% - 1.5em);\n }\n\n .footer__pay-btn {\n margin-left: auto;\n padding: 10px 2em;\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #F6F0EB;\n font-size: 16px;\n background-color: {{button_color}};\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.10);\n border: none;\n border-radius: 6px;\n cursor: pointer;\n }\n\n .footer__pay-btn--paypal {\n padding: 5px 2em;\n background-color: #FFC43A;\n }\n\n .footer__pay-btn--gpay {\n font-size: 22px;\n }\n\n .footer__pay-btn--gpay img {\n margin-left: 5px;\n }\n\n .footer__pay-btn img {\n max-height: 100%;\n }\n</style>\n<main class=\"wrap\">\n <div class=\"widget-body\">\n <ul class=\"payment-sources__list\">\n {{paymentMethods}}\n </ul>\n </div>\n</main>\n</div>\n".replace("{{paymentMethods}}",e),c=null===document||void 0===document?void 0:document.querySelector(hc.LIST);return c&&(c.style.backgroundColor=this.styles.background_color||La.BG_COLOR),a=(null===(t=this.styles)||void 0===t?void 0:t.button_color)?a.replace(/{{button_color}}/g,this.styles.button_color):a.replace(/{{button_color}}/g,La.BTN_COLOR),a=(null===(n=this.styles)||void 0===n?void 0:n.border_color)?a.replace(/{{border_color}}/g,this.styles.border_color):a.replace(/{{border_color}}/g,La.BORDER_COLOR),a=(null===(i=this.styles)||void 0===i?void 0:i.background_color)?a.replace(/{{background_color}}/g,this.styles.background_color):a.replace(/{{background_color}}/g,La.BG_COLOR),a=(null===(r=this.styles)||void 0===r?void 0:r.font_family)?a.replace(/{{font_family}}/g,this.styles.font_family):a.replace(/{{font_family}}/g,La.FONT_FAMILY),a=(null===(o=this.styles)||void 0===o?void 0:o.font_size)?a.replace(/{{font_size}}/g,this.styles.font_size):a.replace(/{{font_size}}/g,La.FONT_SIZE),a=(null===(s=this.styles)||void 0===s?void 0:s.text_color)?a.replace(/{{text_color}}/g,this.styles.text_color):a.replace(/{{text_color}}/g,La.TEXT_COLOR)}},{key:"isApplePaySupported",value:function(){return window.ApplePaySession&&ApplePaySession.canMakePayments()}},{key:"setStylesToStandaloneWidget",value:function(){document.querySelector(hc.WIDGETS).style.backgroundColor=this.styles.background_color||La.BG_COLOR}},{key:"setPaymentMethodsOrder",value:function(){var e;if(!(null===(e=this.methods)||void 0===e?void 0:e.length))return this.methods;this.methods.sort((function(e,t){return Ba.indexOf(e)-Ba.indexOf(t)}))}},{key:"disablePaymentMethod",value:function(){var e;this.disablePaymentMethodOptions=!0;var t=null===document||void 0===document?void 0:document.querySelector("".concat(hc.LIST," iframe")),n=t.contentDocument||(null===(e=null==t?void 0:t.contentWindow)||void 0===e?void 0:e.document);if(n){var i,r=s(this.queryAllPaymentSource(n));try{for(r.s();!(i=r.n()).done;){i.value.style.cursor="not-allowed"}}catch(e){r.e(e)}finally{r.f()}var o,a=s(this.queryAllPaymentSourceRadioButtons(n));try{for(a.s();!(o=a.n()).done;){var c,l=o.value,u=s(this.queryAllPaymentSource(n));try{for(u.s();!(c=u.n()).done;){c.value.style.cursor="not-allowed"}}catch(e){u.e(e)}finally{u.f()}l.style.cursor="not-allowed",l.checked||(l.style.border="9px solid #EBEBE4"),l.disabled=!0,l.classList.add("disabled")}}catch(e){a.e(e)}finally{a.f()}}}},{key:"queryAllPaymentSource",value:function(e){return e.querySelectorAll(".payment-source")}},{key:"queryAllPaymentSourceRadioButtons",value:function(e){return e.querySelectorAll('input[type="radio"].payment-source__radio')}}])}(),Wa=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e,t){var n;new za("",[""],{},(function(){}),e.instruction_token,!0).disablePaymentMethod(),e.next_instruction&&(null===(n=this.checkoutWidget)||void 0===n||n.fetchInstruction()),"expired"===e.payload.status&&(globalThis.expired=!0,la.hide())}},{key:"destroy",value:function(){}}])}(da);Wa=ne([ha("instruction.disable_payment_method_event.emit")],Wa);var Va=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;document.addEventListener(no.NAMESPACE,(function(e){switch(e.detail.type){case no.TYPES.FINTERPRINT_TOKEN_READY:n.api.checkout().callback({event:"callback.fraud_service.status",payload:{status:"success",fraud_service_token:e.detail.payload.token}}).then((function(){return console.info("callback.fraud_service.status: ok")})).catch((function(e){console.error("callback.fraud_service.status: ok",e),la.hide()}));break;case no.TYPES.FINGERPRINT_TOKEN_ERROR:n.api.checkout().callback({event:"callback.fraud_service.status",payload:{status:"error",message:e.detail.payload.code||"error in fraud service widget"}}).then((function(){return console.info("callback.fraud_service.status: ok")})).catch((function(e){la.hide(),console.error("callback.fraud_service.status: error",e)}));break;default:throw new Error("".concat(no.NAMESPACE," emitted an unsupported event: ").concat(JSON.stringify(e.detail),"."))}})),this.fps=new Co({environmentId:this.getEnv(e.instruction_token),mode:"live"}),this.fps.withAccessTokenStrategy(e.instruction_token).withForter({providerId:e.payload.gateway_id,csp:!1}),e.next_instruction&&(null===(t=this.checkoutWidget)||void 0===t||t.fetchInstruction())}},{key:"destroy",value:function(){}}])}(da);Va=ne([ha("instruction.fraud_service.show")],Va);var Ga={TEXT_COLOR:"text_color",FONT_SIZE:"font_size",FONT_FAMILY:"font_family"},qa=function(){return o((function e(t,n,r,o){i(this,e),this.title=n,this.message=r,this.type=o,this.window=window,this.env=X,this.container=new Li(t),this.iFrame=new Ui(this.container),this.link=new Pi("/message-widget"),this.link.setParams({title:n,message:r,type:o}),this.event=new Hi(window)}),[{key:"setEnv",value:function(e){this.link.setEnv(e)}},{key:"setStyles",value:function(e){for(var t in e)e[t]&&(-1!==yo.values(Ga).indexOf(t)?this.link.setParams(a({},t,e[t])):console.warn("Widget::setStyle[s: unsupported style param ".concat(t)))}},{key:"load",value:function(){this.iFrame.load(this.link.getUrl(),{title:"Message widget"})}},{key:"useAutoResize",value:function(){var e=this;this.event.on(Fi.RESIZE,this.link.getParams().widget_id,(function(t){e.iFrame.getElement()&&(e.iFrame.getElement().scrolling="no",t.height&&e.iFrame.setStyle("height",t.height+2+"px"))}))}}])}(),Ya=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n,i,r,o,s,a,c,l,u,d,h,p=this,f=new qa(this.formSelector,null===(t=null==e?void 0:e.payload)||void 0===t?void 0:t.title,null===(n=null==e?void 0:e.payload)||void 0===n?void 0:n.message,null===(i=null==e?void 0:e.payload)||void 0===i?void 0:i.type);f.useAutoResize(),f.setEnv(this.getEnv(e.instruction_token)),f.setStyles({text_color:(null===(s=null===(o=null===(r=null==e?void 0:e.payload)||void 0===r?void 0:r.customisation)||void 0===o?void 0:o.base)||void 0===s?void 0:s.text_color)||La.TEXT_COLOR,font_size:(null===(l=null===(c=null===(a=null==e?void 0:e.payload)||void 0===a?void 0:a.customisation)||void 0===c?void 0:c.base)||void 0===l?void 0:l.font_size)||La.FONT_SIZE,font_family:(null===(h=null===(d=null===(u=null==e?void 0:e.payload)||void 0===u?void 0:u.customisation)||void 0===d?void 0:d.base)||void 0===h?void 0:h.font_family)||La.FONT_FAMILY}),f.load(),setTimeout((function(){var t;la.hide(),e.next_instruction&&(null===(t=p.checkoutWidget)||void 0===t||t.fetchInstruction())}),1500)}},{key:"destroy",value:function(){}}])}(da);Ya=ne([ha("instruction.generic.show_message")],Ya);var Ka=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t=this;this.setStyles(),this.widget=new _s(this.formSelector,null==e?void 0:e.payload.charge_token,null==e?void 0:e.payload.meta),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.load(),la.hide(),this.widget.onPaymentSuccessful((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",message:"The payment was successful"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentError((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.data.message)||"error in google pay widget"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentInReview((function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"in_review",message:"The payment is on fraud review"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"setStyles",value:function(){var e=document.getElementById(this.formSelector.split("#").join(""));e.style.textAlign="right",e.style.display="flex",e.style.justifyContent="right"}}])}(da);Ka=ne([ha("instruction.googlepay_wallet_form.show")],Ka);var Xa=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e,t){var n,i,r=null===(n=null==e?void 0:e.payload)||void 0===n?void 0:n.status,o=null==e?void 0:e.payload;switch(r){case"success":t.emit("paymentSuccessful",o);break;case"failure":t.emit("paymentFailure",o);break;case"expired":t.emit("paymentExpired",o)}null===(i=this.checkoutWidget)||void 0===i||i.finaliseCheckout()}},{key:"destroy",value:function(){}}])}(da);Xa=ne([ha("instruction.merchant_event.emit")],Xa);var $a=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;new za(this.selector,e.payload.allowed_payment_method_types,(null===(t=e.payload.customisation)||void 0===t?void 0:t.base)||{},(function(e){var t;null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.payment_methods.chosen",payload:{payment_method_type:e}}).then((function(e){return console.info("callback.payment_methods.chosen: ok")})).catch((function(e){console.error("callback.payment_methods.chosen: error"),la.hide()}))}),e.instruction_token)}},{key:"destroy",value:function(){}}])}(da);$a=ne([ha("instruction.payment_methods.show")],$a);var Ja=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t=this;this.setStyles(),this.widget=new _s(this.formSelector,null==e?void 0:e.payload.charge_token,null==e?void 0:e.payload.meta),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.load(),la.hide(),this.widget.onPaymentSuccessful((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",message:"The payment was successful"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: success",e)}))})),this.widget.onPaymentError((function(e){var n;null===(n=t.checkoutWidget)||void 0===n||n.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.data.message)||"error in paypal widget"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))})),this.widget.onPaymentInReview((function(){var e;null===(e=t.checkoutWidget)||void 0===e||e.fetchInstruction(),t.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"in_review",message:"The payment is on fraud review"}}).then((function(){return console.info("callback.child_widget.status: ok")})).catch((function(e){return console.error("callback.child_widget.status: error",e)}))}))}},{key:"setStyles",value:function(){var e=document.getElementById(this.formSelector.split("#").join(""));e.style.textAlign="right",e.style.display="flex",e.style.justifyContent="right"}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}}])}(da);Ja=ne([ha("instruction.paypal_wallet_form.show")],Ja);var Za="50px",Qa="320px",ec="10px",tc="pointer",nc="#1A0726",ic="none",rc="zip-checkout-button",oc=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t,[{key:"handle",value:function(e){var t,n=this;this.createWidgetStructure(null===(t=null==e?void 0:e.customisation)||void 0===t?void 0:t.base),this.widget=new $r("#".concat(rc),null==e?void 0:e.instruction_token,null==e?void 0:e.payload.gateway_id),this.widget.setEnv(this.getEnv(e.instruction_token)),this.widget.setMeta(null==e?void 0:e.payload.meta),la.hide(),this.widget.on("finish",(function(e){var t;globalThis.expired||la.show(),null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"success",ott_token:e.payment_source_token}}).then((function(e){return console.info("callback.child_widget.status: ok")})).catch((function(e){console.error("callback.zip_checkout_form.ott_created: error",e),la.hide()}))})),this.widget.on("error",(function(e){var t;globalThis.expired||la.show(),null===(t=n.checkoutWidget)||void 0===t||t.fetchInstruction(),n.api.checkout().callback({event:"callback.child_widget.status",payload:{status:"error",message:(null==e?void 0:e.event)||"error in zip checkout widget"}}).then((function(e){return console.info("callback.child_widget.status: ok")})).catch((function(e){la.hide(),console.error("callback.zip_checkout_form.ott_created: error",e)}))}))}},{key:"destroy",value:function(){document.querySelector(this.formSelector).innerHTML=""}},{key:"createWidgetStructure",value:function(e){var t=document.createElement("button");t.id=rc,t.type="button",t.style.marginLeft="auto";var n=(null==e?void 0:e.height)||Za;t.style.height=n,t.style.width=(null==e?void 0:e.width)||Qa,t.style.borderRadius=(null==e?void 0:e.borderRadius)||ec,t.style.border=ic,t.style.backgroundColor=(null==e?void 0:e.background_color)||nc,t.style.padding="0",t.style.cursor=tc,t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.innerHTML=ga(va).replace("{{iconHeight}}",n);var i=document.createElement("div");i.style.width="100%",i.style.padding="10px",i.style.paddingTop="0";var r=document.getElementById(this.formSelector.split("#").join(""));i.appendChild(t),r.appendChild(i)}}])}(da);oc=ne([ha("instruction.zip_checkout_form.show")],oc);var sc=function(e){function t(){return i(this,t),n(this,t,arguments)}return d(t,e),o(t)}(ua);function ac(e){switch(e){case 1:case 2:return new sc;default:return null}}sc=ne([function(e){return function(t){return function(t){function r(){var t;return i(this,r),(t=n(this,r,arguments)).instructions=e,t}return d(r,t),o(r)}(t)}}([Sa,Ma,Aa,Na,Ua,Fa,Va,Ya,Ka,Xa,$a,Ja,oc,oc,Wa])],sc);var cc,lc="paymentSuccessful",uc="paymentFailure",dc="paymentExpired",hc={LIST:"#list",WIDGETS:"#standaloneWidget"},pc={"max-width":"640px","min-width":"200px",display:"flex",margin:"auto"},fc={"max-width":"640px","min-width":"200px",margin:"auto",position:"relative"},mc=function(){return o((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i(this,e),this.formSelector=t,this.intentToken=n,this.debug=r,this.window=window,this.requestInFlight=!1,this.inTimeoutRange=!1,this.checkoutFinished=!1;try{if(this.eventEmitter=new ir,this.intentTokenPayload=this.extractIntentTokenPayload(n),this.instructions=this.initContractVersion(this.intentTokenPayload.version),this.api=new er(this.intentToken,Ei.TOKEN),this.checkoutApi=new Qi(this.api),this.setEnv(this.intentTokenPayload.env,this.intentTokenPayload.env_alias),this.debug)return;this.createWidgetStructure(),this.setupTimeoutTimer(),this.fetchInstruction(),this.ready()}catch(e){console.error(e.message)}}),[{key:"fetchInstruction",value:function(){var e=this;this.checkoutFinished||(this.requestInFlight=!0,this.checkoutApi.instructions().subscribe({next:function(t){e.isTimeoutInstruction(t)?e.handleTimeoutInstructions(t):(e.handleInstruction(t),e.inTimeoutRange&&!e.requestInFlight&&e.fetchInstruction(),e.requestInFlight=!1)},error:function(e){console.error("Error while listening to instructions:",e)}}))}},{key:"finaliseCheckout",value:function(){this.timeoutTimer&&clearTimeout(this.timeoutTimer),this.checkoutFinished=!0}},{key:"setupTimeoutTimer",value:function(){var e=this;this.timeoutTimer=setTimeout((function(){e.inTimeoutRange=!0,e.fetchInstruction()}),885e3)}},{key:"extractIntentTokenPayload",value:function(e){var t=Le.validateJWT(e);if(!t)throw new Error("Intent token is broken or expired. Please, issue new one.");var n=Le.extractData(t.body);if(!this.validateJWTWhitelistedDomains(n.whitelist_domains))throw new Error("Intent Token is not valid for current domain");if(!(n&&n.intent_id&&n.version&&n.env&&n.env_alias))throw new Error("Inconsistent structure of intent token. Please, be sure that you are using correct token.");return n}},{key:"validateJWTWhitelistedDomains",value:function(e){return!e||e.includes(window.location.hostname)}},{key:"ready",value:function(){this.checkoutApi.status(this.intentTokenPayload.intent_id).then((function(e){if(!(null==e?void 0:e.status))throw new Error("Checkout Intent Status structure inconsistent");if("active"!==e.status)throw new Error("Checkout Intent is not active")})),this.checkoutApi.callback({event:"callback.generic.ready",payload:{platform:"web",sdk_version:this.api.ctx.sdkVersion}}).then((function(){return la.hide()})).catch((function(e){return console.error(e)}))}},{key:"initContractVersion",value:function(e){var t=ac(e);if(!t)throw Error("Specified version of checkout in API, does not supported by this version of SDK");return t}},{key:"isTimeoutInstruction",value:function(e){var t,n;return"expired"===(null===(t=e.payload)||void 0===t?void 0:t.status)||"Session expired"===(null===(n=e.payload)||void 0===n?void 0:n.title)}},{key:"handleInstruction",value:function(e){var t;null===(t=this.currentInstruction)||void 0===t||t.destroy(),this.currentInstruction=this.getInstructionFromResponse(e),this.currentInstruction.handle(this.extractInstructionPayloadFromResponse(e),this.eventEmitter)}},{key:"handleTimeoutInstructions",value:function(e){this.getInstructionFromResponse(e).handle(this.extractInstructionPayloadFromResponse(e),this.eventEmitter)}},{key:"getInstructionFromResponse",value:function(e){if(!(null==e?void 0:e.event))throw new Error("Instruction structure inconsistent");var t=this.instructions.getInstruction(e.event);if(!t)throw new Error("Unsupported instruction");return new t(hc.LIST,hc.WIDGETS,this.api,this)}},{key:"extractInstructionPayloadFromResponse",value:function(e){return e&&(null==e?void 0:e.instruction_token)?e:c(c({},e),{instruction_token:this.intentToken})}},{key:"setEnv",value:function(e,t){this.api.setEnv(e,t)}},{key:"onPaymentSuccessful",value:function(e){return this.eventEmitter.subscribe(lc,e)}},{key:"onPaymentFailure",value:function(e){return this.eventEmitter.subscribe(uc,e)}},{key:"onPaymentExpired",value:function(e){return this.eventEmitter.subscribe(dc,e)}},{key:"createWidgetStructure",value:function(){var e=document.createElement("div");e.setAttribute("id",hc.LIST.split("#").join("")),this.setStyles(e,pc);var t=document.createElement("div");t.setAttribute("id",hc.WIDGETS.split("#").join("")),this.setStyles(t,pc),document.getElementById(this.formSelector.split("#").join(""))||console.error("Element with selector",this.formSelector,"not found");var n=document.getElementById(this.formSelector.split("#").join(""));this.setStyles(n,fc),n.innerHTML="\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 200px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget button {\n width: 100% !important;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .paypal-buttons {\n margin: 0 10px 10px 10px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 10px;\n max-width: 320px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .gpay-card-info-container-fill {\n margin: 0 10px 5px 10px;\n }\n }\n \n apple-pay-button {\n padding: 0 10px 20px;\n max-width: 320px;\n }\n \n @media screen and (max-width: 450px) {\n apple-pay-button {\n max-width: 100%;\n }\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n",n.appendChild(e),n.appendChild(t)}},{key:"setStyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])}}])}(),vc=o((function e(t,n,r,o,s){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"test";i(this,e);var c=ac(r),l=null==c?void 0:c.getInstruction(o);if(!l)throw new Error("unsupported instruction");new l(t,n,new er(a,Ei.TOKEN)).handle(s)}));!function(e){e.UNAVAILABLE="unavailable",e.ERROR="error",e.PAYMENT_SUCCESSFUL="paymentSuccessful",e.PAYMENT_ERROR="paymentError",e.PAYMENT_IN_REVIEW="paymentInReview",e.ON_CLICK="onClick",e.ON_CHECKOUT_CLOSE="onCheckoutClose",e.ON_SHIPPING_ADDRESS_CHANGE="onShippingAddressChange",e.ON_SHIPPING_OPTIONS_CHANGE="onShippingOptionsChange"}(cc||(cc={}));var gc,Cc=function(){return o((function e(t,n,r,o,s){i(this,e),this.env=X,this.onShippingOptionsChangeHandlerRegistered=!1,this.eventEmitter=new ir,this.container=new Li(t),this.api=new er(n,this.getApiAuthType(n)),this.gatewayId=r,this.meta=o,this.validateRequiredMetaFields(s)}),[{key:"getApiAuthType",value:function(e){return Le.validateJWT(e)?Ei.TOKEN:Ei.PUBLIC_KEY}},{key:"setEnv",value:function(e,t){this.env=e,this.api.setEnv(e,t)}},{key:"onClick",value:function(e){if("function"==typeof e)return this.eventEmitter.subscribe(cc.ON_CLICK,e);this.handleOnError(new Error("onClick event handler is required to return the wallet token string."))}},{key:"onPaymentSuccessful",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(cc.PAYMENT_SUCCESSFUL,e):new Promise((function(e){return t.eventEmitter.subscribe(cc.PAYMENT_SUCCESSFUL,(function(t){return e(t)}))}))}},{key:"onPaymentInReview",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(cc.PAYMENT_IN_REVIEW,e):new Promise((function(e){return t.eventEmitter.subscribe(cc.PAYMENT_IN_REVIEW,(function(t){return e(t)}))}))}},{key:"onPaymentError",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(cc.PAYMENT_ERROR,e):new Promise((function(e){return t.eventEmitter.subscribe(cc.PAYMENT_ERROR,(function(t){return e(t)}))}))}},{key:"onCheckoutClose",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(cc.ON_CHECKOUT_CLOSE,e):new Promise((function(e){return t.eventEmitter.subscribe(cc.ON_CHECKOUT_CLOSE,(function(t){return e(t)}))}))}},{key:"onShippingAddressChange",value:function(e){if("function"==typeof e)return this.eventEmitter.subscribe(cc.ON_SHIPPING_ADDRESS_CHANGE,e);this.handleOnError(new Error("onShippingAddressChange event handler is required to return the wallet token string or reject."))}},{key:"onShippingOptionsChange",value:function(e){if("function"==typeof e)return this.onShippingOptionsChangeHandlerRegistered=!0,this.eventEmitter.subscribe(cc.ON_SHIPPING_OPTIONS_CHANGE,e);this.handleOnError(new Error("onShippingOptionsChange event handler is required to return the wallet token string or reject."))}},{key:"onUnavailable",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(cc.UNAVAILABLE,e):new Promise((function(e){return t.eventEmitter.subscribe(cc.UNAVAILABLE,(function(t){return e(t)}))}))}},{key:"onError",value:function(e){var t=this;return"function"==typeof e?this.eventEmitter.subscribe(cc.ERROR,e):new Promise((function(e){return t.eventEmitter.subscribe(cc.ERROR,(function(t){return e(t)}))}))}},{key:"getGatewayWalletConfig",value:function(){var e=this,t="gatewayConfig-".concat(this.gatewayId),n=localStorage.getItem(t);return new Promise((function(i,r){if(n){var o=JSON.parse(atob(n)),s=o.data,a=o.timestamp;if(Date.now()-a<864e5)return i(JSON.parse(s))}e.api.gateway().getWalletConfig(e.gatewayId).then((function(e){var n=btoa(JSON.stringify({data:JSON.stringify(e),timestamp:Date.now()}));return localStorage.setItem(t,n),i(e)})).catch(r)}))}},{key:"executeWalletCallback",value:function(e){var t=this;return this.api.charge().walletCallback(e).catch((function(e){var n;throw t.eventEmitter.emit(cc.PAYMENT_ERROR,{event:cc.PAYMENT_ERROR,chargeId:null===(n=t.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:t.eventDataFromApiError(e)}),t.handleOnError(e),e}))}},{key:"executeWalletCapture",value:function(e){var t=this;return this.api.charge().walletCapture(e).then((function(e){var n,i="inreview"===e.status?cc.PAYMENT_IN_REVIEW:cc.PAYMENT_SUCCESSFUL;return t.eventEmitter.emit(i,{event:i,chargeId:null===(n=t.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:e}),e})).catch((function(e){var n;throw t.eventEmitter.emit(cc.PAYMENT_ERROR,{event:cc.PAYMENT_ERROR,chargeId:null===(n=t.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:t.eventDataFromApiError(e)}),e}))}},{key:"handleMerchantOnExpressButtonClickEvent",value:function(){var e=this;return this.eventEmitter.emitWithResult(cc.ON_CLICK,{event:cc.ON_CLICK}).then((function(t){var n;if(!t||0===t.length){var i=new Error("No result from onClick event");throw e.handleOnError(i),i}var r=t[0];if(e.setWalletToken(r),e.chargeWalletTokenMeta.charge.amount!==e.meta.amount){var o=new Error("Wallet meta amount (".concat(e.chargeWalletTokenMeta.charge.amount,") and charge amount (").concat(e.meta.amount,') do not match. Consider using "setMeta" SDK method to update the amount.'));throw e.handleOnError(o),o}if(e.chargeWalletTokenMeta.charge.currency!==e.meta.currency){var s=new Error("Wallet meta currency (".concat(e.chargeWalletTokenMeta.charge.currency,") and charge currency (").concat(e.meta.currency,') do not match. Consider using "setMeta" SDK method to update the currency.'));throw e.handleOnError(s),s}if((null===(n=e.chargeWalletTokenMeta.charge.shipping)||void 0===n?void 0:n.options)&&e.chargeWalletTokenMeta.charge.shipping.options.length>0&&!e.onShippingOptionsChangeHandlerRegistered){var a=new Error('There is no event handler registered for shipping options change. Consider using "onShippingOptionsChange" SDK method to register the event handler.');throw e.handleOnError(a),a}}))}},{key:"handleMerchantOnShippingChangedEvent",value:function(e){return ie(this,void 0,void 0,p().mark((function t(){var n=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.eventEmitter.emitWithResult(e.event,e).then((function(e){if(!e||0===e.length){var t=new Error("No result from shippingUpdate event");throw n.handleOnError(t),t}var i=e[0];return i.token&&n.setWalletToken(i.token,{skipApiAuth:!0}),i})));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"setWalletToken",value:function(e,t){var n=Le.validateJWT(e);return n?(this.chargeWalletTokenMeta=Le.extractMeta(n.body),this.chargeWalletTokenMeta?void(!0!==(null==t?void 0:t.skipApiAuth)&&(this.api.auth=e,this.api.authType=Ei.TOKEN)):this.handleOnError(new Error("Invalid charge token"))):this.handleOnError(new Error("Invalid charge token"))}},{key:"handleCheckoutClose",value:function(){var e,t=null===(e=this.chargeWalletTokenMeta)||void 0===e?void 0:e.charge.id;this.eventEmitter.emit(cc.ON_CHECKOUT_CLOSE,c({event:cc.ON_CHECKOUT_CLOSE},t&&{chargeId:t}))}},{key:"handleOnUnavailable",value:function(){this.eventEmitter.emit(cc.UNAVAILABLE,{event:cc.UNAVAILABLE})}},{key:"handleOnError",value:function(e){var t;e&&console.error(e);var n=null===(t=this.chargeWalletTokenMeta)||void 0===t?void 0:t.charge.id;this.eventEmitter.emit(cc.ERROR,c(c({event:cc.ERROR},n&&{chargeId:n}),{data:e}))}},{key:"eventDataFromApiError",value:function(e){var t,n,i,r;return{message:(null===(t=null==e?void 0:e.error)||void 0===t?void 0:t.message)||(null==e?void 0:e.message)||(null===(n=null==e?void 0:e.error_summary)||void 0===n?void 0:n.message),code:(null===(i=null==e?void 0:e.error)||void 0===i?void 0:i.code)||(null==e?void 0:e.code)||(null===(r=null==e?void 0:e.error_summary)||void 0===r?void 0:r.code)}}},{key:"validateRequiredMetaFields",value:function(e){var t=this;if(!this.meta)throw new Error("Meta is required");if("number"!=typeof this.meta.amount)throw new Error("meta.amount needs to be numeric");if("string"!=typeof this.meta.currency)throw new Error("meta.amount needs to be a string");e.forEach((function(e){var n,i=e.split("."),r=t.meta,o=s(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(void 0===r[a]||null===r[a])throw new Error("Meta field ".concat(e," is required"));r=r[a]}}catch(e){o.e(e)}finally{o.f()}}))}}])}();!function(e){e.AVAILABLE="available",e.STORE_PICKUP="store_pickup"}(gc||(gc={}));var yc,bc,Ec=["paymentCredentialsAvailable"],wc=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r,o,s,["amount_label","country"]])).onApplePayButtonClicked=function(){a.paymentSession=new ApplePaySession(14,a.createRequest()),a.paymentSession.onvalidatemerchant=a.onValidateMerchant,a.paymentSession.onpaymentauthorized=a.onPaymentAuthorized,a.paymentSession.oncancel=a.onCancelPayment,a.paymentSession.onshippingmethodselected=a.onApplePayShippingMethodUpdate,a.paymentSession.onshippingcontactselected=a.onApplePayShippingContactUpdate,a.paymentSession.begin()},a.onValidateMerchant=function(e){a.handleMerchantOnExpressButtonClickEvent().then((function(){a.getMerchantSession().then((function(e){a.paymentSession.completeMerchantValidation(e)})).catch((function(){a.paymentSession.abort(),a.handleCheckoutClose()}))})).catch((function(){a.paymentSession.abort(),a.handleCheckoutClose()}))},a.onPaymentAuthorized=function(e){var t=e.payment,n=t.token,i=t.billingContact,r=t.shippingContact;a.executeWalletCapture({customer:{first_name:null==i?void 0:i.givenName,last_name:null==i?void 0:i.familyName,email:(null==i?void 0:i.emailAddress)||(null==r?void 0:r.emailAddress),phone:(null==i?void 0:i.phoneNumber)||(null==r?void 0:r.phoneNumber),payment_source:{wallet_type:lr.APPLE,address_line1:null==i?void 0:i.addressLines[0],address_line2:null==i?void 0:i.addressLines[1],address_country:null==i?void 0:i.countryCode,address_city:null==i?void 0:i.locality,address_postcode:null==i?void 0:i.postalCode,address_state:null==i?void 0:i.administrativeArea,ref_token:n.paymentData?JSON.stringify(n.paymentData):"",wallet_express:!0}}}).then((function(){a.paymentSession.completePayment(ApplePaySession.STATUS_SUCCESS)})).catch((function(){a.paymentSession.completePayment(ApplePaySession.STATUS_FAILURE)}))},a.onCancelPayment=function(){return a.handleCheckoutClose()},a.onApplePayShippingContactUpdate=function(e){return ie(a,void 0,void 0,p().mark((function t(){var n,i=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.handleMerchantOnShippingChangedEvent({event:cc.ON_SHIPPING_ADDRESS_CHANGE,chargeId:null===(n=this.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:this.parseShippingContactUpdateEvent(e)}).then((function(e){var t,n,r,o,s,a,c=[],l=[];(null===(r=null===(n=null===(t=i.chargeWalletTokenMeta.charge)||void 0===t?void 0:t.shipping)||void 0===n?void 0:n.options)||void 0===r?void 0:r.length)>0&&(l=i.parseShippingMethod(i.chargeWalletTokenMeta.charge.shipping.options)),(null===(o=e.error)||void 0===o?void 0:o.code)&&(c=[i.formatErrorFields(e.error)]),i.paymentSession.completeShippingContactSelection({newTotal:{label:i.meta.amount_label,amount:String(null!==(a=null===(s=i.chargeWalletTokenMeta.charge.shipping)||void 0===s?void 0:s.amount)&&void 0!==a?a:i.chargeWalletTokenMeta.charge.amount)},newShippingMethods:l,errors:c})})));case 1:case"end":return t.stop()}}),t,this)})))},a.onApplePayShippingMethodUpdate=function(e){return ie(a,void 0,void 0,p().mark((function t(){var n,i=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.handleMerchantOnShippingChangedEvent({event:cc.ON_SHIPPING_OPTIONS_CHANGE,chargeId:null===(n=this.chargeWalletTokenMeta)||void 0===n?void 0:n.charge.id,data:this.parseShippingMethodUpdateEvent(e)}).then((function(e){var t,n;i.paymentSession.completeShippingMethodSelection({newTotal:{label:i.meta.amount_label,amount:String(null!==(n=null===(t=i.chargeWalletTokenMeta.charge.shipping)||void 0===t?void 0:t.amount)&&void 0!==n?n:i.chargeWalletTokenMeta.charge.amount)}})})));case 1:case"end":return t.stop()}}),t,this)})))},a}return d(t,e),o(t,[{key:"load",value:function(){var e=this;if(!window.Promise)return this.handleOnUnavailable();if(null===customElements||void 0===customElements?void 0:customElements.get("apple-pay-button"))return this.onScriptLoaded();var t=document.createElement("script");t.src="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",t.type="text/javascript",t.crossOrigin="anonymous",t.onload=function(){e.onScriptLoaded()},t.onerror=function(t){console.error("ApplePayWalletButtonExpress: Error loading ApplePay script",t),e.handleOnUnavailable()},document.head.appendChild(t)}},{key:"onScriptLoaded",value:function(){var e=this;this.getGatewayWalletConfig().then((function(t){if(!(t&&"MasterCard"===t.type&&t.credentials&&t.credentials.apple&&t.credentials.apple.merchant))throw new Error("Invalid configuration");return e.checkAvailability(t)})).then((function(t){return t?e.mount():e.handleOnUnavailable()})).catch((function(t){t&&e.handleOnError(t),e.handleOnUnavailable()}))}},{key:"setMeta",value:function(e){this.meta=e}},{key:"checkAvailability",value:function(e){var t=this;return new Promise((function(n,i){var r;window.ApplePaySession&&ApplePaySession||n(!1);var o=Ec;(null===(r=t.meta.apple_pay_capabilities)||void 0===r?void 0:r.length)>0&&(o=t.formatCapabilities(t.meta.apple_pay_capabilities)),ApplePaySession.applePayCapabilities(e.credentials[lr.APPLE].merchant).then((function(e){var t=o.includes(null==e?void 0:e.paymentCredentialStatus);n(t)})).catch((function(e){return n(!1)}))}))}},{key:"mount",value:function(){var e,t,n=document.createElement("style");n.innerHTML="\n apple-pay-button {\n display: inline-block;\n --apple-pay-button-width: 100%;\n --apple-pay-button-height: 40px;\n --apple-pay-button-border-radius: 5px;\n --apple-pay-button-padding: 5px 0px;\n }\n ",document.head.appendChild(n);var i=this.container.getElement(),r="".concat((null===(e=this.meta.style)||void 0===e?void 0:e.button_style)||"black"),o="".concat((null===(t=this.meta.style)||void 0===t?void 0:t.button_type)||"plain");i.innerHTML='<apple-pay-button buttonstyle="'.concat(r,'" type="').concat(o,'" tabindex="0"></apple-pay-button>');var s=i.querySelector("apple-pay-button");if(!s)return console.error("ApplePayWalletButtonExpress: Query selector does not found <apple-pay-button> element"),void this.handleOnUnavailable();s.addEventListener("click",this.onApplePayButtonClicked.bind(this))}},{key:"createRequest",value:function(){var e,t,n,i,r;return this.meta.shipping_editing_mode&&(r=this.meta.shipping_editing_mode===gc.AVAILABLE?"available":"storePickup"),c(c({countryCode:this.meta.country,currencyCode:this.meta.currency,merchantCapabilities:this.meta.merchant_capabilities||["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:this.meta.supported_networks||["visa","masterCard","amex","discover"],requiredBillingContactFields:this.meta.required_billing_contact_fields||["email","name","phone","postalAddress"],requiredShippingContactFields:this.meta.required_shipping_contact_fields,supportedCountries:this.meta.supported_countries,total:{label:this.meta.amount_label,amount:null===(e=this.meta.amount)||void 0===e?void 0:e.toFixed(2),type:"final"}},r&&{shippingContactEditingMode:r}),{shippingContact:this.parseShippingContact(),shippingMethods:this.parseShippingMethod(null===(i=null===(n=null===(t=this.chargeWalletTokenMeta)||void 0===t?void 0:t.charge)||void 0===n?void 0:n.shipping)||void 0===i?void 0:i.options)})}},{key:"getMerchantSession",value:function(){return this.executeWalletCallback({request_type:"CREATE_SESSION",wallet_type:lr.APPLE,session_id:window.location.hostname})}},{key:"formatCapabilities",value:function(e){var t={credentials_available:"paymentCredentialsAvailable",credentials_status_unknown:"paymentCredentialStatusUnknown",credentials_unavailable:"paymentCredentialsUnavailable"};return e.map((function(e){return t[e]||e}))}},{key:"parseShippingContact",value:function(){var e,t,n,i,r;return(null===(t=null===(e=this.chargeWalletTokenMeta)||void 0===e?void 0:e.charge)||void 0===t?void 0:t.shipping)?c(c({},(null===(r=null===(i=null===(n=this.chargeWalletTokenMeta)||void 0===n?void 0:n.charge)||void 0===i?void 0:i.shipping)||void 0===r?void 0:r.contact)&&{phoneNumber:this.chargeWalletTokenMeta.charge.shipping.contact.phone,emailAddress:this.chargeWalletTokenMeta.charge.shipping.contact.email,givenName:this.chargeWalletTokenMeta.charge.shipping.contact.first_name,familyName:this.chargeWalletTokenMeta.charge.shipping.contact.last_name}),{addressLines:[this.chargeWalletTokenMeta.charge.shipping.address_line1,this.chargeWalletTokenMeta.charge.shipping.address_line2,this.chargeWalletTokenMeta.charge.shipping.address_line3].filter(Boolean),locality:this.chargeWalletTokenMeta.charge.shipping.address_city,postalCode:this.chargeWalletTokenMeta.charge.shipping.address_postcode,administrativeArea:this.chargeWalletTokenMeta.charge.shipping.address_state,country:this.chargeWalletTokenMeta.charge.shipping.address_country,countryCode:this.chargeWalletTokenMeta.charge.shipping.address_country}):{}}},{key:"parseShippingMethod",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return{label:e.label,detail:e.detail,amount:e.amount,identifier:e.id}}))}},{key:"parseShippingMethodUpdateEvent",value:function(e){return{shipping_option_id:e.shippingMethod.identifier,label:e.shippingMethod.label,detail:e.shippingMethod.detail,amount:e.shippingMethod.amount}}},{key:"parseShippingContactUpdateEvent",value:function(e){var t,n,i,r,o,s,a,l,u,d,h,p,f,m,v,g,C,y,b,E,w,_;return c(c(c({contact:{phone:null!==(o=null===(r=null===(i=null===(n=null===(t=this.chargeWalletTokenMeta)||void 0===t?void 0:t.charge)||void 0===n?void 0:n.shipping)||void 0===i?void 0:i.contact)||void 0===r?void 0:r.phone)&&void 0!==o?o:e.shippingContact.phoneNumber,email:null!==(d=null===(u=null===(l=null===(a=null===(s=this.chargeWalletTokenMeta)||void 0===s?void 0:s.charge)||void 0===a?void 0:a.shipping)||void 0===l?void 0:l.contact)||void 0===u?void 0:u.email)&&void 0!==d?d:e.shippingContact.emailAddress,first_name:null!==(v=null===(m=null===(f=null===(p=null===(h=this.chargeWalletTokenMeta)||void 0===h?void 0:h.charge)||void 0===p?void 0:p.shipping)||void 0===f?void 0:f.contact)||void 0===m?void 0:m.first_name)&&void 0!==v?v:e.shippingContact.givenName,last_name:null!==(E=null===(b=null===(y=null===(C=null===(g=this.chargeWalletTokenMeta)||void 0===g?void 0:g.charge)||void 0===C?void 0:C.shipping)||void 0===y?void 0:y.contact)||void 0===b?void 0:b.last_name)&&void 0!==E?E:e.shippingContact.familyName}},(null===(w=e.shippingContact.addressLines)||void 0===w?void 0:w[0])&&{address_line1:e.shippingContact.addressLines[0]}),(null===(_=e.shippingContact.addressLines)||void 0===_?void 0:_[1])&&{address_line2:e.shippingContact.addressLines[1]}),{address_city:e.shippingContact.locality,address_postcode:e.shippingContact.postalCode,address_state:e.shippingContact.administrativeArea,address_country:e.shippingContact.countryCode})}},{key:"formatErrorFields",value:function(e){var t={phone:"phoneNumber",email:"emailAddress",phonetic_name:"phoneticName",address_lines:"addressLines",address_city:"locality",address_postcode:"postalCode",address_state:"administrativeArea",address_country:"country",address_country_code:"countryCode"}[e.field]||e.field,n={address_error:"addressUnserviceable",shipping_contact_invalid:"shippingContactInvalid",billing_contact_invalid:"billingContactInvalid"}[e.code]||"unknown";return new ApplePayError(n,t,e.message)}}])}(Cc),_c=function(e){function t(e,r,o,s){var a;return i(this,t),(a=n(this,t,[e,r,o,s,[]])).shippingRequested=!1,a}return d(t,e),o(t,[{key:"load",value:function(){var e=this;if(!window.Promise)return this.handleOnUnavailable();this.getGatewayWalletConfig().then((function(t){if(!t||"Paypal"!==t.type||!t.credentials||!t.credentials.client_auth)throw new Error("Invalid configuration");e.config=t,e.renderPaypalButton()})).catch((function(t){t&&e.handleOnError(t),e.handleOnUnavailable()}))}},{key:"setMeta",value:function(e){this.meta=e,this.renderPaypalButton()}},{key:"renderPaypalButton",value:function(){!0===this.meta.standalone?this.renderPaypalStandaloneComponent():this.renderPaypalCommonComponent()}},{key:"renderPaypalCommonComponent",value:function(){var e,t,n=this,i=(null===(e=this.container.getElement())||void 0===e?void 0:e.id)||"",r=document.createElement("script");r.src="https://www.paypal.com/sdk/js?client-id=".concat(null===(t=this.config.credentials)||void 0===t?void 0:t.client_auth,"¤cy=").concat(this.meta.currency).concat(!0===this.meta.pay_later?"&enable-funding=paylater&disable-funding=card":"&disable-funding=credit,card").concat(this.meta.capture?"":"&intent=authorize"),r.async=!0,r.onload=function(){window.paypal?(n.paypal=window.paypal,n.paypal.Buttons(c({},n.paypalSharedProps())).render("#".concat(i))):n.handleOnUnavailable()},document.head.appendChild(r)}},{key:"renderPaypalStandaloneComponent",value:function(){var e,t,n,i=this,r=(null===(e=this.container.getElement())||void 0===e?void 0:e.id)||"",o=document.createElement("script");o.src="https://www.paypal.com/sdk/js?client-id=".concat(null===(t=this.config.credentials)||void 0===t?void 0:t.client_auth,"¤cy=").concat(this.meta.currency,"&components=buttons,funding-eligibility,messages&enable-funding=paylater").concat(this.meta.capture?"":"&intent=authorize").concat("live"===(null===(n=this.config)||void 0===n?void 0:n.mode)?"":"&buyer-country=AU"),o.async=!0,o.onload=function(){var e;if(window.paypal){i.paypal=window.paypal;var t=!!i.meta.pay_later,n=i.paypal.Buttons(c({fundingSource:t?i.paypal.FUNDING.PAYLATER:i.paypal.FUNDING.PAYPAL},i.paypalSharedProps()));if(n.isEligible()){if(n.render("#".concat(r)),t&&!i.meta.hide_message)i.paypal.Messages(c({amount:i.meta.amount,currency:i.meta.currency,placement:"payment"},(null===(e=i.meta.style)||void 0===e?void 0:e.messages)&&{style:i.meta.style.messages})).render("#".concat(r))}else i.handleOnUnavailable()}else i.handleOnUnavailable()},document.head.appendChild(o)}},{key:"paypalSharedProps",value:function(){var e=this;return c(c({},this.meta.style&&{style:this.meta.style}),{onClick:function(t,n){return e.handleMerchantOnExpressButtonClickEvent().then((function(){return n.resolve()})).catch((function(){return e.handleCheckoutClose(),n.reject()}))},createOrder:function(){return new Promise((function(t,n){var i,r;if(!e.api.auth)return n(new Error("Wallet Token not injected. Please handle onClick correctly."));var o=null===(r=null===(i=e.chargeWalletTokenMeta)||void 0===i?void 0:i.charge)||void 0===r?void 0:r.shipping;if(o){var s=["address_line1","address_city","address_country","address_state","address_postcode"].every((function(e){return Boolean(o[e])}));e.shippingRequested=!s}return e.executeWalletCallback({request_type:"CREATE_TRANSACTION",request_shipping:e.shippingRequested}).then((function(e){t(e.id)})).catch((function(e){n(e)}))}))},onApprove:function(t){return e.pendingApprovalPromise||(e.pendingApprovalPromise=e.executeWalletCapture({payment_method_id:t.orderID,customer:{payment_source:{external_payer_id:t.payerID,wallet_express:!0}}}).finally((function(){e.pendingApprovalPromise=void 0}))),e.pendingApprovalPromise},onCancel:function(){return e.handleCheckoutClose()},onError:function(){},onShippingAddressChange:function(t,n){return e.handleShippingAddressUpdate(t,n)},onShippingOptionsChange:function(t,n){return e.handleShippingOptionsUpdate(t,n)}})}},{key:"handleShippingAddressUpdate",value:function(e,t){return ie(this,void 0,void 0,p().mark((function n(){var i;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.shippingRequested){n.next=2;break}return n.abrupt("return");case 2:return n.abrupt("return",this.handleMerchantOnShippingChangedEvent({event:cc.ON_SHIPPING_ADDRESS_CHANGE,chargeId:null===(i=this.chargeWalletTokenMeta)||void 0===i?void 0:i.charge.id,data:{address_city:e.shippingAddress.city,address_state:e.shippingAddress.state,address_postcode:e.shippingAddress.postalCode,address_country:e.shippingAddress.countryCode}}).then((function(n){var i;if(null===(i=n.error)||void 0===i?void 0:i.code){var r=n.error.code.toUpperCase(),o=e.errors[r];return o?t.reject(o):t.reject()}})).catch((function(e){return t.reject(e)})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"handleShippingOptionsUpdate",value:function(e,t){return ie(this,void 0,void 0,p().mark((function n(){var i;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.handleMerchantOnShippingChangedEvent({event:cc.ON_SHIPPING_OPTIONS_CHANGE,chargeId:null===(i=this.chargeWalletTokenMeta)||void 0===i?void 0:i.charge.id,data:{shipping_option_id:e.selectedShippingOption.id,amount:e.selectedShippingOption.amount.value}}).then((function(n){var i;if(null===(i=n.error)||void 0===i?void 0:i.code){var r=n.error.code.toUpperCase(),o=e.errors[r];return o?t.reject(o):t.reject()}})).catch((function(e){return t.reject(e)})));case 1:case"end":return n.stop()}}),n,this)})))}}])}(Cc);!function(e){e.ON_ERROR="ON_ERROR"}(yc||(yc={})),function(e){e.PROMISE_NOT_ENABLED="promise_not_enabled",e.SCRIPT_ERROR="script_error"}(bc||(bc={}));var kc,Sc,Tc=function(){function e(t,n,r){i(this,e),this.eventEmitter=t,this.flowId=n,this.config=r}return o(e,[{key:"collectDeviceData",value:function(){return window.Promise||this.eventEmitter.emit(yc.ON_ERROR,{error_code:bc.PROMISE_NOT_ENABLED}),this.correlationId=Ii.generate().replace(/-/g,""),this.appendPaypalSavePaymentSourceComponent()}},{key:"appendPaypalSavePaymentSourceComponent",value:function(){var e,t=this,n=document.createElement("script");n.type="application/json",n.setAttribute("fncls","fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99");var i=c(c({f:this.correlationId,s:this.flowId?this.flowId:Ii.generate(),cb1:"paydockPayPalDataCollectorServiceCallbackPostOne",cb2:"paydockPayPalDataCollectorServiceCallbackPostTwo"},this.isSandbox&&{sandbox:this.isSandbox}),(null===(e=this.config)||void 0===e?void 0:e.mouse_movement)&&{mm:this.config.mouse_movement});n.textContent=JSON.stringify(i,null,4);var r=document.createElement("script");return r.type="text/javascript",r.src="https://c.paypal.com/da/r/fb.js",r.onerror=function(){return t.onError()},document.body.appendChild(n),document.body.appendChild(r),this.setupCallbacks()}},{key:"setupCallbacks",value:function(){var e=this;return new Promise((function(t,n){var i=new Promise((function(e){window.paydockPayPalDataCollectorServiceCallbackPostOne=function(){e()}})),r=new Promise((function(e){window.paydockPayPalDataCollectorServiceCallbackPostTwo=function(){e()}}));Promise.all([i,r]).then((function(){t({correlation_id:e.correlationId})})).catch(n)}))}},{key:"onError",value:function(){this.eventEmitter.emit(yc.ON_ERROR,{error_code:bc.SCRIPT_ERROR})}},{key:"setEnv",value:function(e){this.isSandbox="live"!==e}}],[{key:"fromConfig",value:function(t,n,i){return new e(t,n,i)}}])}(),Mc=function(){return o((function e(t,n){i(this,e),this.eventEmitter=new ir,this.service=Tc.fromConfig(this.eventEmitter,t,n)}),[{key:"collectDeviceData",value:function(){try{return this.service.collectDeviceData()}catch(e){throw this.eventEmitter.emit(yc.ON_ERROR,null),e}}},{key:"onError",value:function(e){return this.eventEmitter.subscribe(yc.ON_ERROR,e)}},{key:"setEnv",value:function(e){this.service.setEnv(e)}}])}(),Ac="ON_SUCCESS",Nc="ON_ERROR",Oc="ON_CANCEL";!function(e){e.UNAVAILABLE="unavailable",e.ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR="onPaypalVaultSetupTokenError",e.ON_GET_ID_TOKEN_ERROR="onGetIdTokenError",e.ON_GET_WALLET_CONFIG_ERROR="onGetWalletConfigError",e.ON_GET_SETUP_TOKEN_ERROR="onGetSetupTokenError",e.ON_ONE_TIME_TOKEN_ERROR="onOneTimeTokenError"}(kc||(kc={})),function(e){e.ON_SUCCESS="ON_SUCCESS",e.ON_ERROR="ON_ERROR",e.ON_CANCEL="ON_CANCEL"}(Sc||(Sc={}));var Ic=function(){function e(t,n,r,o){i(this,e),this.publicKey=t,this.gatewayId=n,this.eventEmitter=r,this.config=o,this.api=new er(t,this.getApiAuthType(t))}return o(e,[{key:"getApiAuthType",value:function(e){return Le.validateJWT(e)?Ei.TOKEN:Ei.PUBLIC_KEY}},{key:"setEnv",value:function(e,t){this.api.setEnv(e,t)}},{key:"load",value:function(e){var t=this;window.Promise||this.eventEmitter.emit(Nc,{error_code:kc.UNAVAILABLE}),Promise.all([this.getWalletConfig(),this.getIdToken()]).then((function(){return t.renderPaypalSavePaymentSourceComponent(e)})).catch((function(e){throw e}))}},{key:"renderPaypalSavePaymentSourceComponent",value:function(e){var t,n=this,i=(null===(t=e.getElement())||void 0===t?void 0:t.id)||"",r=document.createElement("script");r.src="https://www.paypal.com/sdk/js?client-id=".concat(this.getClientAuthFromWalletConfig()),r.setAttribute("data-user-id-token",this.idToken),r.async=!0,r.onload=function(){if(window.paypal){n.paypal=window.paypal;var e=n.paypal.Buttons(c(c({createVaultSetupToken:function(){return n.getSetupToken()},onApprove:function(e){var t=e.vaultSetupToken;n.onObtainedVaultSetupToken(t)},onError:function(e){n.onErrorVaultSetupToken(e)},onCancel:function(){n.onCancelVaultSetupToken()}},n.config.style&&{style:n.config.style}),n.config.message&&{message:n.config.message}));e.isEligible()?e.render("#".concat(i)):n.eventEmitter.emit(Nc,{error_code:kc.UNAVAILABLE})}else n.eventEmitter.emit(Nc,{error_code:kc.UNAVAILABLE})},document.head.appendChild(r)}},{key:"getClientAuthFromWalletConfig",value:function(){var e;return(null===(e=this.walletConfig)||void 0===e?void 0:e.credentials).client_auth}},{key:"getSetupToken",value:function(){var e=this;return this.api.getClientPromise("POST","/v1/payment_sources/setup-tokens").send({gateway_id:this.gatewayId}).then((function(e){return e.setup_token})).catch((function(t){return e.eventEmitter.emit(Nc,c({error_code:kc.ON_GET_SETUP_TOKEN_ERROR},e.extractErrorDetails(t))),Promise.reject(t)}))}},{key:"onObtainedVaultSetupToken",value:function(e){var t=this;return this.api.getClientPromise("POST","/v1/payment_sources/setup-tokens/:setup_token/tokens".replace(":setup_token",e)).send({gateway_id:this.gatewayId}).then((function(e){t.eventEmitter.emit(Ac,{token:e.token,email:e.email})})).catch((function(){t.eventEmitter.emit(Nc,{error_code:kc.ON_ONE_TIME_TOKEN_ERROR})}))}},{key:"onErrorVaultSetupToken",value:function(e){this.eventEmitter.emit(Nc,c({error_code:kc.ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR},this.extractErrorDetails(e)))}},{key:"onCancelVaultSetupToken",value:function(){this.eventEmitter.emit(Oc)}},{key:"getIdToken",value:function(){var e=this;return this.api.getClientPromise("POST","/v1/payment_sources/oauth-tokens").send({gateway_id:this.gatewayId}).then((function(t){e.idToken=t.id_token})).catch((function(t){e.eventEmitter.emit(Nc,c({error_code:kc.ON_GET_ID_TOKEN_ERROR},e.extractErrorDetails(t)))}))}},{key:"getWalletConfig",value:function(){var e=this;return this.api.gateway().getWalletConfig(this.gatewayId).then((function(t){e.walletConfig=t})).catch((function(t){e.eventEmitter.emit(Nc,c({error_code:kc.ON_GET_WALLET_CONFIG_ERROR},e.extractErrorDetails(t)))}))}},{key:"extractErrorDetails",value:function(e){var t,n,i,r,o,s,a=null!==(r=null===(i=null===(n=null===(t=null==e?void 0:e.details)||void 0===t?void 0:t.messages)||void 0===n?void 0:n[0])||void 0===i?void 0:i.gateway_specific_description)&&void 0!==r?r:null===(s=null===(o=null==e?void 0:e.details)||void 0===o?void 0:o.messages)||void 0===s?void 0:s[0],l=null==e?void 0:e.message;return c(c({},a&&{details:a}),l&&{message:l})}}],[{key:"fromConfig",value:function(t,n,i,r){return new e(t,n,i,r)}}])}(),Rc=function(){return o((function e(t,n,r,o){i(this,e),this.eventEmitter=new ir,this.container=new Li(t),this.service=Ic.fromConfig(n,r,this.eventEmitter,o)}),[{key:"load",value:function(){try{this.service.load(this.container)}catch(e){throw this.eventEmitter.emit(Sc.ON_ERROR,null),e}}},{key:"setEnv",value:function(e,t){this.service.setEnv(e,t)}},{key:"onSuccess",value:function(e){return this.eventEmitter.subscribe(Sc.ON_SUCCESS,e)}},{key:"onError",value:function(e){return this.eventEmitter.subscribe(Sc.ON_ERROR,e)}},{key:"onCancel",value:function(e){return this.eventEmitter.subscribe(Sc.ON_CANCEL,e)}}])}();window.postMessage("PAYDOCK_PAYMENTS_WIDGET_LOADED");class xc{constructor(e,t){if(!e.onEnd)throw new Error("onEnd handler is required");if(!t)throw new Error("ms duration is required");this.onEnd=e.onEnd,this.initialMs=t,this.startTimestamp=Date.now(),this.timer=this.create(this.onEnd,t)}create(e,t){return this.timer&&this.clear(),setTimeout((()=>e?e():this.onEnd()),t||this.initialMs)}clear(){clearTimeout(this.timer),this.timer=null}end(){this.clear(),this.onEnd()}isValid(){return this.initialMs-(Date.now()-this.startTimestamp)>0}}function Pc(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];mn("visibilitychange",(function(){if(t)return void("hidden"===document.visibilityState&&e());e(document.visibilityState)}),arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0)}class Dc extends xc{constructor(e,t){super(e,t),this.onPause="function"==typeof e.onPause?e.onPause:()=>{},this.onRefresh="function"==typeof e.onRefresh?e.onRefresh:()=>{},this.onResume="function"==typeof e.onResume?e.onResume:()=>{},this.readStorage=e.readStorage,this.remainingMs=void 0,e.refreshEvents||(e.refreshEvents=["click","keydown","scroll"]);try{this.abortController=new AbortController}catch(e){}if(He&&e.ee){if(e.ee){this.ee=e.ee;const t=function(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=i?.leading||!1;let o;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];r&&void 0===o&&(e.apply(t,s),o=setTimeout((()=>{o=clearTimeout(o)}),n)),r||(clearTimeout(o),o=setTimeout((()=>{e.apply(t,s)}),n))}}(this.refresh.bind(this),500,{leading:!0});this.refreshHandler=n=>{e.refreshEvents.includes(n?.[0]?.type)&&t()},e.ee.on("fn-end",this.refreshHandler)}Pc((e=>{"hidden"===e?this.pause():this.resume()}),!1,!1,this.abortController?.signal)}}abort(){this.clear(),this.abortController?.abort(),this.refreshHandler&&(this.ee.removeEventListener("fn-end",this.refreshHandler),this.refreshHandler=this.ee=null)}pause(){this.onPause(),clearTimeout(this.timer),this.remainingMs=this.initialMs-(Date.now()-this.startTimestamp)}resume(){try{const t=this.readStorage(),n="string"==typeof t?JSON.parse(t):t;e(n.expiresAt)||e(n.inactiveAt)?this.end():(this.refresh(),this.onResume())}catch(e){this.end()}function e(e){return Date.now()>e}}refresh(e,t){this.clear(),this.timer=this.create(e,t),this.startTimestamp=Date.now(),this.remainingMs=void 0,this.onRefresh()}}const Lc="nr@original:".concat(Wt);var Uc=Object.prototype.hasOwnProperty,Fc=!1;function Hc(e,t){return e||(e=Gt),n.inPlace=function(e,t,i,r,o){i||(i="");const s="-"===i.charAt(0);for(let a=0;a<t.length;a++){const c=t[a],l=e[c];Bc(l)||(e[c]=n(l,s?c+i:i,r,c,o))}},n.flag=Lc,n;function n(t,n,r,o,s){return Bc(t)?t:(n||(n=""),a[Lc]=t,function(e,t,n){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t,t}})})),t}catch(e){jc([e],n)}for(var i in e)Uc.call(e,i)&&(t[i]=e[i])}(t,a,e),a);function a(){var a,c,l,u;try{c=this,a=[...arguments],l="function"==typeof r?r(a,c):r||{}}catch(t){jc([t,"",[a,c,o],l],e)}i(n+"start",[a,c,o],l,s);try{return u=t.apply(c,a)}catch(e){throw i(n+"err",[a,c,e],l,s),e}finally{i(n+"end",[a,c,u],l,s)}}}function i(n,i,r,o){if(!Fc||t){var s=Fc;Fc=!0;try{e.emit(n,i,r,t,o)}catch(t){jc([t,n,i,r],e)}Fc=s}}}function jc(e,t){t||(t=Gt);try{t.emit("internal-error",e)}catch(e){}}function Bc(e){return!(e&&"function"==typeof e&&e.apply&&!e[Lc])}const zc={},Wc=Be.XMLHttpRequest,Vc="addEventListener",Gc="removeEventListener",qc="nr@wrapped:".concat(Vt);function Yc(e){var t=function(e){return(e||Gt).get("events")}(e);if(zc[t.debugId]++)return t;zc[t.debugId]=1;var n=Hc(t,!0);function i(e){n.inPlace(e,[Vc,Gc],"-",r)}function r(e,t){return e[1]}return"getPrototypeOf"in Object&&(He&&Kc(document,i),Kc(Be,i),Kc(Wc.prototype,i)),t.on(Vc+"-start",(function(e,t){var i=e[1];if(null!==i&&("function"==typeof i||"object"==typeof i)){var r=it(i,qc,(function(){var e={object:function(){if("function"!=typeof i.handleEvent)return;return i.handleEvent.apply(i,arguments)},function:i}[typeof i];return e?n(e,"fn-",null,e.name||"anonymous"):i}));this.wrapped=e[1]=r}})),t.on(Gc+"-start",(function(e){e[1]=this.wrapped||e[1]})),t}function Kc(e,t){let n=e;for(;"object"==typeof n&&!Object.prototype.hasOwnProperty.call(n,Vc);)n=Object.getPrototypeOf(n);for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];n&&t(n,...r)}const Xc={value:"",inactiveAt:0,expiresAt:0,updatedAt:Date.now(),sessionReplayMode:bt,sessionReplaySentFirstChunk:!1,sessionTraceMode:bt,traceHarvestStarted:!1,serverTimeDiff:null,custom:{}};class $c{constructor(e){const{agentIdentifier:t,key:n,storage:i}=e;if(!t||!n||!i)throw new Error("Missing required field(s):".concat(t?"":" agentID").concat(n?"":" key").concat(i?"":" storage"));this.agentIdentifier=t,this.storage=i,this.state={},this.key=n,this.ee=Gt.get(t),Yc(this.ee),this.setup(e),He&&fn("storage",(e=>{if(e.key===this.lookupKey){const t="string"==typeof e.newValue?JSON.parse(e.newValue):e.newValue;this.sync(t),this.ee.emit(gt,[yt,this.state])}}))}setup(e){let{value:t=zt(16),expiresMs:n=dt,inactiveMs:i=ht}=e;const r={serverTimeDiff:this.state.serverTimeDiff||Xc.serverTimeDiff};this.state={},this.sync({...Xc,...r}),this.state.value=t,this.expiresMs=n,this.inactiveMs=i;const o=this.read();n?(this.state.expiresAt=o?.expiresAt||this.getFutureTimestamp(n),this.expiresTimer=new xc({onEnd:()=>{this.collectSM("expired"),this.collectSM("duration"),this.reset()}},this.state.expiresAt-Date.now())):this.state.expiresAt=1/0,i?(this.state.inactiveAt=o?.inactiveAt||this.getFutureTimestamp(i),this.inactiveTimer=new Dc({onEnd:()=>{this.collectSM("inactive"),this.collectSM("duration"),this.reset()},onRefresh:this.refresh.bind(this),onResume:()=>{this.ee.emit(vt)},onPause:()=>{this.initialized&&this.ee.emit(ft),this.write(ot(this.state,Xc))},ee:this.ee,refreshEvents:["click","keydown","scroll"],readStorage:()=>this.storage.get(this.lookupKey)},this.state.inactiveAt-Date.now())):this.state.inactiveAt=1/0,this.isNew||=!Object.keys(o).length,this.isNew?this.write(ot(this.state,Xc),!0):this.sync(o),this.initialized=!0,this.ee.emit(pt,[this.isNew])}get lookupKey(){return"".concat("NRBA","_").concat(this.key)}sync(e){Object.assign(this.state,e)}read(){try{const e=this.storage.get(this.lookupKey);if(!e)return{};const t="string"==typeof e?JSON.parse(e):e;return this.isInvalid(t)?{}:this.isExpired(t.expiresAt)?(this.collectSM("expired"),this.collectSM("duration",t,!0),this.reset()):this.isExpired(t.inactiveAt)?(this.collectSM("inactive"),this.collectSM("duration",t,!0),this.reset()):t}catch(e){return rt("Failed to read from storage API",e),{}}}write(e){try{if(!e||"object"!=typeof e)return;return e.updatedAt=Date.now(),this.sync(e),this.storage.set(this.lookupKey,Hn(this.state)),this.ee.emit(gt,[Ct,this.state]),e}catch(e){return rt("Failed to write to the storage API",e),null}}reset(){try{return this.initialized&&this.ee.emit(mt),this.storage.remove(this.lookupKey),this.inactiveTimer?.abort?.(),this.expiresTimer?.clear?.(),delete this.isNew,this.setup({agentIdentifier:this.agentIdentifier,key:this.key,storage:this.storage,expiresMs:this.expiresMs,inactiveMs:this.inactiveMs}),this.read()}catch(e){return{}}}refresh(){const e=this.read();this.write({...e,inactiveAt:this.getFutureTimestamp(this.inactiveMs)})}isExpired(e){return Date.now()>e}isInvalid(e){return!Object.keys(Xc).every((t=>Object.keys(e).includes(t)))}collectSM(e,t,n){let i,r;"duration"===e&&(i=this.getDuration(t,n),r="Session/Duration/Ms"),"expired"===e&&(r="Session/Expired/Seen"),"inactive"===e&&(r="Session/Inactive/Seen"),r&&Kt(Jn,[r,i],void 0,Qt.metrics,this.ee)}getDuration(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state,t=arguments.length>1?arguments[1]:void 0;const n=e.expiresAt-this.expiresMs;return(t?Date.now():e.updatedAt)-n}getFutureTimestamp(e){return Date.now()+e}syncCustomAttribute(e,t){if(He)if(null===t){const t=this.read();t.custom&&(delete t.custom[e],this.write({...t}))}else{const n=this.read();this.custom={...n?.custom||{},[e]:t},this.write({...n,custom:this.custom})}}}class Jc{get(e){try{return localStorage.getItem(e)||void 0}catch(e){return""}}set(e,t){try{return null==t?this.remove(e):localStorage.setItem(e,t)}catch(e){}}remove(e){try{localStorage.removeItem(e)}catch(e){}}}let Zc=0;var Qc=Object.freeze({__proto__:null,setupAgentSession:function(e){const t=Ut(e);if(Zc++)return t.session;const n=Tt(e).session;t.session=new $c({agentIdentifier:e,key:"SESSION",storage:new Jc,expiresMs:n?.expiresMs,inactiveMs:n?.inactiveMs});const i=t.session.state.custom,r=ct(e);i&&(r.jsAttributes={...r.jsAttributes,...i});const o=Gt.get(e);return Jt("api-setCustomAttribute",((e,n,i)=>{t.session.syncCustomAttribute(n,i)}),"session",o),Jt("api-setUserId",((e,n,i)=>{t.session.syncCustomAttribute(n,i)}),"session",o),sn(e,"session"),t.session}});var el=Object.freeze({__proto__:null,lazyFeatureLoader:function(e,t){if("aggregate"===t)switch(e){case Qt.ajax:return Promise.resolve().then((function(){return Wl}));case Qt.jserrors:return Promise.resolve().then((function(){return ru}));case Qt.metrics:return Promise.resolve().then((function(){return Su}));case Qt.pageAction:return Promise.resolve().then((function(){return Tu}));case Qt.pageViewEvent:return Promise.resolve().then((function(){return eh}));case Qt.pageViewTiming:return Promise.resolve().then((function(){return ah}));case Qt.sessionReplay:return Promise.resolve().then((function(){return hh}));case Qt.sessionTrace:return Promise.resolve().then((function(){return bh}));case Qt.spa:return Promise.resolve().then((function(){return Jh}));case Qt.softNav:return Promise.resolve().then((function(){return hp}));default:throw new Error("Attempted to load unsupported agent feature: ".concat(e," ").concat(t))}}});var tl=Object.freeze({__proto__:null,setAPI:function(e){var t=Gt.get(e),n={finished:En((function(e,n){var r=n?n-Xe:e;Kt(Zn,["finished",{time:r}],void 0,Qt.metrics,t),i(e,{name:"finished",start:r+Xe,origin:"nr"}),Kt("api-addPageAction",[r,"finished"],void 0,Qt.pageAction,t)})),setErrorHandler:function(t,n){Ut(e).onerror=n},addToTrace:i,addRelease:function(t,n,i){if(++r>10)return;Ut(e).releaseIds[n.slice(-200)]=(""+i).slice(-200)}};function i(e,n){n&&"object"==typeof n&&n.name&&n.start&&Kt("bstApi",[{n:n.name,s:n.start-Xe,e:(n.end||n.start)-Xe,o:n.origin||"",t:"api"}],void 0,Qt.sessionTrace,t)}Object.entries(n).forEach((e=>{let[n,i]=e;return Jt("api-"+n,i,"api",t)}));var r=0}});function nl(){let{isFinalHarvest:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&He&&Ke?rl:il}function il(e){let{url:t,body:n=null,sync:i,method:r="POST",headers:o=[{key:"content-type",value:"text/plain"}]}=e;const s=new XMLHttpRequest;s.open(r,t,!i);try{"withCredentials"in s&&(s.withCredentials=!0)}catch(e){}return o.forEach((e=>{s.setRequestHeader(e.key,e.value)})),s.send(n),s}function rl(e){let{url:t,body:n}=e;try{return window.navigator.sendBeacon.bind(window.navigator)(t,n)}catch(e){return!1}}var ol={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},sl=Xt(ol,(function(e){return e})),al=new RegExp(sl.join("|"),"g");function cl(e){return ol[e]}function ll(e){return null==e?"null":encodeURIComponent(e).replace(al,cl)}function ul(e,t){var n=0,i="";return Xt(e,(function(e,r){var o,s,a=[];if("string"==typeof r||!Array.isArray(r)&&null!=r&&r.toString().length)o="&"+e+"="+ll(r),n+=o.length,i+=o;else if(Array.isArray(r)&&r.length){for(n+=9,s=0;s<r.length&&(o=ll(Hn(r[s])),n+=o.length,!(void 0!==t&&n>=t));s++)a.push(o);i+="&"+e+"=%5B"+a.join(",")+"%5D"}})),i}function dl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).includes(e)?"":t&&"string"==typeof t?"&"+e+"="+ll(t):""}function hl(){return""+location}var pl=/([^?#]*)[^#]*(#[^?]*|$).*/,fl=/([^?#]*)().*/;function ml(e,t){return e.replace(t?pl:fl,"$1$2")}function vl(){return Boolean("file:"===Be?.location?.protocol)}var gl={regex:/^file:\/\/(.*)/,replacement:atob("ZmlsZTovL09CRlVTQ0FURUQ=")};class Cl extends li{shouldObfuscate(){return yl(this.sharedContext.agentIdentifier).length>0}obfuscateString(e){if(!e||"string"!=typeof e)return e;for(var t=yl(this.sharedContext.agentIdentifier),n=e,i=0;i<t.length;i++){var r=t[i].regex,o=t[i].replacement||"*";n=n.replace(r,o)}return n}}function yl(e){var t=[],n=At(e,"obfuscate")||[];return t=t.concat(n),vl()&&t.push(gl),t}function bl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return e&&"object"==typeof e?(Object.keys(e).forEach((r=>{"object"==typeof e[r]?bl(e[r],t,n,i):typeof e[r]!==n||i.includes(r)||(e[r]=t(e[r]))})),e):e}const El={};class wl extends li{constructor(e){super(e),this.tooManyRequestsDelay=At(this.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,this.obfuscator=new Cl(this.sharedContext),this._events={}}sendX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=nl({isFinalHarvest:e.opts?.unload}),n={retry:!e.opts?.unload&&t===il,isFinalHarvest:!0===e.opts?.unload},i=this.createPayload(e.endpoint,n);return(this.obfuscator.shouldObfuscate()?this.obfuscateAndSend.bind(this):this._send.bind(this))({...e,payload:i,submitMethod:t})}send(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(this.obfuscator.shouldObfuscate()?this.obfuscateAndSend.bind(this):this._send.bind(this))(e)}obfuscateAndSend(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{payload:n={}}=t;return bl(n,(function(){return e.obfuscator.obfuscateString(...arguments)}),"string",["e"]),this._send({...t,payload:n})}_send(e){let{endpoint:t,payload:n={},opts:i={},submitMethod:r,cbFinished:o,customUrl:s,raw:a,includeBaseParams:c=!0}=e;const l=ct(this.sharedContext.agentIdentifier);if(!l.errorBeacon)return!1;const u=Ut(this.sharedContext.agentIdentifier);let{body:d,qs:h}=this.cleanPayload(n);if(0===Object.keys(d).length&&!i?.sendEmptyBody)return o&&o({sent:!1}),!1;const p=Tt(this.sharedContext.agentIdentifier),f=!1===p.ssl?"http":"https",m=p.proxy.beacon||l.errorBeacon,v="rum"!==t?"/".concat(t):"";let g="".concat(f,"://").concat(m).concat(v,"/1/").concat(l.licenseKey);s&&(g=s),a&&(g="".concat(f,"://").concat(m,"/").concat(t));const C=!a&&c?this.baseQueryString(h,t):"";let y=ul(h,u.maxBytes);r||(r=nl({isFinalHarvest:i.unload})),""===C&&y.startsWith("&")&&(y=y.substring(1));const b="".concat(g,"?").concat(C).concat(y);!!h?.attributes?.includes("gzip")||(d="events"===t?d.e:Hn(d),d.length>75e4&&1===(El[t]=(El?.[t]||0)+1)&&rt("The Browser Agent is attempting to send a very large payload to /".concat(t,". This is usually tied to large amounts of custom attributes. Please check your configurations."))),d&&0!==d.length&&"{}"!==d&&"[]"!==d||(d="");const E=[];E.push({key:"content-type",value:"text/plain"});let w=r({url:b,body:d,sync:i.unload&&(je||Ye),headers:E});if(!i.unload&&o&&r===il){const e=this;w.addEventListener("loadend",(function(){const t={sent:0!==this.status,status:this.status,xhr:this,fullUrl:b};429===this.status?(t.retry=!0,t.delay=e.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(t.retry=!0),i.needResponse&&(t.responseText=this.responseText),o(t)}),pn(!1))}return Ut(this.sharedContext.agentIdentifier).harvestCount++,w}baseQueryString(e,t){const n=Ut(this.sharedContext.agentIdentifier),i=ct(this.sharedContext.agentIdentifier),r=ml(hl()),o=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(r):r,s=1===n?.session?.state.sessionReplayMode&&"jserrors"!==t,a=["a="+i.applicationID,dl("sa",i.sa?""+i.sa:""),dl("v",xt),_l(i),dl("ct",n.customTransaction),"&rst="+Fe(),"&ck=0","&s="+(n.session?.state.value||"0"),dl("ref",o),dl("ptid",n.ptid?""+n.ptid:"")];return s&&a.push(dl("hr","1",e)),a.join("")}createPayload(e,t){const n=this._events[e],i={body:{},qs:{}};if(Array.isArray(n)&&n.length>0)for(let e=0;e<n.length;e++){const r=n[e](t);r&&(i.body={...i.body,...r.body||{}},i.qs={...i.qs,...r.qs||{}})}return i}cleanPayload(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e=>"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||Array.isArray(e)?e:"string"==typeof e?e.length>0?e:null:Object.entries(e||{}).reduce(((e,t)=>{let[n,i]=t;return("number"==typeof i||"string"==typeof i&&i.length>0||"object"==typeof i&&Object.keys(i||{}).length>0)&&(e[n]=i),e}),{});return{body:t(e.body),qs:t(e.qs)}}on(e,t){Array.isArray(this._events[e])||(this._events[e]=[]),this._events[e].push(t)}}function _l(e){return e.transactionName?dl("to",e.transactionName):dl("t",e.tNamePlain||"Unnamed Transaction")}if(je){Be.cleanupTasks=[];const e=Be.close;Be.close=()=>{for(let e of Be.cleanupTasks)e();e()}}function kl(e){He?(Pc(e,!0),fn("pagehide",e)):je&&Be.cleanupTasks.push(e)}class Sl extends li{constructor(e,t,n){super(n),this.endpoint=e,this.opts=t||{},this.started=!1,this.timeoutHandle=null,this.aborted=!1,this.harvesting=!1,this.harvest=new wl(this.sharedContext),kl(this.unload.bind(this)),this.sharedContext?.ee.on(mt,(()=>this.runHarvest({forceNoRetry:!0})))}unload(){this.aborted||(this.opts.onUnload&&this.opts.onUnload(),this.runHarvest({unload:!0}))}startTimer(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}stopTimer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.aborted=e,this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}scheduleHarvest(e,t){this.timeoutHandle||(null==e&&(e=this.interval),this.timeoutHandle=setTimeout((()=>{this.timeoutHandle=null,this.runHarvest(t)}),1e3*e))}runHarvest(e){if(this.aborted)return;this.harvesting=!0;const t=t=>{this.harvesting=!1,e?.forceNoRetry&&(t.retry=!1),this.onHarvestFinished(e,t)};let n,i,r=[];if(this.opts.getPayload){if(n=nl({isFinalHarvest:e?.unload}),!n)return!1;const t=!e?.unload&&n===il;if(i=this.opts.getPayload({retry:t,...e}),!i)return void(this.started&&this.scheduleHarvest());i="[object Array]"===Object.prototype.toString.call(i)?i:[i],r.push(...i)}let o=e=>this.harvest.sendX(e);r.length?o=this.opts.raw?e=>this.harvest._send(e):e=>this.harvest.send(e):r.push(void 0),r.forEach((i=>{o({endpoint:this.endpoint,payload:i,opts:e,submitMethod:n,cbFinished:t,customUrl:this.opts.customUrl,raw:this.opts.raw})})),this.started&&this.scheduleHarvest()}onHarvestFinished(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){const n=t.delay||this.opts.retryDelay;this.started&&n?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(n,e)):!this.started&&n&&this.scheduleHarvest(n,e)}}}var Tl=[];function Ml(e){if(function(e){return void 0===e.hostname}(e))return!1;if(0===Tl.length)return!0;for(var t=0;t<Tl.length;t++){var n=Tl[t];if("*"===n.hostname)return!1;if(Al(n.hostname,e.hostname)&&Nl(n.pathname,e.pathname))return!1}return!0}function Al(e,t){return!(e.length>t.length)&&t.indexOf(e)===t.length-e.length}function Nl(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}const Ol=Qt.ajax;class Il extends un{constructor(){super(...arguments),this.checkConfiguration()}waitForFlags(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(((t,n)=>{function i(t){return e.map((e=>t[e]?t[e]:0))}ri[this.agentIdentifier]?t(i(ri[this.agentIdentifier])):this.ee.on("rumresp",(function(){t(i(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}))}))}))}drain(){sn(this.agentIdentifier,this.featureName),this.drained=!0}checkConfiguration(){if(!Ft(this.agentIdentifier)){let e={...tt().info?.jsAttributes};try{e={...e,...ct(this.agentIdentifier)?.jsAttributes}}catch(e){}ai({agentIdentifier:this.agentIdentifier},{...tt(),info:{...tt().info,jsAttributes:e},runtime:Ut(this.agentIdentifier)})}}}function Rl(){let{body:e,query:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e||t)try{const n=function(e){if(!e)return;Array.isArray(e)||(e=[e]);const t=[],n=[];for(let i of e){const e=xl(i);e&&(t.push(e.operationName),n.push(e.operationType))}if(!n.length)return;return{operationName:t.join(","),operationType:n.join(","),operationFramework:"GraphQL"}}(Pl(e));if(n)return n;const i=xl(function(e){if(!e||"string"!=typeof e)return;const t=new URLSearchParams(e);return Pl(Object.fromEntries(t))}(t));if(i)return i}catch(e){}}function xl(e){if("object"!=typeof e||!e.query||"string"!=typeof e.query)return;const t=e.query.trim().match(/^(query|mutation|subscription)\s?(\w*)/),n=t?.[1];if(!n)return;return{operationName:e.operationName||t?.[2]||"Anonymous",operationType:n,operationFramework:"GraphQL"}}function Pl(e){let t;if(!e||"string"!=typeof e&&"object"!=typeof e)return;if(t="string"==typeof e?JSON.parse(e):e,!function(e){return e?.constructor==={}.constructor}(t)&&!Array.isArray(t))return;let n=!1;return n=Array.isArray(t)?t.some((e=>Dl(e))):Dl(t),n?t:void 0}function Dl(e){return!("object"!=typeof e||!e.query||"string"!=typeof e.query)}var Ll=Object.prototype.hasOwnProperty;function Ul(e,t,n){return e||0===e||""===e?t(e)+(n?",":""):"!"}function Fl(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function Hl(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},n=0;return function(i){if(void 0===i||""===i)return"";var r=new Cl({agentIdentifier:e});i=String(i),r.shouldObfuscate()&&(i=r.obfuscateString(i));return Ll.call(t,i)?Fl(t[i],!0):(t[i]=n++,function(e){return"'"+e.replace(Bl,"\\$1")}(i))}}function jl(e,t){var n=[];return Xt(e,(function(e,i){if(!(n.length>=64)){var r,o=5;switch(e=t(e),typeof i){case"object":i?r=t(Hn(i)):o=9;break;case"number":o=6,r=i%1?i:i+".";break;case"boolean":o=i?7:8;break;case"undefined":o=9;break;default:r=t(i)}n.push([o,e+(r?","+r:"")])}})),n}var Bl=/([,\\;])/g;class zl{constructor(e,t){this.addString=Hl(t.agentIdentifier),this.events=e,this.payload="bel.7;";for(let n=0;n<e.length;n++){const i=e[n],r=[Fl(i.startTime),Fl(i.endTime-i.startTime),Fl(0),Fl(0),this.addString(i.method),Fl(i.status),this.addString(i.domain),this.addString(i.path),Fl(i.requestSize),Fl(i.responseSize),"fetch"===i.type?1:"",this.addString(0),Ul(i.spanId,this.addString,!0)+Ul(i.traceId,this.addString,!0)+Ul(i.spanTimestamp,Fl,!1)];let o="2,";const s=jl({...ct(t.agentIdentifier).jsAttributes||{},...i.gql||{}},this.addString);r.unshift(Fl(s.length)),o+=r.join(","),s&&s.length>0&&(o+=";"+s.join(";")),n+1<e.length&&(o+=";"),this.payload+=o}this.tooBig=2*this.payload.length>t.MAX_PAYLOAD_SIZE}}var Wl=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=Ol;#r;#o;#s;constructor(e,t){super(e,t,Ol),this.#r=ct(e),this.#o=Ut(e),this.#s=Tt(e);const n=this.#s.ajax.harvestTimeSeconds||10;this.MAX_PAYLOAD_SIZE=this.#s.ajax.maxPayloadSize||1e6,function(e){if(Tl=[],e&&e.length)for(var t=0;t<e.length;t++){let n=e[t];if(!n)continue;0===n.indexOf("http://")?n=n.substring(7):0===n.indexOf("https://")&&(n=n.substring(8));const i=n.indexOf("/");let r,o;i>0?(r=n.substring(0,i),o=n.substring(i)):(r=n,o="");let[s]=r.split(":");Tl.push({hostname:s,pathname:o})}}(this.#o.denyList),this.ajaxEvents=[],this.spaAjaxEvents={},this.sentAjaxEvents=[];const i=this;this.ee.on("interactionDone",((e,t)=>{this.spaAjaxEvents[e.id]&&(t||this.spaAjaxEvents[e.id].forEach((e=>this.ajaxEvents.push(e))),delete this.spaAjaxEvents[e.id])})),Jt("returnAjax",(e=>this.ajaxEvents.push(e)),this.featureName,this.ee),Jt("xhr",(function(){i.storeXhr(...arguments,this)}),this.featureName,this.ee),this.waitForFlags([]).then((()=>{new Sl("events",{onFinished:this.onEventsHarvestFinished.bind(this),getPayload:this.prepareHarvest.bind(this)},this).startTimer(n),this.drain()}))}storeXhr(e,t,n,i,r,o){let s;t.time=n,s=e.cat?Hn([e.status,e.cat]):Hn([e.status,e.host,e.pathname]);const a=Ml(e),c=this.#s.feature_flags?.includes("ajax_metrics_deny_list");if(!a&&c||this.aggregator.store("xhr",s,e,t),!a)return void(e.hostname===this.#r.errorBeacon||this.#s.proxy?.beacon&&e.hostname===this.#s.proxy.beacon?(Kt(Jn,["Ajax/Events/Excluded/Agent"],void 0,Qt.metrics,this.ee),c&&Kt(Jn,["Ajax/Metrics/Excluded/Agent"],void 0,Qt.metrics,this.ee)):(Kt(Jn,["Ajax/Events/Excluded/App"],void 0,Qt.metrics,this.ee),c&&Kt(Jn,["Ajax/Metrics/Excluded/App"],void 0,Qt.metrics,this.ee)));Kt("bstXhrAgg",["xhr",s,e,t],void 0,Qt.sessionTrace,this.ee);const l={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:r,startTime:n,endTime:i,callbackDuration:t.cbTime};o.dt&&(l.spanId=o.dt.spanId,l.traceId=o.dt.traceId,l.spanTimestamp=this.#o.timeKeeper.correctAbsoluteTimestamp(o.dt.timestamp)),l.gql=e.gql=Rl({body:o.body,query:o.parsedOrigin?.search}),l.gql&&Kt(Jn,["Ajax/Events/GraphQL/Bytes-Added",Hn(l.gql).length],void 0,Qt.metrics,this.ee);if(Boolean(et(this.agentIdentifier)?.features?.[Qt.softNav]))Kt("ajax",[l],void 0,Qt.softNav,this.ee);else if(o.spaNode){const e=o.spaNode.interaction.id;this.spaAjaxEvents[e]=this.spaAjaxEvents[e]||[],this.spaAjaxEvents[e].push(l)}else this.ajaxEvents.push(l)}prepareHarvest(e){if(e=e||{},0===this.ajaxEvents.length)return null;const t=this.#a(this.ajaxEvents),n=[];for(let e=0;e<t.length;e++)n.push({body:{e:t[e]}});return e.retry&&(this.sentAjaxEvents=this.ajaxEvents),this.ajaxEvents=[],n}onEventsHarvestFinished(e){e.retry&&this.sentAjaxEvents.length>0&&(this.ajaxEvents.unshift(...this.sentAjaxEvents),this.sentAjaxEvents=[])}#a(e,t){t=t||1;const n=[],i=e.length/t,r=function(e,t){t=t||e.length;const n=[];for(let i=0,r=e.length;i<r;i+=t)n.push(new zl(e.slice(i,i+t),this));return n}.call(this,e,i);let o=!1;for(let e=0;e<r.length;e++){const t=r[e];if(t.tooBig){if(t.events.length>1){o=!0;break}}else n.push(t.payload)}return o?this.#a(e,++t):n}}});const Vl=/([a-z0-9]+)$/i;function Gl(e){if(!e)return;const t=e.match(Vl);return t?t[1]:void 0}var ql=/^\n+|\n+$/g;function Yl(e){return function(e){var t;if(e.length>100){var n=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+n+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(e).replace(ql,"")}function Kl(e){if("string"!=typeof e)return"";const t=ml(e);return t===ml(Ve)?"<inline>":t}var Xl=/function (.+?)\s*\(/,$l=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,Jl=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,Zl=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,Ql=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function eu(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t=e.stack.split("\n").reduce(tu,{frames:[],stackLines:[],wrapperSeen:!1});return t.frames.length?{mode:"stack",name:e.name||nu(e),message:e.message,stackString:Yl(t.stackLines),frames:t.frames}:null}(e),t)return t}catch(e){}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||nu(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:t+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var n=Kl(e.sourceURL),i=t+": "+e.message+"\n at "+n;e.line&&(i+=":"+e.line,e.column&&(i+=":"+e.column));return{mode:"sourceline",name:t,message:e.message,stackString:i,frames:[{url:n,line:e.line,column:e.column}]}}(e),t)return t}catch(e){}try{if(t=function(e){var t=e.name||nu(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){}return{mode:"failed",stackString:"",frames:[]}}function tu(e,t){let n=function(e){var t=e.match(Jl);t||(t=e.match($l));if(t)return{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null};if(e.match(Zl)||e.match(Ql)||"anonymous"===e)return{func:"evaluated code"}}(t);if(!n)return e.stackLines.push(t),e;var i;if((i=n.func)&&i.indexOf("nrWrapper")>=0&&(e.wrapperSeen=!0),!e.wrapperSeen){let i=Kl(n.url);i!==n.url&&(t=t.replace(n.url,i),n.url=i),e.stackLines.push(t),e.frames.push(n)}return e}function nu(e){var t=Xl.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function iu(e){var t=0;if(!e||!e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}var ru=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=_n;constructor(e,t){var n;super(e,t,_n),n=this,this.stackReported={},this.observedAt={},this.pageviewReported={},this.bufferedErrorsUnderSpa={},this.currentBody=void 0,this.errorOnPage=!1,this.ee.on("interactionDone",((e,t)=>this.onInteractionDone(e,t))),Jt("err",(function(){return n.storeError(...arguments)}),this.featureName,this.ee),Jt("ierr",(function(){return n.storeError(...arguments)}),this.featureName,this.ee),Jt("softNavFlush",((e,t,n)=>this.onSoftNavNotification(e,t,n)),this.featureName,this.ee);const i=At(this.agentIdentifier,"jserrors.harvestTimeSeconds")||10;this.waitForFlags(["err"]).then((e=>{let[t]=e;if(t){const e=new Sl("jserrors",{onFinished:function(){return n.onHarvestFinished(...arguments)}},this);e.harvest.on("jserrors",(function(){return n.onHarvestStarted(...arguments)})),e.startTimer(i),this.drain()}else this.blocked=!0,rn(this.agentIdentifier,this.featureName)}))}onHarvestStarted(e){var t=this.aggregator.take(["err","ierr","xhr"]);e.retry&&(this.currentBody=t);var n={body:t,qs:{}},i=Hn(Ut(this.agentIdentifier).releaseIds);return"{}"!==i&&(n.qs.ri=i),t&&t.err&&t.err.length&&(this.#c(t.err),this.errorOnPage||(n.qs.pve="1",this.errorOnPage=!0)),n}onHarvestFinished(e){e.retry&&this.currentBody&&(Xt(this.currentBody,((e,t)=>{for(var n=0;n<t.length;n++){var i=t[n],r=this.getBucketName(e,i.params,i.custom);this.aggregator.merge(e,r,i.metrics,i.params,i.custom)}})),this.currentBody=null)}nameHash(e){return iu("".concat(e.exceptionClass,"_").concat(e.message,"_").concat(e.stack_trace||e.browser_stack_hash))}getBucketName(e,t,n){return"xhr"===e?iu(Hn(t))+":"+iu(Hn(n)):this.nameHash(t)+":"+iu(Hn(n))}buildCanonicalStackString(e){for(var t="",n=0;n<e.frames.length;n++){var i=e.frames[n],r=Gl(i.func);t&&(t+="\n"),r&&(t+=r+"@"),"string"==typeof i.url&&(t+=i.url),i.line&&(t+=":"+i.line)}return t}storeError(e,t,n,i,r){if(!e)return;t=t||Fe();const o=Ut(this.agentIdentifier);let s;if(!n&&o.onerror&&(s=o.onerror(e),s&&("string"!=typeof s.group||!s.group.length)))return;var a=eu(e);const c={stackHash:iu(this.buildCanonicalStackString(a)),exceptionClass:a.name,request_uri:Be?.location.pathname};a.message&&(c.message=""+a.message),s?.group&&(c.errorGroup=s.group),r&&(c.hasReplay=r);var l,u=iu("".concat(a.name,"_").concat(a.message,"_").concat(a.stackString,"_").concat(c.hasReplay?1:0));this.stackReported[u]?c.browser_stack_hash=iu(a.stackString):(this.stackReported[u]=!0,c.stack_trace=(l=a.stackString).length>65530?l.substr(0,65530):l,this.observedAt[u]=o.timeKeeper.convertRelativeTimestamp(t)),c.releaseIds=Hn(o.releaseIds),this.pageviewReported[u]||(c.pageview=1,this.pageviewReported[u]=!0),c.firstOccurrenceTimestamp=this.observedAt[u],c.timestamp=o.timeKeeper.convertRelativeTimestamp(t);const d=[n?"ierr":"err",u,c,{time:t},i];if(Kt("trace-jserror",d,void 0,Qt.sessionTrace,this.ee),this.blocked)return;e?.__newrelic?.[this.agentIdentifier]&&(c._interactionId=e.__newrelic[this.agentIdentifier].interactionId,c._interactionNodeId=e.__newrelic[this.agentIdentifier].interactionNodeId);Boolean(et(this.agentIdentifier)?.features[Qt.softNav])?Kt("jserror",[c,t],void 0,Qt.softNav,this.ee):Kt("spa-jserror",d,void 0,Qt.spa,this.ee),c.browserInteractionId&&!c._softNavFinished?(this.bufferedErrorsUnderSpa[c.browserInteractionId]??=[],this.bufferedErrorsUnderSpa[c.browserInteractionId].push(d)):null!=c._interactionId?(this.bufferedErrorsUnderSpa[c._interactionId]=this.bufferedErrorsUnderSpa[c._interactionId]||[],this.bufferedErrorsUnderSpa[c._interactionId].push(d)):this.#l(d,void 0!==c.browserInteractionId,c._softNavAttributes)}#l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[i,r,o,s,a]=e;const c={};t?(Object.entries(n).forEach((e=>{let[t,n]=e;return u(t,n)})),r+=o.browserInteractionId,delete o._softNavAttributes,delete o._softNavFinished):(Object.entries(ct(this.agentIdentifier).jsAttributes).forEach((e=>{let[t,n]=e;return u(t,n)})),delete o.browserInteractionId),a&&Object.entries(a).forEach((e=>{let[t,n]=e;return u(t,n)}));const l=r+":"+iu(Hn(c));function u(e,t){c[e]=t&&"object"==typeof t?Hn(t):t}this.aggregator.store(i,l,o,s,c)}onInteractionDone(e,t){this.bufferedErrorsUnderSpa[e.id]&&!this.blocked&&(this.bufferedErrorsUnderSpa[e.id].forEach((n=>{var i={};const r=n[4];Xt(e.root.attrs.custom,a),Xt(r,a);var o=n[2];t&&(o.browserInteractionId=e.root.attrs.id,o._interactionNodeId&&(o.parentNodeId=o._interactionNodeId.toString())),delete o._interactionId,delete o._interactionNodeId;var s=(t?n[1]+e.root.attrs.id:n[1])+":"+iu(Hn(i));function a(e,t){i[e]=t&&"object"==typeof t?Hn(t):t}this.aggregator.store(n[0],s,o,n[3],i)})),delete this.bufferedErrorsUnderSpa[e.id])}onSoftNavNotification(e,t,n){this.blocked||(this.bufferedErrorsUnderSpa[e]?.forEach((e=>this.#l(e,t,n))),delete this.bufferedErrorsUnderSpa[e])}#c(e){const t={errorHashes:e.map((e=>e.params.stackHash))};this.ee.emit("cfc.".concat(this.featureName),[t]),e.find((e=>e.params.hasReplay))&&!t.hasReplay&&e.forEach((e=>{delete e.params.hasReplay}))}}});const ou="React",su="NextJS",au="Vue",cu="NuxtJS",lu="Angular",uu="AngularUniversal",du="Svelte",hu="SvelteKit",pu="Preact",fu="PreactSSR",mu="AngularJS",vu="Backbone",gu="Ember",Cu="Meteor",yu="Zepto",bu="Jquery",Eu="MooTools",wu="Qwik",_u="Electron";function ku(){if(!He)return[];const e=[];try{(function(){try{return Object.prototype.hasOwnProperty.call(window,"React")||Object.prototype.hasOwnProperty.call(window,"ReactDOM")||Object.prototype.hasOwnProperty.call(window,"ReactRedux")||document.querySelector("[data-reactroot], [data-reactid]")||(()=>{const e=document.querySelectorAll("body > div");for(let t=0;t<e.length;t++)if(Object.prototype.hasOwnProperty.call(e[t],"_reactRootContainer"))return!0})()}catch(e){return!1}})()&&(e.push(ou),function(){try{return Object.prototype.hasOwnProperty.call(window,"next")&&Object.prototype.hasOwnProperty.call(window.next,"version")}catch(e){return!1}}()&&e.push(su)),function(){try{return Object.prototype.hasOwnProperty.call(window,"Vue")}catch(e){return!1}}()&&(e.push(au),function(){try{return Object.prototype.hasOwnProperty.call(window,"$nuxt")&&Object.prototype.hasOwnProperty.call(window.$nuxt,"nuxt")}catch(e){return!1}}()&&e.push(cu)),function(){try{return Object.prototype.hasOwnProperty.call(window,"ng")||document.querySelector("[ng-version]")}catch(e){return!1}}()&&(e.push(lu),function(){try{return document.querySelector("[ng-server-context]")}catch(e){return!1}}()&&e.push(uu)),function(){try{return Object.prototype.hasOwnProperty.call(window,"__svelte")}catch(e){return!1}}()&&(e.push(du),function(){try{return!!Object.keys(window).find((e=>e.startsWith("__sveltekit")))}catch(e){return!1}}()&&e.push(hu)),function(){try{return Object.prototype.hasOwnProperty.call(window,"preact")}catch(e){return!1}}()&&(e.push(pu),function(){try{return document.querySelector('script[type="__PREACT_CLI_DATA__"]')}catch(e){return!1}}()&&e.push(fu)),function(){try{return Object.prototype.hasOwnProperty.call(window,"angular")||document.querySelector(".ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]")||document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')}catch(e){return!1}}()&&e.push(mu),Object.prototype.hasOwnProperty.call(window,"Backbone")&&e.push(vu),Object.prototype.hasOwnProperty.call(window,"Ember")&&e.push(gu),Object.prototype.hasOwnProperty.call(window,"Meteor")&&e.push(Cu),Object.prototype.hasOwnProperty.call(window,"Zepto")&&e.push(yu),Object.prototype.hasOwnProperty.call(window,"jQuery")&&e.push(bu),Object.prototype.hasOwnProperty.call(window,"MooTools")&&e.push(Eu),Object.prototype.hasOwnProperty.call(window,"qwikevents")&&e.push(wu),function(){try{return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}catch(e){return!1}}()&&e.push(_u)}catch(e){}return e}var Su=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=$n;constructor(e,t){super(e,t,$n),this.waitForFlags(["err"]).then((e=>{let[t]=e;if(t){new Sl("jserrors",{onUnload:()=>this.unload()},this).harvest.on("jserrors",(()=>({body:this.aggregator.take(["cm","sm"])}))),this.drain()}else this.blocked=!0,rn(this.agentIdentifier,this.featureName)})),Jt(Jn,this.storeSupportabilityMetrics.bind(this),this.featureName,this.ee),Jt(Zn,this.storeEventMetrics.bind(this),this.featureName,this.ee),this.singleChecks(),this.eachSessionChecks()}storeSupportabilityMetrics(e,t){if(this.blocked)return;const n={name:e};this.aggregator.storeMetric("sm",e,n,t)}storeEventMetrics(e,t){if(this.blocked)return;const n={name:e};this.aggregator.store("cm",e,n,t)}singleChecks(){const{distMethod:e,loaderType:t}=Ut(this.agentIdentifier),{proxy:n,privacy:i,page_view_timing:r}=Tt(this.agentIdentifier);if(t&&this.storeSupportabilityMetrics("Generic/LoaderType/".concat(t,"/Detected")),e&&this.storeSupportabilityMetrics("Generic/DistMethod/".concat(e,"/Detected")),He){this.storeSupportabilityMetrics("Generic/Runtime/Browser/Detected");const e=document?.currentScript?.nonce;e&&""!==e&&this.storeSupportabilityMetrics("Generic/Runtime/Nonce/Detected"),function(e){if(vn())return e();mn("DOMContentLoaded",e)}((()=>{ku().forEach((e=>{this.storeSupportabilityMetrics("Framework/"+e+"/Detected")}))})),i.cookies_enabled||this.storeSupportabilityMetrics("Config/SessionTracking/Disabled"),r.long_task&&this.storeSupportabilityMetrics("Config/LongTask/Enabled")}else je?this.storeSupportabilityMetrics("Generic/Runtime/Worker/Detected"):this.storeSupportabilityMetrics("Generic/Runtime/Unknown/Detected");vl()&&this.storeSupportabilityMetrics("Generic/FileProtocol/Detected");const o=yl(this.agentIdentifier);o.length>0&&this.storeSupportabilityMetrics("Generic/Obfuscate/Detected"),o.length>0&&!function(e){for(var t=!1,n=!1,i=0;i<e.length;i++){"regex"in e[i]?"string"==typeof e[i].regex||e[i].regex instanceof RegExp||(rt('An obfuscation replacement rule contains a "regex" value with an invalid type (must be a string or RegExp)'),n=!0):(rt('An obfuscation replacement rule was detected missing a "regex" value.'),n=!0);var r=e[i].replacement;r&&"string"!=typeof r&&(rt('An obfuscation replacement rule contains a "replacement" value with an invalid type (must be a string)'),t=!0)}return!t&&!n}(o)&&this.storeSupportabilityMetrics("Generic/Obfuscate/Invalid"),n.assets&&this.storeSupportabilityMetrics("Config/AssetsUrl/Changed"),n.beacon&&this.storeSupportabilityMetrics("Config/BeaconUrl/Changed")}eachSessionChecks(){He&&fn("pageshow",(e=>{e?.persisted&&this.storeSupportabilityMetrics("Generic/BFCache/PageRestored")}))}unload(){try{if(this.resourcesSent)return;this.resourcesSent=!0;const e=["beacon","fetch","xmlhttprequest"],t=["nr-data.net","newrelic.com","nr-local.net","localhost"];function n(e){return t.some((t=>e.name.indexOf(t)>=0))}function i(t){return e.includes(t.initiatorType)}if((performance?.getEntriesByType("resource")||[]).forEach((e=>{n(e)?i(e)?this.storeSupportabilityMetrics("Generic/Resources/Ajax/Internal"):this.storeSupportabilityMetrics("Generic/Resources/Non-Ajax/Internal"):i(e)?this.storeSupportabilityMetrics("Generic/Resources/Ajax/External"):this.storeSupportabilityMetrics("Generic/Resources/Non-Ajax/External")})),"undefined"!=typeof performance){const r=performance.getEntriesByType("mark"),o=performance.getEntriesByType("measure");this.storeSupportabilityMetrics("Generic/Performance/Mark/Seen",r.length),this.storeSupportabilityMetrics("Generic/Performance/Measure/Seen",o.length)}}catch(s){}}}});var Tu=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=vi;constructor(e,t){var n;super(e,t,vi),n=this,this.eventsPerMinute=240,this.harvestTimeSeconds=At(this.agentIdentifier,"page_action.harvestTimeSeconds")||At(this.agentIdentifier,"ins.harvestTimeSeconds")||30,this.eventsPerHarvest=this.eventsPerMinute*this.harvestTimeSeconds/60,this.referrerUrl=void 0,this.currentEvents=void 0,this.events=[],this.att=ct(this.agentIdentifier).jsAttributes,He&&document.referrer&&(this.referrerUrl=ml(document.referrer)),Jt("api-addPageAction",(function(){return n.addPageAction(...arguments)}),this.featureName,this.ee),this.waitForFlags(["ins"]).then((e=>{let[t]=e;if(t){const e=new Sl("ins",{onFinished:function(){return n.onHarvestFinished(...arguments)}},this);e.harvest.on("ins",(function(){return n.onHarvestStarted(...arguments)})),e.startTimer(this.harvestTimeSeconds,0),this.drain()}else this.blocked=!0,rn(this.agentIdentifier,this.featureName)}))}onHarvestStarted(e){const{userAttributes:t,atts:n}=ct(this.agentIdentifier);var i={qs:{ua:t,at:n},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],i}onHarvestFinished(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}addPageAction(e,t,n){if(this.events.length>=this.eventsPerHarvest||this.blocked)return;var i,r,o={};He&&window.document.documentElement&&(i=window.document.documentElement.clientWidth,r=window.document.documentElement.clientHeight);const s=Ut(this.agentIdentifier);var a={timestamp:s.timeKeeper.convertRelativeTimestamp(e),timeSinceLoad:e/1e3,browserWidth:i,browserHeight:r,referrerUrl:this.referrerUrl,currentUrl:ml(""+location),pageUrl:ml(s.origin),eventType:"PageAction"};function c(e,t){o[e]=t&&"object"==typeof t?Hn(t):t}Xt(a,c),Xt(ct(this.agentIdentifier).jsAttributes,c),n&&"object"==typeof n&&Xt(n,c),o.actionName=t||"",this.events.push(o)}}}),Mu="Start",Au="End",Nu="unloadEvent",Ou="redirect",Iu="domainLookup",Ru="onnect",xu="response",Pu="loadEvent",Du="domContentLoadedEvent";const Lu=[];function Uu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t)return n.of=e,Hu(n.of,n,"n",!0),Hu(t[Nu+Mu],n,"u",i),Hu(t[Ou+Mu],n,"r",i),Hu(t[Nu+Au],n,"ue",i),Hu(t[Ou+Au],n,"re",i),Hu(t["fetch"+Mu],n,"f",i),Hu(t[Iu+Mu],n,"dn",i),Hu(t[Iu+Au],n,"dne",i),Hu(t["c"+Ru+Mu],n,"c",i),Hu(t["secureC"+Ru+"ion"+Mu],n,"s",i),Hu(t["c"+Ru+Au],n,"ce",i),Hu(t["request"+Mu],n,"rq",i),Hu(t[xu+Mu],n,"rp",i),Hu(t[xu+Au],n,"rpe",i),Hu(t.domLoading,n,"dl",i),Hu(t.domInteractive,n,"di",i),Hu(t[Du+Mu],n,"ds",i),Hu(t[Du+Au],n,"de",i),Hu(t.domComplete,n,"dc",i),Hu(t[Pu+Mu],n,"l",i),Hu(t[Pu+Au],n,"le",i),n}function Fu(e,t){var n;return Hu("number"==typeof(n=e.type)?n:{navigate:void 0,reload:1,back_forward:2,prerender:3}[n],t,"ty"),Hu(e.redirectCount,t,"rc"),t}function Hu(e,t,n,i){if("number"==typeof e&&e>0){if(i){const n=t?.of>0?t.of:0;e=Math.max(e-n,0)}e=Math.round(e),t[n]=e,Lu.push(e)}else Lu.push(void 0)}function ju(e){const t=[],n=Ze();try{Object.keys(n.initializedAgents[e].features).forEach((e=>{switch(e){case Qt.ajax:t.push("xhr");break;case Qt.jserrors:t.push("err");break;case Qt.pageAction:t.push("ins");break;case Qt.sessionTrace:t.push("stn");break;case Qt.softNav:case Qt.spa:t.push("spa")}}))}catch(e){}return t}var Bu,zu,Wu,Vu,Gu,qu=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Yu=function(e){if("loading"===document.readyState)return"loading";var t=qu();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},Ku=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Xu=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var i=e,r=i.id?"#"+i.id:Ku(i)+(i.classList&&i.classList.value&&i.classList.value.trim()&&i.classList.value.trim().length?"."+i.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+r.length>(t||100)-1)return n||r;if(n=n?r+">"+n:r,i.id)break;e=i.parentNode}}catch(e){}return n},$u=-1,Ju=function(){return $u},Zu=function(e){addEventListener("pageshow",(function(t){t.persisted&&($u=t.timeStamp,e(t))}),!0)},Qu=function(){var e=qu();return e&&e.activationStart||0},ed=function(e,t){var n=qu(),i="navigate";return Ju()>=0?i="back-forward-cache":n&&(document.prerendering||Qu()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},td=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},nd=function(e,t,n,i){var r,o;return function(s){t.value>=0&&(s||i)&&((o=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},id=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},rd=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},od=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},sd=-1,ad=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},cd=function(e){"hidden"===document.visibilityState&&sd>-1&&(sd="visibilitychange"===e.type?e.timeStamp:0,ud())},ld=function(){addEventListener("visibilitychange",cd,!0),addEventListener("prerenderingchange",cd,!0)},ud=function(){removeEventListener("visibilitychange",cd,!0),removeEventListener("prerenderingchange",cd,!0)},dd=function(){return sd<0&&(sd=ad(),ld(),Zu((function(){setTimeout((function(){sd=ad(),ld()}),0)}))),{get firstHiddenTime(){return sd}}},hd=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},pd=[1800,3e3],fd=function(e,t){t=t||{},hd((function(){var n,i=dd(),r=ed("FCP"),o=td("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=Math.max(e.startTime-Qu(),0),r.entries.push(e),n(!0)))}))}));o&&(n=nd(e,r,pd,t.reportAllChanges),Zu((function(i){r=ed("FCP"),n=nd(e,r,pd,t.reportAllChanges),id((function(){r.value=performance.now()-i.timeStamp,n(!0)}))})))}))},md=[.1,.25],vd={passive:!0,capture:!0},gd=new Date,Cd=function(e,t){Bu||(Bu=t,zu=e,Wu=new Date,Ed(removeEventListener),yd())},yd=function(){if(zu>=0&&zu<Wu-gd){var e={entryType:"first-input",name:Bu.type,target:Bu.target,cancelable:Bu.cancelable,startTime:Bu.timeStamp,processingStart:Bu.timeStamp+zu};Vu.forEach((function(t){t(e)})),Vu=[]}},bd=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Cd(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,vd),removeEventListener("pointercancel",i,vd)};addEventListener("pointerup",n,vd),addEventListener("pointercancel",i,vd)}(t,e):Cd(t,e)}},Ed=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,bd,vd)}))},wd=[100,300],_d=function(e,t){t=t||{},hd((function(){var n,i=dd(),r=ed("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=function(e){e.forEach(o)},a=td("first-input",s);n=nd(e,r,wd,t.reportAllChanges),a&&rd(od((function(){s(a.takeRecords()),a.disconnect()}))),a&&Zu((function(){var i;r=ed("FID"),n=nd(e,r,wd,t.reportAllChanges),Vu=[],zu=-1,Bu=null,Ed(addEventListener),i=o,Vu.push(i),yd()}))}))},kd=0,Sd=1/0,Td=0,Md=function(e){e.forEach((function(e){e.interactionId&&(Sd=Math.min(Sd,e.interactionId),Td=Math.max(Td,e.interactionId),kd=Td?(Td-Sd)/7+1:0)}))},Ad=function(){return Gu?kd:performance.interactionCount||0},Nd=[200,500],Od=0,Id=function(){return Ad()-Od},Rd=[],xd={},Pd=function(e){var t=Rd[Rd.length-1],n=xd[e.interactionId];if(n||Rd.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};xd[i.id]=i,Rd.push(i)}Rd.sort((function(e,t){return t.latency-e.latency})),Rd.splice(10).forEach((function(e){delete xd[e.id]}))}},Dd=function(e,t){t=t||{},hd((function(){var n;"interactionCount"in performance||Gu||(Gu=td("event",Md,{type:"event",buffered:!0,durationThreshold:0}));var i,r=ed("INP"),o=function(e){e.forEach((function(e){e.interactionId&&Pd(e),"first-input"===e.entryType&&!Rd.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Pd(e)}));var t,n=(t=Math.min(Rd.length-1,Math.floor(Id()/50)),Rd[t]);n&&n.latency!==r.value&&(r.value=n.latency,r.entries=n.entries,i())},s=td("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=nd(e,r,Nd,t.reportAllChanges),s&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),rd((function(){o(s.takeRecords()),r.value<0&&Id()>0&&(r.value=0,r.entries=[]),i(!0)})),Zu((function(){Rd=[],Od=Ad(),r=ed("INP"),i=nd(e,r,Nd,t.reportAllChanges)})))}))},Ld=[2500,4e3],Ud={},Fd=[800,1800],Hd=function e(t){document.prerendering?hd((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},jd=function(e,t){t=t||{};var n=ed("TTFB"),i=nd(e,n,Fd,t.reportAllChanges);Hd((function(){var r=qu();if(r){var o=r.responseStart;if(o<=0||o>performance.now())return;n.value=Math.max(o-Qu(),0),n.entries=[r],i(!0),Zu((function(){n=ed("TTFB",0),(i=nd(e,n,Fd,t.reportAllChanges))(!0)}))}}))};const Bd="fp",zd="fcp",Wd="fi",Vd="lcp",Gd="cls",qd="inp",Yd="lt",Kd="ttfb";class Xd{#u=new Set;history=[];constructor(e,t){this.name=e,this.attrs={},this.roundingMethod="function"==typeof t?t:Math.floor}update(e){let{value:t,attrs:n={}}=e;if(null==t||t<0)return;const i={value:this.roundingMethod(t),name:this.name,attrs:n};this.history.push(i),this.#u.forEach((e=>{try{e(i)}catch(e){}}))}get current(){return this.history[this.history.length-1]||{value:void 0,name:this.name,attrs:{}}}get isValid(){return this.current.value>=0}subscribe(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("function"==typeof e)return this.#u.add(e),this.isValid&&t&&this.history.forEach((t=>{e(t)})),()=>{this.#u.delete(e)}}}const $d=new Xd(zd);if(He)if(qe)try{if(!We){performance.getEntriesByType("paint").forEach((e=>{"first-contentful-paint"===e.name&&$d.update({value:Math.floor(e.startTime)})}))}}catch(Bu){}else!function(e,t){fd((function(t){!function(e){if(e.entries.length){var t=qu(),n=e.entries[e.entries.length-1];if(t){var i=t.activationStart||0,r=Math.max(0,t.responseStart-i);return void(e.attribution={timeToFirstByte:r,firstByteToFCP:e.value-r,loadState:Yu(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:Yu(Ju())}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n}=e;if(We||$d.isValid)return;const i={timeToFirstByte:n.timeToFirstByte,firstByteToFCP:n.firstByteToFCP,loadState:n.loadState};$d.update({value:t,attrs:i})}));const Jd=new Xd(Bd);if(He){const e=e=>{e.forEach((e=>{"first-paint"!==e.name||Jd.isValid||(t.disconnect(),Jd.update({value:e.startTime}))}))};let t;try{PerformanceObserver.supportedEntryTypes.includes("paint")&&!We&&(t=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))})),t.observe({type:"paint",buffered:!0}))}catch(Bu){}}const Zd=new Xd(Kd);if(He&&"undefined"!=typeof PerformanceNavigationTiming&&!Ge&&window===window.parent)!function(e,t){jd((function(t){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,i=Math.max(t.domainLookupStart-n,0),r=Math.max(t.connectStart-n,0),o=Math.max(t.requestStart-n,0);e.attribution={waitingTime:i,dnsTime:r-i,connectionTime:o-r,requestTime:e.value-o,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n}=e;Zd.isValid||Zd.update({value:t,attrs:{navigationEntry:n.navigationEntry}})}));else if(!Zd.isValid){const e={};for(let t in Be?.performance?.timing||{})e[t]=Math.max(Be?.performance?.timing[t]-Xe,0);Zd.update({value:e.responseStart,attrs:{navigationEntry:e}})}class Qd{#d;#h;#p;#f=!1;constructor(e){this.#d=Ut(e)?.session,this.processStoredDiff()}get ready(){return this.#f}get correctedOriginTime(){return this.#h}processRumRequest(e,t,n){if(this.processStoredDiff(),this.#f)return;const i=e.getResponseHeader("Date");if(!i)throw new Error("Missing date header on rum response.");const r=t+(n-t)/2;if(this.#h=Math.floor(Date.parse(i)-r),this.#p=Xe-this.#h,isNaN(this.#h))throw new Error("Date header invalid format.");this.#d?.write({serverTimeDiff:this.#p}),this.#f=!0}convertRelativeTimestamp(e){return Math.floor(this.#h+e)}correctAbsoluteTimestamp(e){return Math.floor(e-this.#p)}processStoredDiff(){const e=this.#d?.read()?.serverTimeDiff;"number"!=typeof e||isNaN(e)||(this.#p=e,this.#h=Xe-this.#p,this.#f=!0)}}var eh=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=qn;constructor(e,t){super(e,t,qn),this.timeToFirstByte=0,this.firstByteToWindowLoad=0,this.firstByteToDomContent=0,this.timeKeeper=new Qd(this.agentIdentifier),He?Zd.subscribe((e=>{let{value:t,attrs:n}=e;const i=n.navigationEntry;this.timeToFirstByte=Math.max(t,this.timeToFirstByte),this.firstByteToWindowLoad=Math.max(Math.round(i.loadEventEnd-this.timeToFirstByte),this.firstByteToWindowLoad),this.firstByteToDomContent=Math.max(Math.round(i.domContentLoadedEventEnd-this.timeToFirstByte),this.firstByteToDomContent),this.sendRum()})):this.sendRum()}sendRum(){const e=ct(this.agentIdentifier),t=Ut(this.agentIdentifier),n=new wl(this);if(!e.beacon)return;e.queueTime&&this.aggregator.store("measures","qt",{value:e.queueTime}),e.applicationTime&&this.aggregator.store("measures","ap",{value:e.applicationTime}),this.aggregator.store("measures","be",{value:this.timeToFirstByte}),this.aggregator.store("measures","fe",{value:this.firstByteToWindowLoad}),this.aggregator.store("measures","dc",{value:this.firstByteToDomContent});const i={tt:e.ttGuid,us:e.user,ac:e.account,pr:e.product,af:ju(this.agentIdentifier).join(","),...Object.entries(this.aggregator.get("measures")||{}).reduce(((e,t)=>{let[n,i]=t;return e[n]=i.params?.value,e}),{}),xx:e.extra,ua:e.userAttributes,at:e.atts};let r;if(t.session&&(i.fsh=Number(t.session.isNew)),"object"==typeof e.jsAttributes&&Object.keys(e.jsAttributes).length>0&&(r={ja:e.jsAttributes}),Be.performance)if("undefined"!=typeof PerformanceNavigationTiming){const e=Be?.performance?.getEntriesByType("navigation")?.[0],t={timing:Uu(Xe,e,{}),navigation:Fu(e,{})};i.perf=Hn(t)}else if("undefined"!=typeof PerformanceTiming){const e={timing:Uu(Xe,Be.performance.timing,{},!0),navigation:Fu(Be.performance.navigation,{})};i.perf=Hn(e)}i.fp=Jd.current.value,i.fcp=$d.current.value,this.timeKeeper?.ready&&(i.timestamp=this.timeKeeper.convertRelativeTimestamp(Fe()));const o=Fe();n.send({endpoint:"rum",payload:{qs:i,body:r},opts:{needResponse:!0,sendEmptyBody:!0},cbFinished:e=>{let{status:n,responseText:i,xhr:r}=e;const s=Fe();if(n>=400||0===n)this.ee.abort();else{try{if(this.timeKeeper.processRumRequest(r,o,s),!this.timeKeeper.ready)throw new Error("TimeKeeper not ready");t.timeKeeper=this.timeKeeper}catch(e){return Kt(Jn,["PVE/NRTime/Calculation/Failed"],void 0,Qt.metrics,this.ee),sn(this.agentIdentifier,Qt.metrics,!0),this.ee.abort(),void rt("Could not calculate New Relic server time. Agent shutting down.",e)}try{const{app:e,...n}=JSON.parse(i);t.appMetadata=e,oi(n,this.agentIdentifier),this.drain()}catch(e){this.ee.abort(),rt("RUM call failed. Agent shutting down.",e)}}}})}}});const th=Qt.pageViewTiming,nh=new Xd(Gd,(e=>e));He&&function(e,t){!function(e,t){t=t||{},fd(od((function(){var n,i=ed("CLS",0),r=0,o=[],s=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=o[0],n=o[o.length-1];r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e])}})),r>i.value&&(i.value=r,i.entries=o,n())},a=td("layout-shift",s);a&&(n=nd(e,i,md,t.reportAllChanges),rd((function(){s(a.takeRecords()),n(!0)})),Zu((function(){r=0,i=ed("CLS",0),n=nd(e,i,md,t.reportAllChanges),id((function(){return n()}))})),setTimeout(n,0))})))}((function(t){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(i=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||i[0];if(n)return void(e.attribution={largestShiftTarget:Xu(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:Yu(t.startTime)})}}var i;e.attribution={}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n,id:i}=e;const r={metricId:i,largestShiftTarget:n.largestShiftTarget,largestShiftTime:n.largestShiftTime,largestShiftValue:n.largestShiftValue,loadState:n.loadState};nh.update({value:t,attrs:r})}),{reportAllChanges:!0});const ih=new Xd(Wd);He&&function(e,t){_d((function(t){!function(e){var t=e.entries[0];e.attribution={eventTarget:Xu(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:Yu(t.startTime)}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n}=e;if(We||ih.isValid)return;const i={type:n.eventType,fid:Math.round(t),eventTarget:n.eventTarget,loadState:n.loadState};ih.update({value:n.eventTime,attrs:i})}));const rh=new Xd(qd);He&&function(e,t){Dd((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0],n=e.entries.find((function(e){return e.target}));e.attribution={eventTarget:Xu(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:Yu(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((e=>{let{value:t,attribution:n,id:i}=e;const r={metricId:i,eventTarget:n.eventTarget,eventType:n.eventType,eventTime:n.eventTime,loadState:n.loadState};rh.update({value:t,attrs:r})}));const oh=new Xd(Vd);He&&function(e,t){!function(e,t){t=t||{},hd((function(){var n,i=dd(),r=ed("LCP"),o=function(e){var t=e[e.length-1];t&&t.startTime<i.firstHiddenTime&&(r.value=Math.max(t.startTime-Qu(),0),r.entries=[t],n())},s=td("largest-contentful-paint",o);if(s){n=nd(e,r,Ld,t.reportAllChanges);var a=od((function(){Ud[r.id]||(o(s.takeRecords()),s.disconnect(),Ud[r.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(a,0)}),!0)})),rd(a),Zu((function(i){r=ed("LCP"),n=nd(e,r,Ld,t.reportAllChanges),id((function(){r.value=performance.now()-i.timeStamp,Ud[r.id]=!0,n(!0)}))}))}}))}((function(t){!function(e){if(e.entries.length){var t=qu();if(t){var n=t.activationStart||0,i=e.entries[e.entries.length-1],r=i.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===i.url}))[0],o=Math.max(0,t.responseStart-n),s=Math.max(o,r?(r.requestStart||r.startTime)-n:0),a=Math.max(s,r?r.responseEnd-n:0),c=Math.max(a,i?i.startTime-n:0),l={element:Xu(i.element),timeToFirstByte:o,resourceLoadDelay:s-o,resourceLoadTime:a-s,elementRenderDelay:c-a,navigationEntry:t,lcpEntry:i};return i.url&&(l.url=i.url),r&&(l.lcpResourceEntry=r),void(e.attribution=l)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(t),e(t)}),t)}((e=>{let t,{value:n,attribution:i}=e;if(We||oh.isValid)return;const r=i.lcpEntry;r&&(t={size:r.size,eid:r.id,element:i.element,timeToFirstByte:i.timeToFirstByte,resourceLoadDelay:i.resourceLoadDelay,resourceLoadTime:i.resourceLoadTime,elementRenderDelay:i.elementRenderDelay},i.url&&(t.elUrl=ml(i.url)),r.element?.tagName&&(t.elTag=r.element.tagName)),oh.update({value:n,attrs:t})}));const sh=new Xd(Yd);if(He){const e=e=>{e.forEach((e=>{sh.update({value:e.duration,attrs:{ltFrame:e.name,ltStart:e.startTime,ltCtr:e.attribution[0].containerType,..."window"!==e.attribution[0].containerType&&{ltCtrSrc:e.attribution[0].containerSrc,ltCtrId:e.attribution[0].containerId,ltCtrName:e.attribution[0].containerName}}})}))};let t;try{PerformanceObserver.supportedEntryTypes.includes("longtask")&&(t=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))})),t.observe({type:"longtask",buffered:!0}))}catch(Bu){}t&&kl((()=>{e(t.takeRecords())}))}var ah=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=th;#m=e=>{let{name:t,value:n,attrs:i}=e;this.addTiming(t,n,i)};constructor(e,t){var n;super(e,t,th),n=this,this.timings=[],this.timingsSent=[],this.curSessEndRecorded=!1,!0===At(this.agentIdentifier,"page_view_timing.long_task")&&sh.subscribe(this.#m),Jt("docHidden",(e=>this.endCurrentSession(e)),this.featureName,this.ee),Jt("winPagehide",(e=>this.recordPageUnload(e)),this.featureName,this.ee);const i=At(this.agentIdentifier,"page_view_timing.initialHarvestSeconds")||10,r=At(this.agentIdentifier,"page_view_timing.harvestTimeSeconds")||30;this.waitForFlags([]).then((()=>{Jd.subscribe(this.#m),$d.subscribe(this.#m),ih.subscribe(this.#m),oh.subscribe(this.#m),rh.subscribe(this.#m),Zd.subscribe((e=>{let{attrs:t}=e;this.addTiming("load",Math.round(t.navigationEntry.loadEventEnd))})),Pc((()=>{const{name:e,value:t,attrs:n}=nh.current;void 0!==t&&this.addTiming(e,1e3*t,n)}),!0);const e=new Sl("events",{onFinished:function(){return n.onHarvestFinished(...arguments)},getPayload:function(){return n.prepareHarvest(...arguments)}},this);e.startTimer(r,i),this.drain()}))}endCurrentSession(e){this.curSessEndRecorded||(this.addTiming("pageHide",e,null),this.curSessEndRecorded=!0)}recordPageUnload(e){this.addTiming("unload",e,null),this.endCurrentSession(e)}addTiming(e,t,n){(function(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!t)return;t.type&&(e["net-type"]=t.type);t.effectiveType&&(e["net-etype"]=t.effectiveType);t.rtt&&(e["net-rtt"]=t.rtt);t.downlink&&(e["net-dlink"]=t.downlink)})(n=n||{}),e!==Gd&&nh.current.value>=0&&(n.cls=nh.current.value),this.timings.push({name:e,value:t,attrs:n}),Kt("pvtAdded",[e,t,n],void 0,Qt.sessionTrace,this.ee)}onHarvestFinished(e){e.retry&&this.timingsSent.length>0&&(this.timings.unshift(...this.timingsSent),this.timingsSent=[])}appendGlobalCustomAttributes(e){var t=e.attrs||{},n=ct(this.agentIdentifier).jsAttributes||{},i=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];Xt(n,(function(e,n){i.indexOf(e)<0&&(t[e]=n)}))}prepareHarvest(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var n=0;n<this.timings.length;n++)this.timingsSent.push(this.timings[n]);return this.timings=[],{body:{e:t}}}}getPayload(e){for(var t=Hl(this.agentIdentifier),n="bel.6;",i=0;i<e.length;i++){var r=e[i];n+="e,",n+=t(r.name)+",",n+=Ul(r.value,Fl,!1)+",",this.appendGlobalCustomAttributes(r);var o=jl(r.attrs,t);o&&o.length>0&&(n+=Fl(o.length)+";"+o.join(";")),i+1<e.length&&(n+=";")}return n}}});let ch;const lh=new Promise((e=>{ch=e})),uh=Object.freeze({onReplayReady:ch,sessionReplayInitialized:lh});const dh=new class{#v=new WeakSet;#g=[];invalidStylesheetsDetected=!1;failedToFix=0;evaluate(){let e=0;if(He)for(let t=0;t<Object.keys(document.styleSheets).length;t++)if(!this.#v.has(document.styleSheets[t])){this.#v.add(document.styleSheets[t]);try{document.styleSheets[t].cssRules}catch(n){if(!document.styleSheets[t].href)return;e++,this.#g.push(this.#C(document.styleSheets[t]))}}return e&&(this.invalidStylesheetsDetected=!0),e}async fix(){await Promise.all(this.#g),this.#g=[];const e=this.failedToFix;return this.failedToFix=0,e}async#C(e){if(e?.href)try{const t=await Rt.FETCH.bind(window)(e.href);if(!t.ok)return void this.failedToFix++;const n=await t.text();try{const t=new CSSStyleSheet;await t.replace(n),Object.defineProperty(e,"cssRules",{get:()=>t.cssRules}),Object.defineProperty(e,"rules",{get:()=>t.rules})}catch(t){Object.defineProperty(e,"cssText",{get:()=>n}),this.failedToFix++}}catch(e){this.failedToFix++}}};var hh=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=kn;mode=bt;constructor(e,t,n){super(e,t,kn),this.harvestTimeSeconds=At(this.agentIdentifier,"session_replay.harvestTimeSeconds")||60,this.initialized=!1,this.blocked=!1,this.gzipper=void 0,this.u8=void 0,this.entitled=!1,this.timeKeeper=void 0,this.recorder=n?.recorder,this.errorNoticed=n?.errorNoticed||!1,Kt(Jn,["Config/SessionReplay/Enabled"],void 0,Qt.metrics,this.ee),this.ee.on("cfc.".concat(Qt.jserrors),(e=>{e.hasReplay=!(!this.scheduler?.started||!this.recorder||this.mode!==Et||this.blocked||!this.entitled)})),this.ee.on(mt,(()=>{this.abort(Rn)})),this.ee.on(ft,(()=>{this.recorder?.stopRecording()})),this.ee.on(vt,(()=>{if(!this.recorder)return;const{session:e}=Ut(this.agentIdentifier);this.mode=e.state.sessionReplayMode,this.initialized&&this.mode!==bt&&this.recorder?.startRecording()})),this.ee.on(gt,((e,t)=>{this.recorder&&this.initialized&&!this.blocked&&e===yt&&(this.mode!==bt&&t.sessionReplayMode===bt&&this.abort(Ln),this.mode=t.sessionReplay)})),this.scheduler=new Sl("browser/blobs",{onFinished:this.onHarvestFinished.bind(this),retryDelay:this.harvestTimeSeconds,getPayload:this.prepareHarvest.bind(this),raw:!0},this),Jt(Tn,(()=>{this.forceStop(this.mode!==wt)}),this.featureName,this.ee),Jt(An,(e=>{this.handleError(e)}),this.featureName,this.ee);const{error_sampling_rate:i,sampling_rate:r,autoStart:o,block_selector:s,mask_text_selector:a,mask_all_inputs:c,inline_stylesheet:l,inline_images:u,collect_fonts:d}=At(this.agentIdentifier,"session_replay");this.waitForFlags(["srs","sr"]).then((e=>{let[t,n]=e;if(this.entitled=!!n,!this.entitled)return rn(this.agentIdentifier,this.featureName),void(this.recorder?.recording&&(this.abort(Un),Kt(Jn,["SessionReplay/EnabledNotEntitled/Detected"],void 0,Qt.metrics,this.ee)));this.drain(),this.initializeRecording(t)})).then((()=>{if(this.mode===bt)for(this.recorder?.stopRecording();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.();uh.onReplayReady(this.mode)})),o||Kt(Jn,["Config/SessionReplay/AutoStart/Modified"],void 0,Qt.metrics,this.ee),!0===d&&Kt(Jn,["Config/SessionReplay/CollectFonts/Modified"],void 0,Qt.metrics,this.ee),!0!==l&&Kt(Jn,["Config/SessionReplay/InlineStylesheet/Modified"],void 0,Qt.metrics,this.ee),!0===u&&Kt(Jn,["Config/SessionReplay/InlineImages/Modifed"],void 0,Qt.metrics,this.ee),!0!==c&&Kt(Jn,["Config/SessionReplay/MaskAllInputs/Modified"],void 0,Qt.metrics,this.ee),"[data-nr-block]"!==s&&Kt(Jn,["Config/SessionReplay/BlockSelector/Modified"],void 0,Qt.metrics,this.ee),"*"!==a&&Kt(Jn,["Config/SessionReplay/MaskTextSelector/Modified"],void 0,Qt.metrics,this.ee),Kt(Jn,["Config/SessionReplay/SamplingRate/Value",r],void 0,Qt.metrics,this.ee),Kt(Jn,["Config/SessionReplay/ErrorSamplingRate/Value",i],void 0,Qt.metrics,this.ee)}handleError(e){this.recorder&&(this.recorder.currentBufferTarget.hasError=!0),this.mode===wt&&"visible"===Be?.document.visibilityState&&this.switchToFull()}switchToFull(){this.entitled&&!this.blocked&&(this.mode=Et,this.recorder&&this.initialized?(this.recorder.recording||this.recorder.startRecording(),this.scheduler.startTimer(this.harvestTimeSeconds),this.syncWithSessionManager({sessionReplayMode:this.mode})):this.initializeRecording(!1,!0,!0))}async initializeRecording(e,t){if(this.initialized=!0,!this.entitled)return;const{session:n,timeKeeper:i}=Ut(this.agentIdentifier);if(this.timeKeeper=i,this.recorder?.parent.trigger===Fn&&this.recorder?.recording?this.mode=Et:n.isNew||t?this.mode=e:this.mode=n.state.sessionReplayMode,this.mode!==bt){if(this.recorder)this.recorder.parent=this;else try{const{Recorder:e}=await Promise.resolve().then((function(){return mp}));this.recorder=new e(this),this.recorder.currentBufferTarget.hasError=this.errorNoticed}catch(e){return this.abort(xn)}this.mode===wt&&this.errorNoticed&&(this.mode=Et),this.mode===Et&&("preloaded"===this.recorder?.getEvents().type&&this.prepUtils().then((()=>{this.scheduler.runHarvest()})),this.scheduler.started||this.scheduler.startTimer(this.harvestTimeSeconds)),await this.prepUtils(),this.recorder.recording||this.recorder.startRecording(),this.syncWithSessionManager({sessionReplayMode:this.mode})}}async prepUtils(){try{const{gzipSync:e,strToU8:t}=await Promise.resolve().then((function(){return Qp}));this.gzipper=e,this.u8=t}catch(e){}}prepareHarvest(){let{opts:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.recorder||!this.timeKeeper?.ready)return;const t=this.recorder.getEvents();if(!t.events.length||this.mode!==Et||this.blocked)return;const n=this.getHarvestContents(t);if(!n.body.length)return void this.recorder.clearBuffer();Kt(Jn,["SessionReplay/Harvest/Attempts"],void 0,Qt.metrics,this.ee);let i=0;if(this.gzipper&&this.u8?(n.body=this.gzipper(this.u8("[".concat(n.body.map((e=>{let{__serialized:t,...n}=e;if(n.__newrelic&&t)return t;const i={...n};return i.__newrelic||(i.__newrelic=bn(n.timestamp,this.timeKeeper),i.timestamp=this.timeKeeper.correctAbsoluteTimestamp(n.timestamp)),Hn(i)})).join(","),"]"))),i=n.body.length,this.scheduler.opts.gzip=!0):(n.body=n.body.map((e=>{let{__serialized:t,...n}=e;if(n.__newrelic)return n;const i={...n};return i.__newrelic=bn(n.timestamp,this.timeKeeper),i.timestamp=this.timeKeeper.correctAbsoluteTimestamp(n.timestamp),i})),i=Hn(n.body).length,this.scheduler.opts.gzip=!1),i>1e6)return void this.abort(Dn);const{session:r}=Ut(this.agentIdentifier);return r.state.sessionReplaySentFirstChunk||this.syncWithSessionManager({sessionReplaySentFirstChunk:!0}),this.recorder.clearBuffer(),"preloaded"===t.type&&this.scheduler.runHarvest(e),[n]}getCorrectedTimestamp(e){if(e?.timestamp)return e.__newrelic?e.timestamp:this.timeKeeper.correctAbsoluteTimestamp(e.timestamp)}getHarvestContents(e){e??=this.recorder.getEvents();let t=e.events;const n=Ut(this.agentIdentifier),i=ct(this.agentIdentifier),r=i.jsAttributes?.["enduser.id"];t?.[0]?.type===Nn&&this.recorder.lastMeta&&(e.hasMeta=!0,t.unshift(this.recorder.lastMeta),this.recorder.lastMeta=void 0);t[t.length-1]?.type===On&&(this.recorder.lastMeta=t[t.length-1],t=t.slice(0,t.length-1),e.hasMeta=!!t.find((e=>e.type===On)));const o=Fe(),s=this.getCorrectedTimestamp(t[0]),a=this.getCorrectedTimestamp(t[t.length-1]),c=s||this.timeKeeper.correctAbsoluteTimestamp(e.cycleTimestamp),l=a||this.timeKeeper.convertRelativeTimestamp(o),u=n.appMetadata?.agents?.[0]||{};return{qs:{browser_monitoring_key:i.licenseKey,type:"SessionReplay",app_id:i.applicationID,protocol_version:"0",timestamp:c,attributes:ul({...!!this.gzipper&&!!this.u8&&{content_encoding:"gzip"},...u.entityGuid&&{entityGuid:u.entityGuid},harvestId:[n.session?.state.value,n.ptid,n.harvestCount].filter((e=>e)).join("_"),"replay.firstTimestamp":c,"replay.lastTimestamp":l,"replay.nodes":t.length,"session.durationMs":n.session.getDuration(),agentVersion:n.version,session:n.session.state.value,rst:o,hasMeta:e.hasMeta||!1,hasSnapshot:e.hasSnapshot||!1,hasError:e.hasError||!1,isFirstChunk:!1===n.session.state.sessionReplaySentFirstChunk,decompressedBytes:e.payloadBytesEstimation,invalidStylesheetsDetected:dh.invalidStylesheetsDetected,inlinedAllStylesheets:e.inlinedAllStylesheets,"rrweb.version":"2.0.0-alpha.12","payload.type":e.type,...r&&{"enduser.id":r}},5e3).substring(1)},body:t}}onHarvestFinished(e){429===e.status&&this.abort(Pn),this.blocked&&this.scheduler.stopTimer(!0)}forceStop(e){e&&this.scheduler.runHarvest(),this.mode=bt,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode})}abort(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(rt("SR aborted -- ".concat(e.message)),Kt(Jn,["SessionReplay/Abort/".concat(e.sm)],void 0,Qt.metrics,this.ee),this.blocked=!0,this.mode=bt,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode}),this.recorder?.clearTimestamps?.(),this.ee.emit("REPLAY_ABORTED");this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.()}syncWithSessionManager(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{session:t}=Ut(this.agentIdentifier);t.write(e)}}});const ph=Qt.sessionTrace;function fh(e){if(0===(e||"").indexOf("data:"))return{protocol:"data"};try{const t=new URL(e,location.href),n={port:t.port,hostname:t.hostname,pathname:t.pathname,search:t.search,protocol:t.protocol.slice(0,t.protocol.indexOf(":")),sameOrigin:t.protocol===Be?.location?.protocol&&t.host===Be?.location?.host};return n.port&&""!==n.port||("http:"===t.protocol&&(n.port="80"),"https:"===t.protocol&&(n.port="443")),n.pathname&&""!==n.pathname?n.pathname.startsWith("/")||(n.pathname="/".concat(n.pathname)):n.pathname="/",n}catch(e){return{}}}class mh{constructor(e,t,n,i,r){this.n=e,this.s=t,this.e=n,this.o=i,this.t=r}}const vh="function"==typeof Be.PerformanceObserver,gh={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},Ch={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]};class yh{nodeCount=0;trace={};earliestTimeStamp=1/0;latestTimeStamp=0;tempStorage=[];prevStoredEvents=new Set;constructor(e){this.parent=e}storeSTN(e){if(!this.parent.blocked){if(this.nodeCount>=1e3){if(this.parent.agentRuntime.session.state.sessionTraceMode!==wt)return;if(0===this.trimSTNs(3e4))return}for(;this.tempStorage.length;)this.storeSTN(this.tempStorage.shift());this.trace[e.n]?this.trace[e.n].push(e):this.trace[e.n]=[e],e.s<this.earliestTimeStamp&&(this.earliestTimeStamp=e.s),e.s>this.latestTimeStamp&&(this.latestTimeStamp=e.s),this.nodeCount++}}trimSTNs(e){let t=0;const n=Math.max(Fe()-e,0);return Object.keys(this.trace).forEach((e=>{const i=this.trace[e];let r=i.findIndex((e=>n<=e.e));0!==r&&(r<0?(r=i.length,delete this.trace[e]):i.splice(0,r),this.nodeCount-=r,t+=r)})),t}takeSTNs(){vh||this.storeResources(Be.performance?.getEntriesByType?.("resource"));const e=Object.entries(this.trace).flatMap((e=>{let[t,n]=e;if(!(t in Ch))return n;const i=this.smearEvtsByOrigin(t),r=n.sort(((e,t)=>e.s-t.s)).reduce(i,{});return Object.values(r).flat()}),this);if(0===e.length)return{};this.trace={},this.nodeCount=0;const t=this.earliestTimeStamp;this.earliestTimeStamp=1/0;const n=this.latestTimeStamp;return this.latestTimeStamp=0,{stns:e,earliestTimeStamp:t,latestTimeStamp:n}}smearEvtsByOrigin(e){const t=Ch[e][0],n=Ch[e][1],i={};return(r,o)=>{let s=r[o.o];s||(s=r[o.o]=[]);const a=i[o.o];return"scrolling"!==e||function(e){const t=4;return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.s<t)}(o)?a&&o.s-a.s<n&&a.e>o.s-t?a.e=o.e:(i[o.o]=o,s.push(o)):(i[o.o]=null,o.n="scroll",s.push(o)),r}}processPVT(e,t,n){this.storeTiming({[e]:t}),function(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}(e,n)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+n.fid)}storeTiming(e){if(e)for(let t in e){let n=e[t];const i=t.toLowerCase();i.indexOf("size")>=0||i.indexOf("status")>=0||"number"==typeof n&&n>=0&&(n=Math.round(n),this.storeSTN(new mh(t,n,n,"document","timing")))}}storeEvent(e,t,n,i){if(this.shouldIgnoreEvent(e,t))return;if(this.prevStoredEvents.has(e))return;this.prevStoredEvents.add(e);const r=new mh(this.evtName(e.type),n,i,void 0,"event");try{r.o=this.evtOrigin(e.target,t)}catch(e){r.o=this.evtOrigin(null,t)}this.storeSTN(r)}shouldIgnoreEvent(e,t){const n=this.evtOrigin(e.target,t);return e.type in gh.global||(!(!gh[n]||!gh[n].ignoreAll)||!(!gh[n]||!(e.type in gh[n])))}evtName(e){switch(e){case"keydown":case"keyup":case"keypress":return"typing";case"mousemove":case"mouseenter":case"mouseleave":case"mouseover":case"mouseout":return"mousing";case"scroll":return"scrolling";case"touchstart":case"touchmove":case"touchend":case"touchcancel":case"touchenter":case"touchleave":return"touching";default:return e}}evtOrigin(e,t){let n="unknown";if(e&&e instanceof XMLHttpRequest){const t=this.parent.ee.context(e).params;if(!(t&&t.status&&t.method&&t.host&&t.pathname))return"xhrOriginMissing";n=t.status+" "+t.method+": "+t.host+t.pathname}else if(e&&"string"==typeof e.tagName&&(n=e.tagName.toLowerCase(),e.id&&(n+="#"+e.id),e.className))for(let t=0;t<e.classList.length;t++)n+="."+e.classList[t];return"unknown"===n&&("string"==typeof t?n=t:t===document?n="document":t===window?n="window":t instanceof FileReader&&(n="FileReader")),n}storeHist(e,t,n){this.storeSTN(new mh("history.pushState",n,n,e,t))}#y=0;storeResources(e){e&&0!==e.length&&(e.forEach((e=>{if((0|e.fetchStart)<=this.#y)return;const{initiatorType:t,fetchStart:n,responseEnd:i,entryType:r}=e,{protocol:o,hostname:s,port:a,pathname:c}=fh(e.name),l=new mh(t,0|n,0|i,"".concat(o,"://").concat(s,":").concat(a).concat(c),r);this.storeSTN(l)})),this.#y=0|e[e.length-1].fetchStart)}storeErrorAgg(e,t,n,i){"err"===e&&this.storeSTN(new mh("error",i.time,i.time,n.message,n.stackHash))}storeXhrAgg(e,t,n,i){"xhr"===e&&this.storeSTN(new mh("Ajax",i.time,i.time+i.duration,"".concat(n.status," ").concat(n.method,": ").concat(n.host).concat(n.pathname),"ajax"))}restoreNode(e,t){this.nodeCount>=1e3||(this.nodeCount+=t.length,this.trace[e]=this.trace[e]?t.concat(this.trace[e]):t)}}var bh=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=ph;constructor(e,t){super(e,t,ph),this.agentRuntime=Ut(e),this.agentInfo=ct(e),this.sentTrace=null,this.harvestTimeSeconds=At(e,"session_trace.harvestTimeSeconds")||30,this.entitled=void 0,this.everHarvested=!1,this.harvesting=!1,this.traceStorage=new yh(this),this.waitForFlags(["sts","st"]).then((e=>{let[t,n]=e;return this.initialize(t,n)}))}initialize(e,t,n){var i=this;return this.entitled??=t,this.blocked||!this.entitled?rn(this.agentIdentifier,this.featureName):(this.initialized||(this.ee.on(mt,(()=>{this.abort()})),this.ee.on(gt,((e,t)=>{this.mode===Et||t.sessionReplayMode!==Et&&t.sessionTraceMode!==Et||this.switchToFull()}))),this.agentRuntime.session.isNew||n?this.mode=e:this.mode=this.agentRuntime.session.state.sessionTraceMode,this.initialized=!0,this.mode===bt?rn(this.agentIdentifier,this.featureName):(this.timeKeeper??=this.agentRuntime.timeKeeper,this.scheduler=new Sl("browser/blobs",{onFinished:this.onHarvestFinished.bind(this),retryDelay:this.harvestTimeSeconds,getPayload:this.prepareHarvest.bind(this),raw:!0},this),Jt("bst",(function(){return i.traceStorage.storeEvent(...arguments)}),this.featureName,this.ee),Jt("bstResource",(function(){return i.traceStorage.storeResources(...arguments)}),this.featureName,this.ee),Jt("bstHist",(function(){return i.traceStorage.storeHist(...arguments)}),this.featureName,this.ee),Jt("bstXhrAgg",(function(){return i.traceStorage.storeXhrAgg(...arguments)}),this.featureName,this.ee),Jt("bstApi",(function(){return i.traceStorage.storeSTN(...arguments)}),this.featureName,this.ee),Jt("trace-jserror",(function(){return i.traceStorage.storeErrorAgg(...arguments)}),this.featureName,this.ee),Jt("pvtAdded",(function(){return i.traceStorage.processPVT(...arguments)}),this.featureName,this.ee),"undefined"!=typeof PerformanceNavigationTiming?this.traceStorage.storeTiming(Be.performance?.getEntriesByType?.("navigation")[0]):this.traceStorage.storeTiming(Be.performance?.timing),this.mode===Et?this.startHarvesting():Jt("trace-jserror",(()=>{this.mode===wt&&this.switchToFull()}),this.featureName,this.ee),this.agentRuntime.session.write({sessionTraceMode:this.mode}),void this.drain()))}startHarvesting(){this.scheduler.started||this.blocked||(this.scheduler.runHarvest(),this.scheduler.startTimer(this.harvestTimeSeconds))}prepareHarvest(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.traceStorage.prevStoredEvents.clear(),!this.timeKeeper?.ready)return;if(this.mode===bt&&0===this.traceStorage.nodeCount)return;if(this.mode===wt)return;const{stns:t,earliestTimeStamp:n,latestTimeStamp:i}=this.traceStorage.takeSTNs();if(!t)return;e.retry&&(this.sentTrace=t);const r=!this.agentRuntime.session.state.traceHarvestStarted;r&&this.agentRuntime.session.write({traceHarvestStarted:!0});const o=1===this.agentRuntime.session?.state.sessionReplayMode,s=this.agentInfo?.jsAttributes?.["enduser.id"];this.everHarvested=!0;const a=this.agentRuntime.appMetadata?.agents?.[0]||{};return{qs:{browser_monitoring_key:this.agentInfo.licenseKey,type:"BrowserSessionChunk",app_id:this.agentInfo.applicationID,protocol_version:"0",timestamp:this.timeKeeper.convertRelativeTimestamp(n),attributes:ul({...a.entityGuid&&{entityGuid:a.entityGuid},harvestId:"".concat(this.agentRuntime.session?.state.value,"_").concat(this.agentRuntime.ptid,"_").concat(this.agentRuntime.harvestCount),"trace.firstTimestamp":this.timeKeeper.convertRelativeTimestamp(n),"trace.lastTimestamp":this.timeKeeper.convertRelativeTimestamp(i),"trace.nodes":t.length,"trace.originTimestamp":this.timeKeeper.correctedOriginTime,agentVersion:this.agentRuntime.version,...r&&{firstSessionHarvest:r},...o&&{hasReplay:o},ptid:"".concat(this.agentRuntime.ptid),session:"".concat(this.agentRuntime.session?.state.value),...s&&{"enduser.id":s}},5e3).substring(1)},body:t}}onHarvestFinished(e){e.sent&&e.retry&&this.sentTrace&&(Object.entries(this.sentTrace).forEach((e=>{let[t,n]=e;this.traceStorage.restoreNode(t,n)})),this.sentTrace=null)}switchToFull(){if(this.mode===Et||!this.entitled||this.blocked)return;const e=this.mode;if(this.mode=Et,this.agentRuntime.session.write({sessionTraceMode:this.mode}),e===bt||!this.initialized)return this.initialize(this.mode,this.entitled);this.initialized&&this.traceStorage.trimSTNs(3e4),this.startHarvesting()}abort(){this.blocked=!0,this.mode=bt,this.agentRuntime.session.write({sessionTraceMode:this.mode}),this.scheduler.stopTimer()}}}),Eh=0;function wh(e,t,n,i){Object.defineProperty(this,"interaction",{value:e,writable:!0}),this.parent=t,this.id=++Eh,this.type=n,this.children=[],this.end=null,this.jsEnd=this.start=i,this.jsTime=0,this.attrs={},this.cancelled=!1}var _h=wh.prototype;_h.child=function(e,t,n,i){var r=this.interaction;if(r.end||r.nodes>=128)return null;r.onNodeAdded(this);var o=new wh(r,this,e,t);return o.attrs.name=n,r.nodes++,i||r.remaining++,o},_h.callback=function(e,t){var n=this;n.jsTime+=e,t>n.jsEnd&&(n.jsEnd=t,n.interaction.lastCb=t)},_h.cancel=function(){this.cancelled=!0,this.interaction.remaining--},_h.finish=function(e){var t=this;if(t.end)return;t.end=e;let n=t.parent;for(;n?.cancelled;)n=n.parent;n&&n.children.push(t),t.parent=null;var i=this.interaction;i.remaining--,i.lastFinish=e,i.checkFinish()};var kh=Rt.ST,Sh=Rt.CT,Th={};function Mh(e,t,n,i,r,o){this.agentIdentifier=o,this.ee=Gt.get(o),Th[o]=0,this.id=++Th[o],this.eventName=e,this.nodes=0,this.remaining=0,this.finishTimer=null,this.checkingFinish=!1,this.lastCb=this.lastFinish=t,this.handlers=[],this.onFinished=r,this.done=!1;var s=(this.root=new wh(this,null,"interaction",t)).attrs;s.trigger=e,s.initialPageURL=Ut(o).origin,s.oldRoute=i,s.newURL=s.oldURL=n,s.custom={},s.store={}}var Ah=Mh.prototype;Ah.checkFinish=function(){var e=this;e.remaining>0?e._resetFinishCheck():e.checkingFinish||null===e.root.end&&(e._resetFinishCheck(),e.checkingFinish=!0,e.finishTimer=kh((()=>{e.checkingFinish=!1,e.finishTimer=kh((()=>{e.finishTimer=null,e.remaining<=0&&e.finish()}),1)}),0))},Ah.setNewURL=function(e){this.root.attrs.newURL=e},Ah.setNewRoute=function(e){this.root.attrs.newRoute=e},Ah.onNodeAdded=function(){this._resetFinishCheck()},Ah._resetFinishCheck=function(){this.finishTimer&&(Sh(this.finishTimer),this.finishTimer=null,this.checkingFinish=!1)},Ah.finish=function(){var e=this,t=e.root;if(null===t.end){var n=Math.max(e.lastCb,e.lastFinish),i=t.attrs.custom;this.onFinished&&this.onFinished(this),Xt(ct(e.agentIdentifier).jsAttributes,(function(e,t){e in i||(i[e]=t)})),t.end=n,e.ee.emit("interaction",[this])}};class Nh extends li{constructor(e){super(e),this.firstTimestamp=void 0}serializeMultiple(e,t,n){const i=ct(this.sharedContext.agentIdentifier);var r=Hl(this.sharedContext.agentIdentifier),o="bel.7";return e.forEach((e=>{o+=";"+this.serializeInteraction(e.root,t,n,e.routeChange,r,i)})),this.firstTimestamp=void 0,o}serializeSingle(e,t,n,i){const r=ct(this.sharedContext.agentIdentifier);var o=Hl(this.sharedContext.agentIdentifier),s="bel.7;"+this.serializeInteraction(e,t,n,i,o,r);return this.firstTimestamp=void 0,s}serializeInteraction(e,t,n,i,r,o){t=t||0;var s="initialPageLoad"===e.attrs.trigger,a={interaction:1,ajax:2,customTracer:4},c=!0;const l=(e,u)=>{if("customEnd"===e.type)return u.push([3,Fl(e.end-this.firstTimestamp)]);var d=e.type,h=a[d],p=e.start,f=e.children.length,m=0,v=o.atts,g=s&&n.length&&1===h,C=[],y=e.attrs,b=y.metrics,E=y.params,w=o.queueTime,_=o.applicationTime;void 0===this.firstTimestamp?(p+=t,this.firstTimestamp=p):p-=this.firstTimestamp;var k=[Fl(p),Fl(e.end-e.start),Fl(e.jsEnd-e.end),Fl(e.jsTime)];switch(h){case 1:k[2]=Fl(e.jsEnd-this.firstTimestamp),k.push(r(y.trigger),r(ml(y.initialPageURL,c)),r(ml(y.oldURL,c)),r(ml(y.newURL,c)),r(y.customName),s?"":i?1:2,Ul(s&&w,Fl,!0)+Ul(s&&_,Fl,!0)+Ul(y.oldRoute,r,!0)+Ul(y.newRoute,r,!0)+r(y.id),r(e.id),Ul(y.firstPaint,Fl,!0)+Ul(y.firstContentfulPaint,Fl,!1));var S=jl(y.custom,r);C=C.concat(S),m=S.length,v&&(f++,C.push("a,"+r(v)));break;case 2:if(k.push(r(E.method),Fl(E.status),r(E.host),r(E.pathname),Fl(b.txSize),Fl(b.rxSize),y.isFetch?1:y.isJSONP?2:"",r(e.id),Ul(e.dt&&e.dt.spanId,r,!0)+Ul(e.dt&&e.dt.traceId,r,!0)+Ul(e.dt&&e.dt.timestamp,Fl,!1)),Object.keys(E?.gql||{}).length){var T=jl(E.gql,r);C=C.concat(T),m=T.length}break;case 4:var M=y.tracedTime;k.push(r(y.name),Ul(M,Fl,!0)+r(e.id))}for(var A=0;A<e.children.length;A++)l(e.children[A],C);if(k.unshift(Fl(h),Fl(f+=m)),u.push(k),f&&u.push(C.join(";")),g){var N=",",O="b",I=0;Xt(n.slice(1,21),(function(e,t){void 0!==t?(O+=N+Fl(t-I),N=",",I=t):(O+=N+"!",N="")})),u.push(O)}else 1===h&&u.push("");return u};return l(e,[]).join(";")}}const Oh=Qt.spa,Ih=Rt.ST,Rh="-end",xh="cb"+Rh;var Ph=Object.freeze({__proto__:null,BODY:"-body",CB_END:xh,CB_START:"cb-start",END:Rh,FEATURE_NAME:Oh,FETCH:"fetch",FETCH_BODY:"fetch-body-",FETCH_DONE:"fetch-done",FETCH_START:"fetch-start",FN_END:"fn-end",FN_START:"fn-start",INTERACTION:"interaction",INTERACTION_API:"api-ixn-",INTERACTION_EVENTS:["click","submit","keypress","keydown","keyup","change"],JSONP_END:"jsonp-end",JSONP_NODE:"jsonpNode",JS_TIME:"jsTime",MAX_TIMER_BUDGET:999,REMAINING:"remaining",SPA_NODE:"spaNode",START:"-start",originalSetTimeout:Ih});const{FEATURE_NAME:Dh,INTERACTION_EVENTS:Lh,MAX_TIMER_BUDGET:Uh,FN_START:Fh,FN_END:Hh,CB_START:jh,INTERACTION_API:Bh,REMAINING:zh,INTERACTION:Wh,SPA_NODE:Vh,JSONP_NODE:Gh,FETCH_START:qh,FETCH_DONE:Yh,FETCH_BODY:Kh,JSONP_END:Xh,originalSetTimeout:$h}=Ph;var Jh=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=Dh;constructor(e,t){super(e,t,Dh);const n=Ut(e);let i;this.state={initialPageURL:n.origin,lastSeenUrl:n.origin,lastSeenRouteName:null,timerMap:{},timerBudget:Uh,currentNode:null,prevNode:null,nodeOnLastHashUpdate:null,initialPageLoad:null,pageLoaded:!1,childTime:0,depth:0,harvestTimeSeconds:At(e,"spa.harvestTimeSeconds")||10,interactionsToHarvest:[],interactionsSent:[],disableSpaFix:(At(e,"feature_flags")||[]).indexOf("disable-spa-fix")>-1},this.serializer=new Nh(this);const{state:r,serializer:o}=this,s=Gt.get(e),a=s.get("mutation"),c=s.get("promise"),l=s.get("history"),u=s.get("events"),d=s.get("timer"),h=s.get("fetch"),p=s.get("jsonp"),f=s.get("xhr"),m=s.get("tracer");if(this.waitForFlags(["spa"]).then((t=>{let[n]=t;n?(i=new Sl("events",{onFinished:T,retryDelay:r.harvestTimeSeconds},{agentIdentifier:e,ee:s}),i.harvest.on("events",S),this.drain()):(this.blocked=!0,rn(this.agentIdentifier,this.featureName))})),!1===At(e,"spa.enabled"))return;r.initialPageLoad=new Mh("initialPageLoad",0,r.lastSeenUrl,r.lastSeenRouteName,_,e),r.initialPageLoad.save=!0,r.prevInteraction=r.initialPageLoad,r.currentNode=r.initialPageLoad.root,r.initialPageLoad[zh]++,Jt(Fh,g,this.featureName,s),Jt(jh,g,this.featureName,c);var v={getCurrentNode:function(){return r.currentNode},setCurrentNode:w};function g(){r.depth++,this.prevNode=r.currentNode,this.ct=r.childTime,r.childTime=0,r.timerBudget=Uh}function C(){r.depth--;var e=this.jsTime||0,t=e-r.childTime;r.childTime=this.ct+e,r.currentNode&&(r.currentNode.callback(t,this[Hh]),this.isTraced&&(r.currentNode.attrs.tracedTime=t)),this.jsTime=r.currentNode?0:t,w(this.prevNode),this.prevNode=null,r.timerBudget=Uh}function y(e,t,n){var i=this[Vh];if(i){var r=i[Wh],o=this.inc;this.isTraced=!0,o?r[zh]--:i&&i.finish(e),n?w(i):r.checkFinish()}}function b(e){return r.currentNode&&r.currentNode[Wh]===e?r.currentNode:e.root}function E(){this.resolved||(this.resolved=!0,this[Vh]=r.currentNode)}function w(e){r.pageLoaded||e||!r.initialPageLoad||(e=r.initialPageLoad.root),r.currentNode&&r.currentNode[Wh].checkFinish(),r.prevNode=r.currentNode,r.currentNode=e&&!e[Wh].root.end?e:null}function _(e){e===r.initialPageLoad&&(r.initialPageLoad=null);var t=e.root,n=t.attrs;r.currentNode=t,Xt(e.handlers,(function(e,t){t(n.store)})),w(null)}Jt("spa-register",(function(e){"function"==typeof e&&e(v)}),Qt.spa,s),Jt(Hh,C,this.featureName,s),Jt("cb-end",C,this.featureName,c),Jt(Fh,(function(t,n){var i=t[0],o=i.type,a=i["__nrNode:".concat(Wt)];if(!r.pageLoaded&&("load"===o&&n===window||ze)&&(r.pageLoaded=!0,this.prevNode=r.currentNode=null,r.initialPageLoad&&(a=r.initialPageLoad.root,r.initialPageLoad[zh]=0,$h((function(){Lh.push("popstate")})))),a)w(a);else if("hashchange"===o)w(r.nodeOnLastHashUpdate),r.nodeOnLastHashUpdate=null;else if(n instanceof XMLHttpRequest)w(s.context(n).spaNode);else if(!r.currentNode&&-1!==Lh.indexOf(o)){var c=new Mh(o,this[Fh],r.lastSeenUrl,r.lastSeenRouteName,_,e);if(r.prevInteraction=c,w(c.root),"click"===o){var l=function(e){var t=e.tagName.toLowerCase();if(-1!==["a","button","input"].indexOf(t))return e.title||e.value||e.innerText}(i.target);l&&(r.currentNode.attrs.custom.actionText=l)}}i["__nrNode:".concat(Wt)]=r.currentNode}),this.featureName,u),Jt("setTimeout-end",(function(e,t,n){!r.currentNode||r.timerBudget-this.timerDuration<0||(!e||e[0]instanceof Function)&&(r.currentNode[Wh][zh]++,this.timerId=n,r.timerMap[n]=r.currentNode,this.timerBudget=r.timerBudget-50)}),this.featureName,d),Jt("clearTimeout-start",(function(e){var t=e[0],n=r.timerMap[t];if(n){var i=n[Wh];i[zh]--,i.checkFinish(),delete r.timerMap[t]}}),this.featureName,d),Jt(Fh,(function(){r.timerBudget=this.timerBudget||Uh;var e=this.timerId,t=r.timerMap[e];w(t),delete r.timerMap[e],t&&t[Wh][zh]--}),this.featureName,d),Jt(Fh,(function(){w(this[Vh])}),this.featureName,f),Jt("new-xhr",(function(){if(!r.disableSpaFix&&!r.currentNode&&r.prevInteraction&&!r.prevInteraction.ignored){const e=r.prevInteraction;r.currentNode=e.root,e.root.end=null}r.currentNode&&(this[Vh]=r.currentNode.child("ajax",null,null,!0))}),this.featureName,f),Jt("send-xhr-start",(function(){var e=this[Vh];e&&!this.sent&&(this.sent=!0,e.dt=this.dt,e.dt?.timestamp&&(e.dt.timestamp=n.timeKeeper.correctAbsoluteTimestamp(e.dt.timestamp)),e.jsEnd=e.start=this.startTime,e[Wh][zh]++)}),this.featureName,f),Jt("xhr-resolved",(function(){var e=this[Vh];if(e){if(!Ml(this.params))return void e.cancel();var t=e.attrs;t.params=this.params,t.metrics=this.metrics,e.finish(this.endTime),this.currentNode&&this.currentNode.interaction&&this.currentNode.interaction.checkFinish()}}),this.featureName,s),Jt("new-jsonp",(function(e){r.currentNode&&((this[Gh]=r.currentNode.child("ajax",this[qh])).start=this["new-jsonp"],this.url=e,this.status=null)}),this.featureName,p),Jt("cb-start",(function(e){var t=this[Gh];t&&(w(t),this.status=200)}),this.featureName,p),Jt("jsonp-error",(function(){var e=this[Gh];e&&(w(e),this.status=0)}),this.featureName,p),Jt(Xh,(function(){var e=this[Gh];if(e){if(null===this.status)return void e.cancel();var t=e.attrs,n=t.params={},i=fh(this.url);n.method="GET",n.pathname=i.pathname,n.host=i.hostname+":"+i.port,n.status=this.status,t.metrics={txSize:0,rxSize:0},t.isJSONP=!0,e.jsEnd=this[Xh],e.jsTime=this[jh]?this[Xh]-this[jh]:0,e.finish(e.jsEnd)}}),this.featureName,p),Jt(qh,(function(e,t){if(e){if(!r.disableSpaFix&&!r.currentNode&&r.prevInteraction&&!r.prevInteraction.ignored){const e=r.prevInteraction;r.currentNode=e.root,e.root.end=null}r.currentNode&&(this[Vh]=r.currentNode.child("ajax",this[qh]),t&&this[Vh]&&(this[Vh].dt=t,this[Vh].dt?.timestamp&&(this[Vh].dt.timestamp=n.timeKeeper.correctAbsoluteTimestamp(this[Vh].dt.timestamp))))}}),this.featureName,h),Jt(Kh+"start",(function(e){r.currentNode&&(this[Vh]=r.currentNode,r.currentNode[Wh][zh]++)}),this.featureName,h),Jt(Kh+"end",(function(e,t,n){var i=this[Vh];i&&i[Wh][zh]--}),this.featureName,h),Jt(Yh,(function(e,t){var n=this[Vh];if(n){if(e||!Ml(this.params))return void n.cancel();var i=n.attrs;i.params=this.params,i.metrics={txSize:this.txSize,rxSize:this.rxSize},i.isFetch=!0,n.finish(this[Yh])}}),this.featureName,h),Jt("newURL",(function(e,t){if(r.currentNode)r.currentNode[Wh].setNewURL(e);else if(r.prevInteraction&&!r.prevInteraction.ignored){const t=r.prevInteraction;t.setNewURL(e),t.root.end=null,w(t.root)}r.currentNode&&(r.lastSeenUrl!==e&&(r.currentNode[Wh].routeChange=!0),t&&(r.nodeOnLastHashUpdate=r.currentNode)),r.lastSeenUrl=e}),this.featureName,l),p.on("dom-start",(function(e){if(r.currentNode){var t=e[0],n=t&&"SCRIPT"===t.nodeName&&""!==t.src,i=r.currentNode.interaction;n&&(i[zh]++,t.addEventListener("load",(function(){i[zh]--,i.checkFinish()}),pn(!1)),t.addEventListener("error",(function(){i[zh]--,i.checkFinish()}),pn(!1)))}})),Jt(Fh,(function(){w(r.prevNode)}),this.featureName,a),Jt("resolve-start",E,this.featureName,c),Jt("executor-err",E,this.featureName,c),Jt("propagate",(function(e,t){!t&&this[Vh]||(this[Vh]=r.currentNode)}),this.featureName,c),Jt(jh,(function(){w((this.getCtx?this.getCtx():this)[Vh])}),this.featureName,c),Jt(Bh+"get",(function(t){var n;n=this.ixn=r?.currentNode?.[Wh]?r.currentNode[Wh]:null===r?.prevNode?.end&&"initialPageLoad"!==r?.prevNode?.[Wh]?.root?.[Wh]?.eventName?r.prevNode[Wh]:new Mh("api",t,r.lastSeenUrl,r.lastSeenRouteName,_,e),r.currentNode||(n.checkFinish(),r.depth&&w(n.root))}),this.featureName,s),Jt(Bh+"actionText",(function(e,t){var n=this.ixn.root.attrs.custom;t&&(n.actionText=t)}),this.featureName,s),Jt(Bh+"setName",(function(e,t,n){var i=this.ixn.root.attrs;t&&(i.customName=t),n&&(i.trigger=n)}),this.featureName,s),Jt(Bh+"setAttribute",(function(e,t,n){this.ixn.root.attrs.custom[t]=n}),this.featureName,s),Jt(Bh+"end",(function(e){var t=this.ixn,n=b(t);w(null),n.child("customEnd",e).finish(e),t.finish()}),this.featureName,s),Jt(Bh+"ignore",(function(e){this.ixn.ignored=!0}),this.featureName,s),Jt(Bh+"save",(function(e){this.ixn.save=!0}),this.featureName,s),Jt(Bh+"tracer",(function(e,t,n){var i=this.ixn,r=b(i),o=s.context(n);if(!t)return o.inc=++i[zh],o[Vh]=r;o[Vh]=r.child("customTracer",e,t)}),this.featureName,s),Jt(Fh,y,this.featureName,m),Jt("no-"+Fh,y,this.featureName,m),Jt(Bh+"getContext",(function(e,t){var n=this.ixn.root.attrs.store;setTimeout((function(){t(n)}),0)}),this.featureName,s),Jt(Bh+"onEnd",(function(e,t){this.ixn.handlers.push(t)}),this.featureName,s),Jt("api-routeName",(function(e,t){r.lastSeenRouteName=t,r.currentNode&&r.currentNode[Wh].setNewRoute(t)}),this.featureName,s);const k=this;function S(e){if(0===r.interactionsToHarvest.length||k.blocked)return{};var t=o.serializeMultiple(r.interactionsToHarvest,0,Lu);return e.retry&&r.interactionsToHarvest.forEach((function(e){r.interactionsSent.push(e)})),r.interactionsToHarvest=[],{body:{e:t}}}function T(e){e.sent&&e.retry&&r.interactionsSent.length>0&&(r.interactionsSent.forEach((function(e){r.interactionsToHarvest.unshift(e)})),r.interactionsSent=[])}s.on("spa-jserror",(function(e,t,n,i){r.currentNode&&(n._interactionId=r.currentNode.interaction.id,r.currentNode.type&&"interaction"!==r.currentNode.type&&(n._interactionNodeId=r.currentNode.id))})),Jt("function-err",(function(t,n,i){r.currentNode&&(i.__newrelic??={},i.__newrelic[e]={interactionId:r.currentNode.interaction.id},r.currentNode.type&&"interaction"!==r.currentNode.type&&(i.__newrelic[e].interactionNodeId=r.currentNode.id))}),this.featureName,s),s.on("interaction",(function(e){if(e.ignored||!e.save&&!e.routeChange)return void s.emit("interactionDone",[e,!1]);r.prevInteraction===e&&(r.prevInteraction=null);e.root.attrs.id=Bt(),"initialPageLoad"===e.root.attrs.trigger&&(e.root.attrs.firstPaint=Jd.current.value,e.root.attrs.firstContentfulPaint=$d.current.value);let t;s.emit("interactionDone",[e,!0]),r.interactionsToHarvest.push(e),t="initialPageLoad"===e.root?.attrs?.trigger?"InitialPageLoad":e.routeChange?"RouteChange":"Custom";Kt(Jn,["Spa/Interaction/".concat(t,"/Duration/Ms"),Math.max((e.root?.end||0)-(e.root?.start||0),0)],void 0,Qt.metrics,s),i?.scheduleHarvest(0),i||rt("SPA scheduler is not initialized. Saved interaction is not sent!")}))}}});const Zh=Qt.softNav,Qh="",ep=1,tp=2,np=1,ip=2,rp="in progress",op="finished",sp="cancelled";let ap=0;class cp{belType;children=[];start;end;callbackEnd=0;callbackDuration=0;nodeId=++ap;constructor(e){if(!e)throw new Error("Interaction is missing core attributes");this.agentIdentifier=e}addChild(e){this.children.push(e)}serialize(){}}class lp extends cp{constructor(e,t){super(e),this.belType=ip,this.method=t.method,this.status=t.status,this.domain=t.domain,this.path=t.path,this.txSize=t.requestSize,this.rxSize=t.responseSize,this.requestedWith="fetch"===t.type?1:"",this.spanId=t.spanId,this.traceId=t.traceId,this.spanTimestamp=t.spanTimestamp,this.gql=t.gql,this.start=t.startTime,this.end=t.endTime}serialize(e){const t=Hl(this.agentIdentifier),n=[],i=[Fl(this.belType),0,Fl(this.start-e),Fl(this.end-this.start),Fl(this.callbackEnd),Fl(this.callbackDuration),t(this.method),Fl(this.status),t(this.domain),t(this.path),Fl(this.txSize),Fl(this.rxSize),this.requestedWith,t(this.nodeId),Ul(this.spanId,t,!0)+Ul(this.traceId,t,!0)+Ul(this.spanTimestamp,Fl)];let r=[];return"object"==typeof this.gql&&(r=jl(this.gql,t)),this.children.forEach((e=>r.push(e.serialize()))),i[1]=Fl(r.length),n.push(i),r.length&&n.push(r.join(";")),n.join(";")}}class up extends cp{id=Bt();initialPageURL=Ve;oldURL=""+Be?.location;newURL=""+Be?.location;customName;customAttributes={};customDataByApi={};queueTime;appTime;newRoute;status=rp;domTimestamp=0;historyTimestamp=0;createdByApi=!1;keepOpenUntilEndApi=!1;onDone=[];cancellationTimer;constructor(e,t,n,i){super(e),this.belType=np,this.trigger=t,this.start=n,this.oldRoute=i,this.eventSubscription=new Map([["finished",[]],["cancelled",[]]]),this.forceSave=this.forceIgnore=!1,"api"===this.trigger&&(this.createdByApi=!0)}updateDom(e){this.domTimestamp=e||Fe()}updateHistory(e,t){this.newURL=t||""+Be?.location,this.historyTimestamp=e||Fe()}seenHistoryAndDomChange(){return this.historyTimestamp>0&&this.domTimestamp>this.historyTimestamp}on(e,t){if(!this.eventSubscription.has(e))throw new Error("Cannot subscribe to non pre-defined events.");if("function"!=typeof t)throw new Error("Must supply function as callback.");this.eventSubscription.get(e).push(t)}done(e){return(!this.keepOpenUntilEndApi||void 0!==e)&&(this.onDone.forEach((e=>e(this.customDataByApi))),this.forceIgnore?this.#b():this.seenHistoryAndDomChange()?this.#E(e):this.forceSave?this.#E(e||performance.now()):this.#b(),!0)}#E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.status!==rp)return;clearTimeout(this.cancellationTimer),this.end=Math.max(this.domTimestamp,this.historyTimestamp,e),this.customAttributes={...ct(this.agentIdentifier).jsAttributes,...this.customAttributes},this.status=op;this.eventSubscription.get("finished").forEach((e=>e()))}#b(){if(this.status!==rp)return;clearTimeout(this.cancellationTimer),this.status=sp;this.eventSubscription.get("cancelled").forEach((e=>e()))}isActiveDuring(e){return this.status===rp?this.start<=e:this.status===op&&this.start<=e&&this.end>=e}get firstPaint(){}get firstContentfulPaint(){}get navTiming(){}serialize(e){const t=Hl(this.agentIdentifier),n=[];let i;i="initialPageLoad"===this.trigger?Qh:this.newURL!==this.oldURL?ep:tp;const r=[Fl(this.belType),0,Fl(this.start-e),Fl(this.end-this.start),Fl(this.callbackEnd),Fl(this.callbackDuration),t(this.trigger),t(ml(this.initialPageURL,!0)),t(ml(this.oldURL,!0)),t(ml(this.newURL,!0)),t(this.customName),i,Ul(this.queueTime,Fl,!0)+Ul(this.appTime,Fl,!0)+Ul(this.oldRoute,t,!0)+Ul(this.newRoute,t,!0)+t(this.id),t(this.nodeId),Ul(this.firstPaint,Fl,!0)+Ul(this.firstContentfulPaint,Fl)],o=jl(this.customAttributes||{},t);return ct(this.agentIdentifier).atts&&o.push("a,"+t(ct(this.agentIdentifier).atts)),this.children.forEach((t=>o.push(t.serialize(e||this.start)))),r[1]=Fl(o.length),n.push(r),o.length&&n.push(o.join(";")),this.navTiming?n.push(this.navTiming):n.push(""),n.join(";")}}class dp extends up{constructor(e){super(e,"initialPageLoad",0,null);const t=ct(e);this.queueTime=t.queueTime,this.appTime=t.applicationTime}get firstPaint(){return Jd.current.value}get firstContentfulPaint(){return $d.current.value}get navTiming(){if(!Lu.length)return;let e=",",t="b",n=0;return Lu.slice(1,21).forEach((i=>{void 0!==i?(t+=e+Fl(i-n),e=",",n=i):(t+=e+"!",e="")})),t}}var hp=Object.freeze({__proto__:null,Aggregate:class extends Il{static featureName=Zh;constructor(e,t,n){let{domObserver:i}=n;super(e,t,Zh);const r=At(e,"soft_navigations.harvestTimeSeconds")||10;this.interactionsToHarvest=[],this.interactionsAwaitingRetry=[],this.domObserver=i,this.initialPageLoadInteraction=new dp(e),Zd.subscribe((e=>{let{attrs:t}=e;const n=t.navigationEntry.loadEventEnd;this.initialPageLoadInteraction.forceSave=!0,this.initialPageLoadInteraction.done(n),this.interactionsToHarvest.push(this.initialPageLoadInteraction),this.initialPageLoadInteraction=null,Kt(Jn,["SoftNav/Interaction/InitialPageLoad/Duration/Ms",Math.round(n)],void 0,Qt.metrics,this.ee)})),this.latestRouteSetByApi=null,this.interactionInProgress=null,this.blocked=!1,this.waitForFlags(["spa"]).then((t=>{let[n]=t;if(n){this.drain();const t=new Sl("events",{onFinished:this.onHarvestFinished.bind(this),retryDelay:r,onUnload:()=>this.interactionInProgress?.done()},{agentIdentifier:e,ee:this.ee});t.harvest.on("events",this.onHarvestStarted.bind(this)),t.startTimer(r,0)}else this.blocked=!0,rn(this.agentIdentifier,this.featureName)})),Jt("newUIEvent",(e=>this.startUIInteraction(e.type,Math.floor(e.timeStamp),e.target)),this.featureName,this.ee),Jt("newURL",((e,t)=>this.interactionInProgress?.updateHistory(e,t)),this.featureName,this.ee),Jt("newDom",(e=>{this.interactionInProgress?.updateDom(e),this.interactionInProgress?.seenHistoryAndDomChange()&&this.interactionInProgress.done()}),this.featureName,this.ee),this.#w(),Jt("ajax",this.#_.bind(this),this.featureName,this.ee),Jt("jserror",this.#k.bind(this),this.featureName,this.ee)}onHarvestStarted(e){if(0===this.interactionsToHarvest.length||this.blocked)return;let t=0;const n=[];for(const e of this.interactionsToHarvest)n.push(e.serialize(t)),t||(t=Math.floor(e.start));const i="bel.7;".concat(n.join(";"));return e.retry&&(this.interactionsAwaitingRetry=this.interactionsToHarvest),this.interactionsToHarvest=[],{body:{e:i}}}onHarvestFinished(e){e.sent&&e.retry&&this.interactionsAwaitingRetry.length>0&&(this.interactionsToHarvest=[...this.interactionsAwaitingRetry,...this.interactionsToHarvest]),this.interactionsAwaitingRetry=[]}startUIInteraction(e,t,n){if(!this.interactionInProgress?.createdByApi&&!1!==this.interactionInProgress?.done()){if(this.interactionInProgress=new up(this.agentIdentifier,e,t,this.latestRouteSetByApi),"click"===e){const e=function(e){const t=e.tagName.toLowerCase();if(["a","button","input"].includes(t))return e.title||e.value||e.innerText}(n);e&&(this.interactionInProgress.customAttributes.actionText=e)}this.interactionInProgress.cancellationTimer=setTimeout((()=>{this.interactionInProgress.done(),Kt(Jn,["SoftNav/Interaction/TimeOut"],void 0,Qt.metrics,this.ee)}),3e4),this.setClosureHandlers()}}setClosureHandlers(){this.interactionInProgress.on("finished",(()=>{const e=this.interactionInProgress;this.interactionsToHarvest.push(this.interactionInProgress),this.interactionInProgress=null,this.domObserver.disconnect(),Kt(Jn,["SoftNav/Interaction/".concat(e.newURL!==e.oldURL?"RouteChange":"Custom","/Duration/Ms"),Math.round(e.end-e.start)],void 0,Qt.metrics,this.ee)})),this.interactionInProgress.on("cancelled",(()=>{this.interactionInProgress=null,this.domObserver.disconnect()}))}getInteractionFor(e){if(this.interactionInProgress?.isActiveDuring(e))return this.interactionInProgress;let t;for(let n=this.interactionsToHarvest.length-1;n>=0;n--){const i=this.interactionsToHarvest[n];if(i.isActiveDuring(e)){if("initialPageLoad"!==i.trigger)return i;t=i}}return t||(this.initialPageLoadInteraction?.isActiveDuring(e)?this.initialPageLoadInteraction:void 0)}#_(e){const t=this.getInteractionFor(e.startTime);function n(e,t,n){const i=new lp(e,t);n.addChild(i)}t?t.status===op?n(this.agentIdentifier,e,t):(t.on("finished",(()=>n(this.agentIdentifier,e,t))),t.on("cancelled",(()=>Kt("returnAjax",[e],void 0,Qt.ajax,this.ee)))):Kt("returnAjax",[e],void 0,Qt.ajax,this.ee)}#k(e,t){const n=this.getInteractionFor(t);n&&(e.browserInteractionId=n.id,n.status===op?(e._softNavFinished=!0,e._softNavAttributes=n.customAttributes):(n.on("finished",En((()=>Kt("softNavFlush",[n.id,!0,n.customAttributes],void 0,Qt.jserrors,this.ee)))),n.on("cancelled",En((()=>Kt("softNavFlush",[n.id,!1,void 0],void 0,Qt.jserrors,this.ee))))))}#w(){const e="api-ixn-",t=this;Jt(e+"get",(function(e){let{waitForEnd:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.associatedInteraction=t.getInteractionFor(e),this.associatedInteraction||(this.associatedInteraction=t.interactionInProgress=new up(t.agentIdentifier,"api",e,t.latestRouteSetByApi),t.setClosureHandlers()),!0===n&&(this.associatedInteraction.keepOpenUntilEndApi=!0)}),t.featureName,t.ee),Jt(e+"end",(function(e){this.associatedInteraction.done(e)}),t.featureName,t.ee),Jt(e+"save",(function(){this.associatedInteraction.forceSave=!0}),t.featureName,t.ee),Jt(e+"ignore",(function(){this.associatedInteraction.forceIgnore=!0}),t.featureName,t.ee),Jt(e+"getContext",(function(e,t){"function"==typeof t&&setTimeout((()=>t(this.associatedInteraction.customDataByApi)),0)}),t.featureName,t.ee),Jt(e+"onEnd",(function(e,t){"function"==typeof t&&this.associatedInteraction.onDone.push(t)}),t.featureName,t.ee),Jt(e+"actionText",(function(e,t){t&&(this.associatedInteraction.customAttributes.actionText=t)}),t.featureName,t.ee),Jt(e+"setName",(function(e,t,n){t&&(this.associatedInteraction.customName=t),n&&(this.associatedInteraction.trigger=n)}),t.featureName,t.ee),Jt(e+"setAttribute",(function(e,t,n){this.associatedInteraction.customAttributes[t]=n}),t.featureName,t.ee),Jt(e+"routeName",(function(e,n){t.latestRouteSetByApi=n,t.interactionInProgress&&(t.interactionInProgress.newRoute=n)}),t.featureName,t.ee)}}}),pp={};!function(e){var t;function n(e){return e.nodeType===e.ELEMENT_NODE}function i(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function r(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function o(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,s).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function s(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=o(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}Object.defineProperty(e,"__esModule",{value:!0}),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(t||(t={}));class a{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function c(){return new a}function l({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o}){let s=r||"";const a=i&&u(i);return(t[n.toLowerCase()]||a&&t[a])&&(s=o?o(s,e):"*".repeat(s.length)),s}function u(e){return e.toLowerCase()}const d="__rrweb_original__";function h(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?u(t):null}function p(e,t){var n;let i;try{i=new URL(e,null!=t?t:window.location.href)}catch(e){return null}const r=i.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(n=null==r?void 0:r[1])&&void 0!==n?n:null}let f=1;const m=new RegExp("[^a-z0-9-_:]");function v(){return f++}let g,C;const y=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,b=/^(?:[a-z+]+:)?\/\//i,E=/^www\..*/i,w=/^(data:)([^,]*),(.*)/i;function _(e,t){return(e||"").replace(y,((e,n,i,r,o,s)=>{const a=i||o||s,c=n||r||"";if(!a)return e;if(b.test(a)||E.test(a))return`url(${c}${a}${c})`;if(w.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const k=/^[^ \t\n\r\u000c]+/,S=/^[, \t\n\r\u000c]+/;function T(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function M(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function A(){const e=document.createElement("a");return e.href="",e.href}function N(e,t,n,i){return i?"src"===n||"href"===n&&("use"!==t||"#"!==i[0])||"xlink:href"===n&&"#"!==i[0]?T(e,i):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i;const r=e.exec(t.substring(n));return r?(i=r[0],n+=i.length,i):""}const r=[];for(;i(S),!(n>=t.length);){let o=i(k);if(","===o.slice(-1))o=T(e,o.substring(0,o.length-1)),r.push(o);else{let i="";o=T(e,o);let s=!1;for(;;){const e=t.charAt(n);if(""===e){r.push((o+i).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,r.push((o+i).trim());break}"("===e&&(s=!0)}i+=e,n+=1}}}return r.join(", ")}(e,i):"style"===n?_(i,A()):"object"===t&&"data"===n?T(e,i):i:T(e,i):i}function O(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function I(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&I(e.parentNode,t,n);for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}return!!n&&I(e.parentNode,t,n)}function R(e,t,n,i){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("string"==typeof t){if(i){if(r.closest(`.${t}`))return!0}else if(r.classList.contains(t))return!0}else if(I(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(e){}return!1}function x(e,n){const{doc:i,mirror:r,blockClass:s,blockSelector:a,needsMask:c,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:v,maskInputFn:y,dataURLOptions:b={},inlineImages:E,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:S=!1}=n,T=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(i,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:t.Document,childNodes:[],compatMode:e.compatMode}:{type:t.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:t.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return function(e,n){const{doc:i,blockClass:r,blockSelector:s,inlineStylesheet:a,maskInputOptions:c={},maskInputFn:p,dataURLOptions:f={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:E=!1,rootId:w}=n,k=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,s),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=u(e.tagName);return m.test(t)?"div":t}(e);let T={};const I=e.attributes.length;for(let t=0;t<I;t++){const n=e.attributes[t];O(S,n.name,n.value)||(T[n.name]=N(i,S,u(n.name),n.value))}if("link"===S&&a){const t=Array.from(i.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=o(t)),n&&(delete T.rel,delete T.href,T._cssText=_(n,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=o(e.sheet);t&&(T._cssText=_(t,A()))}if("input"===S||"textarea"===S||"select"===S){const t=e.value,n=e.checked;"radio"!==T.type&&"checkbox"!==T.type&&"submit"!==T.type&&"button"!==T.type&&t?T.value=l({element:e,type:h(e),tagName:S,value:t,maskInputOptions:c,maskInputFn:p}):n&&(T.checked=n)}"option"===S&&(e.selected&&!c.select?T.selected=!0:delete T.selected);if("canvas"===S&&y)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let i=0;i<e.height;i+=50){const r=t.getImageData,o=d in r?r[d]:r;if(new Uint32Array(o.call(t,n,i,Math.min(50,e.width-n),Math.min(50,e.height-i)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const t=e.toDataURL(f.type,f.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(f.type,f.quality)&&(T.rr_dataURL=t)}if("img"===S&&v){g||(g=i.createElement("canvas"),C=g.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const r=()=>{t.removeEventListener("load",r);try{g.width=t.naturalWidth,g.height=t.naturalHeight,C.drawImage(t,0,0),T.rr_dataURL=g.toDataURL(f.type,f.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?T.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?r():t.addEventListener("load",r)}"audio"!==S&&"video"!==S||(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime);E||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop));if(k){const{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==S||b(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src);let R;try{customElements.get(S)&&(R=!0)}catch(e){}return{type:t.Element,tagName:S,attributes:T,childNodes:[],isSVG:M(e)||void 0,needBlock:k,rootId:w,isCustom:R}}(e,{doc:i,blockClass:s,blockSelector:a,inlineStylesheet:p,maskInputOptions:f,maskInputFn:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:S,rootId:T});case e.TEXT_NODE:return function(e,n){var i;const{needsMask:r,maskTextFn:s,rootId:a}=n,c=e.parentNode&&e.parentNode.tagName;let l=e.textContent;const u="STYLE"===c||void 0,d="SCRIPT"===c||void 0;if(u&&l){try{e.nextSibling||e.previousSibling||(null===(i=e.parentNode.sheet)||void 0===i?void 0:i.cssRules)&&(l=o(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}l=_(l,A())}d&&(l="SCRIPT_PLACEHOLDER");!u&&!d&&l&&r&&(l=s?s(l,e.parentElement):l.replace(/[\S]/g,"*"));return{type:t.Text,textContent:l||"",isStyle:u,rootId:a}}(e,{needsMask:c,maskTextFn:v,rootId:T});case e.CDATA_SECTION_NODE:return{type:t.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:t.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function P(e){return null==e?"":e.toLowerCase()}function D(e,o){const{doc:s,mirror:a,blockClass:c,blockSelector:l,maskTextClass:u,maskTextSelector:d,skipChild:h=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskTextFn:g,maskInputFn:C,slimDOMOptions:y,dataURLOptions:b={},inlineImages:E=!1,recordCanvas:w=!1,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:S=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:N=!1}=o;let{needsMask:O}=o,{preserveWhiteSpace:I=!0}=o;if(!O&&e.childNodes){O=R(e,u,d,void 0===O)}const L=x(e,{doc:s,mirror:a,blockClass:c,blockSelector:l,needsMask:O,inlineStylesheet:f,maskInputOptions:m,maskTextFn:g,maskInputFn:C,dataURLOptions:b,inlineImages:E,recordCanvas:w,keepIframeSrcFn:A,newlyAddedElement:N});if(!L)return console.warn(e,"not serialized"),null;let U;U=a.hasNode(e)?a.getId(e):!function(e,n){if(n.comment&&e.type===t.Comment)return!0;if(e.type===t.Element){if(n.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===p(e.attributes.href)))return!0;if(n.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(P(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===P(e.attributes.name)||"icon"===P(e.attributes.rel)||"apple-touch-icon"===P(e.attributes.rel)||"shortcut icon"===P(e.attributes.rel))))return!0;if("meta"===e.tagName){if(n.headMetaDescKeywords&&P(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(P(e.attributes.property).match(/^(og|twitter|fb):/)||P(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===P(e.attributes.name)))return!0;if(n.headMetaRobots&&("robots"===P(e.attributes.name)||"googlebot"===P(e.attributes.name)||"bingbot"===P(e.attributes.name)))return!0;if(n.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(n.headMetaAuthorship&&("author"===P(e.attributes.name)||"generator"===P(e.attributes.name)||"framework"===P(e.attributes.name)||"publisher"===P(e.attributes.name)||"progid"===P(e.attributes.name)||P(e.attributes.property).match(/^article:/)||P(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&("google-site-verification"===P(e.attributes.name)||"yandex-verification"===P(e.attributes.name)||"csrf-token"===P(e.attributes.name)||"p:domain_verify"===P(e.attributes.name)||"verify-v1"===P(e.attributes.name)||"verification"===P(e.attributes.name)||"shopify-checkout-api-token"===P(e.attributes.name)))return!0}}return!1}(L,y)&&(I||L.type!==t.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?v():-2;const F=Object.assign(L,{id:U});if(a.add(e,F),-2===U)return null;_&&_(e);let H=!h;if(F.type===t.Element){H=H&&!F.needBlock,delete F.needBlock;const t=e.shadowRoot;t&&r(t)&&(F.isShadowHost=!0)}if((F.type===t.Document||F.type===t.Element)&&H){y.headWhitespace&&F.type===t.Element&&"head"===F.tagName&&(I=!1);const i={doc:s,mirror:a,blockClass:c,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:h,inlineStylesheet:f,maskInputOptions:m,maskTextFn:g,maskInputFn:C,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:A};if(F.type===t.Element&&"textarea"===F.tagName&&void 0!==F.attributes.value);else for(const t of Array.from(e.childNodes)){const e=D(t,i);e&&F.childNodes.push(e)}if(n(e)&&e.shadowRoot)for(const t of Array.from(e.shadowRoot.childNodes)){const n=D(t,i);n&&(r(e.shadowRoot)&&(n.isShadow=!0),F.childNodes.push(n))}}return e.parentNode&&i(e.parentNode)&&r(e.parentNode)&&(F.isShadow=!0),F.type===t.Element&&"iframe"===F.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let r,o=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){const i=setTimeout((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(i),o=!0,t()}))}const s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&k){const n=D(t,{doc:t,mirror:a,blockClass:c,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskTextFn:g,maskInputFn:C,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:A});n&&k(e,n)}}),S),F.type===t.Element&&"link"===F.tagName&&"string"==typeof F.attributes.rel&&("stylesheet"===F.attributes.rel||"preload"===F.attributes.rel&&"string"==typeof F.attributes.href&&"css"===p(F.attributes.href))&&function(e,t,n){let i,r=!1;try{i=e.sheet}catch(e){return}if(i)return;const o=setTimeout((()=>{r||(t(),r=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(o),r=!0,t()}))}(e,(()=>{if(T){const t=D(e,{doc:s,mirror:a,blockClass:c,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskTextFn:g,maskInputFn:C,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:A});t&&T(e,t)}}),M),F}const L=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function U(e,t={}){let n=1,i=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");i=-1===r?i+e.length:e.length-r}function o(){const e={line:n,column:i};return t=>(t.position=new s(e),p(),t)}class s{constructor(e){this.start=e,this.end={line:n,column:i},this.source=t.source}}s.prototype.content=e;const a=[];function c(r){const o=new Error(`${t.source||""}:${n}:${i}: ${r}`);if(o.reason=r,o.filename=t.source,o.line=n,o.column=i,o.source=e,!t.silent)throw o;a.push(o)}function l(){return h(/^{\s*/)}function u(){return h(/^}/)}function d(){let t;const n=[];for(p(),f(n);e.length&&"}"!==e.charAt(0)&&(t=k()||S());)t&&(n.push(t),f(n));return n}function h(t){const n=t.exec(e);if(!n)return;const i=n[0];return r(i),e=e.slice(i.length),n}function p(){h(/^\s*/)}function f(e=[]){let t;for(;t=m();)t&&e.push(t),t=m();return e}function m(){const t=o();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return c("End of comment missing");const s=e.slice(2,n-2);return i+=2,r(s),e=e.slice(n),i+=2,t({type:"comment",comment:s})}function v(){const e=h(/^([^{]+)/);if(e)return F(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,""))).split(/\s*(?![^(]*\)),\s*/).map((e=>e.replace(/\u200C/g,",")))}function g(){const e=o(),t=h(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;const n=F(t[0]);if(!h(/^:\s*/))return c("property missing ':'");const i=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:n.replace(L,""),value:i?F(i[0]).replace(L,""):""});return h(/^[;\s]*/),r}function C(){const e=[];if(!l())return c("missing '{'");let t;for(f(e);t=g();)!1!==t&&(e.push(t),f(e)),t=g();return u()?e:c("missing '}'")}function y(){let e;const t=[],n=o();for(;e=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),h(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:C()})}const b=_("import"),E=_("charset"),w=_("namespace");function _(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return()=>{const n=o(),i=h(t);if(!i)return;const r={type:e};return r[e]=i[1].trim(),n(r)}}function k(){if("@"===e[0])return function(){const e=o();let t=h(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=h(/^([-\w]+)\s*/),!t)return c("@keyframes missing name");const i=t[1];if(!l())return c("@keyframes missing '{'");let r,s=f();for(;r=y();)s.push(r),s=s.concat(f());return u()?e({type:"keyframes",name:i,vendor:n,keyframes:s}):c("@keyframes missing '}'")}()||function(){const e=o(),t=h(/^@media *([^{]+)/);if(!t)return;const n=F(t[1]);if(!l())return c("@media missing '{'");const i=f().concat(d());return u()?e({type:"media",media:n,rules:i}):c("@media missing '}'")}()||function(){const e=o(),t=h(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:F(t[1]),media:F(t[2])})}()||function(){const e=o(),t=h(/^@supports *([^{]+)/);if(!t)return;const n=F(t[1]);if(!l())return c("@supports missing '{'");const i=f().concat(d());return u()?e({type:"supports",supports:n,rules:i}):c("@supports missing '}'")}()||b()||E()||w()||function(){const e=o(),t=h(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=F(t[1]),i=F(t[2]);if(!l())return c("@document missing '{'");const r=f().concat(d());return u()?e({type:"document",document:i,vendor:n,rules:r}):c("@document missing '}'")}()||function(){const e=o();if(!h(/^@page */))return;const t=v()||[];if(!l())return c("@page missing '{'");let n,i=f();for(;n=g();)i.push(n),i=i.concat(f());return u()?e({type:"page",selectors:t,declarations:i}):c("@page missing '}'")}()||function(){const e=o();if(!h(/^@host\s*/))return;if(!l())return c("@host missing '{'");const t=f().concat(d());return u()?e({type:"host",rules:t}):c("@host missing '}'")}()||function(){const e=o();if(!h(/^@font-face\s*/))return;if(!l())return c("@font-face missing '{'");let t,n=f();for(;t=g();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):c("@font-face missing '}'")}()}function S(){const e=o(),t=v();return t?(f(),e({type:"rule",selectors:t,declarations:C()})):c("selector missing")}return H(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())}function F(e){return e?e.replace(/^\s+|\s+$/g,""):""}function H(e,t){const n=e&&"string"==typeof e.type,i=n?e:t;for(const t of Object.keys(e)){const n=e[t];Array.isArray(n)?n.forEach((e=>{H(e,i)})):n&&"object"==typeof n&&H(n,i)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const j={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function B(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const z=/(max|min)-device-(width|height)/,W=new RegExp(z.source,"g"),V=/([^\\]):hover/,G=new RegExp(V.source,"g");function q(e,t){const n=null==t?void 0:t.stylesWithHoverClass.get(e);if(n)return n;const i=U(e,{silent:!0});if(!i.stylesheet)return e;const r=[],o=[];!function e(t){"selectors"in t&&t.selectors&&t.selectors.forEach((e=>{V.test(e)&&r.push(e)})),"media"in t&&t.media&&z.test(t.media)&&o.push(t.media),"rules"in t&&t.rules&&t.rules.forEach(e)}(i.stylesheet);let s=e;if(r.length>0){const e=new RegExp(r.filter(((e,t)=>r.indexOf(e)===t)).sort(((e,t)=>t.length-e.length)).map((e=>B(e))).join("|"),"g");s=s.replace(e,(e=>{const t=e.replace(G,"$1.\\:hover");return`${e}, ${t}`}))}if(o.length>0){const e=new RegExp(o.filter(((e,t)=>o.indexOf(e)===t)).sort(((e,t)=>t.length-e.length)).map((e=>B(e))).join("|"),"g");s=s.replace(e,(e=>e.replace(W,"$1-$2")))}return null==t||t.stylesWithHoverClass.set(e,s),s}function Y(){return{stylesWithHoverClass:new Map}}function K(e,n){var i;const{doc:r,hackCss:o,cache:s}=n;switch(e.type){case t.Document:return r.implementation.createDocument(null,"",null);case t.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case t.Element:{const t=function(e){let t=j[e.tagName]?j[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(e);let n;e.isSVG?n=r.createElementNS("http://www.w3.org/2000/svg",t):(e.isCustom&&(null===(i=r.defaultView)||void 0===i?void 0:i.customElements)&&!r.defaultView.customElements.get(e.tagName)&&r.defaultView.customElements.define(e.tagName,class extends r.defaultView.HTMLElement{}),n=r.createElement(t));const a={};for(const i in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,i))continue;let c=e.attributes[i];if("option"===t&&"selected"===i&&!1===c)continue;if(null===c)continue;if(!0===c&&(c=""),i.startsWith("rr_")){a[i]=c;continue}const l="textarea"===t&&"value"===i,u="style"===t&&"_cssText"===i;if(u&&o&&"string"==typeof c&&(c=q(c,s)),!l&&!u||"string"!=typeof c)try{if(e.isSVG&&"xlink:href"===i)n.setAttributeNS("http://www.w3.org/1999/xlink",i,c.toString());else if("onload"===i||"onclick"===i||"onmouse"===i.substring(0,7))n.setAttribute("_"+i,c.toString());else{if("meta"===t&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===i){n.setAttribute("csp-content",c.toString());continue}("link"!==t||"preload"!==e.attributes.rel&&"modulepreload"!==e.attributes.rel||"script"!==e.attributes.as)&&("link"===t&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")||("img"===t&&e.attributes.srcset&&e.attributes.rr_dataURL?n.setAttribute("rrweb-original-srcset",e.attributes.srcset):n.setAttribute(i,c.toString())))}}catch(e){}else n.appendChild(r.createTextNode(c)),e.childNodes=[]}for(const i in a){const r=a[i];if("canvas"===t&&"rr_dataURL"===i){const e=document.createElement("img");e.onload=()=>{const t=n.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=r.toString(),n.RRNodeType&&(n.rr_dataURL=r.toString())}else if("img"===t&&"rr_dataURL"===i){const t=n;t.currentSrc.startsWith("data:")||(t.setAttribute("rrweb-original-src",e.attributes.src),t.src=r.toString())}if("rr_width"===i)n.style.width=r.toString();else if("rr_height"===i)n.style.height=r.toString();else if("rr_mediaCurrentTime"===i&&"number"==typeof r)n.currentTime=r;else if("rr_mediaState"===i)switch(r){case"played":n.play().catch((e=>console.warn("media playback error",e)));break;case"paused":n.pause()}}if(e.isShadowHost)if(n.shadowRoot)for(;n.shadowRoot.firstChild;)n.shadowRoot.removeChild(n.shadowRoot.firstChild);else n.attachShadow({mode:"open"});return n}case t.Text:return r.createTextNode(e.isStyle&&o?q(e.textContent,s):e.textContent);case t.CDATA:return r.createCDATASection(e.textContent);case t.Comment:return r.createComment(e.textContent);default:return null}}function X(e,i){const{doc:r,mirror:o,skipChild:s=!1,hackCss:a=!0,afterAppend:c,cache:l}=i;if(o.has(e.id)){const n=o.getNode(e.id);if(function(e,n){return!(!e||!n||e.type!==n.type)&&(e.type===t.Document?e.compatMode===n.compatMode:e.type===t.DocumentType?e.name===n.name&&e.publicId===n.publicId&&e.systemId===n.systemId:e.type===t.Comment||e.type===t.Text||e.type===t.CDATA?e.textContent===n.textContent:e.type===t.Element&&e.tagName===n.tagName&&JSON.stringify(e.attributes)===JSON.stringify(n.attributes)&&e.isSVG===n.isSVG&&e.needBlock===n.needBlock)}(o.getMeta(n),e))return o.getNode(e.id)}let u=K(e,{doc:r,hackCss:a,cache:l});if(!u)return null;if(e.rootId&&o.getNode(e.rootId)!==r&&o.replace(e.rootId,r),e.type===t.Document&&(r.close(),r.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==t.DocumentType&&(e.childNodes[0].type===t.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=r),o.add(u,e),(e.type===t.Document||e.type===t.Element)&&!s)for(const i of e.childNodes){const s=X(i,{doc:r,mirror:o,skipChild:!1,hackCss:a,afterAppend:c,cache:l});if(s){if(i.isShadow&&n(u)&&u.shadowRoot)u.shadowRoot.appendChild(s);else if(e.type===t.Document&&i.type==t.Element){const e=s;let t=null;e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),u.appendChild(s),e.appendChild(t)):u.appendChild(s)}else u.appendChild(s);c&&c(s,i.id)}else console.warn("Failed to rebuild",i)}return u}function $(e,n){const{doc:i,onVisit:r,hackCss:o=!0,afterAppend:s,cache:c,mirror:l=new a}=n,u=X(e,{doc:i,mirror:l,skipChild:!1,hackCss:o,afterAppend:s,cache:c});return function(e,t){for(const i of e.getIds())e.has(i)&&(n=e.getNode(i),t(n));var n}(l,(e=>{r&&r(e),function(e,n){const i=n.getMeta(e);if((null==i?void 0:i.type)!==t.Element)return;const r=e;for(const e in i.attributes){if(!Object.prototype.hasOwnProperty.call(i.attributes,e)||!e.startsWith("rr_"))continue;const t=i.attributes[e];"rr_scrollLeft"===e&&(r.scrollLeft=t),"rr_scrollTop"===e&&(r.scrollTop=t)}}(e,l)})),u}function J(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}const Z="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.";function Q(e,t,n={}){let i=null,r=0;return function(...o){const s=Date.now();r||!1!==n.leading||(r=s);const a=t-(s-r),c=this;a<=0||a>t?(i&&(clearTimeout(i),i=null),r=s,e.apply(c,o)):i||!1===n.trailing||(i=setTimeout((()=>{r=!1===n.leading?0:Date.now(),i=null,e.apply(c,o)}),a))}}function ee(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>ee(e,t,o||{},!0)}function te(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],r=n(i);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=r,()=>{e[t]=i}}catch(e){return()=>{}}}e.mirror={map:{},getId:()=>(console.error(Z),-1),getNode:()=>(console.error(Z),null),removeNodeFromMap(){console.error(Z)},has:()=>(console.error(Z),!1),reset(){console.error(Z)}},"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(e.mirror=new Proxy(e.mirror,{get:(e,t,n)=>("map"===t&&console.error(Z),Reflect.get(e,t,n))}));let ne=Date.now;function ie(e){var t,n,i,r,o,s;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null===(n=null===(t=null==a?void 0:a.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===(i=null==a?void 0:a.body)||void 0===i?void 0:i.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null===(o=null===(r=null==a?void 0:a.body)||void 0===r?void 0:r.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(s=null==a?void 0:a.body)||void 0===s?void 0:s.scrollTop)||0}}function re(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function se(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function ae(e,t,n,i){if(!e)return!1;const r=se(e);if(!r)return!1;try{if("string"==typeof t){if(r.classList.contains(t))return!0;if(i&&null!==r.closest("."+t))return!0}else if(I(r,t,i))return!0}catch(e){}if(n){if(r.matches(n))return!0;if(i&&null!==r.closest(n))return!0}return!1}function ce(e,t){return-1!==t.getId(e)}function le(e,t){return-2===t.getId(e)}function ue(e,t){if(i(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ue(e.parentNode,t))}function de(e){return Boolean(e.changedTouches)}function he(e=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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function pe(e){const t={},n=(e,n)=>{const i={value:e,parent:n,children:[]};return t[e.node.id]=i,i},i=[];for(const r of e){const{nextId:e,parentId:o}=r;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(r,o.parent))}else{const e=i.indexOf(o);i.splice(e,0,n(r,null))}}else if(o in t){const e=t[o];e.children.push(n(r,e))}else i.push(n(r,null))}return i}function fe(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)fe(e.children[n],t)}function me(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ve(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ge(e,t){var n,i;const r=null===(i=null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===i?void 0:i.frameElement;if(!r||r===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=r.getBoundingClientRect(),s=ge(r,t),a=o.height/r.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:a,absoluteScale:s.absoluteScale*a}}function Ce(e){return Boolean(null==e?void 0:e.shadowRoot)}function ye(e,t){const n=e[t[0]];return 1===t.length?n:ye(n.cssRules[t[1]].cssRules,t.slice(2))}function be(e){const t=[...e],n=t.pop();return{positions:t,index:n}}function Ee(e){const t=new Set,n=[];for(let i=e.length;i--;){const r=e[i];t.has(r.id)||(n.push(r),t.add(r.id))}return n}/[1-9][0-9]{12}/.test(Date.now().toString())||(ne=()=>(new Date).getTime());class we{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function _e(e){var t,n;let i=null;return(null===(n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===n?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(i=e.getRootNode().host),i}function ke(e){let t,n=e;for(;t=_e(n);)n=t;return n}function Se(e){const t=e.ownerDocument;if(!t)return!1;const n=ke(e);return t.contains(n)}function Te(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Se(e))}var Me=Object.freeze({__proto__:null,on:J,get _mirror(){return e.mirror},throttle:Q,hookSetter:ee,patch:te,get nowTimestamp(){return ne},getWindowScroll:ie,getWindowHeight:re,getWindowWidth:oe,closestElementOfNode:se,isBlocked:ae,isSerialized:ce,isIgnored:le,isAncestorRemoved:ue,legacy_isTouchEvent:de,polyfill:he,queueToResolveTrees:pe,iterateResolveTree:fe,isSerializedIframe:me,isSerializedStylesheet:ve,getBaseDimension:ge,hasShadowRoot:Ce,getNestedRule:ye,getPositionsAndIndex:be,uniqueTextMutations:Ee,StyleSheetMirror:we,getShadowHost:_e,getRootShadowHost:ke,shadowHostInDom:Se,inDom:Te}),Ae=(e=>(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))(Ae||{}),Ne=(e=>(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))(Ne||{}),Oe=(e=>(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))(Oe||{}),Ie=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ie||{}),Re=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Re||{}),xe=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(xe||{});function Pe(e){return"__ln"in e}class De{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Pe(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Pe(e.nextSibling)&&e.nextSibling.__ln.previous){const 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++}removeNode(e){const 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--)}}const Le=(e,t)=>`${e}@${t}`;class Ue{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new De,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Te(o)||"TEXTAREA"===o.parentNode.tagName)return;const s=i(o.parentNode)?this.mirror.getId(_e(o)):this.mirror.getId(o.parentNode),a=r(o);if(-1===s||-1===a)return n.addNode(o);const c=D(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{me(e,this.mirror)&&this.iframeManager.addIframe(e),ve(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ce(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});c&&(e.push({parentId:s,nextId:a,node:c}),t.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)He(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Be(this.droppedSet,e)||He(this.removes,e,this.mirror)?Be(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const i=t.parentNode.host;if(-1!==this.mirror.getId(i)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}const a={texts:this.texts.map((e=>{const t=e.node;return"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.genTextAreaValueMutation=e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,(e=>e.textContent||"")).join("")},this.processMutation=e=>{if(!le(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;ae(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:R(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,se(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,i=e.target.getAttribute(n);if("value"===n){const e=h(t);i=l({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:i,maskInputFn:this.maskInputFn})}if(ae(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let r=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(i)){if(t.contentDocument)return;n="rr_src"}if(r||(r={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(e.target,r)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!O(t.tagName,n)&&(r.attributes[n]=N(this.doc,u(t.tagName),u(n),i),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const i=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);i!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?r.styleDiff[e]=""===o?i:[i,o]:r._unchangedStyles[e]=[i,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(r.styleDiff[e]=!1)}break}case"childList":if(ae(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),o=i(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ae(e.target,this.blockClass,this.blockSelector,!1)||le(t,this.mirror)||!ce(t,this.mirror)||(this.addedSet.has(t)?(Fe(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||ue(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Le(n,o)]?Fe(this.movedSet,t):this.removes.push({parentId:o,id:n,isShadow:!(!i(e.target)||!r(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(le(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Le(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ae(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Ce(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Fe(e,t){e.delete(t),t.childNodes.forEach((t=>Fe(e,t)))}function He(e,t,n){return 0!==e.length&&je(e,t,n)}function je(e,t,n){const{parentNode:i}=t;if(!i)return!1;const r=n.getId(i);return!!e.some((e=>e.id===r))||je(e,i,n)}function Be(e,t){return 0!==e.size&&ze(e,t)}function ze(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||ze(e,n))}let We;function Ve(e){We=e}function Ge(){We=void 0}const qe=e=>{if(!We)return e;return(...t)=>{try{return e(...t)}catch(e){if(We&&!0===We(e))return;throw e}}},Ye=[];function Ke(e){try{if("composedPath"in e){const 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 Xe(e,t){var n,i;const r=new Ue;Ye.push(r),r.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const s=null===(i=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===i?void 0:i.call(n,"MutationObserver");s&&window[s]&&(o=window[s]);const a=new o(qe(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function $e({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[];let c=null;return Object.keys(Oe).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((o=>{let s=u(o);const l=(t=>o=>{const s=Ke(o);if(ae(s,i,r,!0))return;let a=null,l=t;if("pointerType"in o){switch(o.pointerType){case"mouse":a=Ie.Mouse;break;case"touch":a=Ie.Touch;break;case"pen":a=Ie.Pen}a===Ie.Touch?Oe[t]===Oe.MouseDown?l="TouchStart":Oe[t]===Oe.MouseUp&&(l="TouchEnd"):Ie.Pen}else de(o)&&(a=Ie.Touch);null!==a?(c=a,(l.startsWith("Touch")&&a===Ie.Touch||l.startsWith("Mouse")&&a===Ie.Mouse)&&(a=null)):Oe[t]===Oe.Click&&(a=c,c=null);const u=de(o)?o.changedTouches[0]:o;if(!u)return;const d=n.getId(s),{clientX:h,clientY:p}=u;qe(e)(Object.assign({type:Oe[l],id:d,x:h,y:p},null!==a&&{pointerType:a}))})(o);if(window.PointerEvent)switch(Oe[o]){case Oe.MouseDown:case Oe.MouseUp:s=s.replace("mouse","pointer");break;case Oe.TouchStart:case Oe.TouchEnd:return}a.push(J(s,l,t))})),qe((()=>{a.forEach((e=>e()))}))}function Je({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,sampling:o}){return J("scroll",qe(Q(qe((o=>{const s=Ke(o);if(!s||ae(s,i,r,!0))return;const a=n.getId(s);if(s===t&&t.defaultView){const n=ie(t.defaultView);e({id:a,x:n.left,y:n.top})}else e({id:a,x:s.scrollLeft,y:s.scrollTop})})),o.scroll||100)),t)}const Ze=["INPUT","TEXTAREA","SELECT"],Qe=new WeakMap;function et(e){return function(e,t){if(rt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||rt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||rt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||rt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function tt(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function nt({mirror:e,stylesheetManager:t},n){var i,r,o;let s=null;s="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?null===(i=n.defaultView)||void 0===i?void 0:i.Document:null===(o=null===(r=n.ownerDocument)||void 0===r?void 0:r.defaultView)||void 0===o?void 0:o.ShadowRoot,c=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&a&&c?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set(e){var n;const i=null===(n=c.set)||void 0===n?void 0:n.call(this,e);if(null!==s&&-1!==s)try{t.adoptStyleSheets(e,s)}catch(e){}return i}}),qe((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))):()=>{}}function it(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let i;!function(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:h,selectionCb:p,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),s(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),h(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t),e.recordDOM&&(i=Xe(e,e.doc));const r=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const r="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=Q(qe((t=>{const n=Date.now()-s;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],s=null})),o),l=qe(Q(qe((e=>{const t=Ke(e),{clientX:n,clientY:r}=de(e)?e.changedTouches[0]:e;s||(s=ne()),a.push({x:n,y:r,id:i.getId(t),timeOffset:ne()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ne.Drag:e instanceof MouseEvent?Ne.MouseMove:Ne.TouchMove)})),r,{trailing:!1})),u=[J("mousemove",l,n),J("touchmove",l,n),J("drag",l,n)];return qe((()=>{u.forEach((e=>e()))}))}(e),o=$e(e),s=Je(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,i=-1;return J("resize",qe(Q(qe((()=>{const t=re(),r=oe();n===t&&i===r||(e({width:Number(r),height:Number(t)}),n=t,i=r)})),200)),t)}(e,{win:n}),c=function({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,ignoreClass:o,ignoreSelector:s,maskInputOptions:a,maskInputFn:c,sampling:u,userTriggeredOnInput:d}){function p(e){let n=Ke(e);const u=e.isTrusted,p=n&&n.tagName;if(n&&"OPTION"===p&&(n=n.parentElement),!n||!p||Ze.indexOf(p)<0||ae(n,i,r,!0))return;if(n.classList.contains(o)||s&&n.matches(s))return;let m=n.value,v=!1;const g=h(n)||"";"radio"===g||"checkbox"===g?v=n.checked:(a[p.toLowerCase()]||a[g])&&(m=l({element:n,maskInputOptions:a,tagName:p,type:g,value:m,maskInputFn:c})),f(n,d?{text:m,isChecked:v,userTriggered:u}:{text:m,isChecked:v});const C=n.name;"radio"===g&&C&&v&&t.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach((e=>{if(e!==n){const t=e.value;f(e,d?{text:t,isChecked:!v,userTriggered:!1}:{text:t,isChecked:!v})}}))}function f(t,i){const r=Qe.get(t);if(!r||r.text!==i.text||r.isChecked!==i.isChecked){Qe.set(t,i);const r=n.getId(t);qe(e)(Object.assign(Object.assign({},i),{id:r}))}}const m=("last"===u.input?["change"]:["input","change"]).map((e=>J(e,qe(p),t))),v=t.defaultView;if(!v)return()=>{m.forEach((e=>e()))};const g=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),C=[[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 g&&g.set&&m.push(...C.map((e=>ee(e[0],e[1],{set(){qe(p)({target:this,isTrusted:!1})}},!1,v)))),qe((()=>{m.forEach((e=>e()))}))}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:i,sampling:r,doc:o}){const s=qe((o=>Q(qe((r=>{const s=Ke(r);if(!s||ae(s,t,n,!0))return;const{currentTime:a,volume:c,muted:l,playbackRate:u}=s;e({type:o,id:i.getId(s),currentTime:a,volume:c,muted:l,playbackRate:u})})),r.media||500))),a=[J("play",s(0),o),J("pause",s(1),o),J("seeked",s(2),o),J("volumechange",s(3),o),J("ratechange",s(4),o)];return qe((()=>{a.forEach((e=>e()))}))}(e);let d=()=>{},p=()=>{},f=()=>{},m=()=>{};e.recordDOM&&(d=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const r=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:qe(((i,r,o)=>{const[s,a]=o,{id:c,styleId:l}=tt(r,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:s,index:a}]}),i.apply(r,o)}))});const o=i.CSSStyleSheet.prototype.deleteRule;let s,a;i.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:qe(((i,r,o)=>{const[s]=o,{id:a,styleId:c}=tt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),i.apply(r,o)}))}),i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:qe(((i,r,o)=>{const[s]=o,{id:a,styleId:c}=tt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),i.apply(r,o)}))})),i.CSSStyleSheet.prototype.replaceSync&&(a=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:qe(((i,r,o)=>{const[s]=o,{id:a,styleId:c}=tt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),i.apply(r,o)}))}));const c={};ot("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(ot("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),ot("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),ot("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));const l={};return Object.entries(c).forEach((([i,r])=>{l[i]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(l[i].insertRule,{apply:qe(((i,r,o)=>{const[s,a]=o,{id:c,styleId:l}=tt(r.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:s,index:[...et(r),a||0]}]}),i.apply(r,o)}))}),r.prototype.deleteRule=new Proxy(l[i].deleteRule,{apply:qe(((i,r,o)=>{const[s]=o,{id:a,styleId:c}=tt(r.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...et(r),s]}]}),i.apply(r,o)}))})})),qe((()=>{i.CSSStyleSheet.prototype.insertRule=r,i.CSSStyleSheet.prototype.deleteRule=o,s&&(i.CSSStyleSheet.prototype.replace=s),a&&(i.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),p=nt(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:i},{win:r}){const o=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:qe(((r,s,a)=>{var c;const[l,u,d]=a;if(n.has(l))return o.apply(s,[l,u,d]);const{id:h,styleId:p}=tt(null===(c=s.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,i.styleMirror);return(h&&-1!==h||p&&-1!==p)&&e({id:h,styleId:p,set:{property:l,value:u,priority:d},index:et(s.parentRule)}),r.apply(s,a)}))});const s=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:qe(((r,o,a)=>{var c;const[l]=a;if(n.has(l))return s.apply(o,[l]);const{id:u,styleId:d}=tt(null===(c=o.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,i.styleMirror);return(u&&-1!==u||d&&-1!==d)&&e({id:u,styleId:d,remove:{property:l},index:et(o.parentRule)}),r.apply(o,a)}))}),qe((()=>{r.CSSStyleDeclaration.prototype.setProperty=o,r.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],r=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const s=te(t.fonts,"add",(function(t){return function(n){return setTimeout(qe((()=>{const t=r.get(n);t&&(e(t),r.delete(n))})),0),t.apply(this,[n])}}));return i.push((()=>{n.FontFace=o})),i.push(s),qe((()=>{i.forEach((e=>e()))}))}(e)));const v=function(e){const{doc:t,mirror:n,blockClass:i,blockSelector:r,selectionCb:o}=e;let s=!0;const a=qe((()=>{const e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;const a=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const o=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:l,endOffset:u}=o;ae(s,i,r,!0)||ae(l,i,r,!0)||a.push({start:n.getId(s),startOffset:c,end:n.getId(l),endOffset:u})}o({ranges:a})}));return a(),J("selectionchange",a)}(e),g=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?te(n.customElements,"define",(function(e){return function(n,i,r){try{t({define:{name:n}})}catch(e){console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,i,r])}})):()=>{}}(e),C=[];for(const t of e.plugins)C.push(t.observer(t.callback,n,t.options));return qe((()=>{Ye.forEach((e=>e.reset())),null==i||i.disconnect(),r(),o(),s(),a(),c(),u(),d(),p(),f(),m(),v(),g(),C.forEach((e=>e()))}))}function rt(e){return void 0!==window[e]}function ot(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class st{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,i){const r=n||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e);let s=r.get(t);return s||(s=this.generateIdFn(),r.set(t,s),o.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,i)))}getRemoteId(e,t,n){const i=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const r=i.get(t);return r||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class at{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new st(v),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new st(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||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))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case Ae.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Ae.IncrementalSnapshot,data:{source:Ne.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ae.Meta:case Ae.Load:case Ae.DomContentLoaded:return!1;case Ae.Plugin:return t;case Ae.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ae.IncrementalSnapshot:switch(t.data.source){case Ne.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ne.Drag:case Ne.TouchMove:case Ne.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ne.ViewportResize:return!1;case Ne.MediaInteraction:case Ne.MouseInteraction:case Ne.Scroll:case Ne.CanvasMutation:case Ne.Input:return this.replaceIds(t.data,e,["id"]),t;case Ne.StyleSheetRule:case Ne.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ne.Font:return t;case Ne.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Ne.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(n=t.data.styles)||void 0===n||n.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,n,i){for(const r of i)(Array.isArray(t[r])||"number"==typeof t[r])&&(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,n){e.type===t.Document||e.rootId||(e.rootId=n),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,n)}))}}class ct{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!r(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=Xe(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Je(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(nt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(te(e.prototype,"attachShadow",(function(e){return function(i){const r=e.call(this,i);return this.shadowRoot&&Te(this)&&n.addShadowRoot(this.shadowRoot,t),r}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}function lt(e,t,n,i){return new(n||(n=Promise))((function(t,r){function o(e){try{a(i.next(e))}catch(e){r(e)}}function s(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(e){e(i)}))).then(o,s)}a((i=i.apply(e,[])).next())}))}for(var ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ht=0;ht<64;ht++)dt[ut.charCodeAt(ht)]=ht;const pt=new Map;const ft=(e,t,n)=>{if(!e||!gt(e,t)&&"object"!=typeof e)return;const i=function(e,t){let n=pt.get(e);return n||(n=new Map,pt.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let r=i.indexOf(e);return-1===r&&(r=i.length,i.push(e)),r};function mt(e,t,n){if(e instanceof Array)return e.map((e=>mt(e,t,n)));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){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),i=n.length,r="";for(t=0;t<i;t+=3)r+=ut[n[t]>>2],r+=ut[(3&n[t])<<4|n[t+1]>>4],r+=ut[(15&n[t+1])<<2|n[t+2]>>6],r+=ut[63&n[t+2]];return i%3==2?r=r.substring(0,r.length-1)+"=":i%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}}if(gt(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:ft(e,t,n)}}return e}const vt=(e,t,n)=>e.map((e=>mt(e,t,n))),gt=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function Ct(e,t,n,i){const r=[];try{const o=te(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(r,...o){if(!ae(this,t,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(r);if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){const e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[r,...o])}}));r.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach((e=>e()))}}function yt(e,t,n,i,r,o,s){const a=[],c=Object.getOwnPropertyNames(e);for(const o of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;const c=te(e,o,(function(e){return function(...a){const c=e.apply(this,a);if(ft(c,s,this),"tagName"in this.canvas&&!ae(this.canvas,i,r,!0)){const e=vt(a,s,this),i={type:t,property:o,args:e};n(this.canvas,i)}return c}}));a.push(c)}catch(i){const r=ee(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});a.push(r)}return a}var bt,Et,wt=(bt=function(){!function(){function e(e,t,n,i){return new(n||(n=Promise))((function(t,r){function o(e){try{a(i.next(e))}catch(e){r(e)}}function s(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(e){e(i)}))).then(o,s)}a((i=i.apply(e,[])).next())}))}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<64;i++)n[t.charCodeAt(i)]=i;var r=function(e){var n,i=new Uint8Array(e),r=i.length,o="";for(n=0;n<r;n+=3)o+=t[i[n]>>2],o+=t[(3&i[n])<<4|i[n+1]>>4],o+=t[(15&i[n+1])<<2|i[n+2]>>6],o+=t[63&i[n+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o};const o=new Map,s=new Map,a=self;a.onmessage=function(t){return e(this,0,void 0,(function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{const{id:n,bitmap:i,width:c,height:l,dataURLOptions:u}=t.data,d=function(t,n,i){return e(this,0,void 0,(function*(){const e=`${t}-${n}`;if("OffscreenCanvas"in globalThis){if(s.has(e))return s.get(e);const o=new OffscreenCanvas(t,n);o.getContext("2d");const a=yield o.convertToBlob(i),c=yield a.arrayBuffer(),l=r(c);return s.set(e,l),l}return""}))}(c,l,u),h=new OffscreenCanvas(c,l);h.getContext("2d").drawImage(i,0,0),i.close();const p=yield h.convertToBlob(u),f=p.type,m=yield p.arrayBuffer(),v=r(m);if(!o.has(n)&&(yield d)===v)return o.set(n,v),a.postMessage({id:n});if(o.get(n)===v)return a.postMessage({id:n});a.postMessage({id:n,type:f,base64:v,width:c,height:l}),o.set(n,v)}}))}}()},function(e){return Et=Et||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var n=t[0].search(/\S/),i=/(['"])__worker_loader_strict__(['"])/g,r=0,o=t.length;r<o;++r)t[r]=t[r].substring(n).replace(i,"$1use strict$2")+"\n";return t}(e),n=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(n)}(bt),new Worker(Et,e)});class _t{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:s})}initCanvasFPSObserver(e,t,n,i,r){const o=Ct(t,n,i,!0),s=new Map,a=new wt;a.onmessage=e=>{const{id:t}=e.data;if(s.set(t,!1),!("base64"in e.data))return;const{base64:n,type:i,width:r,height:o}=e.data;this.mutationCb({id:t,type:Re["2D"],commands:[{property:"clearRect",args:[0,0,r,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})};const c=1e3/e;let l,u=0;const d=e=>{u&&e-u<c||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{ae(t,n,i,!0)||e.push(t)})),e})().forEach((e=>lt(this,0,void 0,(function*(){var t;const n=this.mirror.getId(e);if(s.get(n))return;if(s.set(n,!0),["webgl","webgl2"].includes(e.__context)){const n=e.getContext(e.__context);!1===(null===(t=null==n?void 0:n.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)}const i=yield createImageBitmap(e);a.postMessage({id:n,bitmap:i,width:e.width,height:e.height,dataURLOptions:r.dataURLOptions},[i])}))))),l=requestAnimationFrame(d)};l=requestAnimationFrame(d),this.resetObservers=()=>{o(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=Ct(e,t,n,!1),r=function(e,t,n,i){const r=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const o=te(t.CanvasRenderingContext2D.prototype,s,(function(r){return function(...o){return ae(this.canvas,n,i,!0)||setTimeout((()=>{const n=vt(o,t,this);e(this.canvas,{type:Re["2D"],property:s,args:n})}),0),r.apply(this,o)}}));r.push(o)}catch(n){const i=ee(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:Re["2D"],property:s,args:[t],setter:!0})}});r.push(i)}return()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n),o=function(e,t,n,i){const r=[];return r.push(...yt(t.WebGLRenderingContext.prototype,Re.WebGL,e,n,i,0,t)),void 0!==t.WebGL2RenderingContext&&r.push(...yt(t.WebGL2RenderingContext.prototype,Re.WebGL2,e,n,i,0,t)),()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,this.mirror);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const i=n.map((e=>{const t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["type"]);return t})),{type:r}=n[0];this.mutationCb({id:t,type:r,commands:i}),this.pendingCanvasMutations.delete(e)}}class kt{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new we,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},i=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:s(e),index:t})))})),n.styleIds.push(e)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class St{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Tt(e){return Object.assign(Object.assign({},e),{timestamp:ne()})}let Mt,At,Nt,Ot=!1;const It=c();function Rt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:r="rr-block",blockSelector:o=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,inlineStylesheet:d=!0,maskAllInputs:h,maskInputOptions:p,slimDOMOptions:f,maskInputFn:m,maskTextFn:v,hooks:g,packFn:C,sampling:y={},dataURLOptions:b={},mousemoveWait:E,recordDOM:w=!0,recordCanvas:_=!1,recordCrossOriginIframes:k=!1,recordAfter:S=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:T=!1,collectFonts:M=!1,inlineImages:A=!1,plugins:N,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:I=new Set([]),errorHandler:R}=e;Ve(R);const x=!k||window.parent===window;let P=!1;if(!x)try{window.parent.document&&(P=!1)}catch(e){P=!0}if(x&&!t)throw new Error("emit function is required");void 0!==E&&void 0===y.mousemove&&(y.mousemove=E),It.reset();const L=!0===h?{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!==p?p:{password:!0},U=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let F;he();let H=0;const j=e=>{for(const t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&!P&&(e=C(e)),e};Mt=(e,r)=>{var o;if(!(null===(o=Ye[0])||void 0===o?void 0:o.isFrozen())||e.type===Ae.FullSnapshot||e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.Mutation||Ye.forEach((e=>e.unfreeze())),x)null==t||t(j(e),r);else if(P){const t={type:"rrweb",event:j(e),origin:window.location.origin,isCheckout:r};window.parent.postMessage(t,"*")}if(e.type===Ae.FullSnapshot)F=e,H=0;else if(e.type===Ae.IncrementalSnapshot){if(e.data.source===Ne.Mutation&&e.data.isAttachIframe)return;H++;const t=i&&H>=i,r=n&&e.timestamp-F.timestamp>n;(t||r)&&At(!0)}};const B=e=>{Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Mutation},e)}))},z=e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Scroll},e)})),W=e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.CanvasMutation},e)})),V=new kt({mutationCb:B,adoptedStyleSheetCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.AdoptedStyleSheet},e)}))}),G=new at({mirror:It,mutationCb:B,stylesheetManager:V,recordCrossOriginIframes:k,wrappedEmit:Mt});for(const e of N||[])e.getMirror&&e.getMirror({nodeMirror:It,crossOriginIframeMirror:G.crossOriginIframeMirror,crossOriginIframeStyleMirror:G.crossOriginIframeStyleMirror});const q=new St;Nt=new _t({recordCanvas:_,mutationCb:W,win:window,blockClass:r,blockSelector:o,mirror:It,sampling:y.canvas,dataURLOptions:b});const Y=new ct({mutationCb:B,scrollCb:z,bypassOptions:{blockClass:r,blockSelector:o,maskTextClass:l,maskTextSelector:u,inlineStylesheet:d,maskInputOptions:L,dataURLOptions:b,maskTextFn:v,maskInputFn:m,recordCanvas:_,inlineImages:A,sampling:y,slimDOMOptions:U,iframeManager:G,stylesheetManager:V,canvasManager:Nt,keepIframeSrcFn:O,processedNodeManager:q},mirror:It});At=(e=!1)=>{if(!w)return;Mt(Tt({type:Ae.Meta,data:{href:window.location.href,width:oe(),height:re()}}),e),V.reset(),Y.init(),Ye.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new a,blockClass:i="rr-block",blockSelector:r=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:d=!1,maskTextFn:h,maskInputFn:p,slimDOM:f=!1,dataURLOptions:m,preserveWhiteSpace:v,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:w=()=>!1}=t||{};return D(e,{doc:e,mirror:n,blockClass:i,blockSelector:r,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:!0===d?{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===d?{password:!0}:d,maskTextFn:h,maskInputFn:p,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:v,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:It,blockClass:r,blockSelector:o,maskTextClass:l,maskTextSelector:u,inlineStylesheet:d,maskAllInputs:L,maskTextFn:v,slimDOM:U,dataURLOptions:b,recordCanvas:_,inlineImages:A,onSerialize:e=>{me(e,It)&&G.addIframe(e),ve(e,It)&&V.trackLinkElement(e),Ce(e)&&Y.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{G.attachIframe(e,t),Y.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{V.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");Mt(Tt({type:Ae.FullSnapshot,data:{node:t,initialOffset:ie(window)}}),e),Ye.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,It.getId(document))};try{const e=[],t=e=>{var t;return qe(it)({mutationCb:B,mousemoveCb:(e,t)=>Mt(Tt({type:Ae.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.MouseInteraction},e)})),scrollCb:z,viewportResizeCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.ViewportResize},e)})),inputCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Input},e)})),mediaInteractionCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.MediaInteraction},e)})),styleSheetRuleCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.StyleSheetRule},e)})),styleDeclarationCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.StyleDeclaration},e)})),canvasMutationCb:W,fontCb:e=>Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Font},e)})),selectionCb:e=>{Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.Selection},e)}))},customElementCb:e=>{Mt(Tt({type:Ae.IncrementalSnapshot,data:Object.assign({source:Ne.CustomElement},e)}))},blockClass:r,ignoreClass:s,ignoreSelector:c,maskTextClass:l,maskTextSelector:u,maskInputOptions:L,inlineStylesheet:d,sampling:y,recordDOM:w,recordCanvas:_,inlineImages:A,userTriggeredOnInput:T,collectFonts:M,doc:e,maskInputFn:m,maskTextFn:v,keepIframeSrcFn:O,blockSelector:o,slimDOMOptions:U,dataURLOptions:b,mirror:It,iframeManager:G,stylesheetManager:V,shadowDomManager:Y,processedNodeManager:q,canvasManager:Nt,ignoreCSSAttributes:I,plugins:(null===(t=null==N?void 0:N.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>Mt(Tt({type:Ae.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},g)};G.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{At(),e.push(t(document)),Ot=!0};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(J("DOMContentLoaded",(()=>{Mt(Tt({type:Ae.DomContentLoaded,data:{}})),"DOMContentLoaded"===S&&n()}))),e.push(J("load",(()=>{Mt(Tt({type:Ae.Load,data:{}})),"load"===S&&n()}),window))),()=>{e.forEach((e=>e())),q.destroy(),Ot=!1,Ge()}}catch(e){console.warn(e)}}var xt;Rt.addCustomEvent=(e,t)=>{if(!Ot)throw new Error("please add custom event after start recording");Mt(Tt({type:Ae.Custom,data:{tag:e,payload:t}}))},Rt.freezePage=()=>{Ye.forEach((e=>e.freeze()))},Rt.takeFullSnapshot=e=>{if(!Ot)throw new Error("please take full snapshot after start recording");At(e)},Rt.mirror=It,function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(xt||(xt={}));class Pt{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Dt(e){const t=[];for(const n in e){const i=e[n];if("string"!=typeof i)continue;const r=jt(n);t.push(`${r}: ${i};`)}return t.join(" ")}const Lt=/-([a-z])/g,Ut=/^--[a-zA-Z0-9-]+$/,Ft=e=>Ut.test(e)?e:e.replace(Lt,((e,t)=>t?t.toUpperCase():"")),Ht=/\B([A-Z])/g,jt=e=>e.replace(Ht,"-$1").toLowerCase();class Bt{constructor(...e){this.parentElement=null,this.parentNode=null,this.firstChild=null,this.lastChild=null,this.previousSibling=null,this.nextSibling=null,this.ELEMENT_NODE=Jt.ELEMENT_NODE,this.TEXT_NODE=Jt.TEXT_NODE}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof Bt))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function zt(e){return class extends e{constructor(e,t,n){super(),this.nodeType=Jt.DOCUMENT_TYPE_NODE,this.RRNodeType=xt.DocumentType,this.name=e,this.publicId=t,this.systemId=n,this.nodeName=e,this.textContent=null}toString(){return"RRDocumentType"}}}function Wt(e){return class extends e{constructor(e){super(),this.nodeType=Jt.ELEMENT_NODE,this.RRNodeType=xt.Element,this.attributes={},this.shadowRoot=null,this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach((t=>e+=t.textContent)),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new Yt(this.attributes.class,(e=>{this.attributes.class=e}))}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?function(e){const t={},n=/:(.+)/;return e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach((function(e){if(e){const i=e.split(n);i.length>1&&(t[Ft(i[0].trim())]=i[1].trim())}})),t}(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(n,i,r)=>{if(t.test(n))return;const o=Ft(n);i?e[o]=i:delete e[o],"important"===r&&(e[o]+=" !important"),this.attributes.style=Dt(e)},e.removeProperty=n=>{if(t.test(n))return"";const i=Ft(n),r=e[i]||"";return delete e[i],this.attributes.style=Dt(e),r},e}getAttribute(e){return this.attributes[e]||null}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,n){this.setAttribute(t,n)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return Kt(this,e)}insertBefore(e,t){return Xt(this,e,t)}removeChild(e){return $t(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}}function Vt(e){return class extends e{constructor(e){super(),this.nodeType=Jt.TEXT_NODE,this.nodeName="#text",this.RRNodeType=xt.Text,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Gt(e){return class extends e{constructor(e){super(),this.nodeType=Jt.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=xt.Comment,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function qt(e){return class extends e{constructor(e){super(),this.nodeName="#cdata-section",this.nodeType=Jt.CDATA_SECTION_NODE,this.RRNodeType=xt.CDATA,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class Yt{constructor(e,t){if(this.classes=[],this.add=(...e)=>{for(const t of e){const e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...e)=>{this.classes=this.classes.filter((t=>-1===e.indexOf(t))),this.onChange&&this.onChange(this.classes.join(" "))},e){const t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function Kt(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function Xt(e,t,n){if(!n)return Kt(e,t);if(n.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===n||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=n.previousSibling,n.previousSibling=t,t.nextSibling=n,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function $t(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var Jt;!function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Jt||(Jt={}));const Zt={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Qt={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let en=null;function tn(e,t,n,i=t.mirror||t.ownerDocument.mirror){e=function(e,t,n,i){var r;n.afterAppend&&!en&&(en=new WeakSet,setTimeout((()=>{en=null}),0));if(!on(e,t)){const o=rn(t,n.mirror,i);null===(r=e.parentNode)||void 0===r||r.replaceChild(o,e),e=o}switch(t.RRNodeType){case xt.Document:if(!sn(e,t,n.mirror,i)){const r=i.getMeta(t);r&&(n.mirror.removeNodeFromMap(e),e.close(),e.open(),n.mirror.add(e,r),null==en||en.add(e))}break;case xt.Element:{const r=e,o=t;switch(o.tagName){case"IFRAME":{const r=e.contentDocument;if(!r)break;tn(r,t.contentDocument,n,i);break}}o.shadowRoot&&(r.shadowRoot||r.attachShadow({mode:"open"}),nn(r.shadowRoot,o.shadowRoot,n,i)),function(e,t,n){const i=e.attributes,r=t.attributes;for(const i in r){const o=r[i],s=n.getMeta(t);if((null==s?void 0:s.isSVG)&&Zt[i])e.setAttributeNS(Zt[i],i,o);else if("CANVAS"===t.tagName&&"rr_dataURL"===i){const t=document.createElement("img");t.src=o,t.onload=()=>{const n=e.getContext("2d");n&&n.drawImage(t,0,0,t.width,t.height)}}else{if("IFRAME"===t.tagName&&"srcdoc"===i)continue;e.setAttribute(i,o)}}for(const{name:t}of Array.from(i))t in r||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(r,o,i);break}}return e}(e,t,n,i),nn(e,t,n,i),function(e,t,n){var i;switch(t.RRNodeType){case xt.Document:{const e=t.scrollData;e&&n.applyScroll(e,!0);break}case xt.Element:{const i=e,r=t;switch(r.scrollData&&n.applyScroll(r.scrollData,!0),r.inputData&&n.applyInput(r.inputData),r.tagName){case"AUDIO":case"VIDEO":{const t=e,n=r;void 0!==n.paused&&(n.paused?t.pause():t.play()),void 0!==n.muted&&(t.muted=n.muted),void 0!==n.volume&&(t.volume=n.volume),void 0!==n.currentTime&&(t.currentTime=n.currentTime),void 0!==n.playbackRate&&(t.playbackRate=n.playbackRate);break}case"CANVAS":{const r=t;if(null!==r.rr_dataURL){const e=document.createElement("img");e.onload=()=>{const t=i.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=r.rr_dataURL}r.canvasMutations.forEach((t=>n.applyCanvas(t.event,t.mutation,e)));break}case"STYLE":{const e=i.sheet;e&&t.rules.forEach((t=>n.applyStyleSheetMutation(t,e)));break}}break}case xt.Text:case xt.Comment:case xt.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==en?void 0:en.has(e))&&(en.delete(e),null===(i=n.afterAppend)||void 0===i||i.call(n,e,n.mirror.getId(e)))}(e,t,n)}function nn(e,t,n,i){const r=Array.from(e.childNodes),o=t.childNodes;if(0===r.length&&0===o.length)return;let s,a,c=0,l=r.length-1,u=0,d=o.length-1,h=r[c],p=r[l],f=o[u],m=o[d];for(;c<=l&&u<=d;)if(void 0===h)h=r[++c];else if(void 0===p)p=r[--l];else if(sn(h,f,n.mirror,i))h=r[++c],f=o[++u];else if(sn(p,m,n.mirror,i))p=r[--l],m=o[--d];else if(sn(h,m,n.mirror,i)){try{e.insertBefore(h,p.nextSibling)}catch(e){console.warn(e)}h=r[++c],m=o[--d]}else if(sn(p,f,n.mirror,i)){try{e.insertBefore(p,h)}catch(e){console.warn(e)}p=r[--l],f=o[++u]}else{if(!s){s={};for(let e=c;e<=l;e++){const t=r[e];t&&n.mirror.hasNode(t)&&(s[n.mirror.getId(t)]=e)}}a=s[i.getId(f)];const t=r[a];if(void 0!==a&&t&&sn(t,f,n.mirror,i)){try{e.insertBefore(t,h)}catch(e){console.warn(e)}r[a]=void 0}else{const t=rn(f,n.mirror,i);"#document"===e.nodeName&&h&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&h.nodeType===h.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&h.nodeType===h.ELEMENT_NODE)&&(e.removeChild(h),n.mirror.removeNodeFromMap(h),h=r[++c]);try{e.insertBefore(t,h||null)}catch(e){console.warn(e)}}f=o[++u]}if(c>l){const t=o[d+1];let r=null;for(t&&(r=n.mirror.getNode(i.getId(t)));u<=d;++u){const t=rn(o[u],n.mirror,i);try{e.insertBefore(t,r)}catch(e){console.warn(e)}}}else if(u>d)for(;c<=l;c++){const t=r[c];if(t&&t.parentNode===e)try{e.removeChild(t),n.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}let v=e.firstChild,g=t.firstChild;for(;null!==v&&null!==g;)tn(v,g,n,i),v=v.nextSibling,g=g.nextSibling}function rn(e,t,n){const i=n.getId(e),r=n.getMeta(e);let o=null;if(i>-1&&(o=t.getNode(i)),null!==o&&on(o,e))return o;switch(e.RRNodeType){case xt.Document:o=new Document;break;case xt.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case xt.Element:{let t=e.tagName.toLowerCase();t=Qt[t]||t,o=r&&"isSVG"in r&&(null==r?void 0:r.isSVG)?document.createElementNS(Zt.svg,t):document.createElement(e.tagName);break}case xt.Text:o=document.createTextNode(e.data);break;case xt.Comment:o=document.createComment(e.data);break;case xt.CDATA:o=document.createCDATASection(e.data)}r&&t.add(o,Object.assign({},r));try{null==en||en.add(o)}catch(e){}return o}function on(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function sn(e,t,n,i){const r=n.getId(e),o=i.getId(t);return-1!==r&&r===o&&on(e,t)}class an extends(function(e){return class t extends e{constructor(...e){super(e),this.nodeType=Jt.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=xt.Document,this.textContent=null,this.ownerDocument=this}get documentElement(){return this.childNodes.find((e=>e.RRNodeType===xt.Element&&"HTML"===e.tagName))||null}get body(){var e;return(null===(e=this.documentElement)||void 0===e?void 0:e.childNodes.find((e=>e.RRNodeType===xt.Element&&"BODY"===e.tagName)))||null}get head(){var e;return(null===(e=this.documentElement)||void 0===e?void 0:e.childNodes.find((e=>e.RRNodeType===xt.Element&&"HEAD"===e.tagName)))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===xt.Element||t===xt.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===t)))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===xt.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const n=Kt(this,e);return n.parentElement=null,n}insertBefore(e,t){const n=e.RRNodeType;if((n===xt.Element||n===xt.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===n)))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===xt.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=Xt(this,e,t);return i.parentElement=null,i}removeChild(e){return $t(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,n,i){return new t}createDocumentType(e,t,n){const i=new(zt(Bt))(e,t,n);return i.ownerDocument=this,i}createElement(e){const t=new(Wt(Bt))(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new(Vt(Bt))(e);return t.ownerDocument=this,t}createComment(e){const t=new(Gt(Bt))(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new(qt(Bt))(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}}(Bt)){get unserializedId(){return this._unserializedId--}constructor(e){super(),this.UNSERIALIZED_STARTING_ID=-2,this._unserializedId=this.UNSERIALIZED_STARTING_ID,this.mirror=new yn,this.scrollData=null,e&&(this.mirror=e)}createDocument(e,t,n){return new an}createDocumentType(e,t,n){const i=new cn(e,t,n);return i.ownerDocument=this,i}createElement(e){const t=e.toUpperCase();let n;switch(t){case"AUDIO":case"VIDEO":n=new un(t);break;case"IFRAME":n=new pn(t,this.mirror);break;case"CANVAS":n=new dn(t);break;case"STYLE":n=new hn(t);break;default:n=new ln(t)}return n.ownerDocument=this,n}createComment(e){const t=new mn(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new vn(e);return t.ownerDocument=this,t}createTextNode(e){const t=new fn(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const cn=zt(Bt);class ln extends(Wt(Bt)){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class un extends(function(e){return class extends e{attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}(ln)){}class dn extends ln{constructor(){super(...arguments),this.rr_dataURL=null,this.canvasMutations=[]}getContext(){return null}}class hn extends ln{constructor(){super(...arguments),this.rules=[]}}class pn extends ln{constructor(e,t){super(e),this.contentDocument=new an,this.contentDocument.mirror=t}}const fn=Vt(Bt),mn=Gt(Bt),vn=qt(Bt);function gn(e,t,n,i){let r;switch(e.nodeType){case Jt.DOCUMENT_NODE:i&&"IFRAME"===i.nodeName?r=i.contentDocument:(r=t,r.compatMode=e.compatMode);break;case Jt.DOCUMENT_TYPE_NODE:{const n=e;r=t.createDocumentType(n.name,n.publicId,n.systemId);break}case Jt.ELEMENT_NODE:{const n=e,i=(o=n)instanceof HTMLFormElement?"FORM":o.tagName.toUpperCase();r=t.createElement(i);const s=r;for(const{name:e,value:t}of Array.from(n.attributes))s.attributes[e]=t;n.scrollLeft&&(s.scrollLeft=n.scrollLeft),n.scrollTop&&(s.scrollTop=n.scrollTop);break}case Jt.TEXT_NODE:r=t.createTextNode(e.textContent||"");break;case Jt.CDATA_SECTION_NODE:r=t.createCDATASection(e.data);break;case Jt.COMMENT_NODE:r=t.createComment(e.textContent||"");break;case Jt.DOCUMENT_FRAGMENT_NODE:r=i.attachShadow({mode:"open"});break;default:return null}var o;let s=n.getMeta(e);return t instanceof an&&(s||(s=bn(r,t.unserializedId),n.add(e,s)),t.mirror.add(r,Object.assign({},s))),r}function Cn(e,t=function(){return new Pt}(),n=new an){return function e(i,r){const o=gn(i,n,t,r);if(null!==o)if("IFRAME"!==(null==r?void 0:r.nodeName)&&i.nodeType!==Jt.DOCUMENT_FRAGMENT_NODE&&(null==r||r.appendChild(o),o.parentNode=r,o.parentElement=r),"IFRAME"===i.nodeName){const t=i.contentDocument;t&&e(t,o)}else i.nodeType!==Jt.DOCUMENT_NODE&&i.nodeType!==Jt.ELEMENT_NODE&&i.nodeType!==Jt.DOCUMENT_FRAGMENT_NODE||(i.nodeType===Jt.ELEMENT_NODE&&i.shadowRoot&&e(i.shadowRoot,o),i.childNodes.forEach((t=>e(t,o))))}(e,null),n}class yn{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function bn(e,t){switch(e.RRNodeType){case xt.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case xt.DocumentType:{const n=e;return{id:t,type:e.RRNodeType,name:n.name,publicId:n.publicId,systemId:n.systemId}}case xt.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case xt.Text:case xt.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case xt.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function En(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map((function(e){e(n)})),(i=e.get("*"))&&i.slice().map((function(e){e(t,n)}))}}}var wn,_n=Object.freeze({__proto__:null,default:En});function kn(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;const n=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||a,scrollIntoView:n.prototype.scrollIntoView},r=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;const o=(s=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(s)?1:0);var s;function a(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(e,t){return"Y"===t?e.clientHeight+o<e.scrollHeight:"X"===t?e.clientWidth+o<e.scrollWidth:void 0}function u(t,n){const i=e.getComputedStyle(t,null)["overflow"+n];return"auto"===i||"scroll"===i}function d(e){const t=l(e,"Y")&&u(e,"Y"),n=l(e,"X")&&u(e,"X");return t||n}function h(t){let n,i,o,s=(r()-t.startTime)/468;s=s>1?1:s,n=function(e){return.5*(1-Math.cos(Math.PI*e))}(s),i=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,i,o),i===t.x&&o===t.y||e.requestAnimationFrame(h.bind(e,t))}function p(n,o,s){let c,l,u,d;const p=r();n===t.body?(c=e,l=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=i.scroll):(c=n,l=n.scrollLeft,u=n.scrollTop,d=a),h({scrollable:c,method:d,startTime:p,startX:l,startY:u,x:o,y:s})}e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?p.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0===arguments[0])return;if(!0===c(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}const e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0===c(arguments[0]))return void i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);const n=function(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(p.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}}class Sn{constructor(e=[],t){this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t.speed}addAction(e){const t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{const t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){const e=this.actions[0];if(!(this.timeOffset>=e.delay))break;this.actions.shift(),e.doAction()}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,n=this.actions.length-1;for(;t<=n;){const i=Math.floor((t+n)/2);if(this.actions[i].delay<e.delay)t=i+1;else{if(!(this.actions[i].delay>e.delay))return i+1;n=i-1}}return t}}function Tn(e,t){if(e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.MouseMove&&e.data.positions&&e.data.positions.length){const n=e.data.positions[0].timeOffset,i=e.timestamp+n;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}function Mn(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(wn||(wn={}));var An={type:"xstate.init"};function Nn(e){return void 0===e?[]:[].concat(e)}function On(e){return{type:"xstate.assign",assignment:e}}function In(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function Rn(e){return function(t){return e===t}}function xn(e){return"string"==typeof e?{type:e}:e}function Pn(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Rn(e)}}function Dn(e,t,n){var i=t,r=!1;return[e.filter((function(e){if("xstate.assign"===e.type){r=!0;var t=Object.assign({},i);return"function"==typeof e.assignment?t=e.assignment(i,n):Object.keys(e.assignment).forEach((function(r){t[r]="function"==typeof e.assignment[r]?e.assignment[r](i,n):e.assignment[r]})),i=t,!1}return!0})),i,r]}function Ln(e,t){void 0===t&&(t={});var n=Mn(Dn(Nn(e.states[e.initial].entry).map((function(e){return In(e,t.actions)})),e.context,An),2),i=n[0],r=n[1],o={config:e,_options:t,initialState:{value:e.initial,actions:i,context:r,matches:Rn(e.initial)},transition:function(t,n){var i,r,s="string"==typeof t?{value:t,context:e.context}:t,a=s.value,c=s.context,l=xn(n),u=e.states[a];if(u.on){var d=Nn(u.on[l.type]);try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),p=h.next();!p.done;p=h.next()){var f=p.value;if(void 0===f)return Pn(a,c);var m="string"==typeof f?{target:f}:f,v=m.target,g=m.actions,C=void 0===g?[]:g,y=m.cond,b=void 0===y?function(){return!0}:y,E=void 0===v,w=null!=v?v:a,_=e.states[w];if(b(c,l)){var k=Mn(Dn((E?Nn(C):[].concat(u.exit,C,_.entry).filter((function(e){return e}))).map((function(e){return In(e,o._options.actions)})),c,l),3),S=k[0],T=k[1],M=k[2],A=null!=v?v:a;return{value:A,context:T,actions:S,changed:v!==a||S.length>0||M,matches:Rn(A)}}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}}return Pn(a,c)}};return o}var Un=function(e,t){return e.actions.forEach((function(n){var i=n.exec;return i&&i(e.context,t)}))};function Fn(e){var t=e.initialState,n=wn.NotStarted,i=new Set,r={_machine:e,send:function(r){n===wn.Running&&(t=e.transition(t,r),Un(t,xn(r)),i.forEach((function(e){return e(t)})))},subscribe:function(e){return i.add(e),e(t),{unsubscribe:function(){return i.delete(e)}}},start:function(i){if(i){var o="object"==typeof i?i:{context:e.config.context,value:i};t={value:o.value,actions:[],context:o.context,matches:Rn(o.value)}}return n=wn.Running,Un(t,An),r},stop:function(){return n=wn.Stopped,i.clear(),r},get state(){return t},get status(){return n}};return r}function Hn(e,{getCastFn:t,applyEventsSynchronously:n,emitter:i}){const r=Ln({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:On({lastPlayedEvent:(e,t)=>"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:On(((e,t)=>{let n=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(n=t.payload.timeOffset),Object.assign(Object.assign({},e),{timeOffset:n,baselineTime:e.events[0].timestamp+n})})),play(e){var r;const{timer:o,events:s,baselineTime:a,lastPlayedEvent:c}=e;o.clear();for(const e of s)Tn(e,a);const l=function(e,t){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.type===Ae.Meta&&i.timestamp<=t)return e.slice(n)}return e}(s,a);let u=null==c?void 0:c.timestamp;(null==c?void 0:c.type)===Ae.IncrementalSnapshot&&c.data.source===Ne.MouseMove&&(u=c.timestamp+(null===(r=c.data.positions[0])||void 0===r?void 0:r.timeOffset)),a<(u||0)&&i.emit(xe.PlayBack);const d=new Array;for(const e of l)if(!(u&&u<a&&(e.timestamp<=u||e===c)))if(e.timestamp<a)d.push(e);else{const n=t(e,!1);o.addAction({doAction:()=>{n()},delay:e.delay})}n(d),i.emit(xe.Flush),o.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:On((e=>Object.assign(Object.assign({},e),{lastPlayedEvent:null}))),startLive:On({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:On(((e,n)=>{const{baselineTime:i,timer:r,events:o}=e;if("ADD_EVENT"===n.type){const{event:e}=n.payload;Tn(e,i);let s=o.length-1;if(!o[s]||o[s].timestamp<=e.timestamp)o.push(e);else{let t=-1,n=0;for(;n<=s;){const t=Math.floor((n+s)/2);o[t].timestamp<=e.timestamp?n=t+1:s=t-1}-1===t&&(t=n),o.splice(t,0,e)}const a=e.timestamp<i,c=t(e,a);a?c():r.isActive()&&r.addAction({doAction:()=>{c()},delay:e.delay})}return Object.assign(Object.assign({},e),{events:o})}))}});return Fn(r)}const jn=new Map;function Bn(e,t){let n=jn.get(e);return n||(n=new Map,jn.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}function zn(e,t,n){return i=>lt(this,0,void 0,(function*(){if(i&&"object"==typeof i&&"rr_type"in i){if(n&&(n.isUnchanged=!1),"ImageBitmap"===i.rr_type&&"args"in i){const r=yield zn(e,t,n)(i.args);return yield createImageBitmap.apply(null,r)}if("index"in i){if(n||null===t)return i;const{rr_type:e,index:r}=i;return Bn(t,e)[r]}if("args"in i){const{rr_type:r,args:o}=i;return new(0,window[r])(...yield Promise.all(o.map(zn(e,t,n))))}if("base64"in i)return function(e){var t,n,i,r,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),u=new Uint8Array(l);for(t=0;t<a;t+=4)n=dt[e.charCodeAt(t)],i=dt[e.charCodeAt(t+1)],r=dt[e.charCodeAt(t+2)],o=dt[e.charCodeAt(t+3)],u[c++]=n<<2|i>>4,u[c++]=(15&i)<<4|r>>2,u[c++]=(3&r)<<6|63&o;return l}(i.base64);if("src"in i){const t=e.get(i.src);if(t)return t;{const t=new Image;return t.src=i.src,e.set(i.src,t),t}}if("data"in i&&"Blob"===i.rr_type){const r=yield Promise.all(i.data.map(zn(e,t,n)));return new Blob(r,{type:i.type})}}else if(Array.isArray(i)){return yield Promise.all(i.map(zn(e,t,n)))}return i}))}const Wn=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Vn({mutation:e,target:t,type:n,imageMap:i,errorHandler:r}){return lt(this,0,void 0,(function*(){try{const r=function(e,t){try{return t===Re.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(e){return null}}(t,n);if(!r)return;if(e.setter)return void(r[e.property]=e.args[0]);const o=r[e.property],s=yield Promise.all(e.args.map(zn(i,r)));!function(e,t){if(!(null==t?void 0:t.constructor))return;const{name:n}=t.constructor;if(!Wn.includes(n))return;const i=Bn(e,n);i.includes(t)||i.push(t)}(r,o.apply(r,s))}catch(t){r(e,t)}}))}function Gn({event:e,mutation:t,target:n,imageMap:i,canvasEventMap:r,errorHandler:o}){return lt(this,0,void 0,(function*(){try{const s=r.get(e)||t,a="commands"in s?s.commands:[s];if([Re.WebGL,Re.WebGL2].includes(t.type)){for(let e=0;e<a.length;e++){const r=a[e];yield Vn({mutation:r,type:t.type,target:n,imageMap:i,errorHandler:o})}return}yield function({event:e,mutations:t,target:n,imageMap:i,errorHandler:r}){return lt(this,0,void 0,(function*(){const o=n.getContext("2d");if(!o)return void r(t[0],new Error("Canvas context is null"));const s=t.map((e=>lt(this,0,void 0,(function*(){return Promise.all(e.args.map(zn(i,o)))}))));(yield Promise.all(s)).forEach(((n,s)=>{const a=t[s];try{if(a.setter)return void(o[a.property]=a.args[0]);const t=o[a.property];"drawImage"===a.property&&"string"==typeof a.args[0]?(i.get(e),t.apply(o,a.args)):t.apply(o,n)}catch(e){r(a,e)}}))}))}({event:e,mutations:a,target:n,imageMap:i,errorHandler:o})}catch(e){o(t,e)}}))}const qn=En||_n,Yn="[replayer]",Kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Xn(e){return e.type==Ae.IncrementalSnapshot&&(e.data.source==Ne.TouchMove||e.data.source==Ne.MouseInteraction&&e.data.type==Oe.TouchStart)}const{addCustomEvent:$n}=Rt,{freezePage:Jn}=Rt;var Zn=Uint8Array,Qn=Uint16Array,ei=Uint32Array,ti=new Zn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ni=new Zn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ii=new Zn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ri=function(e,t){for(var n=new Qn(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new ei(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},oi=ri(ti,2),si=oi[0],ai=oi[1];si[28]=258,ai[258]=28;for(var ci=ri(ni,0),li=ci[0],ui=ci[1],di=new Qn(32768),hi=0;hi<32768;++hi){var pi=(43690&hi)>>>1|(21845&hi)<<1;pi=(61680&(pi=(52428&pi)>>>2|(13107&pi)<<2))>>>4|(3855&pi)<<4,di[hi]=((65280&pi)>>>8|(255&pi)<<8)>>>1}var fi=function(e,t,n){for(var i=e.length,r=0,o=new Qn(t);r<i;++r)++o[e[r]-1];var s,a=new Qn(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new Qn(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[di[d]>>>c]=l}else for(s=new Qn(i),r=0;r<i;++r)s[r]=di[a[e[r]-1]++]>>>15-e[r];return s},mi=new Zn(288);for(hi=0;hi<144;++hi)mi[hi]=8;for(hi=144;hi<256;++hi)mi[hi]=9;for(hi=256;hi<280;++hi)mi[hi]=7;for(hi=280;hi<288;++hi)mi[hi]=8;var vi=new Zn(32);for(hi=0;hi<32;++hi)vi[hi]=5;var gi=fi(mi,9,0),Ci=fi(mi,9,1),yi=fi(vi,5,0),bi=fi(vi,5,1),Ei=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},wi=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>>(7&t)&n},_i=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},ki=function(e){return(e/8|0)+(7&e&&1)},Si=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof Qn?Qn:e instanceof ei?ei:Zn)(n-t);return i.set(e.subarray(t,n)),i},Ti=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Mi=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},Ai=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[new Zn(0),0];if(1==r){var s=new Zn(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new Qn(h+1),f=Ni(n[u-1],p,0);if(f>t){i=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var C=o[i].s;if(!(p[C]>t))break;m+=g-(1<<f-p[C]),p[C]=t}for(m>>>=v;m>0;){var y=o[i].s;p[y]<t?m-=1<<t-p[y]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new Zn(p),f]},Ni=function(e,t,n){return-1==e.s?Math.max(Ni(e.l,t,n+1),Ni(e.r,t,n+1)):t[e.s]=n},Oi=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Qn(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},Ii=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Ri=function(e,t,n){var i=n.length,r=ki(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},xi=function(e,t,n,i,r,o,s,a,c,l,u){Ti(t,u++,n),++r[256];for(var d=Ai(r,15),h=d[0],p=d[1],f=Ai(o,15),m=f[0],v=f[1],g=Oi(h),C=g[0],y=g[1],b=Oi(m),E=b[0],w=b[1],_=new Qn(19),k=0;k<C.length;++k)_[31&C[k]]++;for(k=0;k<E.length;++k)_[31&E[k]]++;for(var S=Ai(_,7),T=S[0],M=S[1],A=19;A>4&&!T[ii[A-1]];--A);var N,O,I,R,x=l+5<<3,P=Ii(r,mi)+Ii(o,vi)+s,D=Ii(r,h)+Ii(o,m)+s+14+3*A+Ii(_,T)+(2*_[16]+3*_[17]+7*_[18]);if(x<=P&&x<=D)return Ri(t,u,e.subarray(c,c+l));if(Ti(t,u,1+(D<P)),u+=2,D<P){N=fi(h,p,0),O=h,I=fi(m,v,0),R=m;var L=fi(T,M,0);Ti(t,u,y-257),Ti(t,u+5,w-1),Ti(t,u+10,A-4),u+=14;for(k=0;k<A;++k)Ti(t,u+3*k,T[ii[k]]);u+=3*A;for(var U=[C,E],F=0;F<2;++F){var H=U[F];for(k=0;k<H.length;++k){var j=31&H[k];Ti(t,u,L[j]),u+=T[j],j>15&&(Ti(t,u,H[k]>>>5&127),u+=H[k]>>>12)}}}else N=gi,O=mi,I=yi,R=vi;for(k=0;k<a;++k)if(i[k]>255){j=i[k]>>>18&31;Mi(t,u,N[j+257]),u+=O[j+257],j>7&&(Ti(t,u,i[k]>>>23&31),u+=ti[j]);var B=31&i[k];Mi(t,u,I[B]),u+=R[B],B>3&&(Mi(t,u,i[k]>>>5&8191),u+=ni[B])}else Mi(t,u,N[i[k]]),u+=O[i[k]];return Mi(t,u,N[256]),u+O[256]},Pi=new ei([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Di=function(e,t,n,i,r){return function(e,t,n,i,r,o){var s=e.length,a=new Zn(i+s+5*(1+Math.floor(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d<s?l=Ri(c,l,e.subarray(u,d)):(c[u]=o,l=Ri(c,l,e.subarray(u,s)))}else{for(var h=Pi[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new Qn(32768),g=new Qn(m+1),C=Math.ceil(n/3),y=2*C,b=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<y)&m},E=new ei(25e3),w=new Qn(288),_=new Qn(32),k=0,S=0,T=(u=0,0),M=0,A=0;u<s;++u){var N=b(u),O=32767&u,I=g[N];if(v[O]=I,g[N]=O,M<=u){var R=s-u;if((k>7e3||T>24576)&&R>423){l=xi(e,c,0,E,w,_,S,T,A,u-A,l),T=k=S=0,A=u;for(var x=0;x<286;++x)w[x]=0;for(x=0;x<30;++x)_[x]=0}var P=2,D=0,L=f,U=O-I&32767;if(R>2&&N==b(u-U))for(var F=Math.min(p,R)-1,H=Math.min(32767,u),j=Math.min(258,R);U<=H&&--L&&O!=I;){if(e[u+P]==e[u+P-U]){for(var B=0;B<j&&e[u+B]==e[u+B-U];++B);if(B>P){if(P=B,D=U,B>F)break;var z=Math.min(U,B-2),W=0;for(x=0;x<z;++x){var V=u-U+x+32768&32767,G=V-v[V]+32768&32767;G>W&&(W=G,I=V)}}}U+=(O=I)-(I=v[O])+32768&32767}if(D){E[T++]=268435456|ai[P]<<18|ui[D];var q=31&ai[P],Y=31&ui[D];S+=ti[q]+ni[Y],++w[257+q],++_[Y],M=u+P,++k}else E[T++]=e[u],++w[e[u]]}}l=xi(e,c,o,E,w,_,S,T,A,u-A,l)}return Si(a,0,i+ki(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)};function Li(e,t){void 0===t&&(t={});var n=function(){var e=1,t=0;return{p:function(n){for(var i=e,r=t,o=n.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)r+=i+=n[s];i%=65521,r%=65521}e=i,t=r},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}}();n.p(e);var i=Di(e,t,2,4);return function(e,t){var n=t.level,i=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=i<<6|(i?32-2*i:1)}(i,t),function(e,t,n){for(;n;++t)e[t]=n,n>>>=8}(i,i.length-4,n.d()),i}function Ui(e,t){return function(e,t,n){var i=e.length,r=!t||n,o=!n||n.i;n||(n={}),t||(t=new Zn(3*i));var s=function(e){var n=t.length;if(e>n){var i=new Zn(Math.max(2*n,e));i.set(t),t=i}},a=n.f||0,c=n.p||0,l=n.b||0,u=n.l,d=n.d,h=n.m,p=n.n,f=8*i;do{if(!u){n.f=a=wi(e,c,1);var m=wi(e,c+1,3);if(c+=3,!m){var v=e[(M=ki(c)+4)-4]|e[M-3]<<8,g=M+v;if(g>i){if(o)throw"unexpected EOF";break}r&&s(l+v),t.set(e.subarray(M,g),l),n.b=l+=v,n.p=c=8*g;continue}if(1==m)u=Ci,d=bi,h=9,p=5;else{if(2!=m)throw"invalid block type";var C=wi(e,c,31)+257,y=wi(e,c+10,15)+4,b=C+wi(e,c+5,31)+1;c+=14;for(var E=new Zn(b),w=new Zn(19),_=0;_<y;++_)w[ii[_]]=wi(e,c+3*_,7);c+=3*y;var k=Ei(w),S=(1<<k)-1;if(!o&&c+b*(k+7)>f)break;var T=fi(w,k,1);for(_=0;_<b;){var M,A=T[wi(e,c,S)];if(c+=15&A,(M=A>>>4)<16)E[_++]=M;else{var N=0,O=0;for(16==M?(O=3+wi(e,c,3),c+=2,N=E[_-1]):17==M?(O=3+wi(e,c,7),c+=3):18==M&&(O=11+wi(e,c,127),c+=7);O--;)E[_++]=N}}var I=E.subarray(0,C),R=E.subarray(C);h=Ei(I),p=Ei(R),u=fi(I,h,1),d=fi(R,p,1)}if(c>f)throw"unexpected EOF"}r&&s(l+131072);for(var x=(1<<h)-1,P=(1<<p)-1,D=h+p+18;o||c+D<f;){var L=(N=u[_i(e,c)&x])>>>4;if((c+=15&N)>f)throw"unexpected EOF";if(!N)throw"invalid length/literal";if(L<256)t[l++]=L;else{if(256==L){u=null;break}var U=L-254;if(L>264){var F=ti[_=L-257];U=wi(e,c,(1<<F)-1)+si[_],c+=F}var H=d[_i(e,c)&P],j=H>>>4;if(!H)throw"invalid distance";if(c+=15&H,R=li[j],j>3&&(F=ni[j],R+=_i(e,c)&(1<<F)-1,c+=F),c>f)throw"unexpected EOF";r&&s(l+131072);for(var B=l+U;l<B;l+=4)t[l]=t[l-R],t[l+1]=t[l+1-R],t[l+2]=t[l+2-R],t[l+3]=t[l+3-R];l=B}}n.l=u,n.p=c,n.b=l,u&&(a=1,n.m=h,n.d=d,n.n=p)}while(!a);return l==t.length?t:Si(t,0,l)}((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)}function Fi(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var i=new Zn(e.length+(e.length>>>1)),r=0,o=function(e){i[r++]=e},s=0;s<n;++s){if(r+5>i.length){var a=new Zn(r+8+(n-s<<1));a.set(i),i=a}var c=e.charCodeAt(s);c<128||t?o(c):c<2048?(o(192|c>>>6),o(128|63&c)):c>55295&&c<57344?(o(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++s))>>>18),o(128|c>>>12&63),o(128|c>>>6&63),o(128|63&c)):(o(224|c>>>12),o(128|c>>>6&63),o(128|63&c))}return Si(i,0,r)}function Hi(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var i=0;i<e.length;){var r=e[i++];r<128||t?n+=String.fromCharCode(r):r<224?n+=String.fromCharCode((31&r)<<6|63&e[i++]):r<240?n+=String.fromCharCode((15&r)<<12|(63&e[i++])<<6|63&e[i++]):(r=((15&r)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r))}return n}const ji="v1";class Bi{constructor(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){const e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}const zi=/(^|@)\S+:\d+/,Wi=/^\s*at .*(\S+:\d+|\(native\))/m,Vi=/^(eval@)?(\[native code])?$/,Gi={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Wi)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Wi)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(");const n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;const i=t.split(/\s+/).slice(1),r=this.extractLocation(n?n[1]:i.pop()),o=i.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(r[0])>-1?void 0:r[0];return new Bi({functionName:o,fileName:s,lineNumber:r[1],columnNumber:r[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(Vi)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new Bi({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),i=n&&n[1]?n[1]:void 0,r=this.extractLocation(e.replace(t,""));return new Bi({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),i=[];for(let e=2,r=n.length;e<r;e+=2){const r=t.exec(n[e]);r&&i.push(new Bi({fileName:r[2],lineNumber:parseFloat(r[1])}))}return i},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),i=[];for(let e=0,r=n.length;e<r;e+=2){const r=t.exec(n[e]);r&&i.push(new Bi({functionName:r[3]||void 0,fileName:r[2],lineNumber:parseFloat(r[1])}))}return i},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(zi)&&!e.match(/^Error created at/)}),this).map((function(e){const t=e.split("@"),n=this.extractLocation(t.pop()),i=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Bi({functionName:i,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})}),this)}};function qi(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();const i=e.parentElement,r=[];if(i.children&&i.children.length>0)for(let e=0;e<i.children.length;e++){const t=i.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&r.push(t)}r.length>1&&(n+=`:eq(${r.indexOf(e)})`),t=n+(t?">"+t:""),e=i}return t}function Yi(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ki(e,t){if(0===t)return!0;const n=Object.keys(e);for(const i of n)if(Yi(e[i])&&Ki(e[i],t-1))return!0;return!1}function Xi(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const i=[],r=[];return JSON.stringify(e,(function(e,t){if(i.length>0){const n=i.indexOf(this);~n?i.splice(n+1):i.push(this),~n?r.splice(n,1/0,e):r.push(e),~i.indexOf(t)&&(t=i[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,i.indexOf(t)).join(".")+"]")}else i.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(Yi(e)&&Object.keys(e).length>n.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(Yi(e)&&Ki(e,n.depthOfLimit))return!0;return!1}(t))return function(e){let t=e.toString();n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=`${t.slice(0,n.stringLengthLimit)}...`);return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){const e={};for(const n in t){const i=t[n];Array.isArray(i)?e[n]=qi(i.length?i[0]:null):e[n]=i}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}const $i={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Ji(e,t,n){const i=n?Object.assign({},$i,n):$i,r=i.logger;if(!r)return()=>{};let o;o="string"==typeof r?t[r]:r;let s=0,a=!1;const c=[];if(i.level.includes("error")){const n=t=>{const n=t.message,r=t.error,o=Gi.parse(r).map((e=>e.toString())),s=[Xi(n,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",n),c.push((()=>{t.removeEventListener("error",n)}));const r=t=>{let n,r;t.reason instanceof Error?(n=t.reason,r=[Xi(`Uncaught (in promise) ${n.name}: ${n.message}`,i.stringifyOptions)]):(n=new Error,r=[Xi("Uncaught (in promise)",i.stringifyOptions),Xi(t.reason,i.stringifyOptions)]);const o=Gi.parse(n).map((e=>e.toString()));e({level:"error",trace:o,payload:r})};t.addEventListener("unhandledrejection",r),c.push((()=>{t.removeEventListener("unhandledrejection",r)}))}for(const e of i.level)c.push(l(o,e));return()=>{c.forEach((e=>e()))};function l(t,n){return t[n]?te(t,n,(t=>(...r)=>{if(t.apply(this,r),!a){a=!0;try{const t=Gi.parse(new Error).map((e=>e.toString())).splice(1),o=r.map((e=>Xi(e,i.stringifyOptions)));s++,s<i.lengthThreshold?e({level:n,trace:t,payload:o}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[Xi("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...r)}finally{a=!1}}})):()=>{}}}const Zi="rrweb/console@1",Qi="__rrweb_original__",er={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],replayLogger:void 0};class tr{constructor(e){this.config=Object.assign(er,e)}getConsoleLogger(){const e={};for(const t of this.config.level)e[t]="trace"===t?e=>{(console.log[Qi]?console.log[Qi]:console.log)(...e.payload.map((e=>JSON.parse(e))),this.formatMessage(e))}:e=>{(console[t][Qi]?console[t][Qi]:console[t])(...e.payload.map((e=>JSON.parse(e))),this.formatMessage(e))};return e}formatMessage(e){if(0===e.trace.length)return"";const t="\n\tat ";let n=t;return n+=e.trace.join(t),n}}e.EventType=Ae,e.IncrementalSource=Ne,e.MouseInteractions=Oe,e.PLUGIN_NAME=Zi,e.Replayer=class{get timer(){return this.service.state.context.timer}constructor(e,t){if(this.usingVirtualDom=!1,this.virtualDom=new an,this.mouseTail=null,this.tailPositions=[],this.emitter=qn(),this.legacy_missingNodeRetryMap={},this.cache=Y(),this.imageMap=new Map,this.canvasEventMap=new Map,this.mirror=c(),this.styleMirror=new we,this.firstFullSnapshot=null,this.newDocumentQueue=[],this.mousePos=null,this.touchActive=null,this.lastMouseDownEvent=null,this.lastSelectionData=null,this.constructedStyleMutations=[],this.adoptedStyleSheets=[],this.handleResize=e=>{this.iframe.style.display="inherit";for(const t of[this.mouseTail,this.iframe])t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))},this.applyEventsSynchronously=e=>{for(const t of e){switch(t.type){case Ae.DomContentLoaded:case Ae.Load:case Ae.Custom:continue;case Ae.FullSnapshot:case Ae.Meta:case Ae.Plugin:case Ae.IncrementalSnapshot:}this.getCastFn(t,!0)()}},this.getCastFn=(e,t=!1)=>{let n;switch(e.type){case Ae.DomContentLoaded:case Ae.Load:break;case Ae.Custom:n=()=>{this.emitter.emit(xe.CustomEvent,e)};break;case Ae.Meta:n=()=>this.emitter.emit(xe.Resize,{width:e.data.width,height:e.data.height});break;case Ae.FullSnapshot:n=()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e)return void(this.firstFullSnapshot=!0)}else this.firstFullSnapshot=!0;this.rebuildFullSnapshot(e,t),null===(n=this.iframe.contentWindow)||void 0===n||n.scrollTo(e.data.initialOffset),this.styleMirror.reset()};break;case Ae.IncrementalSnapshot:n=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>1e4*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){const t=this.nextUserInteractionEvent.delay-e.delay,n={speed:Math.min(Math.round(t/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:n}),this.emitter.emit(xe.SkipStart,n)}}}}return()=>{n&&n();for(const n of this.config.plugins||[])n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});const i=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[i]){const t=()=>{i<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(xe.Finish))};let n=50;e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.MouseMove&&e.data.positions.length&&(n+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,n)}this.emitter.emit(xe.EventCast,e)}},!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");const n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Kn,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(xe.Resize,this.handleResize),this.setupDom();for(const e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(xe.Flush,(()=>{if(this.usingVirtualDom){const e={mirror:this.mirror,applyCanvas:(e,t,n)=>{Gn({event:e,mutation:t,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===Ne.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===Ne.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{tn(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const t in this.legacy_missingNodeRetryMap)try{const n=this.legacy_missingNodeRetryMap[t],i=rn(n.node,this.mirror,this.virtualDom.mirror);tn(i,n.node,e,this.virtualDom.mirror),n.node=i}catch(e){this.warn(e)}this.constructedStyleMutations.forEach((e=>{this.applyStyleSheetMutation(e)})),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach((e=>{this.applyAdoptedStyleSheet(e)})),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)})),this.emitter.on(xe.PlayBack,(()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset()}));const i=new Sn([],{speed:this.config.speed});this.service=Hn({events:e.map((e=>t&&t.unpackFn?t.unpackFn(e):e)).sort(((e,t)=>e.timestamp-t.timestamp)),timer:i,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe((e=>{this.emitter.emit(xe.StateChange,{player:e})})),this.speedService=Fn(Ln({id:"speed",context:{normalSpeed:-1,timer:i},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:On({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe((e=>{this.emitter.emit(xe.StateChange,{speed:e})}));const r=this.service.state.context.events.find((e=>e.type===Ae.Meta)),o=this.service.state.context.events.find((e=>e.type===Ae.FullSnapshot));if(r){const{width:e,height:t}=r.data;setTimeout((()=>{this.emitter.emit(xe.Resize,{width:e,height:t})}),0)}o&&setTimeout((()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),null===(e=this.iframe.contentWindow)||void 0===e||e.scrollTo(o.data.initialOffset))}),1),this.service.state.context.events.find(Xn)&&this.mouse.classList.add("touch-device")}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach((t=>{e[t],this.config[t]=e[t]})),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,n;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null===(n=null===(t=this.iframe.contentDocument)||void 0===t?void 0:t.getElementsByTagName("html")[0])||void 0===n||n.classList.remove("rrweb-paused"),this.emitter.emit(xe.Start)}pause(e){var t,n;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null===(n=null===(t=this.iframe.contentDocument)||void 0===t?void 0:t.getElementsByTagName("html")[0])||void 0===n||n.classList.add("rrweb-paused"),this.emitter.emit(xe.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(xe.Resume)}destroy(){this.pause(),this.config.root.removeChild(this.wrapper),this.emitter.emit(xe.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Xn(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then((()=>this.service.send({type:"ADD_EVENT",payload:{event:t}})))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Y()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(kn(this.iframe.contentWindow,this.iframe.contentDocument),he(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const n=[],i=(e,t)=>{this.collectIframeAndAttachDocument(n,e);for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),$(e.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror}),i(this.iframe.contentDocument,e.data.node.id);for(const{mutationInQueue:e,builtNode:t}of n)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e));const{documentElement:r,head:o}=this.iframe.contentDocument;this.insertStyleRules(r,o),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(xe.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var n;const i=(r=this.config.blockClass,[`.${r} { background: currentColor }`,"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);var r;if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,bn(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:Ne.StyleSheetRule,adds:i.map(((e,t)=>({rule:e,index:t})))})}else{const r=document.createElement("style");e.insertBefore(r,t);for(let e=0;e<i.length;e++)null===(n=r.sheet)||void 0===n||n.insertRule(i[e],e)}}attachDocumentToIframe(e,n){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],o=(e,o)=>{this.collectIframeAndAttachDocument(r,e);const s=i.getMeta(e);if((null==s?void 0:s.type)===t.Element&&"HTML"===(null==s?void 0:s.tagName.toUpperCase())){const{documentElement:e,head:t}=n.contentDocument;this.insertStyleRules(e,t)}if(!this.usingVirtualDom)for(const t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:o,replayer:this})};X(e.node,{doc:n.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(n.contentDocument,e.node.id);for(const{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e))}collectIframeAndAttachDocument(e,t){if(me(t,this.mirror)){const n=this.newDocumentQueue.find((e=>e.parentId===this.mirror.getId(t)));n&&e.push({mutationInQueue:n,builtNode:t})}}waitForStylesheetLoad(){var e;const t=null===(e=this.iframe.contentDocument)||void 0===e?void 0:e.head;if(t){const e=new Set;let n,i=this.service.state;const r=()=>{i=this.service.state};this.emitter.on(xe.Start,r),this.emitter.on(xe.Pause,r);const o=()=>{this.emitter.off(xe.Start,r),this.emitter.off(xe.Pause,r)};t.querySelectorAll('link[rel="stylesheet"]').forEach((t=>{t.sheet||(e.add(t),t.addEventListener("load",(()=>{e.delete(t),0===e.size&&-1!==n&&(i.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(xe.LoadStylesheetEnd),n&&clearTimeout(n),o())})))})),e.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(xe.LoadStylesheetStart),n=setTimeout((()=>{i.matches("playing")&&this.play(this.getCurrentTime()),n=-1,o()}),this.config.loadTimeout))}}preloadAllImages(){return lt(this,0,void 0,(function*(){this.service.state;const e=()=>{this.service.state};this.emitter.on(xe.Start,e),this.emitter.on(xe.Pause,e);const t=[];for(const e of this.service.state.context.events)if(e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.CanvasMutation){t.push(this.deserializeAndPreloadCanvasEvents(e.data,e));("commands"in e.data?e.data.commands:[e.data]).forEach((t=>{this.preloadImages(t,e)}))}return Promise.all(t)}))}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){const t=document.createElement("canvas"),n=t.getContext("2d"),i=null==n?void 0:n.createImageData(t.width,t.height);null==i||i.data,JSON.parse(e.args[0]),null==n||n.putImageData(i,0,0)}}deserializeAndPreloadCanvasEvents(e,t){return lt(this,0,void 0,(function*(){if(!this.canvasEventMap.has(t)){const n={isUnchanged:!0};if("commands"in e){const i=yield Promise.all(e.commands.map((e=>lt(this,0,void 0,(function*(){const t=yield Promise.all(e.args.map(zn(this.imageMap,null,n)));return Object.assign(Object.assign({},e),{args:t})})))));!1===n.isUnchanged&&this.canvasEventMap.set(t,Object.assign(Object.assign({},e),{commands:i}))}else{const i=yield Promise.all(e.args.map(zn(this.imageMap,null,n)));!1===n.isUnchanged&&this.canvasEventMap.set(t,Object.assign(Object.assign({},e),{args:i}))}}}))}applyIncremental(e,t){var n,i,r;const{data:o}=e;switch(o.source){case Ne.Mutation:try{this.applyMutation(o,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,o)}break;case Ne.Drag:case Ne.TouchMove:case Ne.MouseMove:if(t){const e=o.positions[o.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:o}}else o.positions.forEach((n=>{const i={doAction:()=>{this.moveAndHover(n.x,n.y,n.id,t,o)},delay:n.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(i)})),this.timer.addAction({doAction(){},delay:e.delay-(null===(n=o.positions[0])||void 0===n?void 0:n.timeOffset)});break;case Ne.MouseInteraction:{if(-1===o.id)break;const e=new Event(u(Oe[o.type])),n=this.mirror.getNode(o.id);if(!n)return this.debugNodeNotFound(o,o.id);this.emitter.emit(xe.MouseInteraction,{type:o.type,target:n});const{triggerFocus:i}=this.config;switch(o.type){case Oe.Blur:"blur"in n&&n.blur();break;case Oe.Focus:i&&n.focus&&n.focus({preventScroll:!0});break;case Oe.Click:case Oe.TouchStart:case Oe.TouchEnd:case Oe.MouseDown:case Oe.MouseUp:t?(o.type===Oe.TouchStart?this.touchActive=!0:o.type===Oe.TouchEnd&&(this.touchActive=!1),o.type===Oe.MouseDown?this.lastMouseDownEvent=[n,e]:o.type===Oe.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===Oe.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,t,o),o.type===Oe.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===Oe.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===Oe.TouchEnd?this.mouse.classList.remove("touch-active"):n.dispatchEvent(e));break;case Oe.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:n.dispatchEvent(e)}break}case Ne.Scroll:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.scrollData=o;break}this.applyScroll(o,t);break;case Ne.ViewportResize:this.emitter.emit(xe.Resize,{width:o.width,height:o.height});break;case Ne.Input:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.inputData=o;break}this.applyInput(o);break;case Ne.MediaInteraction:{const e=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);const t=e;try{void 0!==o.currentTime&&(t.currentTime=o.currentTime),void 0!==o.volume&&(t.volume=o.volume),void 0!==o.muted&&(t.muted=o.muted),1===o.type&&t.pause(),0===o.type&&t.play(),4===o.type&&(t.playbackRate=o.playbackRate)}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}break}case Ne.StyleSheetRule:case Ne.StyleDeclaration:this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&(null===(i=this.virtualDom.mirror.getNode(o.id))||void 0===i||i.rules.push(o)):this.applyStyleSheetMutation(o);break;case Ne.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const t=this.virtualDom.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);t.canvasMutations.push({event:e,mutation:o})}else{const t=this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);Gn({event:e,mutation:o,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case Ne.Font:try{const e=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);null===(r=this.iframe.contentDocument)||void 0===r||r.fonts.add(e)}catch(e){this.warn(e)}break;case Ne.Selection:if(t){this.lastSelectionData=o;break}this.applySelection(o);break;case Ne.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o)}}applyMutation(e,n){if(this.config.useVirtualDom&&!this.usingVirtualDom&&n&&(this.usingVirtualDom=!0,Cn(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const e in this.legacy_missingNodeRetryMap)try{const t=this.legacy_missingNodeRetryMap[e],n=gn(t.node,this.virtualDom,this.mirror);n&&(t.node=n)}catch(e){this.warn(e)}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter((t=>!!i.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1))),e.removes.forEach((t=>{var n;const r=i.getNode(t.id);if(!r)return;let o=i.getNode(t.parentId);if(!o)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&Ce(o)&&(o=o.shadowRoot),i.removeNodeFromMap(r),o)try{o.removeChild(r),this.usingVirtualDom&&"#text"===r.nodeName&&"STYLE"===o.nodeName&&(null===(n=o.rules)||void 0===n?void 0:n.length)>0&&(o.rules=[])}catch(t){if(!(t instanceof DOMException))throw t;this.warn("parent could not remove child in mutation",o,r,e)}}));const r=Object.assign({},this.legacy_missingNodeRetryMap),o=[],s=e=>{var n,s;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let a=i.getNode(e.parentId);if(!a)return e.node.type===t.Document?this.newDocumentQueue.push(e):o.push(e);e.node.isShadow&&(Ce(a)||a.attachShadow({mode:"open"}),a=a.shadowRoot);let c=null,l=null;if(e.previousId&&(c=i.getNode(e.previousId)),e.nextId&&(l=i.getNode(e.nextId)),(e=>{let t=null;return e.nextId&&(t=i.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t})(e))return o.push(e);if(e.node.rootId&&!i.getNode(e.node.rootId))return;const u=e.node.rootId?i.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(me(a,i))return void this.attachDocumentToIframe(e,a);const d=(e,t)=>{if(!this.usingVirtualDom)for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})},h=X(e.node,{doc:u,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:d});if(-1===e.previousId||-1===e.nextId)return void(r[e.node.id]={node:h,mutation:e});const p=i.getMeta(a);if(p&&p.type===t.Element&&"textarea"===p.tagName&&e.node.type===t.Text){const e=Array.isArray(a.childNodes)?a.childNodes:Array.from(a.childNodes);for(const t of e)t.nodeType===a.TEXT_NODE&&a.removeChild(t)}else if((null==p?void 0:p.type)===t.Document){const i=a;e.node.type===t.DocumentType&&(null===(n=i.childNodes[0])||void 0===n?void 0:n.nodeType)===Node.DOCUMENT_TYPE_NODE&&i.removeChild(i.childNodes[0]),"HTML"===h.nodeName&&i.documentElement&&i.removeChild(i.documentElement)}if(c&&c.nextSibling&&c.nextSibling.parentNode?a.insertBefore(h,c.nextSibling):l&&l.parentNode?a.contains(l)?a.insertBefore(h,l):a.insertBefore(h,null):a.appendChild(h),d(h,e.node.id),this.usingVirtualDom&&"#text"===h.nodeName&&"STYLE"===a.nodeName&&(null===(s=a.rules)||void 0===s?void 0:s.length)>0&&(a.rules=[]),me(h,this.mirror)){const e=this.mirror.getId(h),t=this.newDocumentQueue.find((t=>t.parentId===e));t&&(this.attachDocumentToIframe(t,h),this.newDocumentQueue=this.newDocumentQueue.filter((e=>e!==t)))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,a,h,e)};e.adds.forEach((e=>{s(e)}));const a=Date.now();for(;o.length;){const e=pe(o);if(o.length=0,Date.now()-a>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(const t of e){i.getNode(t.value.parentId)?fe(t,(e=>{s(e)})):this.debug("Drop resolve tree since there is no parent for the root node.",t)}}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),Ee(e.texts).forEach((t=>{var n;const r=i.getNode(t.id);if(!r){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}if(r.textContent=t.value,this.usingVirtualDom){const e=r.parentNode;(null===(n=null==e?void 0:e.rules)||void 0===n?void 0:n.length)>0&&(e.rules=[])}})),e.attributes.forEach((t=>{var n;const r=i.getNode(t.id);if(!r){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}for(const e in t.attributes)if("string"==typeof e){const o=t.attributes[e];if(null===o)r.removeAttribute(e);else if("string"==typeof o)try{if("_cssText"===e&&("LINK"===r.nodeName||"STYLE"===r.nodeName))try{const e=i.getMeta(r);Object.assign(e.attributes,t.attributes);const n=X(e,{doc:r.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),o=r.nextSibling,s=r.parentNode;if(n&&s){s.removeChild(r),s.insertBefore(n,o),i.replace(t.id,n);break}}catch(e){}if("value"===e&&"TEXTAREA"===r.nodeName){const e=r;e.childNodes.forEach((t=>e.removeChild(t)));const t=null===(n=r.ownerDocument)||void 0===n?void 0:n.createTextNode(o);t&&e.appendChild(t)}else r.setAttribute(e,o)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e){const e=o,t=r;for(const n in e)if(!1===e[n])t.style.removeProperty(n);else if(e[n]instanceof Array){const i=e[n];t.style.setProperty(n,i[0],i[1])}else{const i=e[n];t.style.setProperty(n,i)}}}}))}applyScroll(e,n){var i,r;const o=this.mirror.getNode(e.id);if(!o)return this.debugNodeNotFound(e,e.id);const s=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)null===(i=this.iframe.contentWindow)||void 0===i||i.scrollTo({top:e.y,left:e.x,behavior:n?"auto":"smooth"});else if((null==s?void 0:s.type)===t.Document)null===(r=o.defaultView)||void 0===r||r.scrollTo({top:e.y,left:e.x,behavior:n?"auto":"smooth"});else try{o.scrollTo({top:e.y,left:e.x,behavior:n?"auto":"smooth"})}catch(e){}}applyInput(e){const t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}}applySelection(e){try{const t=new Set,n=e.ranges.map((({start:e,startOffset:n,end:i,endOffset:r})=>{const o=this.mirror.getNode(e),s=this.mirror.getNode(i);if(!o||!s)return;const a=new Range;a.setStart(o,n),a.setEnd(s,r);const c=o.ownerDocument,l=null==c?void 0:c.getSelection();return l&&t.add(l),{range:a,selection:l}}));t.forEach((e=>e.removeAllRanges())),n.forEach((e=>{var t;return e&&(null===(t=e.selection)||void 0===t?void 0:t.addRange(e.range))}))}catch(e){}}applyStyleSheetMutation(e){var t;let n=null;e.styleId?n=this.styleMirror.getStyle(e.styleId):e.id&&(n=(null===(t=this.mirror.getNode(e.id))||void 0===t?void 0:t.sheet)||null),n&&(e.source===Ne.StyleSheetRule?this.applyStyleSheetRule(e,n):e.source===Ne.StyleDeclaration&&this.applyStyleDeclaration(e,n))}applyStyleSheetRule(e,t){var n,i,r,o;if(null===(n=e.adds)||void 0===n||n.forEach((({rule:e,index:n})=>{try{if(Array.isArray(n)){const{positions:i,index:r}=be(n);ye(t.cssRules,i).insertRule(e,r)}else{const i=void 0===n?void 0:Math.min(n,t.cssRules.length);null==t||t.insertRule(e,i)}}catch(e){}})),null===(i=e.removes)||void 0===i||i.forEach((({index:e})=>{try{if(Array.isArray(e)){const{positions:n,index:i}=be(e);ye(t.cssRules,n).deleteRule(i||0)}else null==t||t.deleteRule(e)}catch(e){}})),e.replace)try{null===(r=t.replace)||void 0===r||r.call(t,e.replace)}catch(e){}if(e.replaceSync)try{null===(o=t.replaceSync)||void 0===o||o.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){if(e.set){ye(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){ye(t.rules,e.index).style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;const n=this.mirror.getNode(e.id);if(!n)return;null===(t=e.styles)||void 0===t||t.forEach((e=>{var t;let i=null,r=null;if(Ce(n)?r=(null===(t=n.ownerDocument)||void 0===t?void 0:t.defaultView)||null:"#document"===n.nodeName&&(r=n.defaultView),r)try{i=new r.CSSStyleSheet,this.styleMirror.add(i,e.styleId),this.applyStyleSheetRule({source:Ne.StyleSheetRule,adds:e.rules},i)}catch(e){}}));let i=0;const r=(e,t)=>{const n=t.map((e=>this.styleMirror.getStyle(e))).filter((e=>null!==e));Ce(e)?e.shadowRoot.adoptedStyleSheets=n:"#document"===e.nodeName&&(e.adoptedStyleSheets=n),n.length!==t.length&&i<10&&(setTimeout((()=>r(e,t)),0+100*i),i++)};r(n,e.styleIds)}legacy_resolveMissingNode(e,t,n,i){const{previousId:r,nextId:o}=i,s=r&&e[r],a=o&&e[o];if(s){const{node:i,mutation:r}=s;t.insertBefore(i,n),delete e[r.node.id],delete this.legacy_missingNodeRetryMap[r.node.id],(r.previousId||r.nextId)&&this.legacy_resolveMissingNode(e,t,i,r)}if(a){const{node:i,mutation:r}=a;t.insertBefore(i,n.nextSibling),delete e[r.node.id],delete this.legacy_missingNodeRetryMap[r.node.id],(r.previousId||r.nextId)&&this.legacy_resolveMissingNode(e,t,i,r)}}moveAndHover(e,t,n,i,r){const o=this.mirror.getNode(n);if(!o)return this.debugNodeNotFound(r,n);const s=ge(o,this.iframe),a=e*s.absoluteScale+s.x,c=t*s.absoluteScale+s.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${c}px`,i||this.drawMouseTail({x:a,y:c}),this.hoverElements(o)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:n,strokeStyle:i,duration:r}=!0===this.config.mouseTail?Kn:Object.assign({},Kn,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=i,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach((t=>e.lineTo(t.x,t.y))),e.stroke())};this.tailPositions.push(e),o(),setTimeout((()=>{this.tailPositions=this.tailPositions.filter((t=>t!==e)),o()}),r/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null===(t=this.lastHoveredRootNode||this.iframe.contentDocument)||void 0===t||t.querySelectorAll(".\\:hover").forEach((e=>{e.classList.remove(":hover")})),this.lastHoveredRootNode=e.getRootNode();let n=e;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(e){return e.type===Ae.IncrementalSnapshot&&(e.data.source>Ne.Mutation&&e.data.source<=Ne.Input)}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(xe.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(Yn,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(Yn,...e)}},e.ReplayerEvents=xe,e.addCustomEvent=$n,e.canvasMutation=Gn,e.freezePage=Jn,e.getRecordConsolePlugin=e=>({name:Zi,observer:Ji,options:e}),e.getReplayConsolePlugin=e=>{const t=(null==e?void 0:e.replayLogger)||new tr(e).getConsoleLogger();return{handler(e,n,i){let r=null;if(e.type===Ae.IncrementalSnapshot&&e.data.source===Ne.Log?r=e.data:e.type===Ae.Plugin&&e.data.plugin===Zi&&(r=e.data.payload),r)try{"function"==typeof t[r.level]&&t[r.level](r)}catch(e){i.replayer.config.showWarning&&console.warn(e)}}}},e.pack=e=>{const t=Object.assign(Object.assign({},e),{v:ji});return Hi(Li(Fi(JSON.stringify(t))),!0)},e.record=Rt,e.unpack=e=>{if("string"!=typeof e)return e;try{const t=JSON.parse(e);if(t.timestamp)return t}catch(e){}try{const t=JSON.parse(Hi(Ui(Fi(e,!0))));if(t.v===ji)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${ji}.`)}catch(e){throw console.error(e),new Error("Unknown data format.")}},e.utils=Me}(pp);class fp{constructor(){this.events=[],this.cycleTimestamp=Date.now(),this.payloadBytesEstimation=0,this.hasSnapshot=!1,this.hasMeta=!1,this.hasError=!1,this.inlinedAllStylesheets=!0}add(e){this.events.push(e)}}var mp=Object.freeze({__proto__:null,Recorder:class{#S;#T;#M;#A=!1;constructor(e){this.#S=new fp,this.#T=new fp,this.#M=[new fp],this.recording=!1,this.currentBufferTarget=this.#S,this.lastMeta=!1,this.parent=e,this.shouldInlineStylesheets=At(this.parent.agentIdentifier,"session_replay.inline_stylesheet"),this.shouldFix=this.shouldInlineStylesheets,this.stopRecording=()=>{}}getEvents(){return this.#M[0]?.events.length?{...this.#M[0],type:"preloaded"}:{events:[...this.#T.events,...this.#S.events].filter((e=>e)),type:"standard",cycleTimestamp:Math.min(this.#T.cycleTimestamp,this.#S.cycleTimestamp),payloadBytesEstimation:this.#T.payloadBytesEstimation+this.#S.payloadBytesEstimation,hasError:this.#T.hasError||this.#S.hasError,hasMeta:this.#T.hasMeta||this.#S.hasMeta,hasSnapshot:this.#T.hasSnapshot||this.#S.hasSnapshot,inlinedAllStylesheets:!!this.#T.events.length&&this.#T.inlinedAllStylesheets||this.#S.inlinedAllStylesheets}}clearBuffer(){this.#M[0]?.events.length?this.#M.shift():this.parent.mode===wt?this.#T=this.#S:this.#T=new fp,this.#S=new fp}startRecording(){this.recording=!0;const{block_class:e,ignore_class:t,mask_text_class:n,block_selector:i,mask_input_options:r,mask_text_selector:o,mask_all_inputs:s,inline_stylesheet:a,inline_images:c,collect_fonts:l}=At(this.parent.agentIdentifier,"session_replay"),u=(e,t)=>"password"===t?.type?.toLowerCase()||void 0===t?.dataset.nrUnmask&&!t?.classList.contains("nr-unmask")?"*".repeat(e.length):e,d=pp.record({emit:this.audit.bind(this),blockClass:e,ignoreClass:t,maskTextClass:n,blockSelector:i,maskInputOptions:r,maskTextSelector:o,maskTextFn:u,maskAllInputs:s,maskInputFn:u,inlineStylesheet:a,inlineImages:c,collectFonts:l,checkoutEveryNms:In[this.parent.mode],errorHandler:e=>(this.parent.ee.emit("internal-error",[e]),!0)});this.stopRecording=()=>{this.recording=!1,this.parent.ee.emit(Mn,[!1,this.parent.mode]),d?.()}}audit(e,t){if(!1===this.shouldInlineStylesheets||!this.shouldFix)return this.currentBufferTarget.inlinedAllStylesheets=!1,this.store(e,t);const n=dh.evaluate();!n&&this.#A&&e.type===On&&(this.#A=!1),n>0&&(dh.fix().then((e=>{e>0&&(this.currentBufferTarget.inlinedAllStylesheets=!1,this.shouldFix=!1),Kt(Jn,["SessionReplay/Payload/Missing-Inline-Css/Failed",e],void 0,Qt.metrics,this.parent.ee),Kt(Jn,["SessionReplay/Payload/Missing-Inline-Css/Fixed",n-e],void 0,Qt.metrics,this.parent.ee),this.takeFullSnapshot()})),e.type!==Nn&&e.type!==On||(this.#A=!0)),this.#A||this.store(e,t)}store(e,t){if(!e)return;if(!this.parent.scheduler&&this.#M.length?this.currentBufferTarget=this.#M[this.#M.length-1]:this.currentBufferTarget=this.#S,this.parent.blocked)return;this.notified||(this.parent.ee.emit(Mn,[!0,this.parent.mode]),this.notified=!0),this.parent.timeKeeper?.ready&&!e.__newrelic&&(e.__newrelic=bn(e.timestamp,this.parent.timeKeeper),e.timestamp=this.parent.timeKeeper.correctAbsoluteTimestamp(e.timestamp)),e.__serialized=Hn(e);const n=e.__serialized.length,i=this.getPayloadSize(n);this.parent.mode===wt&&t&&e.type===On&&this.clearBuffer(),e.type===On&&(this.currentBufferTarget.hasMeta=!0),e.type===Nn&&(this.currentBufferTarget.hasSnapshot=!0),this.currentBufferTarget.add(e),this.currentBufferTarget.payloadBytesEstimation+=n,(e.type===Nn&&this.currentBufferTarget.hasMeta||i>64e3)&&this.parent.mode===Et&&(this.parent.scheduler?this.parent.scheduler.runHarvest():this.#M.push(new fp))}takeFullSnapshot(){try{if(!this.recording)return;pp.record.takeFullSnapshot()}catch(e){}}clearTimestamps(){this.currentBufferTarget.cycleTimestamp=void 0}getPayloadSize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.estimateCompression(this.currentBufferTarget.payloadBytesEstimation+e)+5e3}estimateCompression(e){return this.parent.gzipper&&this.parent.u8?.12*e:e}}}),vp=Uint8Array,gp=Uint16Array,Cp=Uint32Array,yp=new vp([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),bp=new vp([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ep=new vp([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wp=function(e,t){for(var n=new gp(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Cp(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},_p=wp(yp,2),kp=_p[0],Sp=_p[1];kp[28]=258,Sp[258]=28;for(var Tp=wp(bp,0)[1],Mp=new gp(32768),Ap=0;Ap<32768;++Ap){var Np=(43690&Ap)>>>1|(21845&Ap)<<1;Np=(61680&(Np=(52428&Np)>>>2|(13107&Np)<<2))>>>4|(3855&Np)<<4,Mp[Ap]=((65280&Np)>>>8|(255&Np)<<8)>>>1}var Op=function(e,t,n){for(var i=e.length,r=0,o=new gp(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new gp(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new gp(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[Mp[d]>>>c]=l}else for(s=new gp(i),r=0;r<i;++r)e[r]&&(s[r]=Mp[a[e[r]-1]++]>>>15-e[r]);return s},Ip=new vp(288);for(Ap=0;Ap<144;++Ap)Ip[Ap]=8;for(Ap=144;Ap<256;++Ap)Ip[Ap]=9;for(Ap=256;Ap<280;++Ap)Ip[Ap]=7;for(Ap=280;Ap<288;++Ap)Ip[Ap]=8;var Rp=new vp(32);for(Ap=0;Ap<32;++Ap)Rp[Ap]=5;var xp=Op(Ip,9,0),Pp=Op(Rp,5,0),Dp=function(e){return(e+7)/8|0},Lp=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var i=new(2==e.BYTES_PER_ELEMENT?gp:4==e.BYTES_PER_ELEMENT?Cp:vp)(n-t);return i.set(e.subarray(t,n)),i},Up=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Fp=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},Hp=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[qp,0];if(1==r){var s=new vp(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new gp(h+1),f=jp(n[u-1],p,0);if(f>t){i=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var C=o[i].s;if(!(p[C]>t))break;m+=g-(1<<f-p[C]),p[C]=t}for(m>>>=v;m>0;){var y=o[i].s;p[y]<t?m-=1<<t-p[y]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new vp(p),f]},jp=function(e,t,n){return-1==e.s?Math.max(jp(e.l,t,n+1),jp(e.r,t,n+1)):t[e.s]=n},Bp=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new gp(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},zp=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Wp=function(e,t,n){var i=n.length,r=Dp(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},Vp=function(e,t,n,i,r,o,s,a,c,l,u){Up(t,u++,n),++r[256];for(var d=Hp(r,15),h=d[0],p=d[1],f=Hp(o,15),m=f[0],v=f[1],g=Bp(h),C=g[0],y=g[1],b=Bp(m),E=b[0],w=b[1],_=new gp(19),k=0;k<C.length;++k)_[31&C[k]]++;for(k=0;k<E.length;++k)_[31&E[k]]++;for(var S=Hp(_,7),T=S[0],M=S[1],A=19;A>4&&!T[Ep[A-1]];--A);var N,O,I,R,x=l+5<<3,P=zp(r,Ip)+zp(o,Rp)+s,D=zp(r,h)+zp(o,m)+s+14+3*A+zp(_,T)+(2*_[16]+3*_[17]+7*_[18]);if(x<=P&&x<=D)return Wp(t,u,e.subarray(c,c+l));if(Up(t,u,1+(D<P)),u+=2,D<P){N=Op(h,p,0),O=h,I=Op(m,v,0),R=m;var L=Op(T,M,0);Up(t,u,y-257),Up(t,u+5,w-1),Up(t,u+10,A-4),u+=14;for(k=0;k<A;++k)Up(t,u+3*k,T[Ep[k]]);u+=3*A;for(var U=[C,E],F=0;F<2;++F){var H=U[F];for(k=0;k<H.length;++k){var j=31&H[k];Up(t,u,L[j]),u+=T[j],j>15&&(Up(t,u,H[k]>>>5&127),u+=H[k]>>>12)}}}else N=xp,O=Ip,I=Pp,R=Rp;for(k=0;k<a;++k)if(i[k]>255){j=i[k]>>>18&31;Fp(t,u,N[j+257]),u+=O[j+257],j>7&&(Up(t,u,i[k]>>>23&31),u+=yp[j]);var B=31&i[k];Fp(t,u,I[B]),u+=R[B],B>3&&(Fp(t,u,i[k]>>>5&8191),u+=bp[B])}else Fp(t,u,N[i[k]]),u+=O[i[k]];return Fp(t,u,N[256]),u+O[256]},Gp=new Cp([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),qp=new vp(0),Yp=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Kp=function(e,t,n,i,r){return function(e,t,n,i,r,o){var s=e.length,a=new vp(i+s+5*(1+Math.ceil(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=Wp(c,l+1,e.subarray(u,d))}else{for(var h=Gp[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new gp(32768),g=new gp(m+1),C=Math.ceil(n/3),y=2*C,b=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<y)&m},E=new Cp(25e3),w=new gp(288),_=new gp(32),k=0,S=0,T=(u=0,0),M=0,A=0;u<s;++u){var N=b(u),O=32767&u,I=g[N];if(v[O]=I,g[N]=O,M<=u){var R=s-u;if((k>7e3||T>24576)&&R>423){l=Vp(e,c,0,E,w,_,S,T,A,u-A,l),T=k=S=0,A=u;for(var x=0;x<286;++x)w[x]=0;for(x=0;x<30;++x)_[x]=0}var P=2,D=0,L=f,U=O-I&32767;if(R>2&&N==b(u-U))for(var F=Math.min(p,R)-1,H=Math.min(32767,u),j=Math.min(258,R);U<=H&&--L&&O!=I;){if(e[u+P]==e[u+P-U]){for(var B=0;B<j&&e[u+B]==e[u+B-U];++B);if(B>P){if(P=B,D=U,B>F)break;var z=Math.min(U,B-2),W=0;for(x=0;x<z;++x){var V=u-U+x+32768&32767,G=V-v[V]+32768&32767;G>W&&(W=G,I=V)}}}U+=(O=I)-(I=v[O])+32768&32767}if(D){E[T++]=268435456|Sp[P]<<18|Tp[D];var q=31&Sp[P],Y=31&Tp[D];S+=yp[q]+bp[Y],++w[257+q],++_[Y],M=u+P,++k}else E[T++]=e[u],++w[e[u]]}}l=Vp(e,c,o,E,w,_,S,T,A,u-A,l)}return Lp(a,0,i+Dp(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)},Xp=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function $p(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=Yp[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r=Kp(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=r.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Xp(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(r,t),Xp(r,o-8,n.d()),Xp(r,o-4,i),r}var Jp="undefined"!=typeof TextEncoder&&new TextEncoder,Zp="undefined"!=typeof TextDecoder&&new TextDecoder;try{Zp.decode(qp,{stream:!0})}catch(Bu){}var Qp=Object.freeze({__proto__:null,compressSync:$p,gzipSync:$p,strToU8:function(e,t){if(t){for(var n=new vp(e.length),i=0;i<e.length;++i)n[i]=e.charCodeAt(i);return n}if(Jp)return Jp.encode(e);var r=e.length,o=new vp(e.length+(e.length>>1)),s=0,a=function(e){o[s++]=e};for(i=0;i<r;++i){if(s+5>o.length){var c=new vp(s+8+(r-i<<1));c.set(o),o=c}var l=e.charCodeAt(i);l<128||t?a(l):l<2048?(a(192|l>>6),a(128|63&l)):l>55295&&l<57344?(a(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++i))>>18),a(128|l>>12&63),a(128|l>>6&63),a(128|63&l)):(a(224|l>>12),a(128|l>>6&63),a(128|63&l))}return Lp(o,0,s)}});e.AfterpayCheckoutButton=Jr,e.Api=Ni,e.ApplePayWalletButtonExpress=wc,e.CHECKOUT_BUTTON_EVENT=ar,e.Canvas3ds=sr,e.Checkout=mc,e.ClickToPay=No,e.Configuration=ea,e.ELEMENT=mr,e.EVENT=Fi,e.ExternalCheckoutBuilder=br,e.ExternalCheckoutChecker=Er,e.FORM_FIELD=hr,e.FRAUD_PREVENTION_EVENTS=no,e.FraudPreventionService=Co,e.HtmlMultiWidget=aa,e.HtmlPaymentSourceWidget=Eo,e.HtmlWidget=ca,e.InstructionDebugger=vc,e.MultiWidget=oa,e.PAYMENT_TYPE=Qs,e.PayPalDataCollector=Mc,e.PayPalSavePaymentSourceWidget=Rc,e.PaymentSourceBuilder=Yr,e.PaymentSourceWidget=bo,e.PaypalCheckoutButton=Zr,e.PaypalWalletButtonExpress=_c,e.STYLABLE_ELEMENT=ta,e.STYLABLE_ELEMENT_STATE=na,e.STYLE=pr,e.SUPPORTED_CARD_TYPES=vr,e.TEXT=fr,e.TRIGGER=wo,e.TYPE=qr,e.VAULT_DISPLAY_STYLE={BACKGROUND_COLOR:"background_color",TEXT_COLOR:"text_color",BORDER_COLOR:"border_color",BUTTON_COLOR:"button_color",FONT_SIZE:"font_size",FONT_FAMILY:"font_family"},e.VaultDisplayWidget=xo,e.WalletButtons=_s,e.ZipmoneyCheckoutButton=$r}));
|