@alipay/ams-checkout 0.0.1783323899-dev.0 → 0.0.1783323899-dev.1
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/ams-checkout.js +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/dist/ams-checkout.min.js.map +1 -1
- package/esm/config/index.js +1 -1
- package/esm/core/component/element/elementProcessor/paymentProcessor.js +12 -5
- package/esm/core/component/element/modernElementController/index.d.ts +16 -0
- package/esm/core/component/element/modernElementController/index.js +167 -36
- package/esm/foundation/service/event-center.js +12 -9
- package/esm/modern/tools.js +1 -1
- package/esm/util/logger.js +1 -1
- package/package.json +1 -1
package/esm/modern/tools.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return function(){var e={306:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=void 0,t.createSingletonInstance=u,t.createInstance=c,t.createLoader=function(e){var t=this,n=e.sdkURL,s=e.globalName,l=e.timeout,h=void 0===l?2e4:l,f=e.onLoadComplete,d=e.onError,p=e.onLoadStart,g=e.onInitialized,v=e.single,m=void 0===v||v,y=e.namespace;return function(e){return r(t,void 0,void 0,(function(){var t,l,v=this;return o(this,(function(_){var b,E;return null==p||p(),t=Date.now(),i.tracker.log({code:"7988",msg:y,d1:"loadStart",d2:"无",d3:"无",d4:"无",d5:"npm",m1:0,m2:0}),b=function(){return(0,a.loadScriptClass)(n,s)},E=h,l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Promise.race([new Promise((function(e,t){setTimeout((function(){t(new a.LoaderError("LOAD_TIMEOUT","Load timeout: ".concat(E)))}),E)})),b.apply(void 0,e)])},[2,l().then((function(n){return r(v,[n],void 0,(function(n){var r,l,h,d=n.variable,p=n.cache;return o(this,(function(n){switch(n.label){case 0:if(r=Date.now(),p||i.tracker.log({code:"7988",msg:y,d1:"loadComplete",d2:"无",d3:"无",d4:(null==d?void 0:d.version)||"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==f||f(),!d)throw new a.LoaderError("NO_REMOTE_CLASS","No variables ".concat(s," were found. Cannot be initialized the Class ").concat(s));n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(m?u:c)(d,e,void 0)];case 2:return l=n.sent(),i.tracker.log({code:"7988",msg:y,d1:"initialized",d2:"无",d3:"无",d4:l.version||"无版本号",d5:"npm",m1:Math.round(Date.now()-t),m2:Math.round(Date.now()-r)}),null==g||g(l,window.location.href),[2,l];case 3:throw h=n.sent(),new a.LoaderError("INIT_ERROR","Initialize Class ".concat(s," failed: ").concat(h.message));case 4:return[2]}}))}))})).catch((function(e){var n=a.LoaderError.unificationError(e);return i.tracker.log({code:"7988",msg:y,d1:"createError",d2:n.code,d3:n.message,d4:"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==d||d(n),Promise.reject(e)}))]}))}))}};var i=n(611),a=n(880);Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return a.loadScript}});var s=null;function u(e,t,n){return s||(s=c(e,t,n))}function c(e,t,n){var r=new e(t),o=Date.now();return r.init().then((function(e){return n&&i.tracker.log({code:"7988",msg:n,d1:"initialized",d2:"无",d3:"无",d4:r.version||"无版本号",d5:"umd",m1:Math.round(Date.now()-o),m2:Math.round(Date.now()-o)}),e})).catch((function(e){var t=new a.LoaderError("INIT_ERROR","Initialize Class failed: ".concat(e.message));throw n&&i.tracker.log({code:"7988",msg:n,d1:"createError",d2:t.code,d3:t.message,d4:"无",d5:"umd",m1:Math.round(Date.now()-o),m2:0}),t}))}},611:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.tracker=t.ScriptTracker=void 0;var i=n(880),a=function(){function e(e){var t=this;Object.defineProperty(this,"initOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracker",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.initOptions=e,this.loadTacker().then((function(e){t.tracker=e}))}return Object.defineProperty(e.prototype,"loadTacker",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return(0,i.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-opensdk-debugger/1.0.1/dist/tracker.umd.js","intlSdkTracker").then((function(t){var n;return null===(n=null==t?void 0:t.variable)||void 0===n?void 0:n.getTrackerInstance(e.initOptions)}))}}),Object.defineProperty(e.prototype,"getTracker",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return this.tracker?[2,this.tracker]:[4,this.loadTacker()];case 1:return(e=t.sent())&&(this.tracker=e),[2,e]}}))}))}}),Object.defineProperty(e.prototype,"safeCall",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.getTracker().then(e)}}),Object.defineProperty(e.prototype,"log",{enumerable:!1,configurable:!0,writable:!0,value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeCall((function(t){return null==t?void 0:t.log.apply(t,e)}))}}),e}();t.ScriptTracker=a;var s=(null==="DEV"?void 0:"DEV".toUpperCase())||"PROD",u=["DEV","SIT","PRE","PROD","LOCAL"].includes(s)?s:"PROD";t.tracker=new a({appId:"180020050100012557",env:u,server:"sg",performance:!1,error:!1})},880:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=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])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderError=void 0,t.loadScriptClass=function(e,t){return i(e,t)},t.loadScript=i;var o=function(e){function t(t,n){var r=e.call(this,n)||this;return Object.defineProperty(r,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r.name="LoaderError",r.code=t,r}return r(t,e),Object.defineProperty(t,"unificationError",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e instanceof t||e instanceof Error&&"LoaderError"===e.name?e:new t("UNKNOWN_ERROR",e instanceof Error?e.message:"An unknown error occurred.")}}),t}(Error);function i(e,t){var n=function(){if("function"==typeof t)return t();var e=window[t];return(null==e?void 0:e.default)||e};return new Promise((function(t,r){var i=n();if(i)return t({cache:!0,variable:i});var a=document.querySelector('script[src="'.concat(e,'"]')),s=a||document.createElement("script");s.src=e,s.async=!0,s.addEventListener("load",(function(){t({cache:!1,variable:n()})})),s.addEventListener("error",(function(t){r(new o("LOAD_ERROR","Load script ".concat(e," failed: ").concat(t.message)))})),a||document.head.appendChild(s)}))}t.LoaderError=o},861:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=u(e),a=i[0],s=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,u=r-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function u(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("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},207:function(e,t,n){"use strict";var r=n(861),o=n(90),i=n(736);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n);e=s(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var h=!0,f=0;f<u;f++)if(c(e,i+f)!==c(t,f)){h=!1;break}if(h)return i}return-1}function _(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return G(z(t,e.length-n),e,n,r)}function E(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return E(e,t,n,r)}function S(e,t,n,r){return G(Y(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,u,c=e[o],l=null,h=c>239?4:c>223?3:c>191?2:1;if(o+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=h}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}t.lW=u,t.h2=50,u.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.h2;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),h=0;h<s;++h)if(c[h]!==l[h]){i=c[h],a=l[h];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function L(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=j(e[i]);return o}function O(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function x(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||x(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return i||x(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:z(new u(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Y(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},736:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},90:function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,h=n?o-1:0,f=n?-1:1,d=e[t+h];for(h+=f,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+h],h+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+h],h+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=c}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,h=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(t*u-1)*Math.pow(2,o),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*g}},98:function(e,t,n){var r=n(944).default,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,l="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,h=c||l||Function("return this")(),f=Object.prototype.toString,d=Math.max,p=Math.min,g=function(){return h.Date.now()};function v(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function m(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==f.call(e)}function y(e){if("number"==typeof e)return e;if(m(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function _(e){return c=e,s=setTimeout(E,t),l?m(e):a}function b(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-c>=i}function E(){var e=g();if(b(e))return w(e);s=setTimeout(E,function(e){var n=t-(e-u);return h?p(n,i-(e-c)):n}(e))}function w(e){return s=void 0,f&&r?m(e):(r=o=void 0,a)}function S(){var e=g(),n=b(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return _(u);if(h)return s=setTimeout(E,t),m(u)}return void 0===s&&(s=setTimeout(E,t)),a}return t=y(t)||0,v(n)&&(l=!!n.leading,i=(h="maxWait"in n)?d(y(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},S.flush=function(){return void 0===s?a:w(g())},S}},414:function(e,t,n){var r=n(944).default,o="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,c=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,p="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,g=d||p||Function("return this")();var v,m=Array.prototype,y=Function.prototype,_=Object.prototype,b=g["__core-js_shared__"],E=(v=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",w=y.toString,S=_.hasOwnProperty,T=_.toString,A=RegExp("^"+w.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=g.Symbol,R=m.splice,L=H(g,"Map"),k=H(Object,"create"),N=P?P.prototype:void 0,O=N?N.toString:void 0;function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function x(e,t){var n;t=function(e,t){if(G(e))return!1;var n=r(e);if("number"==n||"symbol"==n||"boolean"==n||null==e||F(e))return!0;return u.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:G(n=t)?n:j(n);for(var o=0,i=t.length;null!=e&&o<i;)e=e[z(t[o++])];return o&&o==i?e:void 0}function B(e){if(!K(e)||(t=e,E&&E in t))return!1;var t,n=function(e){var t=K(e)?T.call(e):"";return t==i||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?A:f;return n.test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function U(e,t){var n,o,i=e.__data__;return("string"==(o=r(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function H(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return B(n)?n:void 0}I.prototype.clear=function(){this.__data__=k?k(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(k){var n=t[e];return n===o?void 0:n}return S.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return k?void 0!==t[e]:S.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=k&&void 0===t?o:t,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(e){var t=this.__data__,n=D(t,e);return!(n<0)&&(n==t.length-1?t.pop():R.call(t,n,1),!0)},C.prototype.get=function(e){var t=this.__data__,n=D(t,e);return n<0?void 0:t[n][1]},C.prototype.has=function(e){return D(this.__data__,e)>-1},C.prototype.set=function(e,t){var n=this.__data__,r=D(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},M.prototype.clear=function(){this.__data__={hash:new I,map:new(L||C),string:new I}},M.prototype.delete=function(e){return U(this,e).delete(e)},M.prototype.get=function(e){return U(this,e).get(e)},M.prototype.has=function(e){return U(this,e).has(e)},M.prototype.set=function(e,t){return U(this,e).set(e,t),this};var j=Y((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(F(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(l,(function(e,t,r,o){n.push(r?o.replace(h,"$1"):t||e)})),n}));function z(e){if("string"==typeof e||F(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Y(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Y.Cache||M),n}Y.Cache=M;var G=Array.isArray;function K(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function F(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==T.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:x(e,t);return void 0===r?n:r}},994:function(e,t,n){e=n.nmd(e);var r=n(944).default,o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Function]",u="[object Object]",c=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[a]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h[s]=h["[object Map]"]=h["[object Number]"]=h[u]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var f="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,d="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),g="object"==r(t)&&t&&!t.nodeType&&t,v=g&&"object"==r(e)&&e&&!e.nodeType&&e,m=v&&v.exports===g,y=m&&f.process,_=function(){try{var e=v&&v.require&&v.require("util").types;return e||y&&y.binding&&y.binding("util")}catch(e){}}(),b=_&&_.isTypedArray;function E(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var w,S,T,A=Array.prototype,P=Function.prototype,R=Object.prototype,L=p["__core-js_shared__"],k=P.toString,N=R.hasOwnProperty,O=(w=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",I=R.toString,C=k.call(Object),M=RegExp("^"+k.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=m?p.Buffer:void 0,x=p.Symbol,B=p.Uint8Array,U=D?D.allocUnsafe:void 0,H=(S=Object.getPrototypeOf,T=Object,function(e){return S(T(e))}),j=Object.create,z=R.propertyIsEnumerable,Y=A.splice,G=x?x.toStringTag:void 0,K=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=D?D.isBuffer:void 0,V=Math.max,W=Date.now,q=ve(p,"Map"),J=ve(Object,"create"),X=function(){function e(){}return function(t){if(!Le(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(e){var t=this.__data__=new Q(e);this.size=t.size}function te(e,t){var n=Se(e),r=!n&&we(e),o=!n&&!r&&Ae(e),i=!n&&!r&&!o&&Ne(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!N.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||me(c,u))||s.push(c);return s}function ne(e,t,n){(void 0!==n&&!Ee(e[t],n)||void 0===n&&!(t in e))&&ie(e,t,n)}function re(e,t,n){var r=e[t];N.call(e,t)&&Ee(r,n)&&(void 0!==n||t in e)||ie(e,t,n)}function oe(e,t){for(var n=e.length;n--;)if(Ee(e[n][0],t))return n;return-1}function ie(e,t,n){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Z.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(J){var n=t[e];return n===o?void 0:n}return N.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:N.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=J&&void 0===t?o:t,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=oe(t,e);return!(n<0)&&(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,!0)},Q.prototype.get=function(e){var t=this.__data__,n=oe(t,e);return n<0?void 0:t[n][1]},Q.prototype.has=function(e){return oe(this.__data__,e)>-1},Q.prototype.set=function(e,t){var n=this.__data__,r=oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(q||Q),string:new Z}},$.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},$.prototype.get=function(e){return ge(this,e).get(e)},$.prototype.has=function(e){return ge(this,e).has(e)},$.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ee.prototype.clear=function(){this.__data__=new Q,this.size=0},ee.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ee.prototype.get=function(e){return this.__data__.get(e)},ee.prototype.has=function(e){return this.__data__.has(e)},ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Q){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $(r)}return n.set(e,t),this.size=n.size,this};var ae,se=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[ae?a:++r];if(!1===t(o[s],s,o))break}return e};function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?function(e){var t=N.call(e,G),n=e[G];try{e[G]=void 0;var r=!0}catch(e){}var o=I.call(e);r&&(t?e[G]=n:delete e[G]);return o}(e):function(e){return I.call(e)}(e)}function ce(e){return ke(e)&&ue(e)==a}function le(e){return!(!Le(e)||function(e){return!!O&&O in e}(e))&&(Pe(e)?M:c).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function he(e){if(!Le(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ye(e),n=[];for(var r in e)("constructor"!=r||!t&&N.call(e,r))&&n.push(r);return n}function fe(e,t,n,r,o){e!==t&&se(t,(function(i,a){if(o||(o=new ee),Le(i))!function(e,t,n,r,o,i,a){var s=_e(e,n),c=_e(t,n),l=a.get(c);if(l)return void ne(e,n,l);var h=i?i(s,c,n+"",e,t,a):void 0,f=void 0===h;if(f){var d=Se(c),p=!d&&Ae(c),g=!d&&!p&&Ne(c);h=c,d||p||g?Se(s)?h=s:ke(b=s)&&Te(b)?h=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):p?(f=!1,h=function(e,t){if(t)return e.slice();var n=e.length,r=U?U(n):new e.constructor(n);return e.copy(r),r}(c,!0)):g?(f=!1,v=c,m=!0?(y=v.buffer,_=new y.constructor(y.byteLength),new B(_).set(new B(y)),_):v.buffer,h=new v.constructor(m,v.byteOffset,v.length)):h=[]:function(e){if(!ke(e)||ue(e)!=u)return!1;var t=H(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&k.call(n)==C}(c)||we(c)?(h=s,we(s)?h=function(e){return function(e,t,n,r){var o=!n;n||(n={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?ie(n,s,u):re(n,s,u)}return n}(e,Oe(e))}(s):Le(s)&&!Pe(s)||(h=function(e){return"function"!=typeof e.constructor||ye(e)?{}:X(H(e))}(c))):f=!1}var v,m,y,_;var b;f&&(a.set(c,h),o(h,c,r,i,a),a.delete(c));ne(e,n,h)}(e,t,a,n,fe,r,o);else{var s=r?r(_e(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),ne(e,a,s)}}),Oe)}function de(e,t){return be(function(e,t,n){return t=V(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=V(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),E(e,this,s)}}(e,t,Me),e+"")}var pe=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Me;function ge(e,t){var n,o,i=e.__data__;return("string"==(o=r(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function me(e,t){var n=r(e);return!!(t=null==t?i:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var be=function(e){var t=0,n=0;return function(){var r=W(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pe);function Ee(e,t){return e===t||e!=e&&t!=t}var we=ce(function(){return arguments}())?ce:function(e){return ke(e)&&N.call(e,"callee")&&!z.call(e,"callee")},Se=Array.isArray;function Te(e){return null!=e&&Re(e.length)&&!Pe(e)}var Ae=F||function(){return!1};function Pe(e){if(!Le(e))return!1;var t=ue(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Le(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==r(e)}var Ne=b?function(e){return function(t){return e(t)}}(b):function(e){return ke(e)&&Re(e.length)&&!!h[ue(e)]};function Oe(e){return Te(e)?te(e,!0):he(e)}var Ie,Ce=(Ie=function(e,t,n){fe(e,t,n)},de((function(e,t){var n=-1,o=t.length,i=o>1?t[o-1]:void 0,a=o>2?t[2]:void 0;for(i=Ie.length>3&&"function"==typeof i?(o--,i):void 0,a&&function(e,t,n){if(!Le(n))return!1;var o=r(t);return!!("number"==o?Te(n)&&me(t,n.length):"string"==o&&t in n)&&Ee(n[t],e)}(t[0],t[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var s=t[n];s&&Ie(e,s,n,i)}return e})));function Me(e){return e}e.exports=Ce},89:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,u=[],c=!1,l=-1;function h(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||c||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},319:function(e,t,n){var r=n(652);function o(e){var t,n;function o(t,n){try{var a=e[t](n),s=a.value,u=s instanceof r;Promise.resolve(u?s.v:s).then((function(n){if(u){var r="return"===t?"return":"next";if(!s.k||n.done)return o(r,n);n=e[r](n).value}i(a.done?"return":"normal",n)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?o(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(i,a){var s={key:e,arg:r,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,o(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},652:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},317:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},180:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},786:function(e,t,n){var r=n(317);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},374:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},331:function(e,t,n){var r=n(652);e.exports=function(e){var t={},n=!1;function o(t,o){return n=!0,o=new Promise((function(n){n(e[t](o))})),{done:!1,value:new r(o,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):o("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},193:function(e){function t(e){function n(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return t=function(e){this.s=e,this.n=e.next},t.prototype={s:null,n:null,next:function(){return n(this.n.apply(this.s,arguments))},return:function(e){var t=this.s.return;return void 0===t?Promise.resolve({value:e,done:!0}):n(t.apply(this.s,arguments))},throw:function(e){var t=this.s.return;return void 0===t?Promise.reject(e):n(t.apply(this.s,arguments))}},new t(e)}e.exports=function(e){var n,r,o,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,o=Symbol.iterator);i--;){if(r&&null!=(n=e[r]))return n.call(e);if(o&&null!=(n=e[o]))return new t(n.call(e));r="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},404:function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,u,"next",e)}function u(e){t(a,o,i,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},10:function(e,t,n){var r=n(652);e.exports=function(e){return new r(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},486:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},855:function(e,t,n){var r=n(687),o=n(424);function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},702:function(e,t,n){var r=n(281);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},746:function(e,t,n){var r=n(508);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},400:function(e,t,n){var r=n(242),o=n(424),i=n(983);e.exports=function(e){var t=o();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},143:function(e,t,n){var r=n(281);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},225:function(e,t,n){var r=n(155);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},242:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},821:function(e,t,n){var r=n(687);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},185:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},424:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},682:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},249:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},20:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},114:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},118:function(e,t,n){var r=n(143);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},983:function(e,t,n){var r=n(944).default,o=n(374);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},662:function(e,t,n){var r=n(944).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof _?t:_,i=Object.create(o.prototype),a=new I(r||[]);return s(i,"_invoke",{value:L(e,n,a)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var g="suspendedStart",v="executing",m="completed",y={};function _(){}function b(){}function E(){}var w={};f(w,c,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(C([])));T&&T!==i&&a.call(T,c)&&(w=T);var A=E.prototype=_.prototype=Object.create(w);function P(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function n(o,i,s,u){var c=p(e[o],e,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function L(e,n,r){var o=g;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=k(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===g)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var c=p(e,n,r);if("normal"===c.type){if(o=r.done?m:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 C(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return b.prototype=E,s(A,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:b,configurable:!0}),b.displayName=f(E,h,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,h,"GeneratorFunction")),e.prototype=Object.create(A),e},n.awrap=function(e){return{__await:e}},P(R.prototype),f(R.prototype,l,(function(){return this})),n.AsyncIterator=R,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new R(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(A),f(A,h,"Generator"),f(A,c,(function(){return this})),f(A,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=C,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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&&a.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 i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},687:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},925:function(e,t,n){var r=n(180),o=n(249),i=n(508),a=n(20);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},155:function(e,t,n){var r=n(242);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},44:function(e,t,n){var r=n(786),o=n(682),i=n(508),a=n(114);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},224:function(e,t,n){var r=n(944).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},281:function(e,t,n){var r=n(944).default,o=n(224);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},944:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},508:function(e,t,n){var r=n(317);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},697:function(e,t,n){var r=n(319);e.exports=function(e){return function(){return new r(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){var r=n(242),o=n(687),i=n(185),a=n(855);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r={};return function(){"use strict";n.r(r),n.d(r,{ApplePayHostService:function(){return Ds},MessageType:function(){return ne},OpenSDKError:function(){return O},SDKBridge:function(){return se},adjustSessionData:function(){return Qa},awaitWrap:function(){return Rs},buildPageUrl:function(){return t},checkSessionData:function(){return bs},debug:function(){return fs},debugError:function(){return ds},getDevReqConfig:function(){return o},getLocaleFromRenderData:function(){return s},getMetaData:function(){return Xa},isElements2:function(){return $a},oneAccountQuery:function(){return ks},openModal:function(){return Ps},parseHostSign:function(){return Kr},parseTrackerId:function(){return Gr},request:function(){return Wa},sdkQuery:function(){return Os},sdkTracker:function(){return le},themeColorMap:function(){return _s}});var e={};function t(e,t){return function(e){var t=e?"elements2":"elements",n=location.origin,r=localStorage.getItem("antom-web-checkout-v2_app_document_prefix");return r&&(n=r),"".concat(n,"/").concat(t,"/").concat(localStorage.getItem("ANTOM_LOCAL")?"src/pages":"pages")}(t)+(e.startsWith("/")?e:"/".concat(e))}n.r(e),n.d(e,{hasBrowserEnv:function(){return wi},hasStandardBrowserEnv:function(){return Ti},hasStandardBrowserWebWorkerEnv:function(){return Ai},navigator:function(){return Si},origin:function(){return Pi}});function o(){var e=window.localStorage.getItem("antom-web-checkout-v2_app_env")||"dev";"pre"!==e&&"local"!==e||"true"!==window.localStorage.getItem("antom-web-checkout-v2_sandbox_enabled")||(e="sandbox");var t=window.localStorage.getItem("antom-web-checkout-v2_base_url")||void 0,n=window.localStorage.getItem("antom-web-checkout-v2_group_id")||void 0,r=JSON.parse(JSON.stringify({baseURL:t,groupId:n,env:e}));return console.log("[getDevReqConfig] dev request config:",r),r}var i=n(746),a=n.n(i);function s(e){var t,n=(null==e?void 0:e.supportedLanguages)||[],r=a()(n);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.preferred&&o.locale)return o.locale}}catch(e){r.e(e)}finally{r.f()}}var u=n(486),c=n.n(u),l=n(702),h=n.n(l),f=n(374),d=n.n(f),p=n(821),g=n.n(p),v=n(400),m=n.n(v),y=n(143),_=n.n(y),b=n(118),E=n.n(b),w=n(662),S=n.n(w),T=n(404),A=n.n(T),P=n(925),R=n(944),L=n.n(R),k=n(907),N={i18nPrefix:"OPENSDK"},O=function(e){p(n,e);var t=v(n);function n(e,r,o,i){var a,s,c,l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];u(this,n);var h,d=i,p=void 0;return e&&"object"===R(e)?(h=e.message,p=e.params):h=e,c=t.call(this,!N.i18n||l&&"SERVER_API"===o?h:N.i18n.get({id:"".concat(N.i18nPrefix,".").concat(r),dm:(null===(a=(s=N).getDefaultMessage)||void 0===a?void 0:a.call(s))||h},p)),y(f(c),"code",void 0),y(f(c),"name","OpenSDKError"),y(f(c),"_openSDKErrorFlag","__OpenSDKErrorFlag__"),y(f(c),"source","SDK_INTERNAL"),y(f(c),"traceId",void 0),y(f(c),"reason",void 0),c.reason=h,c.code=r,c.source=o,c.traceId=d,c}return l(n,[{key:"toJSON",value:function(){var e={message:this.message,code:this.code,source:this.source,traceId:this.traceId,reason:this.reason,stack:this.stack};return JSON.parse(JSON.stringify(e))}}],[{key:"isError",value:function(e){return e instanceof n||e instanceof Error&&"__OpenSDKErrorFlag__"===e._openSDKErrorFlag}},{key:"unificationError",value:function(e){var t,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";if(n.isError(e))return e;var i=new I(e instanceof Error?e.message:(null===(t=(r=N).getDefaultMessage)||void 0===t?void 0:t.call(r))||"An unknown error occurred.","UNKNOWN_ERROR",o);return i}},{key:"initConfig",value:function(e){N=b(b({},N),e)}}]),n}(k(Error)),I=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),y(f(e),"name","SDKBridgeError"),e}return l(n)}(O),C=n(44),M=function(e){return C(new Set(e))},D=function(e,t){return e.filter((function(e){return!t.includes(e)}))},x=function(e,t){return e.filter((function(e){return t.includes(e)}))},B=function(e){return"bigint"==typeof e||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e},U=function(e){return"bigint"==typeof e||e>=0&&Number.isSafeInteger(e)};function H(e,t){if(0===t.length)return e;for(var n,r=C(e),o=r.length-1,i=0,a=0;o>0;o--,i++){a+=n=t[i%=t.length].codePointAt(0);var s=(n+i+a)%o,u=r[o],c=r[s];r[s]=u,r[o]=c}return r}var j=function(e,t){return e.reduce((function(n,r){var o=t.indexOf(r);if(-1===o)throw new Error("The provided ID (".concat(e.join(""),") is invalid, as it contains characters that do not exist in the alphabet (").concat(t.join(""),")"));if("bigint"==typeof n)return n*BigInt(t.length)+BigInt(o);var i=n*t.length+o;return Number.isSafeInteger(i)?i:(V("Unable to decode the provided string, due to lack of support for BigInt numbers in the current environment"),BigInt(n)*BigInt(t.length)+BigInt(o))}),0)},z=/^\+?\d+$/,Y=function(e){if(!z.test(e))return Number.NaN;var t=Number.parseInt(e,10);return Number.isSafeInteger(t)?t:(V("Unable to encode the provided BigInt string without loss of information due to lack of support for BigInt type in the current environment"),BigInt(e))},G=function(e){return new RegExp(e.map((function(e){return F(e)})).sort((function(e,t){return t.length-e.length})).join("|"))},K=function(e){return new RegExp("^[".concat(e.map((function(e){return F(e)})).sort((function(e,t){return t.length-e.length})).join(""),"]+$"))},F=function(e){return e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&")},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"BigInt is not available in this environment";if("function"!=typeof BigInt)throw new TypeError(e)},W=3.5,q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"cfhistuCFHISTU";if(u(this,e),this.minLength=n,"number"!=typeof n)throw new TypeError("Hashids: Provided 'minLength' has to be a number (is ".concat(R(n),")"));if("string"!=typeof t)throw new TypeError("Hashids: Provided 'salt' has to be a string (is ".concat(R(t),")"));if("string"!=typeof r)throw new TypeError("Hashids: Provided alphabet has to be a string (is ".concat(R(r),")"));var i=Array.from(t),a=Array.from(r),s=Array.from(o);this.salt=i;var c=M(a);if(c.length<16)throw new Error("Hashids: alphabet must contain at least ".concat(16," unique characters, provided: ").concat(c.join("")));this.alphabet=D(c,s);var l,h,f,d=x(s,c);(this.seps=H(d,i),0===this.seps.length||this.alphabet.length/this.seps.length>W)&&((l=Math.ceil(this.alphabet.length/W))>this.seps.length&&(h=l-this.seps.length,(f=this.seps).push.apply(f,C(this.alphabet.slice(0,h))),this.alphabet=this.alphabet.slice(h)));this.alphabet=H(this.alphabet,i);var p=Math.ceil(this.alphabet.length/12);this.alphabet.length<3?(this.guards=this.seps.slice(0,p),this.seps=this.seps.slice(p)):(this.guards=this.alphabet.slice(0,p),this.alphabet=this.alphabet.slice(p)),this.guardsRegExp=G(this.guards),this.sepsRegExp=G(this.seps),this.allowedCharsRegExp=K([].concat(C(this.alphabet),C(this.guards),C(this.seps)))}return l(e,[{key:"encode",value:function(e){for(var t="",n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Array.isArray(e)?e:[].concat(C(null!=e?[e]:[]),r);return 0===i.length?t:(i.every(B)||(i=i.map((function(e){return"bigint"==typeof e||"number"==typeof e?e:Y(String(e))}))),i.every(U)?this._encode(i).join(""):t)}},{key:"decode",value:function(e){return e&&"string"==typeof e&&0!==e.length?this._decode(e):[]}},{key:"encodeHex",value:function(e){var t=e;switch(R(t)){case"bigint":t=t.toString(16);break;case"string":if(!/^[\dA-Fa-f]+$/.test(t))return"";break;default:throw new Error("Hashids: The provided value is neither a string, nor a BigInt (got: ".concat(R(t),")"))}var n,r,o,i=(n=t,r=12,o=function(e){return Number.parseInt("1".concat(e),16)},Array.from({length:Math.ceil(n.length/r)},(function(e,t){return o(n.slice(t*r,(t+1)*r))})));return this.encode(i)}},{key:"decodeHex",value:function(e){return this.decode(e).map((function(e){return e.toString(16).slice(1)})).join("")}},{key:"isValidId",value:function(e){return this.allowedCharsRegExp.test(e)}},{key:"_encode",value:function(e){var t=this,n=this.alphabet,r=e.reduce((function(e,t,n){return e+("bigint"==typeof t?Number(t%BigInt(n+100)):t%(n+100))}),0),o=[n[r%n.length]],i=C(o),a=this.seps,s=this.guards;if(e.forEach((function(r,s){var u,c=i.concat(t.salt,n),l=function(e,t){var n=[],r=e;if("bigint"==typeof r){var o=BigInt(t.length);do{n.unshift(t[Number(r%o)]),r/=o}while(r>BigInt(0))}else do{n.unshift(t[r%t.length]),r=Math.floor(r/t.length)}while(r>0);return n}(r,n=H(n,c));if((u=o).push.apply(u,C(l)),s+1<e.length){var h=l[0].codePointAt(0)+s,f="bigint"==typeof r?Number(r%BigInt(h)):r%h;o.push(a[f%a.length])}})),o.length<this.minLength){var u=(r+o[0].codePointAt(0))%s.length;if(o.unshift(s[u]),o.length<this.minLength){var c=(r+o[2].codePointAt(0))%s.length;o.push(s[c])}}for(var l=Math.floor(n.length/2);o.length<this.minLength;){var h,f;n=H(n,n),(h=o).unshift.apply(h,C(n.slice(l))),(f=o).push.apply(f,C(n.slice(0,l)));var d=o.length-this.minLength;if(d>0){var p=d/2;o=o.slice(p,p+this.minLength)}}return o}},{key:"_decode",value:function(e){if(!this.isValidId(e))throw new Error("The provided ID (".concat(e,") is invalid, as it contains characters that do not exist in the alphabet (").concat(this.guards.join("")).concat(this.seps.join("")).concat(this.alphabet.join(""),")"));var t=e.split(this.guardsRegExp),n=t[3===t.length||2===t.length?1:0];if(0===n.length)return[];var r,o=n[Symbol.iterator]().next().value,a=n.slice(o.length).split(this.sepsRegExp),s=this.alphabet,u=[],c=i(a);try{for(c.s();!(r=c.n()).done;){var l=r.value,h=H(s,[o].concat(C(this.salt),C(s)).slice(0,s.length));u.push(j(Array.from(l),h)),s=h}}catch(e){c.e(e)}finally{c.f()}return this._encode(u).join("")!==e?[]:u}}]),e}(),J=new q("intl-open-sdk",6);function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var r,o=new Promise((function(e,o){r=setTimeout((function(){n?o(n):e(void 0)}),t)}));return Promise.race([o,e.apply(void 0,arguments)]).finally((function(){return clearTimeout(r)}))}}var Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+J.encode("".concat(Date.now()).concat(Math.ceil(100*Math.random())))};function Q(e){if("onpagehide"in self){var t=function(t){t.persisted||e("pagehide")};return self.addEventListener("pagehide",t),function(){return self.removeEventListener("pagehide",t)}}if("undefined"!=typeof document&&void 0!==document.visibilityState){var n=!1,r=function(){"hidden"!==document.visibilityState||n||(n=!0,e("visibilitychange"))};return document.addEventListener("visibilitychange",r),function(){return document.removeEventListener("visibilitychange",r)}}var o=self,i=function(){e("beforeunload")};return o.addEventListener("beforeunload",i),function(){return o.removeEventListener("beforeunload",i)}}var $=function(){function e(t,n){var r=this;u(this,e),y(this,"targetPort",void 0),y(this,"handlers",new Map),y(this,"debugCallback",void 0),y(this,"name",void 0),y(this,"initialized",!1),y(this,"recipientIsReady",!1),y(this,"handleMessage",(function(e){var t=e.data,n=t.type,o=t.payload,i=r.handlers.get(n);i&&(r.debugCallback&&r.debugCallback(b(b({},e.data),{},{type:"MODAL_PORT@"+e.data.type}),"IN"),i.forEach((function(e){e(o)})))})),this.targetPort=n,n.onmessage=this.handleMessage,this.name=t,this.once("ready",(function(){r.recipientIsReady=!0}))}return l(e,[{key:"setDebugCallback",value:function(e){this.debugCallback=e}},{key:"onData",value:function(e){return this.initialized||(this.send("ready"),this.initialized=!0),this.on("data",e)}},{key:"sendData",value:function(e){var t=this;this.recipientIsReady?this.send("data",e):this.once("ready",(function(){t.recipientIsReady=!0,t.send("data",e)}))}},{key:"onClose",value:function(e){var t=this;return new Promise((function(n,r){t.on("close",function(){var o=T(w().mark((function o(i){return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i.name!==t.name){o.next=10;break}return o.prev=1,o.next=4,e(i.manual);case 4:n(),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),r(o.t0);case 10:case"end":return o.stop()}}),o,null,[[1,7]])})));return function(e){return o.apply(this,arguments)}}())}))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.send("close",{name:this.name,manual:e}),new Promise((function(){}))}},{key:"on",value:function(e,t){var n=this;return this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(t),function(){n.handlers.get(e).delete(t)}}},{key:"once",value:function(e,t){var n=this,r=function r(o){try{t(o)}finally{n.off(e,r)}};return this.on(e,r),function(){n.off(e,r)}}},{key:"off",value:function(e,t){var n=this.handlers.get(e);n&&n.delete(t)}},{key:"send",value:function(e,t){var n={id:Z("modal_port_"),type:e,payload:t};this.debugCallback&&this.debugCallback(b(b({},n),{},{type:"MODAL_PORT@"+n.type}),"OUT"),this.targetPort.postMessage(n)}}]),e}(),ee=function(){function e(t){u(this,e),y(this,"targetPorts",[]),y(this,"name",void 0),this.name=t}var t;return l(e,[{key:"addPort",value:function(e){var t;(t=this.targetPorts).push.apply(t,C(e))}},{key:"removePort",value:function(e){this.targetPorts=this.targetPorts.filter((function(t){return e!==t}))}},{key:"getValues",value:(t=T(w().mark((function e(t){var n,r,o=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.timeout)||1e4,r=X((function(){return Promise.all(o.targetPorts.map((function(e){return new Promise((function(t,n){e.postMessage({id:Math.random()+"",type:"".concat(o.name,":START_COLLECT_VALUE")}),e.onmessage=function(e){var r=e.data;if(r&&r.type){var o=r.type.split(":"),i=P(o,2),a=i[0];"SEND_ELEMENT_VALUE"===i[1]&&t(y({},a,r.payload))}else n(new Error("collect error"))}}))}))).then((function(e){return e.reduce((function(e,t){return b(b({},e),t)}),{})}))}),n),e.abrupt("return",r());case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),te=function(){function e(t,n){u(this,e),y(this,"targetPort",void 0),y(this,"name",void 0),this.targetPort=n,this.name=t}return l(e,[{key:"onSendRequest",value:function(e){this.targetPort.onmessage=function(){var t=T(w().mark((function t(n){var r,o,i;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=n.data)&&r.type){t.next=3;break}return t.abrupt("return");case 3:o=r.type.split(":"),i=P(o,2),i[0],"START_COLLECT_VALUE"===i[1]&&e();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}},{key:"send",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={id:Math.random()+"",payload:e,type:"".concat(this.name,":SEND_ELEMENT_VALUE")};this.targetPort.postMessage(t)}}]),e}(),ne={HANDSHAKE:"OPENSDK@HANDSHAKE",READY_HANDSHAKE:"OPENSDK@READY_HANDSHAKE",UPDATE_CONFIG:"OPENSDK@UPDATE_CONFIG",UPDATE_CONFIG_REPLY:"OPENSDK@UPDATE_CONFIG_REPLY",SUBMIT:"OPENSDK@SUBMIT",SUBMIT_REPLY:"OPENSDK@SUBMIT_REPLY",REDIRECT:"OPENSDK@REDIRECT",OPEN_MODAL:"OPENSDK@OPEN_MODAL",OPEN_MODAL_ERROR:"OPENSDK@OPEN_MODAL_ERROR",CLOSE_MODAL:"OPENSDK@CLOSE_MODAL",ERROR:"OPENSDK@ERROR",HANDSHAKE_ACK:"OPENSDK@HANDSHAKE_ACK",TRANSFER_RECEIVE_PORT:"OPENSDK@TRANSFER_RECEIVE_PORT",MESSAGE:"OPENSDK@MESSAGE",TRANSFER_SEND_PORT:"OPENSDK@TRANSFER_SEND_PORT",TRANSFER_APP_PORT:"OPENSDK@TRANSFER_APP_PORT",TRANSFER_MODAL_PORT:"OPENSDK@TRANSFER_MODAL_PORT",TRANSFER_MODAL_APPEARANCE:"OPENSDK@TRANSFER_MODAL_APPEARANCE",TRANSFER_MODAL_INITIALDATA:"OPENSDK@TRANSFER_MODAL_INITIALDATA",HEIGHT_UPDATE:"OPENSDK@HEIGHT_UPDATE",DESTROY_ELEMENT:"OPENSDK@DESTROY_ELEMENT"},re=n(98),oe=[ne.TRANSFER_RECEIVE_PORT,ne.TRANSFER_SEND_PORT,ne.TRANSFER_MODAL_PORT,ne.TRANSFER_MODAL_APPEARANCE,ne.TRANSFER_MODAL_INITIALDATA,ne.OPEN_MODAL_ERROR,ne.TRANSFER_APP_PORT,ne.CLOSE_MODAL,ne.OPEN_MODAL,ne.REDIRECT,ne.MESSAGE,ne.DESTROY_ELEMENT],ie="@@global",ae="@@native",se=function(){function e(t,n,r){var o,i,a=this;(u(this,e),y(this,"targetWindow",void 0),y(this,"currentWindow",void 0),y(this,"targetOrigin","*"),y(this,"scope",void 0),y(this,"handlers",new Map),y(this,"mode",void 0),y(this,"resizeObserver",void 0),y(this,"debugCallback",void 0),y(this,"receivePort",void 0),y(this,"openModalOff",void 0),y(this,"openModalPromise",void 0),y(this,"handleMessage",(function(e){var t=e.data;if(t&&t.type){var n=t.type.split(":"),r=P(n,2),o=r[0],i=r[1];if(a.scope!==ae){if(!["WEBAPP","HOST"].includes(i))return;if("*"!==a.targetOrigin&&e.origin!==a.targetOrigin)return;if(a.mode===i)return}var s=a.handlers.get(t.type);a.scope!==ae&&(s||t.type.endsWith(ne.ERROR)||t.type.endsWith(ne.MESSAGE))&&a.debugCallback&&a.scope===o&&a.debugCallback(t,"IN"),s&&new Set(s).forEach((function(n){n.length>=3?n(t.payload,e.ports,{origin:e.origin,source:e.source}):n(t.payload,e.ports)}))}})),this.mode=t,this.scope=n,this.currentWindow=r||window,"WEBAPP"===this.mode)&&(this.targetWindow=null===(i=this.currentWindow)||void 0===i?void 0:i.parent);null===(o=this.currentWindow)||void 0===o||o.addEventListener("message",this.handleMessage)}return l(e,[{key:"setTarget",value:function(e){this.targetWindow=e}},{key:"setOrigin",value:function(e){this.targetOrigin=e}},{key:"setDebugCallback",value:function(e){this.debugCallback=e}},{key:"destroy",value:function(){var e,t;null===(e=this.currentWindow)||void 0===e||e.removeEventListener("message",this.handleMessage),this.handlers.clear(),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}},{key:"_addPort",value:function(e){var t;this._transferPort(ne.TRANSFER_RECEIVE_PORT,null===(t=this.receivePort)||void 0===t?void 0:t.name,e)}},{key:"_transferReceivePort",value:function(e){this._transferPort(ne.TRANSFER_RECEIVE_PORT,e.name,e.targetPorts)}},{key:"_transferSendPort",value:function(e){this._transferPort(ne.TRANSFER_SEND_PORT,e.name,[e.targetPort])}},{key:"send",value:function(e,t,n){var r;if(!this.targetWindow)return console.warn("[Bridge] Target window not set. Cannot send message:",e),void(null===(r=this.debugCallback)||void 0===r||r.call(this,{id:Z("bridge"),type:"SYSTEM_".concat(ne.ERROR),payload:{message:"Target window not set"}},"OUT"));var o={id:Z("bridge"),type:this.getOriginSendType(e),payload:t};this.debugCallback&&this.debugCallback(o,"OUT"),this.targetWindow.postMessage(o,this.targetOrigin,n)}},{key:"sendError",value:function(e){"WEBAPP"===this.mode&&this.send(ne.ERROR,e.toJSON())}},{key:"sendSubmit",value:function(e){"WEBAPP"===this.mode&&this.send(ne.SUBMIT_REPLY,e)}},{key:"sendMessage",value:function(e,t){"WEBAPP"===this.mode&&this.send(ne.MESSAGE,{type:e,message:t})}},{key:"sendRedirect",value:function(e){if("WEBAPP"===this.mode){if(!e.url)throw new I("url is required","INVALID_REDIRECT_URL","SDK_INTERNAL");try{new URL(e.url)}catch(e){throw new I("Invalid URL","INVALID_REDIRECT_URL","SDK_INTERNAL")}this.send(ne.REDIRECT,e)}}},{key:"redirect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"redirect";if("WEBAPP"===this.mode){if(!e)throw new I("url is required","INVALID_REDIRECT_URL","SDK_INTERNAL");try{new URL(e)}catch(e){throw new I("Invalid URL","INVALID_REDIRECT_URL","SDK_INTERNAL")}this.send(ne.REDIRECT,{url:e,mode:t})}}},{key:"sendDestroyElement",value:function(e){e||(e=this.scope),"WEBAPP"===this.mode&&this.send(ne.DESTROY_ELEMENT,{elementKey:e})}},{key:"openModal",value:function(e,t){var n,r=this;if(this.openModalPromise)return this.openModalPromise;var o=Z("modal_");this.send(ne.OPEN_MODAL,b(b({},e),{},{scope:this.scope,initialData:t,modalId:o})),null===(n=this.openModalOff)||void 0===n||n.call(this);var i=new Promise((function(e,t){var n=function(){},o=function(){},i=function(){n(),o(),r.openModalOff=void 0,r.openModalPromise=void 0};n=r.once(ne.OPEN_MODAL_ERROR,(function(e){i(),t(new O(e.message,e.code,e.source))}));o=r.on(ne.TRANSFER_APP_PORT,(function(n,r){if(null==r||!r[0])return i(),void t(new I("No ports transferred for modal communication","NO_PORTS_ERROR","SDK_INTERNAL"));i(),e(new $(n,r[0]))})),r.openModalOff=i}));return this.openModalPromise=i,i}},{key:"closeModal",value:function(){var e;null===(e=this.openModalOff)||void 0===e||e.call(this),this.send(ne.CLOSE_MODAL)}},{key:"on",value:function(e,t){var n=this,r=this.getOriginListenType(e);return this.handlers.has(r)||this.handlers.set(r,new Set),this.handlers.get(r).add(t),function(){n.handlers.get(r).delete(t)}}},{key:"once",value:function(e,t){var n=this,r=function r(o,i){try{t(o,i)}finally{n.off(e,r)}};return this.on(e,r),function(){n.off(e,r)}}},{key:"off",value:function(e,t){var n=this.getOriginListenType(e),r=this.handlers.get(n);r&&r.delete(t)}},{key:"handsShake",value:function(e,t){var n=this;if("WEBAPP"!==this.mode)throw new I("handsShake can only be called in WEBAPP mode","UNKNOWN_ERROR","SDK_INTERNAL");var r=this.on(ne.HANDSHAKE,function(){var r=T(w().mark((function r(o){var i,a;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:"GROUP"===(null==o?void 0:o.elementMode)?o.isMainElement?n.getReceivePort().then((function(e){t(o,e)})):n.getSendPort().then((function(e){t(o,e)})).catch((function(){t(o)})):t(o),i=0,a=re((function(e){(Math.abs(e-i)>10||Math.abs((e-i)/i)>.01)&&(i=e,n.send(ne.HEIGHT_UPDATE,e))}),400),n.resizeObserver=new ResizeObserver((function(e){var t,n=null==e||null===(t=e[0])||void 0===t?void 0:t.contentRect;n&&a(n.height)})),n.resizeObserver.observe(document.body),n.send(ne.HANDSHAKE_ACK,{version:e});case 6:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());return this.send(ne.READY_HANDSHAKE),function(){var e;r(),null===(e=n.resizeObserver)||void 0===e||e.disconnect()}}},{key:"getOriginListenType",value:function(e){if("error"===e&&(e=ne.ERROR),this.scope===ae)return e;var t=oe.includes(e)?ie:this.scope;return"".concat(t,":").concat("WEBAPP"===this.mode?"HOST":"WEBAPP",":").concat(e)}},{key:"getOriginSendType",value:function(e){if("error"===e&&(e=ne.ERROR),this.scope===ae)return e;var t=oe.includes(e)?ie:this.scope;return"".concat(t,":").concat(this.mode,":").concat(e)}},{key:"_transferPort",value:function(e,t,n){this.targetWindow?"HOST"===this.mode&&this.targetWindow.postMessage({id:Z(),type:this.getOriginSendType(e),payload:t},this.targetOrigin,n):console.warn("[Bridge] Target window not set. Cannot send port")}},{key:"getReceivePort",value:function(){var e=this;return new Promise((function(t){e.on(ne.TRANSFER_RECEIVE_PORT,(function(n,r){e.receivePort||(e.receivePort=new ee(n)),r&&e.receivePort.addPort(r),t(e.receivePort)}))}))}},{key:"getSendPort",value:function(){var e=this;return new Promise((function(t,n){e.on(ne.TRANSFER_SEND_PORT,(function(e,r){if(r){var o=new te(e,r[0]);t(o)}else n(new Error("no ports transfer"))}))}))}}],[{key:"getGlobalBridge",value:function(t){return new e(t,ie)}},{key:"getNativeBridge",value:function(t){return new e("WEBAPP",ae,t)}},{key:"getBridge",value:function(t,n){if(n===ae||n===ie)throw new Error("Scope cannot be ".concat(ae," or ").concat(ie));return new e(t,n)}}]),e}(),ue=n(306),ce=function(){function e(t){u(this,e),y(this,"options",void 0),y(this,"tracker",void 0),y(this,"trackId",void 0),this.initialOptions(t)}var t;return l(e,[{key:"initialOptions",value:function(e){var t,n,r;return this.options=b(b(b({env:"DEV"},this.options),e),{},{appId:(null==e?void 0:e.appId)||(null===(t=this.options)||void 0===t?void 0:t.appId)||"180020050100012557",performance:!0===(null==e?void 0:e.performance)||!0===(null===(n=this.options)||void 0===n?void 0:n.performance),error:!0===(null==e?void 0:e.error)||!0===(null===(r=this.options)||void 0===r?void 0:r.error)}),"trackId"in this.options&&(this.trackId=this.options.trackId),this.options}},{key:"loadTacker",value:function(e){var t=this,n=(0,ue.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-opensdk-debugger/1.0.1/dist/tracker.umd.js","intlSdkTracker");return n?n.then((function(n){var r;return null===(r=n.variable)||void 0===r?void 0:r.getTrackerInstance(t.initialOptions(e))})):Promise.resolve(void 0)}},{key:"initTracker",value:(t=T(w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.tracker||t){e.next=2;break}return e.abrupt("return",this.tracker);case 2:return e.next=4,this.loadTacker(t);case 4:return(n=e.sent)&&(this.tracker=n),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"safeCall",value:function(e){return this.initTracker().then(e)}},{key:"setTrackId",value:function(e){this.trackId=e,this.set({trackId:e})}},{key:"set",value:function(e){this.safeCall((function(t){return null==t?void 0:t.set(e)}))}},{key:"pv",value:function(){this.safeCall((function(e){return null==e?void 0:e.pv()}))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trackId&&(t[0].d18=this.trackId),this.safeCall((function(e){return null==e?void 0:e.log.apply(e,t)}))}},{key:"click",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.click.apply(e,t)}))}},{key:"expo",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.expo.apply(e,t)}))}},{key:"onSendData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.onSendData.apply(e,t)}))}},{key:"offSendData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.offSendData.apply(e,t)}))}},{key:"pageMonitor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.pageMonitor.apply(e,t)}))}},{key:"reportCustomizedPerformance",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.reportCustomizedPerformance.apply(e,t)}))}}]),e}(),le=new ce;var he;!function(e){e["ar-SA"]="ar-SA",e.kn="kn",e.as="as",e.bho="bho",e["pl-PL"]="pl-PL",e["ko-KR"]="ko-KR",e["da-DK"]="da-DK",e["de-DE"]="de-DE",e["ru-RU"]="ru-RU",e["fr-FR"]="fr-FR",e.gu="gu",e["nl-BE"]="nl-BE",e["nl-NL"]="nl-NL",e["cs-CZ"]="cs-CZ",e.ro="ro",e["lo-LA"]="lo-LA",e["my-MM"]="my-MM",e["bn-BD"]="bn-BD",e["bn-IN"]="bn-IN",e.mr="mr",e["ms-MY"]="ms-MY",e.ml="ml",e.mni="mni",e["ne-NP"]="ne-NP",e.or="or",e["pt-BR"]="pt-BR",e["pt-PT"]="pt-PT",e.pa="pa",e["sv-SE"]="sv-SE",e["ja-JP"]="ja-JP",e.sr="sr",e["si-LK"]="si-LK",e["sk-SK"]="sk-SK",e["tr-TR"]="tr-TR",e["tl-PH"]="tl-PH",e.te="te",e.ta="ta",e["th-TH"]="th-TH",e["ur-PK"]="ur-PK",e["ur-IN"]="ur-IN",e["uk-UA"]="uk-UA",e["iw-IL"]="iw-IL",e["es-ES"]="es-ES",e["es-MX"]="es-MX",e.hu="hu",e["it-IT"]="it-IT",e["in-ID"]="in-ID",e["hi-IN"]="hi-IN",e["vi-VN"]="vi-VN",e["en-PK"]="en-PK",e["en-PL"]="en-PL",e["en-FR"]="en-FR",e["en-PH"]="en-PH",e["en-CZ"]="en-CZ",e["en-CA"]="en-CA",e["en-MM"]="en-MM",e["en-US"]="en-US",e["en-BD"]="en-BD",e["en-MY"]="en-MY",e["en-NP"]="en-NP",e["en-LK"]="en-LK",e["en-TH"]="en-TH",e["en-ES"]="en-ES",e["en-SG"]="en-SG",e["en-HU"]="en-HU",e["en-ID"]="en-ID",e["en-GB"]="en-GB",e["en-VN"]="en-VN",e["en-HK"]="en-HK",e["en-KR"]="en-KR",e["zh-TW"]="zh-TW",e["zh-HK"]="zh-HK",e["zh-SG"]="zh-SG",e["zh-CN"]="zh-CN",e["ar-IQ"]="ar-IQ",e["ckb-IQ"]="ckb-IQ",e.ku="ku",e["kk-KZ"]="kk-KZ",e.af="af",e.am="am",e.az="az",e.be="be",e.bg="bg",e.bs="bs",e.ca="ca",e.cy="cy",e.el="el",e.eo="eo",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.gd="gd",e.gl="gl",e.ha="ha",e.haw="haw",e.hr="hr",e.ig="ig",e.is="is",e.ka="ka",e.km="km",e.ky="ky",e.lb="lb",e.ln="ln",e.lt="lt",e.lv="lv",e.mg="mg",e.mk="mk",e.mn="mn",e.mt="mt",e.om="om",e.ps="ps",e.qu="qu",e.rw="rw",e.sl="sl",e.so="so",e.sq="sq",e.sw="sw",e.tg="tg",e.ti="ti",e.ug="ug",e.uz="uz",e.yo="yo",e.zu="zu"}(he||(he={}));var fe={};fe[he["ar-SA"]]="阿拉伯语 (沙特阿拉伯)",fe[he.kn]="埃纳德语",fe[he.as]="阿萨姆语",fe[he.bho]="博杰普尔语",fe[he["pl-PL"]]="波兰语 (波兰)",fe[he["ko-KR"]]="朝鲜语 (韩国)",fe[he["da-DK"]]="丹麦语 (丹麦)",fe[he["de-DE"]]="德语 (德国)",fe[he["ru-RU"]]="俄语 (俄罗斯)",fe[he["fr-FR"]]="法语 (法国)",fe[he.gu]="古加拉提语",fe[he["nl-BE"]]="荷兰语 (比利时)",fe[he["nl-NL"]]="荷兰语 (荷兰)",fe[he["cs-CZ"]]="捷克语 (捷克共和国)",fe[he.ro]="罗马尼亚语",fe[he["lo-LA"]]="老挝语 (老挝)",fe[he["my-MM"]]="缅甸语 (缅甸)",fe[he["bn-BD"]]="孟加拉语 (孟加拉)",fe[he["bn-IN"]]="孟加拉语 (印度)",fe[he.mr]="马拉地语",fe[he["ms-MY"]]="马来语 (马来西亚)",fe[he.ml]="马来亚拉姆语",fe[he.mni]="曼尼普里语",fe[he["ne-NP"]]="尼泊尔语 (尼泊尔)",fe[he.or]="欧里亚语",fe[he["pt-BR"]]="葡萄牙语 (巴西)",fe[he["pt-PT"]]="葡萄牙语 (葡萄牙)",fe[he.pa]="旁遮普语",fe[he["sv-SE"]]="瑞典语 (瑞典)",fe[he["ja-JP"]]="日语 (日本)",fe[he.sr]="塞尔维亚语",fe[he["si-LK"]]="僧伽罗语 (斯里兰卡)",fe[he["sk-SK"]]="斯洛伐克语 (斯洛伐克)",fe[he["tr-TR"]]="土耳其语 (土耳其)",fe[he["tl-PH"]]="塔加路族语 (菲律宾)",fe[he.te]="泰卢固语",fe[he.ta]="泰米尔语",fe[he["th-TH"]]="泰语 (泰国)",fe[he["ur-PK"]]="乌尔都语 (巴基斯坦)",fe[he["ur-IN"]]="乌尔都语 (印度)",fe[he["uk-UA"]]="乌克兰语 (乌克兰)",fe[he["iw-IL"]]="希伯来语 (以色列)",fe[he["es-ES"]]="西班牙语 (西班牙)",fe[he["es-MX"]]="西班牙语 (墨西哥)",fe[he.hu]="匈牙利语",fe[he["it-IT"]]="意大利语 (意大利)",fe[he["in-ID"]]="印度尼西亚语 (印度尼西亚)",fe[he["hi-IN"]]="印地语 (印度)",fe[he["vi-VN"]]="越南语 (越南)",fe[he["en-PK"]]="英语 (巴基斯坦)",fe[he["en-PL"]]="英语 (波兰)",fe[he["en-FR"]]="英语 (法国)",fe[he["en-PH"]]="英语 (菲律宾)",fe[he["en-CZ"]]="英语 (捷克共和国)",fe[he["en-CA"]]="英语 (加拿大)",fe[he["en-MM"]]="英语 (缅甸)",fe[he["en-US"]]="英语 (美国)",fe[he["en-BD"]]="英语 (孟加拉)",fe[he["en-MY"]]="英语 (马来西亚)",fe[he["en-NP"]]="英语 (尼泊尔)",fe[he["en-LK"]]="英语 (斯里兰卡)",fe[he["en-TH"]]="英语 (泰国)",fe[he["en-ES"]]="英语 (西班牙)",fe[he["en-SG"]]="英语 (新加坡)",fe[he["en-HU"]]="英语 (匈牙利)",fe[he["en-ID"]]="英语 (印度尼西亚)",fe[he["en-GB"]]="英语 (英国)",fe[he["en-VN"]]="英语 (越南)",fe[he["en-HK"]]="英语 (中国香港)",fe[he["en-KR"]]="英语 (韩国)",fe[he["zh-TW"]]="繁体中文 (中国台湾)",fe[he["zh-HK"]]="繁体中文 (中国香港)",fe[he["zh-SG"]]="简体中文 (新加坡)",fe[he["zh-CN"]]="简体中文 (中国)",fe[he["ar-IQ"]]="阿拉伯语 (伊拉克)",fe[he["ckb-IQ"]]="中库尔德语 (伊拉克)",fe[he.ku]="库尔德语",fe[he["kk-KZ"]]="哈萨克语",fe[he.af]="南非语",fe[he.am]="阿姆哈拉语",fe[he.az]="阿塞拜疆语",fe[he.be]="白俄罗斯语",fe[he.bg]="保加利亚语",fe[he.bs]="波斯尼亚语",fe[he.ca]="加泰罗尼亚语",fe[he.cy]="威尔士语",fe[he.el]="现代希腊语",fe[he.eo]="世界语",fe[he.et]="爱沙尼亚语",fe[he.eu]="巴斯克语",fe[he.fa]="波斯语",fe[he.fi]="芬兰语",fe[he.gd]="爱尔兰语",fe[he.gl]="加利西亚语",fe[he.ha]="豪萨语",fe[he.haw]="夏威夷语",fe[he.hr]="克罗地亚语",fe[he.ig]="伊博语",fe[he.is]="冰岛语",fe[he.ka]="格鲁吉亚语",fe[he.km]="高棉语",fe[he.ky]="吉尔吉斯语",fe[he.lb]="卢森堡语",fe[he.ln]="林格拉语",fe[he.lt]="立陶宛语",fe[he.lv]="拉脱维亚语",fe[he.mg]="马尔加什语",fe[he.mk]="马其顿语",fe[he.mn]="蒙古文",fe[he.mt]="马耳他语",fe[he.om]="奥罗莫语",fe[he.ps]="普什图语",fe[he.qu]="克丘亚语",fe[he.rw]="卢旺达语",fe[he.sl]="斯洛文尼亚语",fe[he.so]="索马里语",fe[he.sq]="阿尔巴尼亚语",fe[he.sw]="斯瓦希里语",fe[he.tg]="塔吉克语",fe[he.ti]="蒂格尼亚语",fe[he.ug]="维吾尔语",fe[he.uz]="乌兹别克语",fe[he.yo]="约鲁巴语",fe[he.zu]="祖鲁语";var de,pe={};pe[he["ar-SA"]]="Arabic (Saudi Arabia)",pe[he.kn]="Kannada",pe[he.as]="Assamese",pe[he.bho]="Bhojpuri",pe[he["pl-PL"]]="Polish (Poland)",pe[he["ko-KR"]]="Korean (Korean)",pe[he["da-DK"]]="Danish (Denmark)",pe[he["de-DE"]]="German (Germany)",pe[he["ru-RU"]]="Russian (Russia)",pe[he["fr-FR"]]="French (France)",pe[he.gu]="Gujarati",pe[he["nl-BE"]]="Dutch (Belgium)",pe[he["nl-NL"]]="Dutch (Netherlands)",pe[he["cs-CZ"]]="Czech (Czech Republic)",pe[he.ro]="Romanian",pe[he["lo-LA"]]="Lao (Laos)",pe[he["my-MM"]]="Burmese (Myanmar)",pe[he["bn-BD"]]="Bengali (Bangladesh)",pe[he["bn-IN"]]="Bengali (India)",pe[he.mr]="Marathi",pe[he["ms-MY"]]="Malay (Malaysia)",pe[he.ml]="Malayalam",pe[he.mni]="Manipuri",pe[he["ne-NP"]]="Nepalese (Nepal)",pe[he.or]="Odia (Oriya)",pe[he["pt-BR"]]="Portuguese (Brazil)",pe[he["pt-PT"]]="Portuguese (Portugal)",pe[he.pa]="Punjabi",pe[he["sv-SE"]]="Swedish (Sweden)",pe[he["ja-JP"]]="Japanese (Japanese)",pe[he.sr]="Serbian",pe[he["si-LK"]]="Sinhala (Sri Lanka)",pe[he["sk-SK"]]="Slovak (Slovakia)",pe[he["tr-TR"]]="Turkish (Turkish)",pe[he["tl-PH"]]="Tagalog (Philippines)",pe[he.te]="Telugu",pe[he.ta]="Tamil",pe[he["th-TH"]]="Thai (Thailand)",pe[he["ur-PK"]]="Ulduwen (Pakistan)",pe[he["ur-IN"]]="Urduwen (India)",pe[he["uk-UA"]]="Ukrainian (Ukraine)",pe[he["iw-IL"]]="Hebrew (Israel)",pe[he["es-ES"]]="Spanish (Spain)",pe[he["es-MX"]]="Spanish (Mexico)",pe[he.hu]="Hungarian",pe[he["it-IT"]]="Italian (Italian)",pe[he["in-ID"]]="Indonesian (Indonesia)",pe[he["hi-IN"]]="Hindi (India)",pe[he["vi-VN"]]="Vietnamese (Vietnam)",pe[he["en-PK"]]="English (Pakistan)",pe[he["en-PL"]]="English (Poland)",pe[he["en-FR"]]="English (France)",pe[he["en-PH"]]="English (Philippines)",pe[he["en-CZ"]]="English (Czech Republic)",pe[he["en-CA"]]="English (Canada)",pe[he["en-MM"]]="English (Myanmar)",pe[he["en-US"]]="English (US)",pe[he["en-BD"]]="English (Bangladesh)",pe[he["en-MY"]]="English (Malaysia)",pe[he["en-NP"]]="English (Nepal)",pe[he["en-LK"]]="English (Sri Lanka)",pe[he["en-TH"]]="English (Thailand)",pe[he["en-ES"]]="English (Spain)",pe[he["en-SG"]]="English (Singapore)",pe[he["en-HU"]]="English (Hungary)",pe[he["en-ID"]]="English (Indonesia)",pe[he["en-GB"]]="English (UK)",pe[he["en-VN"]]="English (Vietnam)",pe[he["en-HK"]]="English (Hong Kong)",pe[he["en-KR"]]="English (Korean)",pe[he["zh-TW"]]="Chinese Traditional (Taiwan)",pe[he["zh-HK"]]="Chinese Traditional (Hong Kong)",pe[he["zh-SG"]]="Chinese Simplified (Singapore)",pe[he["zh-CN"]]="Chinese Simplified (China)",pe[he["ar-IQ"]]="Arabic (Iraq)",pe[he["ckb-IQ"]]="Central Kurdish (Iraq)",pe[he.ku]="Kurdish",pe[he["kk-KZ"]]="Kazakh",pe[he.af]="Afrikaans",pe[he.am]="Amharic",pe[he.az]="Azerbaijani",pe[he.be]="Belarusian",pe[he.bg]="Bulgarian",pe[he.bs]="Bosnian",pe[he.ca]="Catalan",pe[he.cy]="Welsh",pe[he.el]="Greek",pe[he.eo]="Esperanto",pe[he.et]="Estonian",pe[he.eu]="Basque",pe[he.fa]="Persian",pe[he.fi]="Finnish",pe[he.gd]="Scots Gaelic",pe[he.gl]="Galician",pe[he.ha]="Hausa",pe[he.haw]="Hawaiian",pe[he.hr]="Croatian",pe[he.ig]="Igbo",pe[he.is]="Icelandic",pe[he.ka]="Georgian",pe[he.km]="Khmer",pe[he.ky]="Kyrgyz",pe[he.lb]="Luxembourgish",pe[he.ln]="Lingala",pe[he.lt]="Lithuanian",pe[he.lv]="Latvian",pe[he.mg]="Malagasy",pe[he.mk]="Macedonian",pe[he.mn]="Mongolian",pe[he.mt]="Maltese",pe[he.om]="Oromo",pe[he.ps]="Pashto",pe[he.qu]="Quechua",pe[he.rw]="Kinyarwanda",pe[he.sl]="Slovenian",pe[he.so]="Somali",pe[he.sq]="Albanian",pe[he.sw]="Swahili",pe[he.tg]="Tajik",pe[he.ti]="Tigrinya",pe[he.ug]="Uyghur",pe[he.uz]="Uzbek",pe[he.yo]="Yoruba",pe[he.zu]="Zulu",function(e){e["ar-SA"]="Arabic",e.kn="kannada",e.as="assamese",e.bho="bhojpuri",e["pl-PL"]="Polish",e["ko-KR"]="Korean",e["da-DK"]="danish",e["de-DE"]="German",e["ru-RU"]="Russian",e["fr-FR"]="French",e.gu="gujarati",e["nl-BE"]="Dutch(Belgium)",e["nl-NL"]="Dutch",e["cs-CZ"]="czech",e.ro="romanian",e["lo-LA"]="Lao (Laos)",e["my-MM"]="Burmese",e["bn-BD"]="Bangadesh",e["bn-IN"]="bangadeshIndia",e.mr="marathi",e["ms-MY"]="Malay",e.ml="malayalam",e.mni="manipuri",e["ne-NP"]="NepaliNepal",e.or="oriya",e["pt-BR"]="portuguese (Brazil)",e["pt-PT"]="Portuguese",e.pa="panjabi",e["sv-SE"]="swedish",e["ja-JP"]="Japanese",e.sr="Serbian",e["si-LK"]="Sinhala",e["sk-SK"]="slovak",e["tr-TR"]="Turkish",e["tl-PH"]="Filipino",e.te="telugu",e.ta="tamil",e["th-TH"]="Thai",e["ur-PK"]="Urdu",e["ur-IN"]="urduIndia",e["uk-UA"]="Ukrainian",e["iw-IL"]="Hebrew",e["es-ES"]="Spanish",e["es-MX"]="Spanish (Mexico)",e.hu="hungarian",e["it-IT"]="Italian",e["in-ID"]="Indonesian",e["hi-IN"]="Hindi",e["vi-VN"]="Vietnamese",e["en-PK"]="Pakistan English",e["en-PL"]="Poland English",e["en-FR"]="English (France)",e["en-PH"]="Philippines English",e["en-CZ"]="Czech English",e["en-CA"]="Canadian English",e["en-MM"]="Myanmar English",e["en-US"]="English",e["en-BD"]="Bangladesh English",e["en-MY"]="Malaysia English",e["en-NP"]="Nepal English",e["en-LK"]="Srilanka English",e["en-TH"]="Thai English",e["en-ES"]="English (Spain)",e["en-SG"]="singapore english",e["en-HU"]="Hungarian English",e["en-ID"]="Indonesian English",e["en-GB"]="British English",e["en-VN"]="Vietnamese English",e["en-HK"]="Hong Kong English",e["en-KR"]="Korean English",e["zh-TW"]="Traditional Chinese",e["zh-HK"]="Traditional Chinese(HK)",e["zh-SG"]="Chinese (Singapore)",e["zh-CN"]="Simplified Chinese",e["ar-IQ"]="Arabic (Iraq)",e["ckb-IQ"]="Central Kurdish (Iraq)",e.ku="Kurdish",e["kk-KZ"]="Kazakh"}(de||(de={}));var ge,ve,me,ye={"zh-hans":he["zh-CN"],"zh-hant":he["zh-TW"],ar:he["ar-SA"],bn:he["bn-BD"],cs:he["cs-CZ"],da:he["da-DK"],de:he["de-DE"],en:he["en-US"],es:he["es-ES"],fr:he["fr-FR"],hi:he["hi-IN"],in:he["in-ID"],it:he["it-IT"],iw:he["iw-IL"],ja:he["ja-JP"],ko:he["ko-KR"],lo:he["lo-LA"],ms:he["ms-MY"],my:he["my-MM"],ne:he["ne-NP"],nl:he["nl-NL"],pl:he["pl-PL"],pt:he["pt-PT"],ru:he["ru-RU"],si:he["si-LK"],sk:he["sk-SK"],sv:he["sv-SE"],th:he["th-TH"],tl:he["tl-PH"],tr:he["tr-TR"],uk:he["uk-UA"],ur:he["ur-PK"],vi:he["vi-VN"],zh:he["zh-CN"],kk:he["kk-KZ"]},_e={"zh-hant":he["zh-TW"],"zh-hans":he["zh-CN"]},be=function(e){return Object.keys(e||{}).map((function(t){return e[t]}))},Ee=function(e,t){return-1!==e.indexOf(t)};!function(e){e.ar_EG="ar_EG",e.az_AZ="az_AZ",e.bg_BG="bg_BG",e.bn_BD="bn_BD",e.by_BY="by_BY",e.ca_ES="ca_ES",e.cs_CZ="cs_CZ",e.da_DK="da_DK",e.de_DE="de_DE",e.el_GR="el_GR",e.en_GB="en_GB",e.en_US="en_US",e.es_ES="es_ES",e.et_EE="et_EE",e.fa_IR="fa_IR",e.fi_FI="fi_FI",e.fr_BE="fr_BE",e.fr_CA="fr_CA",e.fr_FR="fr_FR",e.ga_IE="ga_IE",e.gl_ES="gl_ES",e.he_IL="he_IL",e.hi_IN="hi_IN",e.hr_HR="hr_HR",e.hu_HU="hu_HU",e.hy_AM="hy_AM",e.id_ID="id_ID",e.it_IT="it_IT",e.is_IS="is_IS",e.ja_JP="ja_JP",e.ka_GE="ka_GE",e.kmr_IQ="kmr_IQ",e.kn_IN="kn_IN",e.kk_KZ="kk_KZ",e.km_KH="km_KH",e.ko_KR="ko_KR",e.lt_LT="lt_LT",e.lv_LV="lv_LV",e.mk_MK="mk_MK",e.ml_IN="ml_IN",e.mn_MN="mn_MN",e.ms_MY="ms_MY",e.nb_NO="nb_NO",e.ne_NP="ne_NP",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.pl_PL="pl_PL",e.pt_BR="pt_BR",e.pt_PT="pt_PT",e.ro_RO="ro_RO",e.ru_RU="ru_RU",e.si_LK="si_LK",e.sk_SK="sk_SK",e.sr_RS="sr_RS",e.sl_SI="sl_SI",e.sv_SE="sv_SE",e.ta_IN="ta_IN",e.th_TH="th_TH",e.tr_TR="tr_TR",e.tk_TK="tk_TK",e.ur_PK="ur_PK",e.uk_UA="uk_UA",e.uz_UZ="uz_UZ",e.vi_VN="vi_VN",e.zh_CN="zh_CN",e.zh_HK="zh_HK",e.zh_TW="zh_TW"}(ge||(ge={})),be(ge),function(e){e.af="af",e.am="am",e["ar-dz"]="ar-dz",e["ar-iq"]="ar-iq",e["ar-kw"]="ar-kw",e["ar-ly"]="ar-ly",e["ar-ma"]="ar-ma",e["ar-sa"]="ar-sa",e["ar-tn"]="ar-tn",e.ar="ar",e.az="az",e.be="be",e.bg="bg",e.bi="bi",e.bm="bm",e["bn-bd"]="bn-bd",e.bn="bn",e.bo="bo",e.br="br",e.bs="bs",e.ca="ca",e.cs="cs",e.cv="cv",e.cy="cy",e.da="da",e["de-at"]="de-at",e["de-ch"]="de-ch",e.de="de",e.dv="dv",e.el="el",e["en-au"]="en-au",e["en-ca"]="en-ca",e["en-gb"]="en-gb",e["en-ie"]="en-ie",e["en-il"]="en-il",e["en-in"]="en-in",e["en-nz"]="en-nz",e["en-sg"]="en-sg",e["en-tt"]="en-tt",e.en="en",e.eo="eo",e["es-do"]="es-do",e["es-mx"]="es-mx",e["es-PR"]="es-PR",e["es-us"]="es-us",e.es="es",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.fo="fo",e["fr-ca"]="fr-ca",e["fr-ch"]="fr-ch",e.fr="fr",e.fy="fy",e.ga="ga",e.gd="gd",e.gl="gl",e["gom-latn"]="gom-latn",e.gu="gu",e.he="he",e.hi="hi",e.hr="hr",e.ht="ht",e.hu="hu",e["hy-am"]="hy-am",e.id="id",e.is="is",e["it-ch"]="it-ch",e.it="it",e.ja="ja",e.jv="jv",e.ka="ka",e.kk="kk",e.km="km",e.kn="kn",e.ko="ko",e.ku="ku",e.ky="ky",e.lb="lb",e.lo="lo",e.lt="lt",e.lv="lv",e.me="me",e.mi="mi",e.mk="mk",e.ml="ml",e.mn="mn",e.mr="mr",e["ms-my"]="ms-my",e.ms="ms",e.mt="mt",e.my="my",e.nb="nb",e.ne="ne",e["nl-be"]="nl-be",e.nl="nl",e.nn="nn",e["oc-lnc"]="oc-lnc",e["pa-in"]="pa-in",e.pl="pl",e["pt-br"]="pt-br",e.pt="pt",e.rn="rn",e.ro="ro",e.ru="ru",e.rw="rw",e.sd="sd",e.se="se",e.si="si",e.sk="sk",e.sl="sl",e.sq="sq",e["sr-cyrl"]="sr-cyrl",e.sr="sr",e.ss="ss",e["sv-fi"]="sv-fi",e.sv="sv",e.sw="sw",e.ta="ta",e.te="te",e.tet="tet",e.tg="tg",e.th="th",e.tk="tk",e["tl-ph"]="tl-ph",e.tlh="tlh",e.tr="tr",e.tzl="tzl",e["tzm-latn"]="tzm-latn",e.tzm="tzm",e["ug-cn"]="ug-cn",e.uk="uk",e.ur="ur",e["uz-latn"]="uz-latn",e.uz="uz",e.vi="vi",e["x-pseudo"]="x-pseudo",e.yo="yo",e["zh-cn"]="zh-cn",e["zh-hk"]="zh-hk",e["zh-tw"]="zh-tw",e.zh="zh"}(ve||(ve={})),be(ve),function(e){e.af="af",e["ar-dz"]="ar-dz",e["ar-kw"]="ar-kw",e["ar-ly"]="ar-ly",e["ar-ma"]="ar-ma",e["ar-sa"]="ar-sa",e["ar-tn"]="ar-tn",e.ar="ar",e.az="az",e.be="be",e.bg="bg",e.bm="bm",e["bn-bd"]="bn-bd",e.bn="bn",e.bo="bo",e.br="br",e.bs="bs",e.ca="ca",e.cs="cs",e.cv="cv",e.cy="cy",e.da="da",e["de-at"]="de-at",e["de-ch"]="de-ch",e.de="de",e.dv="dv",e.el="el",e["en-au"]="en-au",e["en-ca"]="en-ca",e["en-gb"]="en-gb",e["en-ie"]="en-ie",e["en-il"]="en-il",e["en-in"]="en-in",e["en-nz"]="en-nz",e["en-sg"]="en-sg",e.eo="eo",e["es-do"]="es-do",e["es-mx"]="es-mx",e["es-us"]="es-us",e.es="es",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.fil="fil",e.fo="fo",e["fr-ca"]="fr-ca",e["fr-ch"]="fr-ch",e.fr="fr",e.fy="fy",e.ga="ga",e.gd="gd",e.gl="gl",e["gom-deva"]="gom-deva",e["gom-latn"]="gom-latn",e.gu="gu",e.he="he",e.hi="hi",e.hr="hr",e.hu="hu",e["hy-am"]="hy-am",e.id="id",e.is="is",e["it-ch"]="it-ch",e.it="it",e.ja="ja",e.jv="jv",e.ka="ka",e.kk="kk",e.km="km",e.kn="kn",e.ko="ko",e.ku="ku",e.ky="ky",e.lb="lb",e.lo="lo",e.lt="lt",e.lv="lv",e.me="me",e.mi="mi",e.mk="mk",e.ml="ml",e.mn="mn",e.mr="mr",e["ms-my"]="ms-my",e.ms="ms",e.mt="mt",e.my="my",e.nb="nb",e.ne="ne",e["nl-be"]="nl-be",e.nl="nl",e.nn="nn",e["oc-lnc"]="oc-lnc",e["pa-in"]="pa-in",e.pl="pl",e["pt-br"]="pt-br",e.pt="pt",e.ro="ro",e.ru="ru",e.sd="sd",e.se="se",e.si="si",e.sk="sk",e.sl="sl",e.sq="sq",e["sr-cyrl"]="sr-cyrl",e.sr="sr",e.ss="ss",e.sv="sv",e.sw="sw",e.ta="ta",e.te="te",e.tet="tet",e.tg="tg",e.th="th",e.tk="tk",e["tl-ph"]="tl-ph",e.tlh="tlh",e.tr="tr",e.tzl="tzl",e["tzm-latn"]="tzm-latn",e.tzm="tzm",e["ug-cn"]="ug-cn",e.uk="uk",e.ur="ur",e["uz-latn"]="uz-latn",e.uz="uz",e.vi="vi",e["x-pseudo"]="x-pseudo",e.yo="yo",e["zh-cn"]="zh-cn",e["zh-hk"]="zh-hk",e["zh-mo"]="zh-mo",e["zh-tw"]="zh-tw"}(me||(me={})),be(me);var we,Se,Te,Ae,Pe,Re,Le,ke,Ne,Oe,Ie,Ce,Me,De,xe,Be;he["ar-IQ"],ge.ar_EG,me.ar,ve.ar,he["ar-SA"],ge.ar_EG,me["ar-sa"],ve["ar-sa"],he["bn-BD"],ge.bn_BD,me["bn-bd"],ve["bn-bd"],he["bn-IN"],ge.bn_BD,me.bn,ve.bn,he["cs-CZ"],ge.cs_CZ,me.cs,ve.cs,he["da-DK"],ge.da_DK,me.da,ve.da,he["de-DE"],ge.de_DE,me.de,ve.de,he["en-BD"],ge.en_US,me["en-gb"],ve.en,he["en-CA"],ge.en_US,me["en-ca"],ve["en-ca"],he["en-CZ"],ge.en_US,me["en-gb"],ve.en,he["en-ES"],ge.en_US,me["en-gb"],ve.en,he["en-FR"],ge.en_US,me["en-gb"],ve.en,he["en-GB"],ge.en_GB,me["en-gb"],ve["en-gb"],he["en-HU"],ge.en_US,me["en-gb"],ve.en,he["en-ID"],ge.en_US,me["en-gb"],ve.en,he["en-LK"],ge.en_US,me["en-gb"],ve.en,he["en-MM"],ge.en_US,me["en-gb"],ve.en,he["en-MY"],ge.en_US,me["en-gb"],ve.en,he["en-NP"],ge.en_US,me["en-gb"],ve.en,he["en-PH"],ge.en_US,me["en-gb"],ve.en,he["en-PK"],ge.en_US,me["en-gb"],ve.en,he["en-PL"],ge.en_US,me["en-gb"],ve.en,he["en-SG"],ge.en_US,me["en-sg"],ve.en,he["en-TH"],ge.en_US,me["en-gb"],ve.en,he["en-US"],ge.en_US,me["en-gb"],ve.en,he["en-VN"],ge.en_US,me["en-gb"],ve.en,he["en-HK"],ge.en_US,me["en-gb"],ve.en,he["en-KR"],ge.en_US,me["en-gb"],ve.en,he["es-ES"],ge.es_ES,me.es,ve.es,he["es-MX"],ge.es_ES,me.es,ve.es,he["fr-FR"],ge.fr_FR,me.fr,ve.fr,he["hi-IN"],ge.hi_IN,me.hi,ve.hi,he.hu,ge.hu_HU,me.hu,ve.hu,he["in-ID"],ge.id_ID,me.id,ve.id,he["it-IT"],ge.it_IT,me.it,ve.it,he["ja-JP"],ge.ja_JP,me.ja,ve.ja,he.kn,ge.kn_IN,me.kn,ve.kn,he["ko-KR"],ge.ko_KR,me.ko,ve.ko,he.ml,ge.ml_IN,me.ml,ve.ml,he["ms-MY"],ge.ms_MY,me["ms-my"],ve["ms-my"],he["ne-NP"],ge.ne_NP,me.ne,ve.ne,he["nl-BE"],ge.nl_BE,me["nl-be"],ve["nl-be"],he["nl-NL"],ge.nl_NL,me.nl,ve.nl,he["pl-PL"],ge.pl_PL,me.pl,ve.pl,he["pt-BR"],ge.pt_BR,me["pt-br"],ve["pt-br"],he["pt-PT"],ge.pt_PT,me.pt,ve.pt,he.ro,ge.ro_RO,me.ro,ve.ro,he["ru-RU"],ge.ru_RU,me.ru,ve.ru,he["si-LK"],ge.si_LK,me.si,ve.si,he["sk-SK"],ge.sk_SK,me.sk,ve.sk,he.sr,ge.sr_RS,me.sr,ve.sr,he["sv-SE"],ge.sv_SE,me.sv,ve.sv,he.ta,ge.ta_IN,me.ta,ve.ta,he["th-TH"],ge.th_TH,me.th,ve.th,he["tr-TR"],ge.tr_TR,me.tr,ve.tr,he["uk-UA"],ge.uk_UA,me.uk,ve.uk,he["ur-PK"],ge.ur_PK,me.ur,ve.ur,he["vi-VN"],ge.vi_VN,me.vi,ve.vi,he["zh-CN"],ge.zh_CN,me["zh-cn"],ve["zh-cn"],he["zh-HK"],ge.zh_HK,me["zh-hk"],ve["zh-hk"],he["zh-SG"],ge.zh_HK,me["zh-hk"],ve["zh-hk"],he["zh-TW"],ge.zh_TW,me["zh-tw"],ve["zh-tw"],he["kk-KZ"],ge.kk_KZ,me.kk,ve.kk;!function(e){e.ar_SA="ar_SA",e.kn="kn",e.as="as",e.bho="bho",e.pl_PL="pl_PL",e.ko_KR="ko_KR",e.da_DK="da_DK",e.de_DE="de_DE",e.ru_RU="ru_RU",e.fr_FR="fr_FR",e.gu="gu",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.cs_CZ="cs_CZ",e.ro="ro",e.lo_LA="lo_LA",e.my_MM="my_MM",e.bn_BD="bn_BD",e.bn_IN="bn_IN",e.mr="mr",e.ms_MY="ms_MY",e.ml="ml",e.mni="mni",e.ne_NP="ne_NP",e.or="or",e.pt_BR="pt_BR",e.pt_PT="pt_PT",e.pa="pa",e.sv_SE="sv_SE",e.ja_JP="ja_JP",e.sr="sr",e.si_LK="si_LK",e.sk_SK="sk_SK",e.tr_TR="tr_TR",e.tl_PH="tl_PH",e.te="te",e.ta="ta",e.th_TH="th_TH",e.ur_PK="ur_PK",e.ur_IN="ur_IN",e.uk_UA="uk_UA",e.iw_IL="iw_IL",e.es_ES="es_ES",e.es_MX="es_MX",e.hu="hu",e.it_IT="it_IT",e.in_ID="in_ID",e.hi_IN="hi_IN",e.vi_VN="vi_VN",e.en_PK="en_PK",e.en_PL="en_PL",e.en_FR="en_FR",e.en_PH="en_PH",e.en_CZ="en_CZ",e.en_CA="en_CA",e.en_MM="en_MM",e.en_US="en_US",e.en_BD="en_BD",e.en_MY="en_MY",e.en_NP="en_NP",e.en_LK="en_LK",e.en_TH="en_TH",e.en_ES="en_ES",e.en_SG="en_SG",e.en_HU="en_HU",e.en_ID="en_ID",e.en_GB="en_GB",e.en_VN="en_VN",e.en_HK="en_HK",e.en_KR="en_KR",e.zh_TW="zh_TW",e.zh_HK="zh_HK",e.zh_SG="zh_SG",e.zh_CN="zh_CN",e.ar_IQ="ar_IQ",e.ckb_IQ="ckb_IQ",e.ku="ku",e.kk_KZ="kk_KZ",e.af="af",e.am="am",e.az="az",e.be="be",e.bg="bg",e.bs="bs",e.ca="ca",e.cy="cy",e.el="el",e.eo="eo",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.gd="gd",e.gl="gl",e.ha="ha",e.haw="haw",e.hr="hr",e.ig="ig",e.is="is",e.ka="ka",e.km="km",e.ky="ky",e.lb="lb",e.ln="ln",e.lt="lt",e.lv="lv",e.mg="mg",e.mk="mk",e.mn="mn",e.mt="mt",e.om="om",e.ps="ps",e.qu="qu",e.rw="rw",e.sl="sl",e.so="so",e.sq="sq",e.sw="sw",e.tg="tg",e.ti="ti",e.ug="ug",e.uz="uz",e.yo="yo",e.zu="zu"}(Be||(Be={}));var Ue,He,je=be(Be),ze={};ze[Be.kn]="AiNaDeYu",ze[Be.ar_SA]="ALaBoYu (ShaTeALaBo)",ze[Be.ar_IQ]="ALaBoYu (YiLaKe)",ze[Be.as]="ASaMuYu",ze[Be.bho]="BoJiePuErYu",ze[Be.pl_PL]="BoLanYu (BoLan)",ze[Be.ko_KR]="ChaoXianYu (HanGuo)",ze[Be.da_DK]="DanMaiYu (DanMai)",ze[Be.de_DE]="DeYu (DeGuo)",ze[Be.ru_RU]="EYu (ELuoSi)",ze[Be.fr_FR]="FaYu (FaGuo)",ze[Be.gu]="GuJiaLaTiYu",ze[Be.nl_BE]="HeLanYu (BiLiShi)",ze[Be.nl_NL]="HeLanYu (HeLan)",ze[Be.cs_CZ]="JieKeYu (JieKeGongHeGuo)",ze[Be.ku]="KuErDeYu",ze[Be.lo_LA]="LaoWoYu (LaoWo)",ze[Be.ro]="LuoMaNiYaYu",ze[Be.mr]="MaLaDiYu",ze[Be.ms_MY]="MaLaiYu (MaLaiXiYa)",ze[Be.ml]="MaLaiYaLaMuYu",ze[Be.mni]="ManNiPuLiYu",ze[Be.bn_BD]="MengJiaLaYu (MengJiaLa)",ze[Be.bn_IN]="MengJiaLaYu (YinDu)",ze[Be.my_MM]="MianDianYu (MianDian)",ze[Be.ne_NP]="NiBoErYu (NiBoEr)",ze[Be.or]="OuLiYaYu",ze[Be.pa]="PangZhePuYu",ze[Be.pt_BR]="PuTaoYaYu (BaXi)",ze[Be.pt_PT]="PuTaoYaYu (PuTaoYa)",ze[Be.ja_JP]="RiYu (RiBen)",ze[Be.sv_SE]="RuiDianYu (RuiDian)",ze[Be.sr]="SaiErWeiYaYu",ze[Be.si_LK]="SengJiaLuoYu (SiLiLanKa)",ze[Be.sk_SK]="SiLuoFaKeYu (SiLuoFaKe)",ze[Be.te]="TaiLuGuYu",ze[Be.ta]="TaiMiErYu",ze[Be.th_TH]="TaiYu (TaiGuo)",ze[Be.tl_PH]="TaJiaLuZuYu (FeiLvBin)",ze[Be.tr_TR]="TuErQiYu (TuErQi)",ze[Be.ur_PK]="WuErDuYu (BaJiSiTan)",ze[Be.ur_IN]="WuErDuYu (YinDu)",ze[Be.uk_UA]="WuKeLanYu (WuKeLan)",ze[Be.es_ES]="XiBanYaYu (XiBanYa)",ze[Be.es_MX]="XiBanYaYu (MoXiGe)",ze[Be.iw_IL]="XiBoLaiYu (YiSeLie)",ze[Be.hu]="XiongYaLiYu",ze[Be.it_IT]="YiDaLiYu (YiDaLi)",ze[Be.hi_IN]="YinDiYu (YinDu)",ze[Be.in_ID]="YinDuNiXiYaYu (YinDuNiXiYa)",ze[Be.en_PK]="YingYu (BaJiSiTan)",ze[Be.en_PL]="YingYu (BoLan)",ze[Be.en_FR]="YingYu (FaGuo)",ze[Be.en_PH]="YingYu (FeiLvBin)",ze[Be.en_CA]="YingYu (JiaNaDa)",ze[Be.en_CZ]="YingYu (JieKeGongHeGuo)",ze[Be.en_MY]="YingYu (MaLaiXiYa)",ze[Be.en_US]="YingYu (MeiGuo)",ze[Be.en_BD]="YingYu (MengJiaLa)",ze[Be.en_MM]="YingYu (MianDian)",ze[Be.en_NP]="YingYu (NiBoEr)",ze[Be.en_LK]="YingYu (SiLiLanKa)",ze[Be.en_TH]="YingYu (TaiGuo)",ze[Be.en_ES]="YingYu (XiBanYa)",ze[Be.en_SG]="YingYu (XinJiaPo)",ze[Be.en_HU]="YingYu (XiongYaLi)",ze[Be.en_ID]="YingYu (YinDuNiXiYa)",ze[Be.en_GB]="YingYu (YingGuo)",ze[Be.en_VN]="YingYu (YueNan)",ze[Be.en_HK]="YingYu (XiangGang)",ze[Be.en_KR]="YingYu (HanGuo)",ze[Be.vi_VN]="YueNanYu (YueNan)",ze[Be.ckb_IQ]="ZhongKuErDeYu (YiLaKe)",ze[Be.zh_TW]="ZhongWen (TaiWanDiQu)",ze[Be.zh_HK]="ZhongWen (XiangGang)",ze[Be.zh_SG]="ZhongWen (XinJiaPo)",ze[Be.zh_CN]="ZhongWen (ZhongGuo)",ze[Be.kk_KZ]="HaSaKeYu (HaSaKeSiTan)",ze[Be.af]="NanFeiYu",ze[Be.am]="AMuHaLaYu",ze[Be.az]="ASaiBaiJiangYu",ze[Be.be]="BaiErLuoSiYu",ze[Be.bg]="BaoJiaLiYaYu",ze[Be.bs]="BoSiNiYaYu",ze[Be.ca]="JiaTaiLuoNiYaYu",ze[Be.cy]="WeiErShiYu",ze[Be.el]="XianDaiXiLaYu",ze[Be.eo]="ShiJieYu",ze[Be.et]="AiShaNiYaYu",ze[Be.eu]="BaSiKeYu",ze[Be.fa]="BoSiYu",ze[Be.fi]="FenLanYu",ze[Be.gd]="AiErLanYu",ze[Be.gl]="JiaLiXiYaYu",ze[Be.ha]="HaoSaYu",ze[Be.haw]="XiaWeiYiYu",ze[Be.hr]="KeLuoDiYaYu",ze[Be.ig]="YiBoYu",ze[Be.is]="BingDaoYu",ze[Be.ka]="GeLuJiYaYu",ze[Be.km]="GaoMianYu",ze[Be.ky]="JiErJiSiYu",ze[Be.lb]="LuSenBaoYu",ze[Be.ln]="LinGeLaYu",ze[Be.lt]="LiTaoWanYu",ze[Be.lv]="LaTuoWeiYaYu",ze[Be.mg]="MaErJiaShiYu",ze[Be.mk]="MaQiDunYu",ze[Be.mn]="MengGuWen",ze[Be.mt]="MaErTaYu",ze[Be.om]="AoLuoMoYu",ze[Be.ps]="PuShiTuYu",ze[Be.qu]="KeQiuYaYu",ze[Be.rw]="LuWangDaYu",ze[Be.sl]="SiLuoWeiNiYaYu",ze[Be.so]="SuoMaLiYu",ze[Be.sq]="AErBaNiYaYu",ze[Be.sw]="SiWaXiLiYu",ze[Be.tg]="TaJiKeYu",ze[Be.ti]="DiGeNiYaYu",ze[Be.ug]="WeiWuErYu",ze[Be.uz]="WuZiBieKeYu",ze[Be.yo]="YueLuBaYu",ze[Be.zu]="ZuLuYu",function(e){e.AiSelected="AiSelected",e.Aliyun="Aliyun",e["ChatGPT3.5"]="ChatGPT3.5",e.Google="Google",e.Papago="Papago",e.DeepL="DeepL",e.Microsoft="Microsoft",e.Amazon="Amazon"}(Ue||(Ue={})),function(e){e.AiSelected="AiSelected",e.Aliyun="Aliyun",e["ChatGPT3.5"]="ChatGPT3.5",e.Google="Google",e.Papago="Papago",e.DeepL="DeepL",e.Microsoft="Microsoft",e.Amazon="Amazon"}(He||(He={})),be(He);var Ye=Object.assign(Object.assign({},He),{TranslationMemory:"TranslationMemory"}),Ge=(be(Ye),{aliyunSupportedLanguages:["ab","sq","ak","ar","an","am","as","az","ast","nch","ee","ay","ga","et","oj","oc","or","om","os","tpi","ba","eu","be","ber","bm","pag","bg","se","bem","byn","bi","bal","is","pl","bs","fa","bho","br","ch","cbk","cv","ts","tt","da","shn","tet","de","nds","sco","dv","kdx","dtp","ru","fo","fr","sa","fil","fj","fi","fur","fvr","kg","km","ngu","kl","ka","gos","gu","gn","kk","ht","ko","ha","nl","cnr","hup","gil","rn","quc","ky","gl","ca","cs","kab","kn","kr","csb","kha","kw","xh","co","mus","crh","tlh","hbs","qu","ks","ku","la","ltg","lv","lo","lt","li","ln","lg","lb","rue","rw","ro","rm","rom","jbo","mg","gv","mt","mr","ml","ms","chm","mk","mh","kek","mai","mfe","mi","mn","bn","my","hmn","umb","nv","af","ne","niu","no","pmn","pap","pa","pt","ps","ny","tw","chr","ja","sv","sm","sg","si","hsb","eo","sl","sw","so","sk","tl","tg","ty","te","ta","th","to","toi","ti","tvl","tyv","tr","tk","wa","war","cy","ve","vo","wo","udm","ur","uz","es","ie","fy","szl","he","hil","haw","el","lfn","sd","hu","sn","ceb","syr","su","hy","ace","iba","ig","io","ilo","iu","it","yi","ia","hi","id","inh","en","yo","vi","zza","jv","zh","zh-tw","yue","zu"],mapAliyunLanguage:function(e){if(e===Be.zh_HK||e===Be.zh_TW||e===Be.zh_SG)return"zh-tw";if(e===Be.in_ID)return"id";if(e===Be.iw_IL)return"he";var t=e.split("_")[0];return Ee(Ge.aliyunSupportedLanguages,t)?t:null},googleSupportedLanguages:["af","sq","am","ar","hy","as","ay","az","bm","eu","be","bn","bho","bs","bg","ca","ceb","zh","zh-CN","zh-TW","co","hr","cs","da","dv","doi","nl","en","eo","et","ee","fil","fi","fr","fy","gl","ka","de","el","gn","gu","ht","ha","haw","he","iw","hi","hmn","hu","is","ig","ilo","id","ga","it","ja","jv","jw","kn","kk","km","rw","gom","ko","kri","ku","ckb","ky","lo","la","lv","ln","lt","lg","lb","mk","mai","mg","ms","ml","mt","mi","mr","mni-Mtei","lus","mn","my","ne","no","ny","or","om","ps","fa","pl","pt","pa","qu","ro","ru","sm","sa","gd","nso","sr","st","sn","sd","si","sk","sl","so","es","su","sw","sv","tl","tg","ta","tt","te","th","ti","ts","tr","tk","ak","uk","ur","ug","uz","vi","cy","xh","yi","yo","zu"],mapGoogleLanguage:function(e){if(e===Be.zh_HK||e===Be.zh_TW||e===Be.zh_SG)return"zh-TW";if(e===Be.in_ID)return"id";if(e===Be.mni)return"mni-Mtei";var t=e.split("_")[0];return Ee(Ge.googleSupportedLanguages,t)?t:null},papagoSupportedLanguages:["ko","en","ja","zh-CN","zh-TW"],mapPapagoLanguage:function(e){if(e===Be.zh_CN)return"zh-CN";if(e===Be.zh_HK||e===Be.zh_TW||e===Be.zh_SG)return"zh-TW";var t=e.split("_")[0];return Ee(Ge.papagoSupportedLanguages,t)?t:null},deepLSupportedSourceLanguages:["AR","BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT","RO","RU","SK","SL","SV","TR","UK","ZH"],deepLSupportedLanguages:["AR","BG","CS","DA","DE","EL","EN-GB","EN-US","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT-BR","PT-PT","RO","RU","SK","SL","SV","TR","UK","ZH"],mapDeepLSourceLanguage:function(e){var t=e.toUpperCase();if(e===Be.in_ID)return"ID";var n=t.split("_")[0];return Ee(Ge.deepLSupportedSourceLanguages,n)?n:null},mapDeepLLanguage:function(e){var t=e.toUpperCase();if(e===Be.zh_CN||e===Be.zh_SG)return"ZH";if(e===Be.zh_HK||e===Be.zh_TW)return null;if(e===Be.en_GB||e===Be.en_US||e===Be.pt_BR||e===Be.pt_PT)return t.replace("_","-");if(e===Be.in_ID)return"ID";var n=t.split("_")[0];return"EN"===n?"EN-US":Ee(Ge.deepLSupportedLanguages,n)?n:null},microsoftSupportedLanguages:["af","sq","am","ar","hy","as","az","bn","ba","eu","bho","brx","bs","bg","yue","ca","lzh","zh-Hans","zh-Hant","sn","hr","cs","da","prs","dv","doi","nl","en","et","fo","fj","fil","fi","fr","fr-ca","gl","ka","de","el","gu","ht","ha","he","hi","mww","hu","is","ig","id","ikt","iu","iu-Latn","ga","it","ja","kn","ks","kk","km","rw","tlh-Latn","tlh-Piqd","gom","ko","ku","kmr","ky","lo","lv","lt","ln","dsb","lug","mk","mai","mg","ms","ml","mt","mi","mr","mn-Cyrl","mn-Mong","my","ne","nb","nya","or","ps","fa","pl","pt","pt-pt","pa","otq","ro","run","ru","sm","sr-Cyrl","sr-Latn","st","nso","tn","sd","si","sk","sl","so","es","sw","sv","ty","ta","tt","te","th","bo","ti","to","tr","tk","uk","hsb","ur","ug","uz","vi","cy","xh","yo","yua","zu"],mapMicrosoftLanguage:function(e){if(e===Be.pt_PT)return"pt-pt";if(e===Be.pt_BR)return"pt";if([Be.zh_CN,Be.zh_SG].includes(e))return"zh-Hans";if([Be.zh_HK,Be.zh_TW].includes(e))return"zh-Hant";if(e===Be.iw_IL)return"he";if(e===Be.in_ID)return"id";if(e===Be.ckb_IQ)return"ku";var t=e.split("_")[0];return Ee(Ge.microsoftSupportedLanguages,t)?t:null},amazonSupportedLanguages:["af","sq","am","ar","hy","az","bn","bs","bg","ca","zh","zh-TW","hr","cs","da","fa-AF","nl","en","et","fa","tl","fi","fr","fr-CA","ka","de","el","gu","ht","ha","he","hi","hu","is","id","ga","it","ja","kn","kk","ko","lv","lt","mk","ms","ml","mt","mr","mn","no","ps","pl","pt","pt-PT","pa","ro","ru","sr","si","sk","sl","so","es","es-MX","sw","sv","ta","te","th","tr","uk","ur","uz","vi","cy"],mapAmazonLanguage:function(e){if(e===Be.pt_PT)return"pt-PT";if(e===Be.pt_BR)return"pt";if(e===Be.es_MX)return"es-MX";if(e===Be.in_ID)return"id";if(e===Be.zh_CN||e===Be.zh_SG)return"zh";if(e===Be.zh_HK||e===Be.zh_TW)return"zh-TW";var t=e.split("_")[0];return Ee(Ge.amazonSupportedLanguages,t)?t:null}}),Ke={};Ke[He.AiSelected]=je,Ke[He.Aliyun]=je.filter((function(e){return Boolean(Ge.mapAliyunLanguage(e))})),Ke[He["ChatGPT3.5"]]=je,Ke[He.Google]=je.filter((function(e){return Boolean(Ge.mapGoogleLanguage(e))})),Ke[He.Papago]=je.filter((function(e){return Boolean(Ge.mapPapagoLanguage(e))})),Ke[He.DeepL]=je.filter((function(e){return Boolean(Ge.mapDeepLLanguage(e))})),Ke[He.Microsoft]=je.filter((function(e){return Boolean(Ge.mapMicrosoftLanguage(e))})),Ke[He.Amazon]=je.filter((function(e){return Boolean(Ge.mapAmazonLanguage(e))}));var Fe={};Fe[He.AiSelected]=je,Fe[He.Aliyun]=je.filter((function(e){return Boolean(Ge.mapAliyunLanguage(e))})),Fe[He["ChatGPT3.5"]]=je,Fe[He.Google]=je.filter((function(e){return Boolean(Ge.mapGoogleLanguage(e))})),Fe[He.Papago]=je.filter((function(e){return Boolean(Ge.mapPapagoLanguage(e))})),Fe[He.DeepL]=je.filter((function(e){return Boolean(Ge.mapDeepLSourceLanguage(e))})),Fe[He.Microsoft]=je.filter((function(e){return Boolean(Ge.mapMicrosoftLanguage(e))})),Fe[He.Amazon]=je.filter((function(e){return Boolean(Ge.mapAmazonLanguage(e))})),Ve=je.map((function(e){return[e,be(He).filter((function(t){return Ee(Ke[t],e)}))]})),We={},Object.keys(Ve||{}).forEach((function(e){var t=Ve[e],n=t[0],r=t[1];We[n]=r}));var Ve,We,qe={};qe[Be.ar_SA]="العربية)السعودية)",qe[Be.kn]="ಕನ್ನಡ",qe[Be.as]="অসমীয়া",qe[Be.bho]="भोजपुरी",qe[Be.pl_PL]="Polski (Polska)",qe[Be.ko_KR]="한국어 (대한민국)",qe[Be.da_DK]="Dansk (Danmark)",qe[Be.de_DE]="Deutsch (Deutschland)",qe[Be.ru_RU]="Русский (Россия)",qe[Be.fr_FR]="Français (France)",qe[Be.gu]="ગુજરાતી",qe[Be.nl_BE]="Nederlands (Belgium)",qe[Be.nl_NL]="Nederlands (Nederland)",qe[Be.cs_CZ]="Čeština (Česká republika)",qe[Be.ro]="Română",qe[Be.lo_LA]="ລາວ (ລາວ)",qe[Be.my_MM]="မြန်မာဘာသာ (မြန်မာ)",qe[Be.bn_BD]="বাংলা (বাংলাদেশ)",qe[Be.bn_IN]="বাংলা (ভারত)",qe[Be.mr]="मराठी",qe[Be.ms_MY]="Bahasa Melayu (Malaysia)",qe[Be.ml]="മലയാളം",qe[Be.mni]="ꯃꯩꯇꯩꯂꯣꯟ",qe[Be.ne_NP]="नेपाली (नेपाल)\t",qe[Be.or]="ଓଡ଼ିଆ",qe[Be.pt_BR]="Português (Brasil)",qe[Be.pt_PT]="Português (Portugal)",qe[Be.pa]="پنجابی",qe[Be.sv_SE]="Svenska (Sverige)",qe[Be.ja_JP]="日本語",qe[Be.sr]="Српски",qe[Be.si_LK]="සිංහල (ශ්රී ලංකාව)",qe[Be.sk_SK]="Slovenčina (Slovensko)",qe[Be.tr_TR]="Türkçe (Türkiye)",qe[Be.tl_PH]="Wikang Tagalog (Philippines)",qe[Be.te]="తెలుగు",qe[Be.ta]="தமிழ்",qe[Be.th_TH]="ไทย (ประเทศไทย)",qe[Be.ur_PK]="اردو)پاکستان)",qe[Be.ur_IN]="اردو)بھارت)",qe[Be.uk_UA]="Українська (Україна)",qe[Be.iw_IL]="עִבְרִית (ישראל)",qe[Be.es_ES]="Español (España)",qe[Be.es_MX]="Español (México)",qe[Be.hu]="Magyar",qe[Be.it_IT]="Italiano (Italia)",qe[Be.in_ID]="Bahasa Indonesia (Indonesia)",qe[Be.hi_IN]="हिन्दी (भारत)",qe[Be.vi_VN]="Tiếng Việt (Việt Nam)",qe[Be.en_PK]="English (Pakistan)",qe[Be.en_PL]="English (Poland)",qe[Be.en_FR]="English (France)",qe[Be.en_PH]="English (Philippines)",qe[Be.en_CZ]="English (Czech Republic)",qe[Be.en_CA]="English (Canada)",qe[Be.en_MM]="English (Myanmar)",qe[Be.en_US]="English (United States)",qe[Be.en_BD]="English (Bangladesh)",qe[Be.en_MY]="English (Malaysia)",qe[Be.en_NP]="English (Nepal)",qe[Be.en_LK]="English (Sri Lanka)",qe[Be.en_TH]="English (Thailand)",qe[Be.en_ES]="English (Spain)",qe[Be.en_SG]="English (Singapore)",qe[Be.en_HU]="English (Hungary)",qe[Be.en_ID]="English (Indonesia)",qe[Be.en_GB]="English (Great Britain)",qe[Be.en_VN]="English (Vietnam)",qe[Be.en_HK]="English (Hong Kong)",qe[Be.en_KR]="English (Korea)",qe[Be.zh_TW]="繁体中文 (中國台灣)",qe[Be.zh_HK]="繁体中文 (中國香港)",qe[Be.zh_SG]="简体中文 (新加坡)",qe[Be.zh_CN]="简体中文",qe[Be.ar_IQ]="العربية (العراق)",qe[Be.ckb_IQ]="کوردیی ناوەندی (عێراق)",qe[Be.ku]="کورمانجی",qe[Be.kk_KZ]="قازاقشا ",qe[Be.af]="Afrikaans",qe[Be.am]="አማርኛ",qe[Be.az]="Azərbaycan",qe[Be.be]="беларуская мова",qe[Be.bg]="Български",qe[Be.bs]="босански",qe[Be.ca]="Català",qe[Be.cy]="Cymraeg",qe[Be.el]="Ελληνικά",qe[Be.eo]="Esperanto",qe[Be.et]="eesti keel",qe[Be.eu]="Euskara",qe[Be.fa]="فارسی",qe[Be.fi]="Suomi",qe[Be.gd]="Gaeilge",qe[Be.gl]="Galego",qe[Be.ha]="هَوُسَ",qe[Be.haw]="ʻŌlelo Hawaiʻi",qe[Be.hr]="Hrvatski",qe[Be.ig]="Asụsụ Igbo",qe[Be.is]="Íslenska",qe[Be.ka]="ქართული",qe[Be.km]="ភាសាខ្មែរ",qe[Be.ky]="кыргыз тили",qe[Be.lb]="Lëtzebuergesch",qe[Be.ln]="Lingála",qe[Be.lt]="lietuvių kalba",qe[Be.lv]="Latviešu valoda",qe[Be.mg]="malagasy",qe[Be.mk]="македонски",qe[Be.mn]="монгол хэл",qe[Be.mt]="Malti",qe[Be.om]="Oromoo",qe[Be.ps]="پښتو",qe[Be.qu]="Quechua",qe[Be.rw]="Ikinyarwanda",qe[Be.sl]="slovenščina",qe[Be.so]="Af-Soomaali",qe[Be.sq]="Gjuha shqipe",qe[Be.sw]="Kiswahili",qe[Be.tg]="тоҷикӣ",qe[Be.ti]="ትግርኛ",qe[Be.ug]="ئۇيغۇر تىلى",qe[Be.uz]="Ўзбек тили",qe[Be.yo]="Èdè Yorùbá",qe[Be.zu]="isiZulu",He.AiSelected,(we={})[Be.en_US]="AI Selected",we[Be.zh_CN]="AI 精选",(Se={})[Be.en_US]="AI selection of translations",Se[Be.zh_CN]="多渠道翻译的 AI 精选",Fe.AiSelected,Ke.AiSelected,(Te={})[Be.en_US]="Use ChatGPT 4.0 to compare and select translation results from multiple sources.\nThe translated content will undergo risk control review and may return blank, please check carefully.",Te[Be.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",(Ae={})[Be.en_US]="Use ChatGPT 4.0 to compare and select translation results from multiple sources.\nThe translated content will undergo risk control review and may return blank, please check carefully.",Ae[Be.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",He["ChatGPT3.5"],(Pe={})[Be.en_US]="GPT-3.5",Pe[Be.zh_CN]="GPT-3.5",(Re={})[Be.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",Re[Be.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",(Le={})[Be.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",Le[Be.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",Fe["ChatGPT3.5"],Ke["ChatGPT3.5"],He.Aliyun,(ke={})[Be.en_US]="Alibaba",ke[Be.zh_CN]="阿里云",Fe.Aliyun,Ke.Aliyun,He.Google,(Ne={})[Be.en_US]="Google",Ne[Be.zh_CN]="Google",Fe.Google,Ke.Google,He.DeepL,(Oe={})[Be.en_US]="DeepL",Oe[Be.zh_CN]="DeepL",Fe.DeepL,Ke.DeepL,He.Microsoft,(Ie={})[Be.en_US]="Azure AI",Ie[Be.zh_CN]="Azure AI",Fe.Microsoft,Ke.Microsoft,He.Amazon,(Ce={})[Be.en_US]="Amazon",Ce[Be.zh_CN]="Amazon",Fe.Amazon,Ke.Amazon,He.Papago,(Me={})[Be.en_US]="Papago",Me[Be.zh_CN]="Papago",(De={})[Be.en_US]="Papago does not support translating HTML and will automatically skip HTML content during batch translation.",De[Be.zh_CN]="Papago 不支持翻译 HTML,在批量翻译时会自动跳过 HTML 内容",(xe={})[Be.en_US]="Papago does not support HTML. Available locales are Chinese, Japanese, Korean, and English. Please check the translation results carefully.",xe[Be.zh_CN]="Papago 不支持翻译 HTML,仅支持翻译中、日、韩、英,请仔细检查翻译结果",Fe.Papago,Ke.Papago;var Je=Object.keys(he).map((function(e){return he[e]})),Xe=/^##@@@(.+?)##(.+?)@@@##(.+?)@@@##$/,Ze=function(e,t){return(Ze=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])})(e,t)};function Qe(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}Ze(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var $e,et,tt,nt=function(){return(nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function rt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function ot(e){return e.type===et.literal}function it(e){return e.type===et.argument}function at(e){return e.type===et.number}function st(e){return e.type===et.date}function ut(e){return e.type===et.time}function ct(e){return e.type===et.select}function lt(e){return e.type===et.plural}function ht(e){return e.type===et.pound}function ft(e){return e.type===et.tag}function dt(e){return!(!e||"object"!=L()(e)||e.type!==tt.number)}function pt(e){return!(!e||"object"!=L()(e)||e.type!==tt.dateTime)}"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}($e||($e={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(et||(et={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(tt||(tt={}));var gt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function mt(e){var t={};return e.replace(vt,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var yt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,_t=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bt=/^(@+)?(\+|#+)?[rs]?$/g,Et=/(\*)(0+)|(#+)(0+)|(0+)/g,wt=/^(0+)$/;function St(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(bt,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Tt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function At(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!wt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Pt(e){return Tt(e)||{}}function Rt(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=nt(nt(nt({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return nt(nt({},e),Pt(t))}),{}));continue;case"engineering":t=nt(nt(nt({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return nt(nt({},e),Pt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Et,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(wt.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(_t.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(_t,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=nt(nt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=nt(nt({},t),St(i)))}else if(bt.test(o.stem))t=nt(nt({},t),St(o.stem));else{var a=Tt(o.stem);a&&(t=nt(nt({},t),a));var s=At(o.stem);s&&(t=nt(nt({},t),s))}}return t}var Lt,kt={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Nt(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(kt[n||""]||kt[r||""]||kt["".concat(r,"-001")]||kt["001"])[0]}var Ot=new RegExp("^".concat(gt.source,"*")),It=new RegExp("".concat(gt.source,"*$"));function Ct(e,t){return{start:e,end:t}}var Mt=!!String.prototype.startsWith&&"_a".startsWith("a",1),Dt=!!String.fromCodePoint,xt=!!Object.fromEntries,Bt=!!String.prototype.codePointAt,Ut=!!String.prototype.trimStart,Ht=!!String.prototype.trimEnd,jt=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},zt=!0;try{zt="a"===(null===(Lt=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Lt?void 0:Lt[0])}catch(he){zt=!1}var Yt,Gt=Mt?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Kt=Dt?String.fromCodePoint:function(){for(var e=arguments,t=[],n=0;n<arguments.length;n++)t[n]=e[n];for(var r,o="",i=t.length,a=0;i>a;){if((r=t[a++])>1114111)throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Ft=xt?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},Vt=Bt?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Wt=Ut?function(e){return e.trimStart()}:function(e){return e.replace(Ot,"")},qt=Ht?function(e){return e.trimEnd()}:function(e){return e.replace(It,"")};function Jt(e,t){return new RegExp(e,t)}if(zt){var Xt=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yt=function(e,t){var n;return Xt.lastIndex=t,null!==(n=Xt.exec(e)[1])&&void 0!==n?n:""}}else Yt=function(e,t){for(var n=[];;){var r=Vt(e,t);if(void 0===r||$t(r)||en(r))break;n.push(r),t+=r>=65536?2:1}return Kt.apply(void 0,n)};var Zt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error($e.UNMATCHED_CLOSING_TAG,Ct(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Qt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:et.pound,location:Ct(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:et.literal,value:"<".concat(r,"/>"),location:Ct(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qt(this.char()))return this.error($e.INVALID_TAG,Ct(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error($e.UNMATCHED_CLOSING_TAG,Ct(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:et.tag,value:r,children:i,location:Ct(n,this.clonePosition())},err:null}:this.error($e.INVALID_TAG,Ct(a,this.clonePosition())))}return this.error($e.UNCLOSED_TAG,Ct(n,this.clonePosition()))}return this.error($e.INVALID_TAG,Ct(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=Ct(n,this.clonePosition());return{val:{type:et.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Qt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Kt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Kt(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error($e.EMPTY_ARGUMENT,Ct(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error($e.MALFORMED_ARGUMENT,Ct(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:et.argument,value:r,location:Ct(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error($e.MALFORMED_ARGUMENT,Ct(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Yt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Ct(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error($e.EXPECT_ARGUMENT_TYPE,Ct(i,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(d=qt(m.val)).length)return this.error($e.EXPECT_ARGUMENT_STYLE,Ct(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:Ct(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var l=Ct(r,this.clonePosition());if(u&&Gt(null==u?void 0:u.style,"::",0)){var h=Wt(u.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?m:{val:{type:et.number,value:n,location:l,style:m.val},err:null};if(0===h.length)return this.error($e.EXPECT_DATE_TIME_SKELETON,l);var f=h;this.locale&&(f=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),u=Nt(t);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===o?"H":o}return n}(h,this.locale));var d={type:tt.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?mt(f):{}};return{val:{type:"date"===a?et.date:et.time,value:n,location:l,style:d},err:null}}return{val:{type:"number"===a?et.number:"date"===a?et.date:et.time,value:n,location:l,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($e.EXPECT_SELECT_ARGUMENT_OPTIONS,Ct(p,nt({},p)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error($e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ct(this.clonePosition(),this.clonePosition()));var m;if(this.bumpSpace(),(m=this.tryParseDecimalInteger($e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),g=this.parseIdentifierIfPossible(),v=m.val}var y,_=this.tryParsePluralOrSelectOptions(e,a,t,g);if(_.err)return _;if((y=this.tryParseArgumentClose(r)).err)return y;var b=Ct(r,this.clonePosition());return"select"===a?{val:{type:et.select,value:n,options:Ft(_.val),location:b},err:null}:{val:{type:et.plural,value:n,options:Ft(_.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error($e.INVALID_ARGUMENT_TYPE,Ct(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error($e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ct(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(yt).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,u=a;s<u.length;s++)if(0===u[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error($e.INVALID_NUMBER_SKELETON,t)}return{val:{type:tt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Rt(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,u=r.value,c=r.location;;){if(0===u.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger($e.EXPECT_PLURAL_ARGUMENT_SELECTOR,$e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Ct(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}if(s.has(u))return this.error("select"===t?$e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?$e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ct(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,t,n);if(d.err)return d;var p=this.tryParseArgumentClose(f);if(p.err)return p;a.push([u,{value:d.val,location:Ct(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?$e.EXPECT_SELECT_ARGUMENT_SELECTOR:$e.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ct(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error($e.MISSING_OTHER_CLAUSE,Ct(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=Ct(r,this.clonePosition());return o?jt(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Vt(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Gt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&$t(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Qt(e){return e>=97&&e<=122||e>=65&&e<=90}function $t(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function en(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function tn(e,t){void 0===t&&(t={}),t=nt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Zt(e,t).parse();if(n.err){var r=SyntaxError($e[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach((function(t){if(delete t.location,ct(t)||lt(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else at(t)&&dt(t.style)||(st(t)||ut(t))&&pt(t.style)?delete t.style.location:ft(t)&&e(t.children)}))}(n.val),n.val}function nn(e,t){var n=t&&t.cache?t.cache:hn,r=t&&t.serializer?t.serializer:un;return(t&&t.strategy?t.strategy:sn)(e,{cache:n,serializer:r})}function rn(e,t,n,r){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:n(r),i=t.get(o);return void 0===i&&(i=e.call(this,r),t.set(o,i)),i}function on(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function an(e,t,n,r,o){return n.bind(t,e,r,o)}function sn(e,t){return an(e,this,1===e.length?rn:on,t.cache.create(),t.serializer)}var un=function(){return JSON.stringify(arguments)};function cn(){this.cache=Object.create(null)}cn.prototype.get=function(e){return this.cache[e]},cn.prototype.set=function(e,t){this.cache[e]=t};var ln,hn={create:function(){return new cn}},fn={variadic:function(e,t){return an(e,this,on,t.cache.create(),t.serializer)},monadic:function(e,t){return an(e,this,rn,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ln||(ln={}));var dn,pn=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return Qe(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),gn=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ln.INVALID_VALUE,o)||this}return Qe(t,e),t}(pn),vn=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),ln.INVALID_VALUE,r)||this}return Qe(t,e),t}(pn),mn=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),ln.MISSING_VALUE,n)||this}return Qe(t,e),t}(pn);function yn(e){return"function"==typeof e}function _n(e,t,n,r,o,i,a){if(1===e.length&&ot(e[0]))return[{type:dn.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var l=c[u];if(ot(l))s.push({type:dn.literal,value:l.value});else if(ht(l))"number"==typeof i&&s.push({type:dn.literal,value:n.getNumberFormat(t).format(i)});else{var h=l.value;if(!o||!(h in o))throw new mn(h,a);var f=o[h];if(it(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?dn.literal:dn.object,value:f});else if(st(l)){var d="string"==typeof l.style?r.date[l.style]:pt(l.style)?l.style.parsedOptions:void 0;s.push({type:dn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(ut(l))d="string"==typeof l.style?r.time[l.style]:pt(l.style)?l.style.parsedOptions:r.time.medium,s.push({type:dn.literal,value:n.getDateTimeFormat(t,d).format(f)});else if(at(l))(d="string"==typeof l.style?r.number[l.style]:dt(l.style)?l.style.parsedOptions:void 0)&&d.scale&&(f*=d.scale||1),s.push({type:dn.literal,value:n.getNumberFormat(t,d).format(f)});else{if(ft(l)){var p=l.children,g=l.value,v=o[g];if(!yn(v))throw new vn(g,"function",a);var m=v(_n(p,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map((function(e){return{type:"string"==typeof e?dn.literal:dn.object,value:e}})))}if(ct(l)){if(!(y=l.options[f]||l.options.other))throw new gn(l.value,f,Object.keys(l.options),a);s.push.apply(s,_n(y.value,t,n,r,o))}else if(lt(l)){var y;if(!(y=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new pn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ln.MISSING_INTL_API,a);var _=n.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));y=l.options[_]||l.options.other}if(!y)throw new gn(l.value,f,Object.keys(l.options),a);s.push.apply(s,_n(y.value,t,n,r,o,f-(l.offset||0)))}}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===dn.literal&&t.type===dn.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function bn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(dn||(dn={}));var En=function(){function e(t,n,r,o){void 0===n&&(n=e.defaultLocale);var i,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===dn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return _n(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{},u=(s.formatters,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(s,["formatters"]));this.ast=e.__parse(t,nt(nt({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?nt(nt(nt({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=nt(nt({},o[t]),i[t]||{}),e}),{})):o),n}),nt({},e)):e}(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:nn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.NumberFormat).bind.apply(e,rt([void 0],n,!1)))}),{cache:bn(i.number),strategy:fn.variadic}),getDateTimeFormat:nn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.DateTimeFormat).bind.apply(e,rt([void 0],n,!1)))}),{cache:bn(i.dateTime),strategy:fn.variadic}),getPluralRules:nn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.PluralRules).bind.apply(e,rt([void 0],n,!1)))}),{cache:bn(i.pluralRules),strategy:fn.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=tn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function wn(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var o in r)e[o]=r[o]}return e}var Sn=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=wn({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",wn({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,wn({},this.attributes,t))},withConverter:function(t){return e(wn({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Tn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.warn.apply(console,e)},An=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.error.apply(console,e)},Pn=function(){return"object"==("undefined"==typeof ac?"undefined":L()(ac))&&"function"==typeof ac.call},Rn=function(){return"undefined"!=typeof my&&void 0!==my.canIUse&&!Pn()},Ln=function(){return"object"==("undefined"==typeof window?"undefined":L()(window))},kn=function(){return function(){var e;return!!Ln()&&((null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"").toLowerCase().indexOf("alipayclient")>-1}()||Ln()&&"undefined"!=typeof AlipayJSBridge},Nn=function(){return"undefined"!=typeof wx&&void 0!==wx.canIUse},On=function(){return!(void 0===n.g||Ln()||Rn()||Nn()||Pn())},In="bailingualLocaleChange",Cn="bailingualDataChange",Mn="bailingualError";function Dn(e){void 0===e&&(e="");for(var t=(function(e){if("object"==("undefined"==typeof document?"undefined":L()(document)))try{return Sn.get(e)||Sn.get("_CHIPS-"+e)}catch(e){return Tn("[bailingual-sdk-glue] readCookie fail: "+e),""}}(e)||"").split("&"),n=0,r=t.length;n<r;n++){var o=t[n].split("="),i=o[0],a=o[1];if("lang"===i)return a}}var xn,Bn=function(e){if(void 0===e&&(e=""),e=e.replace("_","-"),kn()||Rn()||Pn()){var t=_e[e.toLowerCase()];t&&(e=t)}var n=e.split("-"),r=n[0],o=n[1];return o&&(e=r.toLowerCase()+"-"+o.toUpperCase()),ye[e.toLowerCase()]&&(e=ye[e.toLowerCase()]),Qn(Je,e)?e:""};function Un(e){return void 0===e&&(e=!0),Bn(function(e){return void 0===e&&(e=!0),Rn()||Pn()?my.env&&my.env.language||my.getSystemInfoSync().language:Nn()?wx.getSystemInfoSync().language:On()?n.g.BAILINGUAL_LOCALE:!!e&&function(){var e=Dn("x-hng")||Dn("hng");if(e)return e}()||function(){var e;if("object"==("undefined"==typeof document?"undefined":L()(document))){var t=null===(e=document.documentElement)||void 0===e?void 0:e.lang;if(t)return t}}()||function(){var e;if(Ln()){var t=(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(t)||[]).pop();if(n)return n}}()||function(){var e;if(Ln()&&window.navigator){var t=window.navigator,n=(null===(e=t.languages)||void 0===e?void 0:e[0])||t.language||t.userLanguage||t.browserLanguage;if(n)return n}}()}(e)||"")}function Hn(e,t,n){void 0===n&&(n={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&Sn.set(e,t,n)}catch(e){Tn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function jn(e,t){void 0===t&&(t={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&Sn.remove(e,t)}catch(e){Tn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function zn(){"object"==("undefined"==typeof document?"undefined":L()(document))&&"object"==("undefined"==typeof location?"undefined":L()(location))&&(jn("x-hng",{path:"/",domain:location.hostname}),jn("x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0}),jn("_CHIPS-x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0,Partitioned:!0}),jn("x-hng",{path:"/"}),jn("x-hng",{path:"/",SameSite:"None",Secure:!0}),jn("_CHIPS-x-hng",{path:"/",SameSite:"None",Secure:!0,Partitioned:!0}))}!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.MISSING_PARAM="MISSING_PARAM"}(xn||(xn={}));var Yn,Gn,Kn,Fn,Vn,Wn,qn,Jn,Xn=function(e){var t=e.code,n=e.message,r=e.err,o=e.textKey;this.code=t,this.message=n||(null==r?void 0:r.message)||"unknown error",this.stack=(null==r?void 0:r.stack)||r,this.textKey=o},Zn=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.forEach((function(t){Object.keys(t||{}).forEach((function(n){e[n]=t[n]}))})),e},Qn=function(e,t){return e.indexOf(t)>-1};function $n(e){var t,n;try{return Gn?(null===(t=Gn.getItem)||void 0===t?void 0:t.call(Gn,e))||"":Rn()||Pn()?(null===(n=my.getStorageSync({key:e}))||void 0===n?void 0:n.data)||"":Nn()?wx.getStorageSync(e)||"":"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.getItem(e)||""}catch(e){return""}}function er(e,t){var n;try{if(t=(t||"").toString(),Gn)return void(null===(n=Gn.setItem)||void 0===n||n.call(Gn,e,t));if(Rn()||Pn())return void my.setStorage({key:e,data:t});if(Nn())return void wx.setStorage({key:e,data:t});"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.setItem(e,t)}catch(e){}}function tr(e,t){return void 0===t&&(t=3),new Promise((function(n,r){var o,i,a,s;function u(){var e=s()[0];return e++,c.bind(this,e)}function c(e){if(s=function(){return[e]},!(e<t))return[1];var o=function(e){try{return u}catch(e){return r(e)}};try{var a;return i().then((function(e){try{return(a=e)?n(a):function(){try{return u}catch(e){return r(e)}}()}catch(e){return o()}}),o)}catch(e){o()}}return o=function(e){if(e.length&&"{"!==e[0]){var t=e.indexOf("{");t>-1&&(e=e.slice(t))}return e},i=function(){return new Promise((function(t,n){var r;return function(e){return Yn?Yn(e):Pn()?new Promise((function(t,n){my.request({url:e,success:function(e){t(e.data)},fail:function(){n()}})})):Rn()?new Promise((function(t,n){my.call("httpRequest",{url:e},(function(e){!e||e.error?n():t(e.data)}))})):Nn()?new Promise((function(t,n){wx.request({url:e,dataType:"text",success:function(e){t(e.data)},fail:function(e){n(e)}})})):"function"==typeof fetch?fetch(e).then((function(e){return e.text()})):"undefined"!=typeof XMLHttpRequest?new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4===r.readyState&&(200===r.status?t(r.responseText):n())},r.send()})):void 0}(e).then((function(e){try{return r=e,t(JSON.parse(o(r||"")))}catch(e){return n(e)}}),n)}))},(a=function(e){for(;e;){if(e.then)return void e.then(a,r);try{if(e.pop){if(e.length)return e.pop()?l.call(this):e;e=u}else e=e.call(this)}catch(e){return r(e)}}}.bind(this))(c.bind(this,0));function l(){return n()}}))}!function(e){e.DAILY="DAILY",e.PROD="PROD"}(qn||(qn={})),function(e){e.INTERNET="INTERNET",e.INTRANET="INTRANET"}(Jn||(Jn={}));var nr={ANTINTL:(Kn={},Kn[qn.DAILY]="https://bailingual-daily.marmot-cloud.com/manifest/",Kn[qn.PROD]="https://bailingual.marmot-cloud.com/manifest/",Kn),ALIPAY:(Fn={},Fn[qn.DAILY]="https://bailingual-assets-daily.alipay.com/manifest/",Fn[qn.PROD]="https://bailingual-assets.alipay.com/manifest/",Fn)},rr={};rr[Jn.INTERNET]=((Vn={})[qn.DAILY]=function(e,t,n){var r;return""+(n?null===(r=nr[n])||void 0===r?void 0:r[qn.DAILY]:"")+e+"/"+e+(t?"_"+t:"")+".json"},Vn[qn.PROD]=function(e,t,n){var r;return""+(n?null===(r=nr[n])||void 0===r?void 0:r[qn.PROD]:"")+e+"/"+e+(t?"_"+t:"")+".json"},Vn),rr[Jn.INTRANET]=((Wn={})[qn.DAILY]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/daily/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},Wn[qn.PROD]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/prod/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},Wn);var or;function ir(){return"true"===$n("__BAILINGUAL_IN_CONTEXT__")}function ar(){if(!(Rn()||Nn()||Pn())){var e=$n("BAILINGUAL_IN_CONTEXT_CONFIG")||"{}",t=!1;try{t=JSON.parse(e).enableExtension}catch(e){Tn("[bailingual-sdk-glue] JSON.parse data fail: "+e)}or=ir()&&t}}function sr(){return void 0===or&&ar(),or}function ur(){er("__BAILINGUAL_IN_CONTEXT__","true"),ar(),new Promise((function(e,t){if(Rn()||Nn()||Pn())return e();var n;if("undefined"!=typeof document&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script"))return tr("https://render.alipay.com/p/yuyan/bailingual-in-context_bailingual-in-context-version/zh_CN.json").then(function(e){try{return(null==(n=e)?void 0:n.version)&&function(e){if(e&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script")){var t=document.createElement("script");t.setAttribute("class","_BAILINGUAL_IN_CONTEXT_script"),t.setAttribute("src",e),document.body.appendChild(t)}}("https://unpkg.alipay.com/@alipay/bailingual-in-context@"+n.version+"/public/dist/index.js"),r.call(this)}catch(e){return t(e)}}.bind(this),t);function r(){return e()}return r.call(this)}))}function cr(e,t,n){return"##@@@"+t+"##"+e+"@@@##"+n+"@@@##"}function lr(e){var t=[];return e.forEach((function(e){var n=e.key,r=e.count;if(n&&r){var o=-1!==n.indexOf("&")?encodeURIComponent(n):n;t.push(o+"&"+r)}})),t.join(";")}function hr(e,t){var n=function(e){switch(e){case"CN":default:return"https://collect.alipay.com/yuyan/?biztype=yuyanmonitorl";case"SG":return"https://imdap-sea.alipay.com/loggw/dwcookieLogGet.do";case"US":return"https://imdap.alipay.com/loggw/dwcookieLogGet.do"}}(e);if(Pn())my.request({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t,url:n});else if(Rn())my.call("httpRequest",{url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if(Nn())wx.request({url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&"function"==typeof Blob){var r=new Blob([t],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(n,r)}else if(Ln()&&"undefined"!=typeof XMLHttpRequest){var o=new XMLHttpRequest;o.open("POST",n,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.send(t)}else"function"==typeof fetch?fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t}):console.error("No supported method to send data",e,t)}!function(){if(!(Rn()||Nn()||Pn()))try{var e=function(e){if(!e)return{};var t={};return e.slice(1).split("&").forEach((function(e){var n=e.split("="),r=n[0],o=n[1];t[r]=o})),t}("undefined"!=typeof location?location.search:"");if(ir()||e.hasOwnProperty("SML_DEV")||e.hasOwnProperty("BAILINGUAL_IN_CONTEXT")||e.hasOwnProperty("BLG_RIC"))return void ur();if("undefined"==typeof document)return;if(kn()){var t=0,n=0;document.addEventListener("titleClick",(function(){if(!sr()){if(7==++n)return ur(),n=0,clearTimeout(t),void(t=null);clearTimeout(t),t=setTimeout((function(){n=0,t=null}),1500)}}))}document.addEventListener("__BAILINGUAL_IN_CONTEXT_DISABLE__",(function(){er("__BAILINGUAL_IN_CONTEXT__","false"),ar()}))}catch(e){Tn("[bailingual-sdk-glue] initBailingualInContext fail: "+e)}}();var fr=function(e){return e<10?"0"+e:""+e};function dr(){var e=new Date;return e.getFullYear()+"-"+fr(e.getMonth()+1)+"-"+fr(e.getDate())+" "+fr(e.getHours())+":"+fr(e.getMinutes())+":"+fr(e.getSeconds())+":"+e.getMilliseconds()}function pr(e,t){void 0===t&&(t="^");var n=[];if(e instanceof Array)n=e;else if(e instanceof Object)for(var r in e)e.hasOwnProperty(r)&&n.push(r+"="+(e[r]||""));return n.join(t)}function gr(e,t){var n,r,o;if(!t||!t.appName||!t.keyCounts.length)return"";var i=[];switch(e){case"CN":default:i=["D-AE",dr(),"","","2","","","","1000","102023","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",pr({code:"1000",msg:"",d1:t.appName,d3:(null===(n=t.textLocale)||void 0===n?void 0:n.replace(/-/g,"_"))||"",d4:t.sdkName||"",d5:t.sdkVersion||"",env:t.env||"PROD",c1:lr(t.keyCounts),sampleRate:"1",yuyan_id:"180020010101313281",fullURL:"-",s_c:"true"})];break;case"SG":i=["D-AE",dr(),"","","2","","","","1000","bailingualTextUsage","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",pr({code:"1000",msg:"",d1:t.appName,d3:(null===(r=t.textLocale)||void 0===r?void 0:r.replace(/-/g,"_"))||"",d4:t.sdkName||"",d5:t.sdkVersion||"",env:t.env||"PROD",c1:lr(t.keyCounts)})];break;case"US":i=["D-VM",dr(),"","","4","-","-","-","exposure","-","-","-","-","-","-","bailingualTextUsage","2","H5behavior","c","-","-","-",pr({appName:t.appName,textLocale:(null===(o=t.textLocale)||void 0===o?void 0:o.replace(/-/g,"_"))||"",sdkName:t.sdkName||"",sdkVersion:t.sdkVersion||"",env:t.env||"PROD",c1:lr(t.keyCounts)}),"-","-","-","-","-","-","-","-","-","1000","-","-","UNKNOWN","-","-","zh-cn","-","-","-","-","-","-","-","-",Date.now().toString()+"-"+(100*Math.random()).toFixed(0),"-","-"]}return"data="+function(e){return e?encodeURIComponent(e).replace(/'/g,"%27"):e}(i.join())+"&time="+(new Date).getTime()}var vr=function(e){var t=e.region;this.queue=[],this.region=t,this.startTimer()};vr.prototype.startTimer=function(){var e,t,n=this;this.region?(this.timer=setTimeout((function(){n._report()}),5e3),Ln()&&(null===(t=null===(e=window.document)||void 0===e?void 0:e.addEventListener)||void 0===t||t.call(e,"beforeunload",(function(){n._report()})))):clearTimeout(this.timer)},vr.prototype._report=function(){if(clearTimeout(this.timer),this.region&&this.queue.length){var e=new Map;this.queue.forEach((function(t){var n=t.appName+"-"+t.textKey+"-"+t.env,r=e.get(n);r?r.textUsedCount+=t.textUsedCount:e.set(n,t)}));var t=Array.from(e.values());!function(e,t){if(!e)throw new Error("No Region");if(0!==t.length)try{var n=new Map;t.forEach((function(e){var t=e.appName+"-"+e.textLocale+"-"+e.env;n.has(t)||n.set(t,{appName:e.appName,textLocale:e.textLocale,sdkName:e.sdkName,sdkVersion:e.sdkVersion,env:e.env,keyCounts:[]}),n.get(t).keyCounts.push({key:e.textKey,count:e.textUsedCount})})),n.forEach((function(t){for(var n=t.keyCounts,r=0;r<n.length;r+=200){var o=n.slice(r,r+200),i=gr(e,{appName:t.appName,textLocale:t.textLocale,sdkName:t.sdkName,sdkVersion:t.sdkVersion,env:t.env,keyCounts:o});hr(e,i)}}))}catch(n){console.error("reportUsageRequest error with",e,t)}else console.error("empty data")}(this.region,t),this.queue=[]}this.startTimer()},vr.prototype.getRegion=function(){return this.region},vr.prototype.setRegion=function(e){this.region=e,this.startTimer()},vr.prototype.report=function(e){this.region&&this.queue.push(e)};var mr=function(){this.originStrings={},this.availableLocales=[],this.langPkgsNoPatch={},this.i18nText={},this.eventHandler={},this.intlMessages={},this.intlPDKVMessages={},this.appName="",this.canUsePatchedData=!0,this.canStoreCurrentLocaleToCookie=!0,this.canReadLocaleFromCookie=!0},yr={usageReportRegion:{configurable:!0}};mr.setCustomizedGetSystemLocale=function(e){this.customizedGetSystemLocale=e},mr.customizeGetSystemLocale=function(e){this.customizedGetSystemLocale=e},mr.customizeStorage=function(e){return function(e){Gn=e}(e)},mr.getDataFromStorage=function(e){return $n(e)},mr.setDataToStorage=function(e,t){return er(e,t)},mr.customizeFetch=function(e){Yn=e},yr.usageReportRegion.get=function(){var e;return null===(e=this.usageReporter)||void 0===e?void 0:e.getRegion()},yr.usageReportRegion.set=function(e){var t;this.usageReporter||(this.usageReporter=new vr({region:e})),e&&(null===(t=this.usageReporter)||void 0===t||t.setRegion(e))},mr.prototype.init=function(e,t){var n,r;this.initBailingualData(e),this.changeLocale(t||(null===(r=(n=this.constructor).customizedGetSystemLocale)||void 0===r?void 0:r.call(n))||Un(this.canReadLocaleFromCookie))},mr.prototype.getPatchI18nKey=function(){return this.appName?this.tag?this.appName+"+"+this.tag:this.appName:""},mr.prototype.initData=function(e){var t,n;this.initBailingualData(e||this.getServerSideFallbackData()),this.changeLocale((null===(n=(t=this.constructor).customizedGetSystemLocale)||void 0===n?void 0:n.call(t))||Un(this.canReadLocaleFromCookie))},mr.prototype.getServerSideFallbackData=function(){if(On()){var e=n.g.BAILINGUAL_FALLBACK;return e||(Tn("[bailingual-sdk-glue] [Server] no fallback data found."),e={}),e}},mr.prototype.initBailingualData=function(e){var t=this;this.originStrings=e,this.availableLocales=[],this.langPkgsNoPatch={},this.i18nText={},this.eventHandler={},this.intlMessages={},this.intlPDKVMessages={},this.appName=e.appName||"",this.currentLocale=void 0,this.bizEnv=e.bizEnv,this.usageReportRegion=e.usageReportRegion,this.usageReporter=new vr({region:this.usageReportRegion}),this.tag=e.tag||"",Object.keys(e).forEach((function(n){if("object"==L()(e[n])){var r=Bn(n);if(!r)return void An("[bailingual-sdk-glue] "+n+" is not a valid locale code");t.langPkgsNoPatch[r]=Zn({},e[n]),t.i18nText[r]=Zn({},e[n])}})),this.handlePatchedData(),this.availableLocales=Object.keys(this.i18nText);var n=e.defaultLocale||this.availableLocales[0];!e.defaultLocale&&n&&Tn("[bailingual-sdk-glue] no defaultLocale specified, use first locale code '"+n+"' instead."),this.defaultLocale=this.judgeLocaleCode(n),this.defaultLocale||An("[bailingual-sdk-glue] defaultLocale '"+n+"' is invalid.")},mr.prototype.handlePatchedData=function(){var e,t=this,n=this.getPatchI18nKey();if(this.canUsePatchedData){var r=function(e){if(void 0===e&&(e=""),!e)return{};try{var t=$n("BAILINGUAL_PATCH_I18N_DELETED-"+e);return t?JSON.parse(t):{}}catch(e){return An("[bailingual-sdk-glue] fail to get local deleted data, error detail: "+e),{}}}(n),o=function(e){if(void 0===e&&(e=""),!e)return{};try{var t=$n("BAILINGUAL_PATCH_I18N-"+e);return t?JSON.parse(t):{}}catch(e){return An("[bailingual-sdk-glue] fail to get local patch data, error detail: "+e),{}}}(n);Object.keys(o).forEach((function(e){Qn(Je,e)&&(t.i18nText[e]||Tn("[bailingual-sdk-glue] locale '"+e+"' is not exist in init data, but found in patch data."),t.i18nText[e]=t.i18nText[e]||{},Zn(t.i18nText[e],o[e]))})),null===(e=r.removedLocales)||void 0===e||e.forEach((function(e){e=Bn(e),Qn(Je,e)&&delete t.i18nText[e]})),Object.keys(r.removedKeys||{}).forEach((function(e){if(e=Bn(e),Qn(Je,e)){var n=t.i18nText[e],o=r.removedKeys[e];n&&Array.isArray(o)&&o.forEach((function(e){delete n[e]}))}}))}else n&&function(e){if(e)try{er("BAILINGUAL_PATCH_I18N-"+e,""),er("BAILINGUAL_PATCH_I18N_DELETED-"+e,"")}catch(e){An("[bailingual-sdk-glue] fail to remove local patch data, error detail: "+e)}}(n)},mr.prototype.setLocale=function(e){this.currentLocale!==e&&(this.currentLocale=e,this.canStoreCurrentLocaleToCookie&&function(e){"object"!=("undefined"==typeof document?"undefined":L()(document))||"object"!=("undefined"==typeof location?"undefined":L()(location))||kn()||Rn()||Pn()||Nn()||(zn(),Hn("x-hng","lang="+e,{path:"/",expires:180}),Hn("_CHIPS-x-hng","lang="+e,{path:"/",expires:180,SameSite:"None",Partitioned:!0,Secure:!0}))}(e),this.emit(In,e))},mr.prototype.getIntlMessageWithPDKVFormat=function(e,t,n){var r=t.id;this.intlPDKVMessages[e]=this.intlPDKVMessages[e]||{};var o=this.intlPDKVMessages[e][r];if(!o){var i=n[r];i.match(Xe)||(i=cr(this.appName,r,i)),o=this.createIntlMessageFormat(i,e),this.intlPDKVMessages[e][r]=o}return o},mr.prototype.getIntlMessageWithNormalFormat=function(e,t,n){var r=t.id,o=(null==n?void 0:n[r])||t.dm||t.defaultMessage||"";if(null==n?void 0:n[r]){this.intlMessages[e]=this.intlMessages[e]||{};var i=this.intlMessages[e][r];return i||(i=this.createIntlMessageFormat(o,e),this.intlMessages[e][r]=i),i}return this.createIntlMessageFormat(o,e)},mr.prototype.formatByLocaleCode=function(e,t,n){var r,o=this,i=this.i18nText[n];try{r=sr()&&e.id&&(null==i?void 0:i[e.id])?this.getIntlMessageWithPDKVFormat(n,e,i):this.getIntlMessageWithNormalFormat(n,e,i)}catch(t){var a=(null==i?void 0:i[e.id])||e.dm||e.defaultMessage||"",s="[bailingual-sdk-glue] fail to create IntlMessageFormat instance, return original string: "+a;return Tn(s),Tn("[bailingual-sdk-glue] error detail:",t),this.emit(Mn,new Xn({code:xn.FORMAT_ERROR,message:s,err:t,textKey:e.id})),a}if(!r)return"";try{var u=t&&Object.keys(t)||[],c=this.normalizeIntlMessageVariable(r,t);return Object.keys(c).forEach((function(t){Qn(u,t)||o.emit(Mn,new Xn({code:xn.MISSING_PARAM,message:"["+e.id+"] missing param: "+t,textKey:e.id}))})),r.format(c)}catch(n){var l="[bailingual-sdk-glue] format error with key: "+e.id+", value [%s], params: "+t;return Tn(l),Tn("[bailingual-sdk-glue] error detail:",n),this.emit(Mn,new Xn({code:xn.FORMAT_ERROR,message:l,err:n,textKey:e.id})),""}},mr.prototype.format=function(e,t,n){void 0===t&&(t={});var r=n;return r&&((r=Bn(r))||An("[bailingual-sdk-glue] "+n+" is not a valid locale code, use default locale instead.")),r||(r=this.currentLocale),r||An("[bailingual-sdk-glue] no locale code found!"),this.formatByLocaleCode(e,t,r)},mr.prototype.get=function(e,t,n){return"string"==typeof e?(this.reportUsageData({id:e,localeCode:n}),this.format({id:e},t,n)):(this.reportUsageData({id:e.id,localeCode:n}),this.format(e,t,n))},mr.prototype.judgeLocaleCode=function(e){if(void 0===e&&(e=""),e=Bn(e),Qn(this.availableLocales,e))return e},mr.prototype.changeLocale=function(e){var t=this.judgeLocaleCode(e);t||this.currentLocale||(t=this.defaultLocale),t?this.setLocale(t):An("[bailingual-sdk-glue] '"+e+"' is not a vaid locale code")},mr.prototype.unsafeChangeLocale=function(e){void 0===e&&(e=""),this.setLocale(e)},mr.prototype.getAllData=function(e){var t=this;if(this.i18nText&&e&&sr()){var n={};return Object.keys(this.i18nText).forEach((function(e){n[e]=t.buildPDKVLocaleText(t.i18nText[e])})),n}return this.i18nText},mr.prototype.buildPDKVLocaleText=function(e){var t=this,n={};return Object.keys(e||{}).forEach((function(r){var o=e[r];o.match(Xe)||(o=cr(t.appName,r,o)),n[r]=o})),n},mr.prototype.getDataWithLocale=function(e,t){e||Tn("[bailingual-sdk-glue] no locale code specified, use default locale ("+this.defaultLocale+") instead.");var n=this.i18nText[Bn(e||this.defaultLocale)];return n&&t&&sr()?this.buildPDKVLocaleText(n):n},mr.prototype.getDataFromCurrentLocale=function(e){if(this.currentLocale)return this.getDataWithLocale(this.currentLocale,e);An("[bailingual-sdk-glue] error occured: no 'currentLocale' found, please check if you have called 'initData' or 'changeLocale' method before.")},mr.prototype.getCurrentLocale=function(){return this.currentLocale||""},mr.prototype.getDefaultLocale=function(){return this.defaultLocale},mr.prototype.formatLocaleCode=function(e){return Bn(e)},mr.prototype.patchI18n=function(e,t){return new Promise(function(n,r){var o,i,a,s;if(!(t=t||{}).isIntranet&&!t.buIdentifier)return An('[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'),this.emit(Mn,new Xn({code:xn.MISSING_PARAM,message:'[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'})),n();if(!Array.isArray(e)){if(!e.appName){if(!this.appName)return An("[bailingual-sdk-glue] no appName found, patchI18n will not work."),n();e.appName=this.appName}e.tag||(e.tag=this.tag),e=[e]}return(e=e.filter((function(e){return!!(null==e?void 0:e.appName)||(An("[bailingual-sdk-glue] no appName found, skip: "+e),!1)}))).length?function(e,t,n){return new Promise((function(r,o){return function(e,t){return new Promise((function(n,r){var o,i,a,s;return o=t&&"buIdentifier"in t?t.buIdentifier:void 0,(i=e.map((function(e){return tr(function(e,t,n,r,o){var i,a;return null===(a=null===(i=rr[t])||void 0===i?void 0:i[e])||void 0===a?void 0:a.call(i,n,r,o)}(t.isDaily?qn.DAILY:qn.PROD,t.isIntranet?Jn.INTRANET:Jn.INTERNET,e.appName,e.tag,o)).then((function(e){return e?tr(e.url):void 0})).then((function(e){return e||{}}))})),a=[],s=0,new Promise((function(e){i.forEach((function(t,n){t.then((function(t){a[n]=t,++s===i.length&&e(a)}))}))}))).then((function(e){try{return n(e)}catch(e){return r(e)}}),r)}))}(t,n).then((function(t){try{return r(function(e,t){var n={};t.forEach((function(e){e=e||{},Object.keys(e).forEach((function(t){if("object"==L()(e[t])){var r=Bn(t);r&&(n[r]=n[r]||{},Zn(n[r],e[t]))}}))}));var r=Object.keys(n),o=Object.keys(e);r.sort().toString()!==o.sort().toString()&&Tn("[bailingual-sdk-glue] locales in local data '"+o+"' is different from cdn data '"+r+"'");var i={removedKeys:{},removedLocales:o.filter((function(e){return!Qn(r,e)}))},a={},s={};return r.forEach((function(t){var r=n[t]||{},o=e[t]||{};a[t]=a[t]||{};var i=a[t];Object.keys(r).forEach((function(e){Object.prototype.hasOwnProperty.call(r,e)&&r[e]!==o[e]&&(i[e]=r[e])})),s[t]=Zn({},o,r)})),o.forEach((function(t){if(!Qn(i.removedLocales,t)){var r=e[t]||{},o=n[t]||{},a=s[t]||{};Object.keys(r).forEach((function(e){Object.prototype.hasOwnProperty.call(o,e)||(delete a[e],i.removedKeys[t]=i.removedKeys[t]||[],Qn(i.removedKeys[t],e)||i.removedKeys[t].push(e))}))}})),{newI18nData:s,patchedData:a,deletedData:i}}(e,t))}catch(e){return o(e)}}),o)}))}(this.langPkgsNoPatch,e,t).then(function(e){var t;try{return o=(t=e).newI18nData,i=t.patchedData,a=t.deletedData,s=this.getPatchI18nKey(),this.updateData(o)&&s&&(er("BAILINGUAL_PATCH_I18N-"+s,JSON.stringify(i)),er("BAILINGUAL_PATCH_I18N_DELETED-"+s,JSON.stringify(a))),n()}catch(e){return r(e)}}.bind(this),r):(An("[bailingual-sdk-glue] no bailingual packages found, stop patch"),n())}.bind(this))},mr.prototype.updateData=function(e){var t=Object.keys(e).filter((function(e){return Qn(Je,e)}));return this.defaultLocale&&!Qn(t,this.defaultLocale)?(An("[bailingual-sdk-glue] default locale "+this.defaultLocale+" is not exist in new data, can't update data."),!1):(this.i18nText=e,this.intlMessages={},this.intlPDKVMessages={},this.availableLocales=t,this.emit(Cn,e),this.currentLocale&&!Qn(t,this.currentLocale)&&(Tn("[bailingual-sdk-glue] current locale "+this.currentLocale+" is not available, use default locale ("+this.defaultLocale+") instead."),this.changeLocale(this.defaultLocale)),!0)},mr.prototype.on=function(e,t){this.eventHandler[e]=this.eventHandler[e]||[],this.eventHandler[e].push(t)},mr.prototype.off=function(e,t){var n,r=this;null===(n=this.eventHandler[e])||void 0===n||n.forEach((function(n,o){n===t&&(r.eventHandler[e][o]=null)}))},mr.prototype.onDataChange=function(e){this.on(Cn,e)},mr.prototype.offDataChange=function(e){this.off(Cn,e)},mr.prototype.onLocaleChange=function(e){this.on(In,e)},mr.prototype.offLocaleChange=function(e){this.off(In,e)},mr.prototype.onError=function(e){this.on(Mn,e)},mr.prototype.offError=function(e){this.off(Mn,e)},mr.prototype.emit=function(e,t){var n,r;null===(r=null===(n=this.eventHandler[e])||void 0===n?void 0:n.forEach)||void 0===r||r.call(n,(function(e){null==e||e(t)}))},mr.prototype.stopPatchI18n=function(){this.canUsePatchedData=!1},mr.prototype.setAutoStoreCurrentLocaleToCookie=function(e){this.canStoreCurrentLocaleToCookie=!!e},mr.prototype.setAutoReadLocaleFromCookie=function(e){this.canReadLocaleFromCookie=!!e},mr.prototype.getAllLocales=function(){return[].concat(this.availableLocales)},mr.prototype.changeUsageReportRegion=function(e){this.usageReportRegion=e},mr.prototype.changeBizEnv=function(e){this.bizEnv=e},mr.prototype.reportUsageData=function(e){var t=e.id,n=e.count;void 0===n&&(n=1);var r,o=e.localeCode;void 0===o&&(o=this.currentLocale),null===(r=this.usageReporter)||void 0===r||r.report({appName:this.appName,textKey:t,textLocale:o,textUsedCount:n,sdkName:"bailingual-sdk-glue",env:this.bizEnv||"PROD"})},mr.prototype.removeBailingualCookie=function(){zn()},Object.defineProperties(mr.prototype,yr),mr.customizedGetSystemLocale=void 0;var _r=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.normalizeIntlMessageVariable=function(e,t){var n=e.getAst(),r=t||{};return n.forEach((function(e){Qn([et.argument,et.number,et.date,et.time,et.select,et.plural],e.type)&&"value"in e&&void 0===r[e.value]&&(r[e.value]="")})),r},t.prototype.createIntlMessageFormat=function(e,t){return new En(e,t,{},{ignoreTag:!0})},t}(mr),br=(new _r,"antom-language-storage-key"),Er="en_US",wr=new _r;function Sr(e){if(e)return Tr(e);try{var t=window._amsSdkLanguage||window.sessionStorage.getItem(br)||window.localStorage.getItem(br);if(t)return Tr(t)}catch(e){}if(navigator.language){var n=!/[-,_]/.test(navigator.language),r=wr.getAllLocales().find((function(e){return n?e.startsWith(navigator.language):Tr(e)===Tr(navigator.language)}))||Er;if(r)return r=Tr(r)}return Er}function Tr(e){var t=e;t||(t=Er);var n=t.split(/[-,_]/),r=P(n,2),o=r[0],i=r[1];return o||(o="en"),i?"".concat(o.toLowerCase(),"_").concat(i.toUpperCase()):o.toLowerCase()}"true"==={NODE_ENV:"production",PUBLIC_PATH:"/"}.ANTOM_CORE_UNIT_TEST&&wr.initData(window.bailingual_ckp||{});var Ar={API_MISS_PARAMS:"API_MISS_PARAMS",API_GATEWAY_TIMEOUT:"API_GATEWAY_TIMEOUT",API_SYSTEM_ERROR:"API_SYSTEM_ERROR",API_TIMEOUT:"API_TIMEOUT",API_NOT_LOGIN:"API_NOT_LOGIN",API_GATEWAY_ERROR:"API_GATEWAY_ERROR"},Pr=b(b({},{UNKNOWN_ERROR:"UNKNOWN_ERROR",NO_PORTS_ERROR:"NO_PORTS_ERROR",INVALID_REDIRECT_URL:"INVALID_REDIRECT_URL"}),Ar);O.initConfig({i18n:wr,i18nPrefix:"ANTOMSDK",getDefaultMessage:function(){return wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})}});var Rr=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),y(f(e),"name","AntomError"),y(f(e),"response",void 0),e}return l(n,null,[{key:"isError",value:function(e){return O.isError(e)}},{key:"unificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";return O.unificationError(e,t)}}]),n}(O),Lr=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),y(f(e),"name","AntomCoreError"),e}return l(n)}(Rr),kr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaultRequestScope";return e?{success:function(n,r,o){e.log({code:"11",msg:n,d1:o||"无traceId",d2:t,d3:Math.round(r),d5:"是",m1:1})},error:function(n,r,o,i,a){e.log({code:"11",msg:n,d1:a||"无traceId",d2:t,d3:Math.round(r),d4:"".concat(i,"-").concat(o),d5:"否",m1:0})}}:{success:function(){},error:function(){}}},Nr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaultJsErrorScope";return function(n){e&&e.log({code:"12",msg:(null==n?void 0:n.message)||"上报未知的异常信息",d1:(null==n?void 0:n.stack)||"无stack信息",d2:t})}},Or=(window||{}).navigator,Ir=Or.userAgent,Cr=function(){var e=/OpenHarmony/i.test(Or.userAgent),t=/Phone/i.test(Or.userAgent),n=/Tablet/i.test(Or.userAgent);return e&&(t||n)},Mr=/iPhone|iPad|iPod/i.test(Ir)||"MacIntel"===Or.platform&&Or.maxTouchPoints>1,Dr=/Android/i.test(Ir),xr=(/\bMacintosh\b/.test(Ir),/Windows NT/.test(Ir),function(){return/Android|iPhone|iPad|iPod|Mobile|SymbianOS|Windows Phone/.test(Ir)||Cr()}),Br=Mr,Ur=Dr,Hr=!!xr(),jr=!xr();Cr();var zr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(!e){if(t)throw t;return}return JSON.parse(e)}catch(e){if(t)throw t;return}},Yr=function(e){var t=e.split("&&")[3];if(t){var n=function(e){try{if(!e)return;var t=atob(e),n=Uint8Array.from(t,(function(e){return e.codePointAt(0)}));return(new TextDecoder).decode(n)}catch(e){return}}(t);if(n)return zr(n)}},Gr=function(e){return(null==e?void 0:e.split("&&").slice(0,2).join("&&"))||"无trackId"},Kr=function(e){return e.split("&&")[1]||"SG"};function Fr(e,t){return function(){return e.apply(t,arguments)}}var Vr,Wr,qr=n(89),Jr=Object.prototype.toString,Xr=Object.getPrototypeOf,Zr=Symbol.iterator,Qr=Symbol.toStringTag,$r=(Vr=Object.prototype.hasOwnProperty,function(e,t){return Vr.call(e,t)}),eo=function(e,t){for(var n=e,r=[];null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),$r(n,t))return!0;n=Xr(n)}return!1},to=(Wr=Object.create(null),function(e){var t=Jr.call(e);return Wr[t]||(Wr[t]=t.slice(8,-1).toLowerCase())}),no=function(e){return e=e.toLowerCase(),function(t){return to(t)===e}},ro=function(e){return function(t){return R(t)===e}},oo=Array.isArray,io=ro("undefined");function ao(e){return null!==e&&!io(e)&&null!==e.constructor&&!io(e.constructor)&&co(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var so=no("ArrayBuffer");var uo=ro("string"),co=ro("function"),lo=ro("number"),ho=function(e){return null!==e&&"object"===R(e)},fo=function(e){if(!ho(e))return!1;var t=Xr(e);return!(null!==t&&t!==Object.prototype&&null!==Xr(t)||eo(e,Qr)||eo(e,Zr))},po=no("Date"),go=no("File"),vo=no("Blob"),mo=no("FileList");var yo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},_o=void 0!==yo.FormData?yo.FormData:void 0,bo=no("URLSearchParams"),Eo=["ReadableStream","Request","Response","Headers"].map(no),wo=P(Eo,4),So=wo[0],To=wo[1],Ao=wo[2],Po=wo[3];function Ro(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.allOwnKeys,a=void 0!==i&&i;if(null!=e)if("object"!==R(e)&&(e=[e]),oo(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(ao(e))return;var s,u=a?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;for(n=0;n<c;n++)s=u[n],t.call(null,e[s],s,e)}}function Lo(e,t){if(ao(e))return null;t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var ko="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,No=function(e){return!io(e)&&e!==ko};var Oo,Io=(Oo="undefined"!=typeof Uint8Array&&Xr(Uint8Array),function(e){return Oo&&e instanceof Oo}),Co=no("HTMLFormElement"),Mo=Object.prototype.propertyIsEnumerable,Do=no("RegExp"),xo=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};Ro(n,(function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};var Bo,Uo,Ho,jo,zo=no("AsyncFunction"),Yo=(Bo="function"==typeof setImmediate,Uo=co(ko.postMessage),Bo?setImmediate:Uo?(Ho="axios@".concat(Math.random()),jo=[],ko.addEventListener("message",(function(e){var t=e.source,n=e.data;t===ko&&n===Ho&&jo.length&&jo.shift()()}),!1),function(e){jo.push(e),ko.postMessage(Ho,"*")}):function(e){return setTimeout(e)}),Go="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ko):void 0!==qr&&qr.nextTick||Yo,Ko=function(e){return null!=e&&co(e[Zr])},Fo={isArray:oo,isArrayBuffer:so,isBuffer:ao,isFormData:function(e){if(!e)return!1;if(_o&&e instanceof _o)return!0;var t=Xr(e);if(!t||t===Object.prototype)return!1;if(!co(e.append))return!1;var n=to(e);return"formdata"===n||"object"===n&&co(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&so(e.buffer)},isString:uo,isNumber:lo,isBoolean:function(e){return!0===e||!1===e},isObject:ho,isPlainObject:fo,isEmptyObject:function(e){if(!ho(e)||ao(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:So,isRequest:To,isResponse:Ao,isHeaders:Po,isUndefined:io,isDate:po,isFile:go,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:vo,isRegExp:Do,isFunction:co,isStream:function(e){return ho(e)&&co(e.pipe)},isURLSearchParams:bo,isTypedArray:Io,isFileList:mo,forEach:Ro,merge:function e(){for(var t=No(this)&&this||{},n=t.caseless,r=t.skipUndefined,o={},i=function(t,i){if("__proto__"!==i&&"constructor"!==i&&"prototype"!==i){var a=n&&"string"==typeof i&&Lo(o,i)||i,s=$r(o,a)?o[a]:void 0;fo(s)&&fo(t)?o[a]=e(s,t):fo(t)?o[a]=e({},t):oo(t)?o[a]=t.slice():r&&io(t)||(o[a]=t)}},a=0,s=arguments.length;a<s;a++){var u=a<0||arguments.length<=a?void 0:arguments[a];if(u&&!ao(u)&&(Ro(u,i),"object"===R(u)&&!oo(u)))for(var c=Object.getOwnPropertySymbols(u),l=0;l<c.length;l++){var h=c[l];Mo.call(u,h)&&i(u[h],h)}}return o},extend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return Ro(t,(function(t,r){n&&co(t)?Object.defineProperty(e,r,{__proto__:null,value:Fr(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Xr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:to,kindOfTest:no,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(oo(e))return e;var t=e.length;if(!lo(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Zr]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Co,hasOwnProperty:$r,hasOwnProp:$r,hasOwnInPrototypeChain:eo,getSafeProp:function(e,t){return null!=e&&eo(e,t)?e[t]:void 0},reduceDescriptors:xo,freezeMethods:function(e){xo(e,(function(t,n){if(co(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];co(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return oo(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:Lo,global:ko,isContextDefined:No,isSpecCompliantForm:function(e){return!!(e&&co(e.append)&&"FormData"===e[Qr]&&e[Zr])},toJSONObject:function(e){var t=new WeakSet;return function e(n){if(ho(n)){if(t.has(n))return;if(ao(n))return n;if(!("toJSON"in n)){t.add(n);var r=oo(n)?[]:{};return Ro(n,(function(t,n){var o=e(t);!io(o)&&(r[n]=o)})),t.delete(n),r}}return n}(e)},isAsyncFn:zo,isThenable:function(e){return e&&(ho(e)||co(e))&&co(e.then)&&co(e.catch)},setImmediate:Yo,asap:Go,isIterable:Ko,isSafeIterable:function(e){return null!=e&&eo(e,Zr)&&Ko(e)}},Vo=Fo.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Wo=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),qo=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Jo(e,t){return Fo.isArray(e)?e.map((function(e){return Jo(e,t)})):function(e){for(var t=0,n=e.length;t<n;){var r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;n>t;){var o=e.charCodeAt(n-1);if(9!==o&&32!==o)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Xo(e){var t=Object.create(null);return Fo.forEach(e.toJSON(),(function(e,n){t[n]=function(e){return Jo(e,qo)}(e)})),t}var Zo=Symbol("internals");function Qo(e){return e&&String(e).trim().toLowerCase()}function $o(e){return!1===e||null==e?e:Fo.isArray(e)?e.map($o):function(e){return Jo(e,Wo)}(String(e))}function ei(e,t,n,r,o){return Fo.isFunction(r)?r.call(this,t,n):(o&&(t=n),Fo.isString(t)?Fo.isString(r)?-1!==t.indexOf(r):Fo.isRegExp(r)?r.test(t):void 0:void 0)}var ti=function(e,t){function n(e){u(this,n),e&&this.set(e)}return l(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=Qo(t);if(o){var i=Fo.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=$o(e))}}var a=function(e,t){return Fo.forEach(e,(function(e,n){return o(e,n,t)}))};if(Fo.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Fo.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(function(e){var t,n,r,o={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&Vo[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)})),o}(e),t);else if(Fo.isObject(e)&&Fo.isSafeIterable(e)){var s,u,c,l=Object.create(null),h=i(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(!Fo.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],Fo.hasOwnProp(l,u)?(s=l[u],l[u]=Fo.isArray(s)?[].concat(C(s),[f[1]]):[s,f[1]]):l[u]=f[1]}}catch(e){h.e(e)}finally{h.f()}a(l,t)}else null!=e&&o(t,e,n);return this}},{key:"get",value:function(e,t){if(e=Qo(e)){var n=Fo.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(Fo.isFunction(t))return t.call(this,r,n);if(Fo.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Qo(e)){var n=Fo.findKey(this,e);return!(!n||void 0===this[n]||t&&!ei(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=Qo(e)){var o=Fo.findKey(n,e);!o||t&&!ei(0,n[o],o,t)||(delete n[o],r=!0)}}return Fo.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!ei(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return Fo.forEach(this,(function(r,o){var i=Fo.findKey(n,o);if(i)return t[i]=$o(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=$o(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return Fo.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&Fo.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=P(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:"getSetCookie",value:function(){return this.get("set-cookie")||[]}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Zo]=this[Zo]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=Qo(e);t[r]||(!function(e,t){var n=Fo.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Fo.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Fo.reduceDescriptors(ti.prototype,(function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}})),Fo.freezeMethods(ti);var ni=ti;function ri(e,t){var n=new Set(t.map((function(e){return String(e).toLowerCase()}))),r=[];return function e(t){if(null===t||"object"!==R(t))return t;if(Fo.isBuffer(t))return t;if(-1===r.indexOf(t)){var o;if(t instanceof ni&&(t=t.toJSON()),r.push(t),Fo.isArray(t))o=[],t.forEach((function(t,n){var r=e(t);Fo.isUndefined(r)||(o[n]=r)}));else{if(!Fo.isPlainObject(t)&&function(e){if(Fo.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Fo.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(t))return r.pop(),t;o=Object.create(null);for(var i=0,a=Object.entries(t);i<a.length;i++){var s=P(a[i],2),u=s[0],c=s[1],l=n.has(u.toLowerCase())?"[REDACTED ****]":e(c);Fo.isUndefined(l)||(o[u]=l)}}return r.pop(),o}}(e)}var oi=function(e){p(n,e);var t=v(n);function n(e,r,o,i,a){var s;return u(this,n),s=t.call(this,e),Object.defineProperty(f(s),"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),s.name="AxiosError",s.isAxiosError=!0,r&&(s.code=r),o&&(s.config=o),i&&(s.request=i),a&&(s.response=a,s.status=a.status),s}return l(n,[{key:"toJSON",value:function(){var e=this.config,t=e&&Fo.hasOwnProp(e,"redact")?e.redact:void 0,n=Fo.isArray(t)&&t.length>0?ri(e,t):Fo.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}],[{key:"from",value:function(e,t,r,o,i,a){var s=new n(e.message,t||e.code,r,o,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),a&&Object.assign(s,a),s}}]),n}(k(Error));oi.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",oi.ERR_BAD_OPTION="ERR_BAD_OPTION",oi.ECONNABORTED="ECONNABORTED",oi.ETIMEDOUT="ETIMEDOUT",oi.ECONNREFUSED="ECONNREFUSED",oi.ERR_NETWORK="ERR_NETWORK",oi.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",oi.ERR_DEPRECATED="ERR_DEPRECATED",oi.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",oi.ERR_BAD_REQUEST="ERR_BAD_REQUEST",oi.ERR_CANCELED="ERR_CANCELED",oi.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",oi.ERR_INVALID_URL="ERR_INVALID_URL",oi.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ii=oi,ai=n(207).lW;function si(e){return Fo.isPlainObject(e)||Fo.isArray(e)}function ui(e){return Fo.endsWith(e,"[]")?e.slice(0,-2):e}function ci(e,t,n){return e?e.concat(t).map((function(e,t){return e=ui(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var li=Fo.toFlatObject(Fo,{},null,(function(e){return/^is[A-Z]/.test(e)}));var hi=function(e,t,n){if(!Fo.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=Fo.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Fo.isUndefined(t[e])}))).metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===n.maxDepth?100:n.maxDepth,c=s&&Fo.isSpecCompliantForm(t),l=[];if(!Fo.isFunction(o))throw new TypeError("visitor must be a function");function h(e){if(null===e)return"";if(Fo.isDate(e))return e.toISOString();if(Fo.isBoolean(e))return e.toString();if(!c&&Fo.isBlob(e))throw new ii("Blob is not supported. Use a Buffer instead.");if(Fo.isArrayBuffer(e)||Fo.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if(void 0!==ai)return ai.from(e);throw new ii("Blob is not supported. Use a Buffer instead.",ii.ERR_NOT_SUPPORT)}return e}function f(e){if(e>u)throw new ii("Object is too deeply nested ("+e+" levels). Max depth: "+u,ii.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(e,n,o){var s=e;if(Fo.isReactNative(t)&&Fo.isReactNativeBlob(e))return t.append(ci(o,n,i),h(e)),!1;if(e&&!o&&"object"===R(e))if(Fo.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);var n=[];return JSON.stringify(e,(function(e,r){if(!Fo.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r}))}(e,1);else if(Fo.isArray(e)&&function(e){return Fo.isArray(e)&&!e.some(si)}(e)||(Fo.isFileList(e)||Fo.endsWith(n,"[]"))&&(s=Fo.toArray(e)))return n=ui(n),s.forEach((function(e,r){!Fo.isUndefined(e)&&null!==e&&t.append(!0===a?ci([n],r,i):null===a?n:n+"[]",h(e))})),!1;return!!si(e)||(t.append(ci(o,n,i),h(e)),!1)}var p=Object.assign(li,{defaultVisitor:d,convertValue:h,isVisitable:si});if(!Fo.isObject(e))throw new TypeError("data must be an object");return function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Fo.isUndefined(n)){if(f(i),-1!==l.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));l.push(n),Fo.forEach(n,(function(n,a){!0===(!(Fo.isUndefined(n)||null===n)&&o.call(t,n,Fo.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a],i+1)})),l.pop()}}(e),t};function fi(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function di(e,t){this._pairs=[],e&&hi(e,this,t)}var pi=di.prototype;pi.append=function(e,t){this._pairs.push([e,t])},pi.toString=function(e){var t=this,n=e?function(n){return e.call(t,n,fi)}:fi;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};var gi=di;function vi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mi(e,t,n){if(!t)return e;e=e||"";var r,o=Fo.isFunction(n)?{serialize:n}:n,i=Fo.getSafeProp(o,"encode")||vi,a=Fo.getSafeProp(o,"serialize");if(r=a?a(t,o):Fo.isURLSearchParams(t)?t.toString():new gi(t,o).toString(i)){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var yi=function(){function e(){u(this,e),this.handlers=[]}return l(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){Fo.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),_i=yi,bi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ei={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},wi="undefined"!=typeof window&&"undefined"!=typeof document,Si="object"===("undefined"==typeof navigator?"undefined":R(navigator))&&navigator||void 0,Ti=wi&&(!Si||["ReactNative","NativeScript","NS"].indexOf(Si.product)<0),Ai="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Pi=wi&&window.location.href||"http://localhost",Ri=b(b({},e),Ei);function Li(e){if(e>100)throw new ii("FormData field is too deeply nested ("+e+" levels). Max depth: 100",ii.ERR_FORM_DATA_DEPTH_EXCEEDED)}var ki=function(e){function t(e,n,r,o){Li(o);var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Fo.isArray(r)?r.length:i,s?(Fo.hasOwnProp(r,i)?r[i]=Fo.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(Fo.hasOwnProp(r,i)&&Fo.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Fo.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(Fo.isFormData(e)&&Fo.isFunction(e.entries)){var n={};return Fo.forEachEntry(e,(function(e,r){t(function(e){for(var t,n=[],r=/\w+|\[(\w*)]/g;null!==(t=r.exec(e));)Li(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),r,n,0)})),n}return null},Ni=function(e,t){return null!=e&&Fo.hasOwnProp(e,t)?e[t]:void 0};var Oi={transitional:bi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=Fo.isObject(e);if(i&&Fo.isHTMLForm(e)&&(e=new FormData(e)),Fo.isFormData(e))return o?JSON.stringify(ki(e)):e;if(Fo.isArrayBuffer(e)||Fo.isBuffer(e)||Fo.isStream(e)||Fo.isFile(e)||Fo.isBlob(e)||Fo.isReadableStream(e))return e;if(Fo.isArrayBufferView(e))return e.buffer;if(Fo.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=Ni(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return hi(e,new Ri.classes.URLSearchParams,b({visitor:function(e,t,n,r){return Ri.isNode&&Fo.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=Fo.isFileList(e))||r.indexOf("multipart/form-data")>-1){var s=Ni(this,"env"),u=s&&s.FormData;return hi(n?{"files[]":e}:e,u&&new u,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Fo.isString(e))try{return(t||JSON.parse)(e),Fo.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=Ni(this,"transitional")||Oi.transitional,n=t&&t.forcedJSONParsing,r=Ni(this,"responseType"),o="json"===r;if(Fo.isResponse(e)||Fo.isReadableStream(e))return e;if(e&&Fo.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Ni(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw ii.from(e,ii.ERR_BAD_RESPONSE,this,null,Ni(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ri.classes.FormData,Blob:Ri.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fo.forEach(["delete","get","head","post","put","patch","query"],(function(e){Oi.headers[e]={}}));var Ii=Oi;function Ci(e,t){var n=this||Ii,r=t||n,o=ni.from(r.headers),i=r.data;return Fo.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Mi(e){return!(!e||!e.__CANCEL__)}var Di=function(e){p(n,e);var t=v(n);function n(e,r,o){var i;return u(this,n),(i=t.call(this,null==e?"canceled":e,ii.ERR_CANCELED,r,o)).name="CanceledError",i.__CANCEL__=!0,i}return l(n)}(ii);function xi(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ii("Request failed with status code "+n.status,n.status>=400&&n.status<500?ii.ERR_BAD_REQUEST:ii.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var Bi=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=o[a];n||(n=u),r[i]=s,o[i]=u;for(var l=a,h=0;l!==i;)h+=r[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(u-n<t)){var f=c&&u-c;return f?Math.round(1e3*h/f):void 0}}};var Ui=function(e,t){var n,r,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(void 0,C(t))};return[function(){for(var e=Date.now(),t=e-o,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];t>=i?a(u,e):(n=u,r||(r=setTimeout((function(){r=null,a(n)}),i-t)))},function(){return n&&a(n)}]},Hi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,o=Bi(50,250);return Ui((function(n){if(n&&"number"==typeof n.loaded){var i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,u=Math.max(0,s-r),c=o(u);r=Math.max(r,s);var l=y({loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(l)}}),n)},ji=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},zi=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fo.asap((function(){return e.apply(void 0,n)}))}},Yi=Ri.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,Ri.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(Ri.origin),Ri.navigator&&/(msie|trident)/i.test(Ri.navigator.userAgent)):function(){return!0},Gi=Ri.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var s=["".concat(e,"=").concat(encodeURIComponent(t))];Fo.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),Fo.isString(r)&&s.push("path=".concat(r)),Fo.isString(o)&&s.push("domain=".concat(o)),!0===i&&s.push("secure"),Fo.isString(a)&&s.push("SameSite=".concat(a)),document.cookie=s.join("; ")}},read:function(e){if("undefined"==typeof document)return null;for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch(e){return r.slice(o+1)}}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};var Ki=/^https?:(?!\/\/)/i,Fi=/[\t\n\r]/g;function Vi(e,t){if("string"==typeof e&&Ki.test(function(e){return function(e){for(var t=0;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(Fi,"")}(e)))throw new ii('Invalid URL: missing "//" after protocol',ii.ERR_INVALID_URL,t)}function Wi(e,t,n,r){Vi(t,r);var o,i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));return e&&(i||!1===n)?(Vi(e,r),function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t)):t}var qi=function(e){return e instanceof ni?b({},e):e};function Ji(e,t){e=e||{},t=t||{};var n=Object.create(null);function r(e,t,n,r){return Fo.isPlainObject(e)&&Fo.isPlainObject(t)?Fo.merge.call({caseless:r},e,t):Fo.isPlainObject(t)?Fo.merge({},t):Fo.isArray(t)?t.slice():t}function o(e,t,n,o){return Fo.isUndefined(t)?Fo.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Fo.isUndefined(t))return r(void 0,t)}function a(e,t){return Fo.isUndefined(t)?Fo.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return Fo.hasOwnProp(t,i)?r(n,o):Fo.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:function(e,t,n){return o(qi(e),qi(t),0,!0)}};return Fo.forEach(Object.keys(b(b({},e),t)),(function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=Fo.hasOwnProp(u,r)?u[r]:o,a=i(Fo.hasOwnProp(e,r)?e[r]:void 0,Fo.hasOwnProp(t,r)?t[r]:void 0,r);Fo.isUndefined(a)&&i!==s||(n[r]=a)}})),Fo.hasOwnProp(t,"validateStatus")&&Fo.isUndefined(t.validateStatus)&&!1===function(n){var r=Fo.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Fo.isUndefined(r)){if(!Fo.isPlainObject(r))return;if(Fo.hasOwnProp(r,n))return r[n]}var o=Fo.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Fo.isPlainObject(o)&&Fo.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(Fo.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var Xi=["content-type","content-length"];var Zi=function(e){var t=Ji({},e),n=function(e){return Fo.hasOwnProp(t,e)?t[e]:void 0},r=n("data"),o=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),u=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),h=n("url");if(t.headers=s=ni.from(s),t.url=mi(Wi(c,h,l,t),n("params"),n("paramsSerializer")),u){var f=Fo.getSafeProp(u,"username")||"",d=Fo.getSafeProp(u,"password")||"";try{s.set("Authorization","Basic "+btoa(f+":"+(d?encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})):"")))}catch(t){throw ii.from(t,ii.ERR_BAD_OPTION_VALUE,e)}}if(Fo.isFormData(r)&&(Ri.hasStandardBrowserEnv||Ri.hasStandardBrowserWebWorkerEnv||Fo.isReactNative(r)?s.setContentType(void 0):Fo.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach((function(t){var n=P(t,2),r=n[0],o=n[1];Xi.includes(r.toLowerCase())&&e.set(r,o)})):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),Ri.hasStandardBrowserEnv&&(Fo.isFunction(o)&&(o=o(t)),!0===o||null==o&&Yi(t.url))){var p=i&&a&&Gi.read(a);p&&s.set(i,p)}return t},Qi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,o,i,a,s,u=Zi(e),c=u.data,l=ni.from(u.headers).normalize(),h=u.responseType,f=u.onUploadProgress,d=u.onDownloadProgress;function p(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}var g=new XMLHttpRequest;function v(){if(g){var r=ni.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());xi((function(e){t(e),p()}),(function(e){n(e),p()}),{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}}if(g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new ii("Request aborted",ii.ECONNABORTED,e,g)),p(),g=null)},g.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new ii(r,ii.ERR_NETWORK,e,g);o.event=t||null,n(o),p(),g=null},g.ontimeout=function(){var t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||bi;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(new ii(t,r.clarifyTimeoutError?ii.ETIMEDOUT:ii.ECONNABORTED,e,g)),p(),g=null},void 0===c&&l.setContentType(null),"setRequestHeader"in g&&Fo.forEach(Xo(l),(function(e,t){g.setRequestHeader(t,e)})),Fo.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),h&&"json"!==h&&(g.responseType=u.responseType),d){var m=Hi(d,!0),y=P(m,2);i=y[0],s=y[1],g.addEventListener("progress",i)}if(f&&g.upload){var _=Hi(f),b=P(_,2);o=b[0],a=b[1],g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",a)}(u.cancelToken||u.signal)&&(r=function(t){g&&(n(!t||t.type?new Di(null,e,g):t),g.abort(),p(),g=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));var E,w,S=(E=u.url,(w=/^([-+\w]{1,25}):(?:\/\/)?/.exec(E))&&w[1]||"");if(S&&!Ri.protocols.includes(S))return n(new ii("Unsupported protocol "+S+":",ii.ERR_BAD_REQUEST,e)),void p();g.send(c||null)}))},$i=function(e,t){if(e=e?e.filter(Boolean):[],t||e.length){var n=new AbortController,r=!1,o=function(e){if(!r){r=!0,a();var t=e instanceof Error?e:this.reason;n.abort(t instanceof ii?t:new Di(t instanceof Error?t.message:t))}},i=t&&setTimeout((function(){i=null,o(new ii("timeout of ".concat(t,"ms exceeded"),ii.ETIMEDOUT))}),t),a=function(){e&&(i&&clearTimeout(i),i=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",o,{once:!0})}));var s=n.signal;return s.unsubscribe=function(){return Fo.asap(a)},s}},ea=n(697),ta=n(10),na=n(331),ra=n(193),oa=w().mark((function e(t,n){var r,o,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.byteLength,n&&!(r<n)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:o=0;case 6:if(!(o<r)){e.next=13;break}return i=o+n,e.next=10,t.slice(o,i);case 10:o=i,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),ia=function(){var e=ea(w().mark((function e(t,n){var r,o,i,a,s,u;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,o=!1,e.prev=2,a=ra(aa(t));case 4:return e.next=6,ta(a.next());case 6:if(!(r=!(s=e.sent).done)){e.next=12;break}return u=s.value,e.delegateYield(na(ra(oa(u,n)),ta),"t0",9);case 9:r=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),o=!0,i=e.t1;case 18:if(e.prev=18,e.prev=19,!r||null==a.return){e.next=23;break}return e.next=23,ta(a.return());case 23:if(e.prev=23,!o){e.next=26;break}throw i;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,n){return e.apply(this,arguments)}}(),aa=function(){var e=ea(w().mark((function e(t){var n,r,o,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(na(ra(t),ta),"t0",2);case 2:return e.abrupt("return");case 3:n=t.getReader(),e.prev=4;case 5:return e.next=7,ta(n.read());case 7:if(r=e.sent,o=r.done,i=r.value,!o){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,i;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,ta(n.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),sa=function(e,t,n,r){var o,i=ia(e,t),a=0,s=function(e){o||(o=!0,r&&r(e))};return new ReadableStream({pull:function(e){return T(w().mark((function t(){var r,o,u,c,l;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.next();case 3:if(r=t.sent,o=r.done,u=r.value,!o){t.next=10;break}return s(),e.close(),t.abrupt("return");case 10:c=u.byteLength,n&&(l=a+=c,n(l)),e.enqueue(new Uint8Array(u)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),s(t.t0),t.t0;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},cancel:function(e){return s(e),i.return()}},{highWaterMark:2})},ua=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},ca=function(e,t,n){return t+2<n&&ua(e.charCodeAt(t+1))&&ua(e.charCodeAt(t+2))};function la(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var t=e.indexOf(",");if(t<0)return 0;var n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){for(var o=r.length,i=r.length,a=0;a<i;a++)if(37===r.charCodeAt(a)&&a+2<i){var s=r.charCodeAt(a+1),u=r.charCodeAt(a+2);ua(s)&&ua(u)&&(o-=2,a+=2)}var c=0,l=i-1,h=function(e){return e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e))};l>=0&&(61===r.charCodeAt(l)?(c++,l--):h(l)&&(c++,l-=3)),1===c&&l>=0&&(61===r.charCodeAt(l)||h(l))&&c++;var f=3*Math.floor(o/4)-(c||0);return f>0?f:0}for(var d=0,p=0,g=r.length;p<g;p++){var v=r.charCodeAt(p);if(37===v&&ca(r,p,g))d+=1,p+=2;else if(v<128)d+=1;else if(v<2048)d+=2;else if(v>=55296&&v<=56319&&p+1<g){var m=r.charCodeAt(p+1);m>=56320&&m<=57343?(d+=4,p++):d+=3}else d+=3}return d}var ha="1.18.1",fa=Fo.isFunction,da=function(e){if(!Fo.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},pa=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e.apply(void 0,n)}catch(e){return!1}},ga=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},va=function(e){var t=void 0!==Fo.global&&null!==Fo.global?Fo.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,o=e=Fo.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),i=o.fetch,a=o.Request,s=o.Response,u=i?fa(i):"function"==typeof fetch,c=fa(a),l=fa(s);if(!u)return!1;var h,f=u&&fa(n),d=u&&("function"==typeof r?(h=new r,function(e){return h.encode(e)}):function(){var e=T(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new a(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),p=c&&f&&pa((function(){var e=!1,t=new a(Ri.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r})),g=l&&f&&pa((function(){return Fo.isReadableStream(new s("").body)})),v={stream:g&&function(e){return e.body}};u&&["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!v[e]&&(v[e]=function(t,n){var r=t&&t[e];if(r)return r.call(t);throw new ii("Response type '".concat(e,"' is not supported"),ii.ERR_NOT_SUPPORT,n)})}));var m=function(){var e=T(w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!Fo.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!Fo.isSpecCompliantForm(t)){e.next=9;break}return n=new a(Ri.origin,{method:"POST",body:t}),e.next=8,n.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!Fo.isArrayBufferView(t)&&!Fo.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(Fo.isURLSearchParams(t)&&(t+=""),!Fo.isString(t)){e.next=16;break}return e.next=15,d(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=T(w().mark((function e(t,n){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Fo.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==r?m(n):r);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){var e=T(w().mark((function e(t){var n,o,u,l,h,d,_,E,S,T,A,R,L,k,N,O,I,C,M,D,x,B,U,H,j,z,Y,G,K,F,V,W,q,J,X,Z,Q,$,ee,te,ne,re,oe,ie,ae,se,ue,ce,le,he,fe,de,pe,ge,ve,me,ye,_e,be,Ee;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Zi(t),o=n.url,u=n.method,l=n.data,h=n.signal,d=n.cancelToken,_=n.timeout,E=n.onDownloadProgress,S=n.onUploadProgress,T=n.responseType,A=n.headers,R=n.withCredentials,L=void 0===R?"same-origin":R,k=n.fetchOptions,N=n.maxContentLength,O=n.maxBodyLength,I=Fo.isNumber(N)&&N>-1,C=Fo.isNumber(O)&&O>-1,M=function(e){return Fo.hasOwnProp(t,e)?t[e]:void 0},D=i||fetch,T=T?(T+"").toLowerCase():"text",x=$i([h,d&&d.toAbortSignal()],_),B=null,U=x&&x.unsubscribe&&function(){x.unsubscribe()},j=null,z=function(){return new ii("Request body larger than maxBodyLength limit",ii.ERR_BAD_REQUEST,t,B)},e.prev=11,Y=void 0,(G=M("auth"))&&(K=Fo.getSafeProp(G,"username")||"",F=Fo.getSafeProp(G,"password")||"",Y={username:K,password:F}),ga(o)&&(V=new URL(o,Ri.origin),Y||!V.username&&!V.password||(W=da(V.username),q=da(V.password),Y={username:W,password:q}),(V.username||V.password)&&(V.username="",V.password="",o=V.href)),Y&&(A.delete("authorization"),A.set("Authorization","Basic "+btoa((w=(Y.username||"")+":"+(Y.password||""),encodeURIComponent(w).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})))))),!I||"string"!=typeof o||!o.startsWith("data:")){e.next=21;break}if(!(la(o)>N)){e.next=21;break}throw new ii("maxContentLength size of "+N+" exceeded",ii.ERR_BAD_RESPONSE,t,B);case 21:if(!C||"get"===u||"head"===u){e.next=29;break}return e.next=24,m(l);case 24:if("number"!=typeof(J=e.sent)||!isFinite(J)){e.next=29;break}if(H=J,!(J>O)){e.next=29;break}throw z();case 29:if(X=C&&(Fo.isReadableStream(l)||Fo.isStream(l)),Z=function(e,t,n){return sa(e,65536,(function(e){if(C&&e>O)throw j=z();t&&t(e)}),n)},!p||"get"===u||"head"===u||!S&&!X){e.next=43;break}if(null!=H){e.next=38;break}return e.next=35,y(A,l);case 35:e.t0=e.sent,e.next=39;break;case 38:e.t0=H;case 39:(0!==(H=e.t0)||X)&&(Q=new a(o,{method:"POST",body:l,duplex:"half"}),Fo.isFormData(l)&&($=Q.headers.get("content-type"))&&A.setContentType($),Q.body&&(ee=S&&ji(H,Hi(zi(S)))||[],te=P(ee,2),ne=te[0],re=te[1],l=Z(Q.body,ne,re))),e.next=49;break;case 43:if(!X||c||!f||"get"===u||"head"===u){e.next=47;break}l=Z(l),e.next=49;break;case 47:if(!X||!c||p||"get"===u||"head"===u){e.next=49;break}throw new ii("Stream request bodies are not supported by the current fetch implementation",ii.ERR_NOT_SUPPORT,t,B);case 49:return Fo.isString(L)||(L=L?"include":"omit"),oe=c&&"credentials"in a.prototype,Fo.isFormData(l)&&(ie=A.getContentType())&&/^multipart\/form-data/i.test(ie)&&!/boundary=/i.test(ie)&&A.delete("content-type"),A.set("User-Agent","axios/"+ha,!1),ae=b(b({},k),{},{signal:x,method:u.toUpperCase(),headers:Xo(A.normalize()),body:l,duplex:"half",credentials:oe?L:void 0}),B=c&&new a(o,ae),e.next=57,c?D(B,k):D(o,ae);case 57:if(se=e.sent,ue=ni.from(se.headers),!I){e.next=63;break}if(!(null!=(ce=Fo.toFiniteNumber(ue.getContentLength()))&&ce>N)){e.next=63;break}throw new ii("maxContentLength size of "+N+" exceeded",ii.ERR_BAD_RESPONSE,t,B);case 63:return le=g&&("stream"===T||"response"===T),g&&se.body&&(E||I||le&&U)&&(he={},["status","statusText","headers"].forEach((function(e){he[e]=se[e]})),fe=Fo.toFiniteNumber(ue.getContentLength()),de=E&&ji(fe,Hi(zi(E),!0))||[],pe=P(de,2),ge=pe[0],ve=pe[1],0,me=function(e){if(I&&e>N)throw new ii("maxContentLength size of "+N+" exceeded",ii.ERR_BAD_RESPONSE,t,B);ge&&ge(e)},se=new s(sa(se.body,65536,me,(function(){ve&&ve(),U&&U()})),he)),T=T||"text",e.next=68,v[Fo.findKey(v,T)||"text"](se,t);case 68:if(ye=e.sent,!I||g||le){e.next=73;break}if(null!=ye&&("number"==typeof ye.byteLength?_e=ye.byteLength:"number"==typeof ye.size?_e=ye.size:"string"==typeof ye&&(_e="function"==typeof r?(new r).encode(ye).byteLength:ye.length)),!("number"==typeof _e&&_e>N)){e.next=73;break}throw new ii("maxContentLength size of "+N+" exceeded",ii.ERR_BAD_RESPONSE,t,B);case 73:return!le&&U&&U(),e.next=76,new Promise((function(e,n){xi(e,n,{data:ye,headers:ni.from(se.headers),status:se.status,statusText:se.statusText,config:t,request:B})}));case 76:return e.abrupt("return",e.sent);case 79:if(e.prev=79,e.t1=e.catch(11),U&&U(),!(x&&x.aborted&&x.reason instanceof ii)){e.next=88;break}throw(be=x.reason).config=t,B&&(be.request=B),e.t1!==be&&Object.defineProperty(be,"cause",{__proto__:null,value:e.t1,writable:!0,enumerable:!1,configurable:!0}),be;case 88:if(!j){e.next=91;break}throw B&&!j.request&&(j.request=B),j;case 91:if(!(e.t1 instanceof ii)){e.next=94;break}throw B&&!e.t1.request&&(e.t1.request=B),e.t1;case 94:if(!e.t1||"TypeError"!==e.t1.name||!/Load failed|fetch/i.test(e.t1.message)){e.next=98;break}throw Ee=new ii("Network Error",ii.ERR_NETWORK,t,B,e.t1&&e.t1.response),Object.defineProperty(Ee,"cause",{__proto__:null,value:e.t1.cause||e.t1,writable:!0,enumerable:!1,configurable:!0}),Ee;case 98:throw ii.from(e.t1,e.t1&&e.t1.code,t,B,e.t1&&e.t1.response);case 99:case"end":return e.stop()}var w}),e,null,[[11,79]])})));return function(t){return e.apply(this,arguments)}}()},ma=new Map,ya=function(e){for(var t,n,r=e&&e.env||{},o=r.fetch,i=[r.Request,r.Response,o],a=i.length,s=ma;a--;)t=i[a],void 0===(n=s.get(t))&&s.set(t,n=a?new Map:va(r)),s=n;return n},_a=(ya(),{http:null,xhr:Qi,fetch:{get:ya}});Fo.forEach(_a,(function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));var ba=function(e){return"- ".concat(e)},Ea=function(e){return Fo.isFunction(e)||null===e||!1===e};var wa={getAdapter:function(e,t){for(var n,r,o=(e=Fo.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var s=void 0;if(r=n=e[a],!Ea(n)&&void 0===(r=_a[(s=String(n)).toLowerCase()]))throw new ii("Unknown adapter '".concat(s,"'"));if(r&&(Fo.isFunction(r)||(r=r.get(t))))break;i[s||"#"+a]=r}if(!r){var u=Object.entries(i).map((function(e){var t=P(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")})),c=o?u.length>1?"since :\n"+u.map(ba).join("\n"):" "+ba(u[0]):"as no adapter specified";throw new ii("There is no suitable adapter to dispatch the request "+c,ii.ERR_NOT_SUPPORT)}return r},adapters:_a};function Sa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Di(null,e)}function Ta(e){return Sa(e),e.headers=ni.from(e.headers),e.data=Ci.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wa.getAdapter(e.adapter||Ii.adapter,e)(e).then((function(t){Sa(e),e.response=t;try{t.data=Ci.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=ni.from(t.headers),t}),(function(t){if(!Mi(t)&&(Sa(e),t&&t.response)){e.response=t.response;try{t.response.data=Ci.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=ni.from(t.response.headers)}return Promise.reject(t)}))}var Aa={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Aa[e]=function(n){return R(n)===e||"a"+(t<1?"n ":" ")+e}}));var Pa={};Aa.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ha+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new ii(r(o," has been removed"+(t?" in "+t:"")),ii.ERR_DEPRECATED);return t&&!Pa[o]&&(Pa[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Aa.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var Ra={assertOptions:function(e,t,n){if("object"!==R(e)||null===e)throw new ii("options must be an object",ii.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new ii("option "+i+" must be "+u,ii.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ii("Unknown option "+i,ii.ERR_BAD_OPTION)}},validators:Aa},La=Ra.validators,ka=function(){function e(t){u(this,e),this.defaults=t||{},this.interceptors={request:new _i,response:new _i}}var t;return l(e,[{key:"request",value:(t=T(w().mark((function e(t,n){var r,o,i,a,s;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,o=function(){if(!r.stack)return"";var e=r.stack.indexOf("\n");return-1===e?"":r.stack.slice(e+1)}();try{e.t0.stack?o&&(i=o.indexOf("\n"),a=-1===i?-1:o.indexOf("\n",i+1),s=-1===a?"":o.slice(a+1),String(e.t0.stack).endsWith(s)||(e.t0.stack+="\n"+o)):e.t0.stack=o}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e,n){return t.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n=t=Ji(this.defaults,t),r=n.transitional,o=n.paramsSerializer,i=n.headers;void 0!==r&&Ra.assertOptions(r,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean),legacyInterceptorReqResOrdering:La.transitional(La.boolean),advertiseZstdAcceptEncoding:La.transitional(La.boolean),validateStatusUndefinedResolves:La.transitional(La.boolean)},!1),null!=o&&(Fo.isFunction(o)?t.paramsSerializer={serialize:o}:Ra.assertOptions(o,{encode:La.function,serialize:La.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ra.assertOptions(t,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&Fo.merge(i.common,i[t.method]);i&&Fo.forEach(["delete","get","head","post","put","patch","query","common"],(function(e){delete i[e]})),t.headers=ni.concat(a,i);var s=[],u=!0;this.interceptors.request.forEach((function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){u=u&&e.synchronous;var n=t.transitional||bi;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)}}));var c,l=[];this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));var h,f=0;if(!u){var d=[Ta.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,l),h=d.length,c=Promise.resolve(t);f<h;)c=c.then(d[f++],d[f++]);return c}h=s.length;for(var p=t;f<h;){var g=s[f++],v=s[f++];try{p=g(p)}catch(e){v.call(this,e);break}}try{c=Ta.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,h=l.length;f<h;)c=c.then(l[f++],l[f++]);return c}},{key:"getUri",value:function(e){return mi(Wi((e=Ji(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}]),e}();Fo.forEach(["delete","get","head","options"],(function(e){ka.prototype[e]=function(t,n){return this.request(Ji(n||{},{method:e,url:t,data:n&&Fo.hasOwnProp(n,"data")?n.data:void 0}))}})),Fo.forEach(["post","put","patch","query"],(function(e){function t(t){return function(n,r,o){return this.request(Ji(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ka.prototype[e]=t(),"query"!==e&&(ka.prototype[e+"Form"]=t(!0))}));var Na=ka,Oa=function(){function e(t){if(u(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,o){r.reason||(r.reason=new Di(e,t,o),n(r.reason))}))}return l(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t,n=new e((function(e){t=e}));return{token:n,cancel:t}}}]),e}(),Ia=Oa;var Ca={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ca).forEach((function(e){var t=P(e,2),n=t[0],r=t[1];Ca[r]=n}));var Ma=Ca;var Da=function e(t){var n=new Na(t),r=Fr(Na.prototype.request,n);return Fo.extend(r,Na.prototype,n,{allOwnKeys:!0}),Fo.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ji(t,n))},r}(Ii);Da.Axios=Na,Da.CanceledError=Di,Da.CancelToken=Ia,Da.isCancel=Mi,Da.VERSION=ha,Da.toFormData=hi,Da.AxiosError=ii,Da.Cancel=Da.CanceledError,Da.all=function(e){return Promise.all(e)},Da.spread=function(e){return function(t){return e.apply(null,t)}},Da.isAxiosError=function(e){return Fo.isObject(e)&&!0===e.isAxiosError},Da.mergeConfig=Ji,Da.AxiosHeaders=ni,Da.formToJSON=function(e){return ki(Fo.isHTMLForm(e)?new FormData(e):e)},Da.getAdapter=wa.getAdapter,Da.HttpStatusCode=Ma,Da.default=Da;var xa=Da,Ba=n(414),Ua=function(){try{var e;return(null===(e=navigator)||void 0===e?void 0:e.javaEnabled())||!1}catch(e){}return!1},Ha={local:"http://imgs-63.sggz00b.dev.alipay.net/mgw.htm",dev:"http://imgs-63.sggz00b.dev.alipay.net/mgw.htm",sit:"http://imgs-9.sggz00a.test.alipay.net/mgw.htm",light_sandbox:"https://imgs-sea-global.alipay.com/mgw.htm",pre:"https://imgs-sea-pre.alipay.com/mgw.htm",prod:"https://imgs-sea-global.alipay.com/mgw.htm",sandbox:"https://imgs-sea-global.alipay.com/mgw.htm"},ja="ANTOM_PAYMENT_WEB",za=(function(e){var t={};(e||(e=window.location.href),"undefined"==typeof URL)?e.replace(/([^?=&#]+)(=([^&#]*))?/g,(function(e,n,r,o){return void 0===o?"":(t[n]=decodeURIComponent(o).replace(/\+/g," "),t[n])})):new URL(e).searchParams.forEach((function(e,n){t[n]=e}));return t}()||{}).instanceId;function Ya(){return new Promise((function(e){window&&window.AlipayJSBridge?e():document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)}))}var Ga=function(){function e(t){u(this,e),y(this,"baseUrl",void 0),y(this,"headers",void 0),y(this,"method",void 0),y(this,"timeout",void 0),this.baseUrl=t.baseURL,this.headers=t.headers,this.method=t.method,this.timeout=t.timeout,this.request=this.request.bind(this)}return l(e,[{key:"request",value:function(e){var t=this;return new Promise((function(n,r){var o,i,a={url:e.url?t.baseUrl+e.url:t.baseUrl,method:null!==(o=e.method)&&void 0!==o?o:t.method,headers:b(b({},t.headers),e.headers),timeout:null!==(i=e.timeout)&&void 0!==i?i:t.timeout};e.data&&(a.data=function(e,t){try{var n=new WeakSet;return JSON.stringify(e,(function(e,t){if("object"===R(t)&&null!==t){if(n.has(t))return;n.add(t)}return t}))||t}catch(e){return t}}(e.data,"")),function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise((function(t){Ya().then((function(){var r;(r=window.AlipayJSBridge).call.apply(r,[e].concat(n,[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t([].concat(n))}]))}))}))}("httpRequest",b({instanceId:za},a)).then((function(e){var t=Array.isArray(e)?e.length>0?e[0]:null:e;if(!t)return r(new Error("timeout"));if(0!==t.status)return r(new Error("timeout"));var o={status:t.httpCode,data:zr(t.data),headers:Ka(t.headers)};n(o)}))}))}}]),e}();function Ka(e){if(!e)return e;var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=Array.isArray(r)?r.length>0?r[0]:void 0:r}return t}var Fa=function(e){var t=Ba(e,"Result-Status")||Ba(e,"result-status","");if(!t)return null;if(2e3==+t)return{success:!1,errorCode:Ar.API_NOT_LOGIN,errorMessage:wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(4001==+t)return{success:!1,errorCode:Ar.API_GATEWAY_TIMEOUT,errorMessage:wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(1e3!=+t){var n=Ba(e,"Tips")||Ba(e,"tips","");return{success:!1,errorCode:Ar.API_GATEWAY_ERROR,errorMessage:n?decodeURIComponent(n):wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t}}return null},Va={};function Wa(e,t,n){return qa.apply(this,arguments)}function qa(){return(qa=T(w().mark((function e(t,n,r){var o,i,a,s,u,c,l,h,f,d,p,g,v,m,y,_,E,S,T,A,P,R,L;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=b(b(b({},Va),r),{},{envInfo:b(b({},Va.envInfo),null==r?void 0:r.envInfo),headers:b(b({},Va.headers),null==r?void 0:r.headers)}),a=kr(i.tracker,i.scope),s=Nr(i.tracker,i.scope),i.hostSign){e.next=10;break}e.next=8;break;case 8:console.warn("[Antom SDK] request hostSign is missing, please set hostSign in request options or global options.");case 9:i.hostSign="SG";case 10:return"WAP"===(u=b(b({terminalType:Hr?"WAP":"WEB",browserInfo:{browserJavaScriptEnabled:!0,browserJavaEnabled:Ua(),browserLanguage:navigator.language,browserUserAgent:navigator.userAgent,browserColorDepth:screen.colorDepth},deviceLanguage:navigator.language,screenWidth:screen.width,screenHeight:screen.height,timeZoneOffset:(new Date).getTimezoneOffset()},null==i?void 0:i.envInfo),{},{locale:Sr((null==i?void 0:i.locale)||(null==i||null===(o=i.envInfo)||void 0===o?void 0:o.locale))})).terminalType&&(u.osType=Br?"IOS":"ANDROID"),c=[b(b({},n),{},{envInfo:u,extParams:b(b({},null==n?void 0:n.extParams),{},{refUrl:window.location.href})})],l=performance.now(),e.prev=14,h=Ja(t,i),e.next=18,h({data:c});case 18:if(f=e.sent,d=f.data,p=f.headers,g=d||{},v=Ba(p,"Mgw-TraceId")||Ba(p,"mgw-traceid",""),g.traceId=v,!(m=Fa(p))){e.next=29;break}throw y=m.errorMessage,_=m.errorCode,new Lr(y,_,"SERVER_API","".concat(v," (").concat(t,")"));case 29:if(g.success){e.next=36;break}throw T=g.errorMessage||g.resultMessage||wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),A=g.errorCode||(null===(E=g.errorContext)||void 0===E||null===(E=E.errorStack)||void 0===E||null===(E=E[0])||void 0===E?void 0:E.errorName)||"API_SYSTEM_ERROR","true"!==(null===(S=g.extendInfo)||void 0===S?void 0:S.mulityLanguageMapping)&&(T=wr.get({id:"server.".concat(A),defaultMessage:wr.get({id:"event.callback.code.${errorCode}",defaultMessage:wr.get({id:"ckp.paymentError.${errorCode}",defaultMessage:wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})})})})),(P=new Rr(T,A,"SERVER_API","".concat(v," (").concat(t,")"))).response=g,P;case 36:return a.success(t,performance.now()-l,v),e.abrupt("return",g);case 40:if(e.prev=40,e.t0=e.catch(14),!Lr.isError(e.t0)){e.next=45;break}return a.error(t,performance.now()-l,e.t0.message,e.t0.code,e.t0.traceId),e.abrupt("return",Promise.reject(e.t0));case 45:return L=e.t0,s(L),e.abrupt("return",Promise.reject(new Lr(L.message,null!==(R=L.message)&&void 0!==R&&R.includes("timeout")?"API_TIMEOUT":"API_SYSTEM_ERROR","SYSTEM","WithoutTraceId (".concat(t,")"))));case 48:case"end":return e.stop()}}),e,null,[[14,40]])})))).apply(this,arguments)}function Ja(e,t){var n,r=new Date,o=r.getTime()+60*r.getTimezoneOffset()*1e3,i=(null==t?void 0:t.env)||"prod",a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n={"com.ipay.iexpcashier.sdkAction.query":"com.ipay.iopensandbox.sdk.paymentSession.query"},r="SDK_MOCK_SANDBOX";if(n[e]&&"light_sandbox"===t)return{appId:r,operationType:n[e]}}(e,i),s=(null==t?void 0:t.baseURL)||function(e,t){var n;return"pre"===t||"sandbox"===t&&"pre"===(null===(n=window)||void 0===n||null===(n=n.marmotInjectInfo)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.toLocaleLowerCase())?{SG:"https://imgs-sea-pre.alipay.com/mgw.htm",US:"https://imgs-pre.alipay.com/mgw.htm",DE:"https://imgs-de-pre.alipay.com/mgw.htm",QK:"https://iopengw-qkgz99p.alipay.com/mgw.htm",ID:"https://imgs-id-pre.alipay.com/mgw.htm",SA:"https://imgs-sa-pre.alipay.com/mgw.htm"}[e||"SG"]:"prod"===t||"light_sandbox"===t||"sandbox"===t?{SG:"https://imgs-sea-global.alipay.com/mgw.htm",US:"https://imgs-na-global.alipay.com/mgw.htm",DE:"https://imgs-de-global.alipay.com/mgw.htm",QK:"https://imgs-qk.alipay.com/mgw.htm",ID:"https://imgs-id.alipay.com/mgw.htm",SA:"https://imgs-sa.alipay.com/mgw.htm"}[e||"SG"]:void 0}(null==t?void 0:t.hostSign,i)||Ha[i],u=b(y(y(y(y(y(y(y(y({appId:(null==t?void 0:t.appId)||(null==a?void 0:a.appId)||ja,workspaceId:"pre"===(null==t?void 0:t.env)?"pre":"default"},"x-cors-".concat(ja.toLowerCase(),"-default"),"1"),"version","2.0"),"sofa-group-name",null==t?void 0:t.groupId),"Operation-Type",(null==a?void 0:a.operationType)||e),"Client-Time",o),"tntInstId","ALIPW3SG"),"x-mago-timeout",(null==t?void 0:t.timeout)||15e3),"sdk-version",(null==t?void 0:t.sdkVersion)||"0.0.1783323899-dev.0"),null==t?void 0:t.headers);"dev"!==i&&delete u["sofa-group-name"],"sandbox"===i&&(u["load-test"]=!0,u.sofaPenAttrs="instMock=O&loadMode=2");var c,l=null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:15e3,h=Object.entries(u).filter((function(e){return void 0!==e[1]&&null!==e[1]&&"object"!==R(e[1])})).reduce((function(e,t){var n=P(t,2),r=n[0],o=n[1];return e[r]=String(o),e}),{}),f={baseURL:s,timeout:l,headers:u},d=null;"app"===Va.appType?d=new Ga({baseURL:s,method:"POST",timeout:l,headers:h}):d=xa.create(b(b({},f),{},{withCredentials:null===(c=null==t?void 0:t.withCredentials)||void 0===c||c,method:(null==t?void 0:t.method)||"POST"}));return d.request}Wa.setGlobalOptions=function(e){Object.assign(Va,e)};"".concat(window.location.origin,"/elements/src/pages");var Xa=Yr,Za=function(e){var t;if(!e)return{modernWeb:!1};var n=Xa(e),r=!(null==n||null===(t=n.flowSwitchTags)||void 0===t||!t.split(",").includes("elementV3"));var o=!(null==n||!n.modernWeb);return(r||o)&&console.log("isModernWeb ------------\x3e true"),{fromFrontend:o,modernWeb:r||o}};function Qa(e){if(!e)return e;var t=Za(e),n=t.fromFrontend,r=t.modernWeb;if(!n||!r)return e;var o=e.split("&&").slice(0,3),i=Xa(e);return null==i||delete i.modernWeb,o.concat(function(e){try{if(!e)return;var t=(new TextEncoder).encode(e),n=Array.from(t,(function(e){return String.fromCodePoint(e)})).join("");return btoa(n)}catch(e){return}}(JSON.stringify(i))).join("&&")}var $a=function(e){return Za(e).modernWeb},es=n(225),ts=n(242),ns=n(994);function rs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ns.apply(void 0,[{},e].concat(n))}var os=new ce({appId:"180020050100012557",performance:!1,error:!1,env:"DEV"}),is="7981",as=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){os.log(b({code:"".concat(is).concat(e)},t))}},ss=as(),us=as("event"),cs=as("mount"),ls=as("handshake"),hs=as("merchant"),fs=(as("element"),function(e,t,n,r){var o;if("ERROR"===e){var i=r||{};ss({msg:i.code||n,d1:t,d2:i.reason,d3:i.stack,d4:i.traceId,d5:i.operationType,d6:n})}else{if(n.includes(":HOST:")||n.includes(":WEBAPP:")){var a=n.split(":"),s=P(a,3),u=s[0],c=s[1],l=s[2];us({msg:l,d1:t,d2:u,d3:c,d4:JSON.stringify(r),d5:"无",d6:e})}}null===(o=window.sdkDebugger)||void 0===o||o.log(e,t,n,r)}),ds=function(e){if(e){var t=function(e){var t=e.message,n=e.traceId,r=e.code,o=e.source,i=e.stack,a=e.reason;if("SERVER_API"===e.source){var s=(null==n?void 0:n.match(/([a-z0-9\sA-Z]*)(\s*\(([a-zA-Z0-9\.]*)\))?/))||[],u=P(s,4),c=(u[0],u[1]),l=(u[2],{code:r,source:o,message:t,operationType:u[3],traceId:(null==c?void 0:c.replace(/\s/g,""))||"无traceID",stack:i,reason:a});return JSON.parse(JSON.stringify(l))}return e}(O.isError(e)?e.toJSON():e);fs("ERROR",t.source,t.operationType||t.message||"Unknown Error",t)}},ps=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),y(f(e),"name","SDKInternalError"),e}return l(n)}(O),gs=function(e){p(n,e);var t=v(n);function n(e){return u(this,n),t.call(this,"HOST",e)}return l(n,[{key:"_transferReceivePort",value:function(e){es(ts(n.prototype),"_transferReceivePort",this).call(this,e)}},{key:"_addPort",value:function(e){es(ts(n.prototype),"_addPort",this).call(this,e)}},{key:"_transferSendPort",value:function(e){es(ts(n.prototype),"_transferSendPort",this).call(this,e)}},{key:"setTarget",value:function(e){es(ts(n.prototype),"setTarget",this).call(this,e)}},{key:"setDebugCallback",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=es(ts(n.prototype),"setDebugCallback",this)).call.apply(e,[this].concat(r))}}],[{key:"getGlobalBridge",value:function(){return se.getGlobalBridge("HOST")}}]),n}(se),vs=function(e){p(n,e);var t=v(n);function n(e,r,o){var i;return u(this,n),i=t.call(this,e,r,o||"SDK_USAGE"),y(f(i),"name","MountError"),i}return l(n)}(ps),ms=function(){function e(t,n){u(this,e),y(this,"name",void 0),y(this,"_elementMode",void 0),y(this,"_isMainElement",void 0),y(this,"config",void 0),y(this,"bridge",void 0),y(this,"hooks",{}),y(this,"iframe",null),y(this,"status",void 0),y(this,"cachedSend",[]),this.config=n,this._isMainElement=n.isMainElement,this._elementMode=n.elementMode,this.name=t,this.bridge=new gs(t),this.bridge.setOrigin(n.targetOrigin),n.trackId&&os.setTrackId(n.trackId),this.config.debug&&this.bridge.setDebugCallback((function(e,t){var n,r;e.type.endsWith(ne.UPDATE_CONFIG)||e.type.endsWith(ne.HEIGHT_UPDATE)||(e.type.endsWith(ne.MESSAGE)?fs(null===(n=e.payload)||void 0===n?void 0:n.type,"APP_RUNTIME",e.type,null===(r=e.payload)||void 0===r?void 0:r.message):e.type.endsWith(ne.ERROR)&&"IN"===t?ds(e.payload):fs("INFO","OUT"===t?"SDK_INTERNAL":"APP_RUNTIME",e.type,e.payload))})),this.status="initialized"}var t,n,r,o,i;return l(e,[{key:"submit",value:function(e){throw new ps("This element not support submit","NOT_SUPPORT_SUBMIT","SDK_USAGE")}},{key:"setup",value:(i=T(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",void 0);case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"mount",value:(o=T(w().mark((function e(t){var n,r,o,i,a=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("initialized"===this.status||"unmounted"===this.status){e.next=4;break}throw n=new vs({message:"element status is ".concat(this.status,", can not mount again"),params:{status:this.status}},"MOUNT_NOT_SUPPORT"),ds(n),n;case 4:return r=Date.now(),o=X((function(){return Promise.all([a.setup(),a._mount(t)])}),15e3,new vs("Mount timeout","MOUNT_TIMEOUT","SYSTEM")),i=Q((function(){cs({msg:a.name,d1:"用户退出页面",m1:0,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0})})),e.abrupt("return",o().then((function(e){var t=P(e,1)[0];hs({msg:a.name,d1:(null==t?void 0:t.merchantId)||"未配置的商户"}),cs({msg:a.name,d1:"挂载成功",m1:1,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0}),a.bridge.send(ne.HANDSHAKE,rs(a.config.appConfig,t||{}))})).catch((function(e){a.unmount();var t=ps.unificationError(e);throw cs({msg:a.name,d1:"挂载失败",d2:t.code,d3:t.reason,m1:0,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0}),ds(t),t})).finally((function(){i()})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"_mount",value:(r=T(w().mark((function e(t){var n=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=T(w().mark((function e(r,o){var i,a,s,u,c,l,h,f,d,p;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.isMainElement||!n.isSingleMode){e.next=2;break}return e.abrupt("return",o(new vs({message:"".concat(n.name," element can not be used with single mode"),params:{elementName:n.name}},"MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE")));case 2:if(e.prev=2,t){e.next=5;break}return e.abrupt("return",o(new vs("container missing","MOUNT_MISSING_CONTAINER")));case 5:i=n.config.appUrl,a=new URL(n.config.appUrl),s=[["origin",window.location.origin],["locale",n.config.locale]].concat(C(n.config.trackId?[["track_id",n.config.trackId]]:[]));try{s.forEach((function(e){var t=P(e,2),n=t[0],r=t[1];return a.searchParams.set(n,r)})),i=a.toString()}catch(e){u=i.includes("?")?"&":"?",c=s.map((function(e){var t=P(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat(encodeURIComponent(r))})).join("&"),i="".concat(i).concat(u).concat(c)}(l=t.querySelector("#sdk-loading"))&&(l.style.display=""),n.status="mounting",n.iframe||(n.iframe=document.createElement("iframe"),n.iframe.src=i,n.iframe.style.width="100%",n.iframe.style.border="none",n.iframe.style.height="0",n.iframe.style.borderRadius="inherit",n.iframe.style.transition="height 0.3s ease",n.iframe.style.colorScheme=null!==(h=n.config.colorScheme)&&void 0!==h?h:"light dark",n.iframe.allow="payment",n.bridge.on(ne.HEIGHT_UPDATE,(function(e){n.iframe&&(n.iframe.style.height="".concat(e,"px"))}))),f=Date.now(),d="*";try{"null"===(d=new URL(n.iframe.src).origin)&&(d="*")}catch(e){d="*"}n.bridge.setOrigin(d),p=function(){var e;if(l&&(l.style.display="none"),"mounted"!==n.status&&"ready"!==n.status){if(null===(e=n.iframe)||void 0===e||!e.contentWindow)return r();fs("INFO","SYSTEM","Iframe ".concat(n.name," loaded, initiating handshake...")),n.status="mounted",n.bridge.setTarget(n.iframe.contentWindow);var t=Date.now();n.bridge.once(ne.HANDSHAKE_ACK,(function(e){n.status="ready",n.cachedSend.length&&(n.cachedSend.forEach((function(e){var t=e.type,r=e.payload;n.bridge.send(t,r)})),n.cachedSend=[]),ls({msg:n.name,d1:(null==e?void 0:e.version)||"未知版本",m1:Math.round(Date.now()-t),m2:1,m3:Math.round(Date.now()-f)})})),r()}},n.bridge.once(ne.READY_HANDSHAKE,(function(){p()})),n.iframe.onerror=function(e){o(new vs("Iframe load error: ".concat(e),"MOUNT_IFRAME_LOAD_ERROR","SYSTEM"))},t.appendChild(n.iframe),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(2),o(new vs("Initialization crashed: ".concat(e.t0.message),"MOUNT_INITIAL_FAILED","SDK_INTERNAL"));case 24:case"end":return e.stop()}}),e,null,[[2,21]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"updateConfig",value:(n=T(w().mark((function e(t){var n,r,o,i=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"destroyed"!==this.status){e.next=3;break}throw new ps("Element already destroyed, cannot update destroyed SDK instance","ELEMENT_INSTANCE_DESTROYED","SDK_USAGE");case 3:if("ready"===this.status){e.next=5;break}throw new ps({message:"Element is { status }, it is not ready, cannot update config",params:{status:this.status}},"UPDATE_CONFIG_NOT_READY","SDK_USAGE");case 5:return this.config.appConfig=rs(this.config.appConfig,t),fs("INFO","SDK_USAGE","Updating configuration via API",t),n=function(){},r=X((function(){return new Promise((function(e){n=i.bridge.once(ne.UPDATE_CONFIG_REPLY,(function(t){e(t)})),i.bridge.send(ne.UPDATE_CONFIG,{merged:i.config.appConfig,updated:t})}))}),3e3,new ps("Update config timeout","UPDATE_CONFIG_TIMEOUT","SYSTEM")),e.abrupt("return",r().catch((function(e){return n(),{error:ps.unificationError(e).toJSON()}})));case 12:return e.prev=12,e.t0=e.catch(0),o=ps.unificationError(e.t0),e.abrupt("return",Promise.resolve({error:o.toJSON()}));case 16:case"end":return e.stop()}}),e,this,[[0,12]])}))),function(e){return n.apply(this,arguments)})},{key:"unmount",value:function(){"mounted"===this.status||"ready"===this.status?(this.status="unmounted",this.iframe&&this.iframe.parentNode&&(this.iframe.style.height="0",this.iframe.parentNode.removeChild(this.iframe))):fs("WARN","SDK_USAGE","element status is ".concat(this.status,", can not unmount, please check the usage. only mounted or ready status can unmount"))}},{key:"isSingleMode",get:function(){return"SINGLE"===this._elementMode}},{key:"on",value:function(e,t){this.bridge.on(e,t)}},{key:"send",value:function(e,t){"destroyed"!==this.status?"ready"===this.status?this.bridge.send(e,t):this.cachedSend.push({type:e,payload:t}):ds(new ps("element status is ".concat(this.status,", can not send message"),"ELEMENT_INSTANCE_DESTROYED","SDK_USAGE"))}},{key:"_addPort",value:function(e){!this.isSingleMode&&this.isMainElement&&this.bridge._addPort(e)}},{key:"_transferReceivePort",value:function(e){!this.isSingleMode&&this.isMainElement&&this.bridge._transferReceivePort(e)}},{key:"_transferSendPort",value:function(e){this.isSingleMode||this.isMainElement||this.bridge._transferSendPort(e)}},{key:"_submit",value:(t=T(w().mark((function e(t){var n=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("HOST"===this.bridge.mode){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("submit method only available in HOST mode")));case 2:return this.send(ne.SUBMIT,t),e.abrupt("return",new Promise((function(e){n.bridge.once(ne.SUBMIT_REPLY,(function(t){e(t)}))})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"destroy",value:function(){var e;"ready"===this.status||"mounted"===this.status?(null===(e=this.hooks.ondestroy)||void 0===e||e.forEach((function(e){return e()})),this.hooks={},this.bridge.destroy(),this.unmount(),this.status="destroyed"):fs("WARN","SDK_USAGE","element status is ".concat(this.status,", can not destroy, please check the usage. only mounted or ready status can destroy"))}},{key:"isMainElement",get:function(){return this._isMainElement}},{key:"_addHook",value:function(e,t){var n,r=this;return this.hooks[e]||(this.hooks[e]=[]),null===(n=this.hooks[e])||void 0===n||n.push(t),function(){var n;r.hooks[e]=null===(n=r.hooks[e])||void 0===n?void 0:n.filter((function(e){return e!==t}))}}}]),e}();y(ms,"elementType",void 0);E()(E()(E()({},Pr),{GENERATE_ELEMENT_KEY_FAILED:"GENERATE_ELEMENT_KEY_FAILED",ELEMENT_INIT_FAILED:"ELEMENT_INIT_FAILED",MOUNT_TIMEOUT:"MOUNT_TIMEOUT",MOUNT_MISSING_CONTAINER:"MOUNT_MISSING_CONTAINER",MOUNT_IFRAME_LOAD_ERROR:"MOUNT_IFRAME_LOAD_ERROR",MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE:"MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE",MOUNT_NOT_SUPPORT:"MOUNT_NOT_SUPPORT",MOUNT_INITIAL_FAILED:"MOUNT_INITIAL_FAILED",ELEMENT_INSTANCE_DESTROYED:"ELEMENT_INSTANCE_DESTROYED",ELEMENT_DEFINE_ERROR:"ELEMENT_DEFINE_ERROR",ELEMENT_ALREADY_REGISTERED:"ELEMENT_ALREADY_REGISTERED",CANNOT_CREATE_SAME_ELEMENT_TWICE:"CANNOT_CREATE_SAME_ELEMENT_TWICE",GROUPS_ONLY_ONE_MAIN_ELEMENT:"GROUPS_ONLY_ONE_MAIN_ELEMENT",GROUPS_NOT_FOUND_MAIN_ELEMENT:"GROUPS_NOT_FOUND_MAIN_ELEMENT",NOT_SUPPORT_ELEMENT:"NOT_SUPPORT_ELEMENT",NOT_SUPPORT_SUBMIT:"NOT_SUPPORT_SUBMIT",UPDATE_CONFIG_TIMEOUT:"UPDATE_CONFIG_TIMEOUT",UPDATE_CONFIG_NOT_READY:"UPDATE_CONFIG_NOT_READY",INVALID_MODAL_URL:"INVALID_MODAL_URL",LOAD_DEBUGGER_FAILED:"LOAD_DEBUGGER_FAILED"}),{},{NOT_FIND_MAINELEMENT:"NOT_FIND_MAINELEMENT",SESSION_DATA_INVALID:"SESSION_DATA_INVALID",SDK_LAUNCH_PAYMENT_APP_ERROR:"SDK_LAUNCH_PAYMENT_APP_ERROR",PARAM_INVALID:"PARAM_INVALID",CHANNEL_CLIENT_ID_QUERY_TIMEOUT:"CHANNEL_CLIENT_ID_QUERY_TIMEOUT",CHANNEL_CLIENT_ID_MISSING:"CHANNEL_CLIENT_ID_MISSING",CHANNEL_CLIENT_ID_QUERY_FAILED:"CHANNEL_CLIENT_ID_QUERY_FAILED",CHANNEL_CLIENT_ID_QUERY_ERROR:"CHANNEL_CLIENT_ID_QUERY_ERROR",CHECKOUT_NOT_READY:"CHECKOUT_NOT_READY",PAYMENT_IN_PROGRESS:"PAYMENT_IN_PROGRESS",AMOUNT_VALUE_EMPTY:"AMOUNT_VALUE_EMPTY",AMOUNT_VALUE_INVALID:"AMOUNT_VALUE_INVALID"});var ys=function(e){g()(n,e);var t=m()(n);function n(){var e;c()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),_()(d()(e),"name","AntomSDKError"),e}return h()(n)}(Rr),_s={default:{theme:"light",backgroundColor:"#ffffff"},light:{theme:"light",backgroundColor:"#ffffff"},night:{theme:"dark",backgroundColor:"#141935"},agateGreen:{theme:"dark",backgroundColor:"#344343"},nostalgicGray:{theme:"light",backgroundColor:"#e8e8e8"},gamingPurple:{theme:"dark",backgroundColor:"#070b29"},cherryBlossomPink:{theme:"light",backgroundColor:"#FFFCFD"}};function bs(e,t){var n;if(!e)throw new ys("sessionData is required","SESSION_DATA_INVALID","SDK_USAGE");fs("INFO","SDK_USAGE","Setup called with sessionData:",{sessionData:e});var r=Xa(e);if(!r)throw new ys("Failed to parse sessionData, please check the sessionData","SESSION_DATA_INVALID","SDK_USAGE");var o=null===(n=r.paymentSessionConfig)||void 0===n?void 0:n.productScene;if(t&&o!==t)throw new ys("Invalid productScene in sessionData, expected ".concat(t,", but get ").concat(o,", please check the sessionData is correct?"),"SESSION_DATA_INVALID","SDK_USAGE");return r}var Es="ams-popup",ws=300,Ss="ams-component-popup-loading",Ts="\n .".concat(Es,"modal {\n /* 添加弹窗样式 */\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 9999; /* 设置弹窗的层级为 9999 */\n overflow: hidden;\n }\n .").concat(Es,"modal-mobile{\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n bottom: 0;\n left: 0%;\n z-index: 9999; /* 设置弹窗的层级为 9999 */\n overflow: hidden;\n }\n\n .").concat(Es,"overlay {\n /* 添加蒙层样式 */\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n }\n\n .").concat(Es,"fadeIn {\n /* 添加淡入动画 */\n animation: fadeIn ").concat(ws,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(Es,"fadeOut {\n /* 添加淡出动画 */\n animation: fadeOut ").concat(ws,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(Es,"-drawer-enter {\n animation: slideIn ").concat(ws,"ms forwards;\n }\n\n @keyframes slideIn {\n from {\n transform: translateY(100%); /* 滑入时在视口底部外 */\n opacity: 0; /* 初始透明度为 0 */\n }\n to {\n transform: translateY(0); /* 滑入结束时在原位置 */\n opacity: 1; /* 结束时透明度为 1 */\n }\n }\n\n /* 抽屉从底部滑出 */\n .").concat(Es,"-drawer-exit {\n animation: slideOut ").concat(ws,'ms forwards;\n }\n\n @keyframes slideOut {\n from {\n transform: translateY(0); /* 滑出时从当前位置开始 */\n opacity: 1; /* 初始透明度为 1 */\n }\n to {\n transform: translateY(100%); /* 滑出结束时在视口底部外 */\n opacity: 0; /* 结束时透明度为 0 */\n }\n }\n\n /* 定义淡入动画 */\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-webkit-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-moz-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n /* 定义淡出动画 */\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-webkit-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-moz-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n\n.ams-component-popup-loading {\n width: 0.8em;\n height:0.8em;\n border-radius: 8px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.ams-component-popup-loading .line {\n width: 40px;\n height: 40px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-popup-loading .line div {\n position: absolute;\n left: 17.67px;\n top: 0;\n width: 5.33px;\n height: 40px;\n}\n\n.ams-component-popup-loading .line div:before,\n.ams-component-popup-loading .line div:after {\n content: \'\';\n display: block;\n height: 13.33px;\n background: black;\n border-radius: 5.3px;\n}\n.ams-component-popup-loading .line div:after {\n margin-top: 13.33px;\n}\n\n.ams-component-popup-loading .line div:nth-child(2) {\n -webkit-transform: rotate(45deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(3) {\n -webkit-transform: rotate(90deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(4) {\n -webkit-transform: rotate(135deg);\n}\n\n/** 加载动画 **/\n@-webkit-keyframes load {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-popup-loading-logo {\n width: 0.44em;\n height: 0.44em;\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg);\n -webkit-transition:-webkit-transform 1s linear;\n transition:transform 1s linear;\n animation: ams-component-loading-logo 1s linear infinite;\n}\n'),As=function(e,t){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",t="\n .ams-component-popup-loading .line div:before,\n .ams-component-popup-loading .line div:after {\n background: ".concat("light"===e?"#000000":"#ffffff"," !important;\n }"),n=document.createElement("style");n.innerHTML=t,document.head.appendChild(n)}(e);var n=document.createElement("div");return null==n||n.classList.add(Ss),n.id=Ss,n.innerHTML='<div class="line"><div></div><div></div><div></div><div></div></div><span id="text" style="font-size: 16px;position:absolute;bottom: 0;white-space: nowrap">'.concat(t||"","</span>"),n.style.fontSize="".concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:390,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:130,n=document.documentElement.clientWidth,r=jr?t:100*n/e;return Math.min(r,t)}(),"px"),n};var Ps=function(e){var t=e.mode,n=e.url,r=e.loadingConfig,o=e.showClose,i=void 0===o||o,a=e.hideCloseWhenLoaded,s=void 0===a||a,u=e.onClose,c=e.textDirection,l=void 0===c?"ltr":c,h=e.showLoading,f=void 0===h||h,d=document.createElement("div");d.classList.add("".concat(Es,"overlay"),"".concat(Es,"fadeIn"));var p=document.createElement("div");"desktop"===t?(p.classList.add("".concat(Es,"modal"),"".concat(Es,"fadeIn")),p.style.width="656px",p.style.height="620px",p.style.borderRadius="12px"):(p.classList.add("".concat(Es,"modal-mobile"),"".concat(Es,"-drawer-enter")),p.style.width="100%",p.style.height="80vh",p.style.borderRadius="12px 12px 0 0"),p.setAttribute("dir",l);var g=function(e,t,n){return function(){t&&(t.classList.remove("".concat(Es,"fadeIn")),t.classList.add("".concat(Es,"fadeOut")),"desktop"===e?(n.classList.remove("".concat(Es,"fadeIn")),n.classList.add("".concat(Es,"fadeOut"))):(n.classList.remove("".concat(Es,"-drawer-enter")),n.classList.add("".concat(Es,"-drawer-exit"))),setTimeout((function(){var e,r;null===(e=t.parentNode)||void 0===e||e.removeChild(t),null===(r=n.parentNode)||void 0===r||r.removeChild(n)}),ws))}}(t,d,p),v=document.createElement("iframe");v.src=n,v.style.border="none",v.style.width="100%",v.style.height="100%";var m,y=r||{},_=y.theme,b=void 0===_?"light":_,E=y.backgroundColor,w=void 0===E?"#ffffff":E,T=As(b);if(v.addEventListener("load",(function e(){p.removeChild(T),v.removeEventListener("load",e)})),i){var P=function(e){var t=e.onClose,n=e.textDirection,r=document.createElement("div");r.style.position="absolute","rtl"===n?r.style.left="16px":r.style.right="16px",r.style.top="23px",r.style.cursor="pointer";var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("width","16"),o.setAttribute("height","16"),o.setAttribute("viewBox","0 0 16 16"),o.setAttribute("fill","none");var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill-rule","evenodd"),i.setAttribute("clip-rule","evenodd"),i.setAttribute("d","M13.0449 2.99894L12.9494 2.91165L12.8685 2.85222L12.7802 2.7996C12.3611 2.57499 11.8556 2.64328 11.5228 2.9763L7.99909 6.50088L4.48854 2.99028L4.44701 2.95034C4.0098 2.57169 3.38048 2.57202 2.99838 2.9525L2.92363 3.03297L2.85175 3.12897L2.79916 3.21735C2.57471 3.63642 2.64292 4.14198 2.9757 4.47491L6.50186 8.00046L2.95226 11.5518C2.57141 11.9917 2.57173 12.6211 2.95197 13.0033L3.0324 13.078L3.12837 13.15L3.21674 13.2026C3.63573 13.4272 4.14123 13.3589 4.47407 13.0259L7.99909 9.49935L11.5474 13.0494C11.9944 13.4368 12.6238 13.4235 13.0212 13.0259L13.0922 12.9471L13.1559 12.8595C13.4298 12.4403 13.3789 11.8852 13.0211 11.5272L9.497 8.00115L13.0052 4.4915L13.07 4.4225C13.4304 4.00477 13.4199 3.37582 13.0449 2.99894Z"),i.setAttribute("fill","#ABB9CC"),o.appendChild(i),r.appendChild(o),r.onclick=t,r}({onClose:(m=!1,A()(S()().mark((function e(){var t,n;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m){e.next=2;break}return e.abrupt("return");case 2:return null===(t=T.parentNode)||void 0===t||t.removeChild(T),p.removeChild(v),n=As(b,wr.get({defaultMessage:"closing",id:"antom.common.closing"})),p.appendChild(n),m=!0,e.prev=7,e.next=10,null==u?void 0:u();case 10:return e.prev=10,m=!1,e.finish(10);case 13:g();case 14:case"end":return e.stop()}}),e,null,[[7,,10,13]])})))),textDirection:l});s&&v.addEventListener("load",(function e(){p.removeChild(P),v.removeEventListener("load",e)})),p.appendChild(P)}if(f){p.style.backgroundColor=w,v.style.backgroundColor=w;v.addEventListener("load",(function e(){var t;null===(t=T.parentNode)||void 0===t||t.removeChild(T),v.removeEventListener("load",e)})),p.appendChild(T)}p.appendChild(v);var R,L=document.getElementsByTagName("body")[0];return(R=document.createElement("style")).innerHTML=Ts,document.head.appendChild(R),L.appendChild(d),L.appendChild(p),{iframe:v,destroy:g}};function Rs(e){return Ls.apply(this,arguments)}function Ls(){return(Ls=A()(S()().mark((function e(t){var n;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return n=e.sent,e.abrupt("return",{error:void 0,data:n});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{error:ys.unificationError(e.t0).toJSON(),data:void 0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function ks(e,t){return Ns.apply(this,arguments)}function Ns(){return(Ns=A()(S()().mark((function e(t,n){return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Wa("com.ipay.iexpfront.one.account.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Os(e,t){return Is.apply(this,arguments)}function Is(){return(Is=A()(S()().mark((function e(t,n){return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Wa("com.ipay.iexpcashier.sdkAction.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Cs="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",Ms=null;var Ds=function(){function e(t){c()(this,e),_()(this,"opts",void 0),_()(this,"session",null),_()(this,"settled",!1),_()(this,"phase","idle"),_()(this,"cancelReason",null),_()(this,"modalCloseHandler",null),this.opts=t}var t;return h()(e,[{key:"startPay",value:(t=A()(S()().mark((function e(){var t,n,r,o,i,a,s,u=this;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.settled=!1,this.phase="idle",this.cancelReason=null,(i=this.opts.paymentRequest).version&&Array.isArray(i.supportedNetworks)&&0!==i.supportedNetworks.length&&Array.isArray(i.merchantCapabilities)&&0!==i.merchantCapabilities.length&&i.countryCode&&i.currencyCode&&null!==(t=i.total)&&void 0!==t&&t.label&&null!==(n=i.total)&&void 0!==n&&n.amount){e.next=8;break}throw console.warn("[ApplePay] Required Apple Pay fields are missing"),{errorCode:"APPLE_PAY_MISSING_DATA"};case 8:return e.next=10,Ms||(Ms=new Promise((function(e){if(Ur)return e(!1);if(window.ApplePaySession)return e(!0);var t=document.querySelector('script[src="'.concat(Cs,'"]'));if(t)return t.addEventListener("load",(function(){return e(!0)})),void t.addEventListener("error",(function(){return e(!1)}));var n=document.createElement("script");n.src=Cs,n.onload=function(){return e(!0)},n.onerror=function(){return e(!1)},document.head.appendChild(n)})),Ms);case 10:if(a=e.sent,s=window.ApplePaySession,a&&s){e.next=16;break}throw console.warn("[ApplePay] Apple Pay SDK not available on host"),{errorCode:"APPLE_PAY_NOT_SUPPORTED"};case 16:if(null!==(r=s.canMakePayments)&&void 0!==r&&r.call(s)&&null!==(o=s.supportsVersion)&&void 0!==o&&o.call(s,i.version)){e.next=20;break}throw console.warn("[ApplePay] canMakePayments=false (version=".concat(i.version,")")),{errorCode:"APPLE_PAY_NOT_SUPPORTED"};case 20:e.prev=20,this.session=new s(i.version,this.buildSessionParams()),e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(20),console.warn("[ApplePay] ApplePaySession constructor failed:",e.t0),{errorCode:"APPLE_PAY_NOT_SUPPORTED"};case 29:return e.abrupt("return",new Promise((function(e,t){var n=function(n){u.settled||(u.settled=!0,u.clearModalCloseListener(),n?t(n):e())};u.session.onvalidatemerchant=function(){var e=A()(S()().mark((function e(t){var r,o;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.phase="validating",e.prev=1,e.next=4,u.opts.callbacks.validateMerchant(null==t?void 0:t.validationURL);case 4:if(r=e.sent){e.next=7;break}throw{errorCode:"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED"};case 7:u.phase="validated",u.session.completeMerchantValidation(r),e.next=21;break;case 11:if(e.prev=11,e.t0=e.catch(1),u.phase="idle",!u.settled){e.next=17;break}return u.safeAbort(),e.abrupt("return");case 17:o=(null===e.t0||void 0===e.t0?void 0:e.t0.errorCode)||"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED",console.warn("[ApplePay] validateMerchant failed:",e.t0),n({errorCode:o}),u.safeAbort();case 21:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}(),u.session.onpaymentauthorized=function(){var e=A()(S()().mark((function e(t){var r,o,i,a,c,l,h;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.phase="authorizing",r=(null==t?void 0:t.payment)||{},o=r.token,i=r.billingContact,a=r.shippingContact,o){e.next=7;break}return u.safeComplete(s.STATUS_FAILURE),n({errorCode:"APPLE_PAY_TOKEN_ERROR"}),e.abrupt("return");case 7:return e.prev=7,e.next=10,u.opts.callbacks.onAuthorized({token:o,billingContact:i,shippingContact:a});case 10:(c=e.sent).success?(u.safeComplete(s.STATUS_SUCCESS),n()):("MERCHANT_CONFIRM_ABORT"===c.errorCode&&(u.cancelReason="MERCHANT_ABORT"),u.safeComplete(s.STATUS_FAILURE),l=c.errorCode||"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED",c.errorMessage&&console.warn("[ApplePay] onAuthorized returned failure:",c.errorMessage),n({errorCode:l})),e.next=20;break;case 14:e.prev=14,e.t0=e.catch(7),u.safeComplete(s.STATUS_FAILURE),h=(null===e.t0||void 0===e.t0?void 0:e.t0.errorCode)||"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED",console.warn("[ApplePay] onAuthorized threw:",e.t0),n({errorCode:h});case 20:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t){return e.apply(this,arguments)}}(),u.session.oncancel=function(){return"MERCHANT_ABORT"===u.cancelReason?(u.phase="idle",void n({errorCode:"MERCHANT_CONFIRM_ABORT"})):"validating"===u.phase||"validated"===u.phase?(u.phase="idle",void n({errorCode:"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED"})):(u.phase="idle",void n({errorCode:"APPLE_PAY_CANCEL"}))};try{u.session.begin()}catch(e){return console.warn("[ApplePay] ApplePaySession.begin() failed:",e),void n({errorCode:"APPLE_PAY_NOT_SUPPORTED"})}u.opts.enableModalCloseListener&&u.attachModalCloseListener((function(){u.safeAbort(),n({errorCode:"APPLE_PAY_CANCEL"})}))})));case 30:case"end":return e.stop()}}),e,this,[[20,24]])}))),function(){return t.apply(this,arguments)})},{key:"buildSessionParams",value:function(){var e=this.opts.paymentRequest,t={countryCode:e.countryCode,currencyCode:e.currencyCode,merchantCapabilities:e.merchantCapabilities,supportedNetworks:e.supportedNetworks,requiredBillingContactFields:e.requiredBillingContactFields,requiredShippingContactFields:e.requiredShippingContactFields,total:e.total};return e.lineItems&&e.lineItems.length>0&&(t.lineItems=e.lineItems),e.recurringPaymentRequest&&(t.recurringPaymentRequest=e.recurringPaymentRequest),t}},{key:"safeAbort",value:function(){try{var e,t;null===(e=this.session)||void 0===e||null===(t=e.abort)||void 0===t||t.call(e)}catch(e){}}},{key:"safeComplete",value:function(e){try{var t,n;null===(t=this.session)||void 0===t||null===(n=t.completePayment)||void 0===n||n.call(t,e)}catch(e){}}},{key:"attachModalCloseListener",value:function(e){var t,n=document.querySelector("apple-pay-modal"),r=(null==n||null===(t=n.shadowRoot)||void 0===t?void 0:t.querySelector(".modal-close-button"))||null;if(r){var o=function(){e()};r.addEventListener("click",o,{once:!0}),this.modalCloseHandler={el:r,fn:o}}}},{key:"clearModalCloseListener",value:function(){this.modalCloseHandler&&(this.modalCloseHandler.el.removeEventListener("click",this.modalCloseHandler.fn),this.modalCloseHandler=null)}}]),e}()}(),r}()}));
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return function(){var e={306:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=void 0,t.createSingletonInstance=u,t.createInstance=c,t.createLoader=function(e){var t=this,n=e.sdkURL,s=e.globalName,l=e.timeout,h=void 0===l?2e4:l,f=e.onLoadComplete,d=e.onError,p=e.onLoadStart,g=e.onInitialized,v=e.single,m=void 0===v||v,y=e.namespace;return function(e){return r(t,void 0,void 0,(function(){var t,l,v=this;return o(this,(function(_){var b,E;return null==p||p(),t=Date.now(),i.tracker.log({code:"7988",msg:y,d1:"loadStart",d2:"无",d3:"无",d4:"无",d5:"npm",m1:0,m2:0}),b=function(){return(0,a.loadScriptClass)(n,s)},E=h,l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Promise.race([new Promise((function(e,t){setTimeout((function(){t(new a.LoaderError("LOAD_TIMEOUT","Load timeout: ".concat(E)))}),E)})),b.apply(void 0,e)])},[2,l().then((function(n){return r(v,[n],void 0,(function(n){var r,l,h,d=n.variable,p=n.cache;return o(this,(function(n){switch(n.label){case 0:if(r=Date.now(),p||i.tracker.log({code:"7988",msg:y,d1:"loadComplete",d2:"无",d3:"无",d4:(null==d?void 0:d.version)||"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==f||f(),!d)throw new a.LoaderError("NO_REMOTE_CLASS","No variables ".concat(s," were found. Cannot be initialized the Class ").concat(s));n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(m?u:c)(d,e,void 0)];case 2:return l=n.sent(),i.tracker.log({code:"7988",msg:y,d1:"initialized",d2:"无",d3:"无",d4:l.version||"无版本号",d5:"npm",m1:Math.round(Date.now()-t),m2:Math.round(Date.now()-r)}),null==g||g(l,window.location.href),[2,l];case 3:throw h=n.sent(),new a.LoaderError("INIT_ERROR","Initialize Class ".concat(s," failed: ").concat(h.message));case 4:return[2]}}))}))})).catch((function(e){var n=a.LoaderError.unificationError(e);return i.tracker.log({code:"7988",msg:y,d1:"createError",d2:n.code,d3:n.message,d4:"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==d||d(n),Promise.reject(e)}))]}))}))}};var i=n(611),a=n(880);Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return a.loadScript}});var s=null;function u(e,t,n){return s||(s=c(e,t,n))}function c(e,t,n){var r=new e(t),o=Date.now();return r.init().then((function(e){return n&&i.tracker.log({code:"7988",msg:n,d1:"initialized",d2:"无",d3:"无",d4:r.version||"无版本号",d5:"umd",m1:Math.round(Date.now()-o),m2:Math.round(Date.now()-o)}),e})).catch((function(e){var t=new a.LoaderError("INIT_ERROR","Initialize Class failed: ".concat(e.message));throw n&&i.tracker.log({code:"7988",msg:n,d1:"createError",d2:t.code,d3:t.message,d4:"无",d5:"umd",m1:Math.round(Date.now()-o),m2:0}),t}))}},611:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.tracker=t.ScriptTracker=void 0;var i=n(880),a=function(){function e(e){var t=this;Object.defineProperty(this,"initOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracker",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.initOptions=e,this.loadTacker().then((function(e){t.tracker=e}))}return Object.defineProperty(e.prototype,"loadTacker",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return(0,i.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-opensdk-debugger/1.0.1/dist/tracker.umd.js","intlSdkTracker").then((function(t){var n;return null===(n=null==t?void 0:t.variable)||void 0===n?void 0:n.getTrackerInstance(e.initOptions)}))}}),Object.defineProperty(e.prototype,"getTracker",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return this.tracker?[2,this.tracker]:[4,this.loadTacker()];case 1:return(e=t.sent())&&(this.tracker=e),[2,e]}}))}))}}),Object.defineProperty(e.prototype,"safeCall",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.getTracker().then(e)}}),Object.defineProperty(e.prototype,"log",{enumerable:!1,configurable:!0,writable:!0,value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeCall((function(t){return null==t?void 0:t.log.apply(t,e)}))}}),e}();t.ScriptTracker=a;var s=(null==="DEV"?void 0:"DEV".toUpperCase())||"PROD",u=["DEV","SIT","PRE","PROD","LOCAL"].includes(s)?s:"PROD";t.tracker=new a({appId:"180020050100012557",env:u,server:"sg",performance:!1,error:!1})},880:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=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])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderError=void 0,t.loadScriptClass=function(e,t){return i(e,t)},t.loadScript=i;var o=function(e){function t(t,n){var r=e.call(this,n)||this;return Object.defineProperty(r,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r.name="LoaderError",r.code=t,r}return r(t,e),Object.defineProperty(t,"unificationError",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e instanceof t||e instanceof Error&&"LoaderError"===e.name?e:new t("UNKNOWN_ERROR",e instanceof Error?e.message:"An unknown error occurred.")}}),t}(Error);function i(e,t){var n=function(){if("function"==typeof t)return t();var e=window[t];return(null==e?void 0:e.default)||e};return new Promise((function(t,r){var i=n();if(i)return t({cache:!0,variable:i});var a=document.querySelector('script[src="'.concat(e,'"]')),s=a||document.createElement("script");s.src=e,s.async=!0,s.addEventListener("load",(function(){t({cache:!1,variable:n()})})),s.addEventListener("error",(function(t){r(new o("LOAD_ERROR","Load script ".concat(e," failed: ").concat(t.message)))})),a||document.head.appendChild(s)}))}t.LoaderError=o},861:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=u(e),a=i[0],s=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,u=r-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function u(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("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},207:function(e,t,n){"use strict";var r=n(861),o=n(90),i=n(799);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n);e=s(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var h=!0,f=0;f<u;f++)if(c(e,i+f)!==c(t,f)){h=!1;break}if(h)return i}return-1}function _(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return G(z(t,e.length-n),e,n,r)}function E(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return E(e,t,n,r)}function S(e,t,n,r){return G(Y(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,u,c=e[o],l=null,h=c>239?4:c>223?3:c>191?2:1;if(o+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=h}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}t.lW=u,t.h2=50,u.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.h2;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),h=0;h<s;++h)if(c[h]!==l[h]){i=c[h],a=l[h];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function L(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=j(e[i]);return o}function O(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function x(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||x(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return i||x(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:z(new u(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Y(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},90:function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,h=n?o-1:0,f=n?-1:1,d=e[t+h];for(h+=f,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+h],h+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+h],h+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=c}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,h=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(t*u-1)*Math.pow(2,o),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*g}},799:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},98:function(e,t,n){var r=n(944).default,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,l="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,h=c||l||Function("return this")(),f=Object.prototype.toString,d=Math.max,p=Math.min,g=function(){return h.Date.now()};function v(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function m(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==f.call(e)}function y(e){if("number"==typeof e)return e;if(m(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function _(e){return c=e,s=setTimeout(E,t),l?m(e):a}function b(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-c>=i}function E(){var e=g();if(b(e))return w(e);s=setTimeout(E,function(e){var n=t-(e-u);return h?p(n,i-(e-c)):n}(e))}function w(e){return s=void 0,f&&r?m(e):(r=o=void 0,a)}function S(){var e=g(),n=b(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return _(u);if(h)return s=setTimeout(E,t),m(u)}return void 0===s&&(s=setTimeout(E,t)),a}return t=y(t)||0,v(n)&&(l=!!n.leading,i=(h="maxWait"in n)?d(y(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},S.flush=function(){return void 0===s?a:w(g())},S}},414:function(e,t,n){var r=n(944).default,o="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,c=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,p="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,g=d||p||Function("return this")();var v,m=Array.prototype,y=Function.prototype,_=Object.prototype,b=g["__core-js_shared__"],E=(v=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",w=y.toString,S=_.hasOwnProperty,T=_.toString,A=RegExp("^"+w.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=g.Symbol,R=m.splice,L=H(g,"Map"),k=H(Object,"create"),N=P?P.prototype:void 0,O=N?N.toString:void 0;function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function x(e,t){var n;t=function(e,t){if(G(e))return!1;var n=r(e);if("number"==n||"symbol"==n||"boolean"==n||null==e||F(e))return!0;return u.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:G(n=t)?n:j(n);for(var o=0,i=t.length;null!=e&&o<i;)e=e[z(t[o++])];return o&&o==i?e:void 0}function B(e){if(!K(e)||(t=e,E&&E in t))return!1;var t,n=function(e){var t=K(e)?T.call(e):"";return t==i||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?A:f;return n.test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function U(e,t){var n,o,i=e.__data__;return("string"==(o=r(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function H(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return B(n)?n:void 0}I.prototype.clear=function(){this.__data__=k?k(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(k){var n=t[e];return n===o?void 0:n}return S.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return k?void 0!==t[e]:S.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=k&&void 0===t?o:t,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(e){var t=this.__data__,n=D(t,e);return!(n<0)&&(n==t.length-1?t.pop():R.call(t,n,1),!0)},C.prototype.get=function(e){var t=this.__data__,n=D(t,e);return n<0?void 0:t[n][1]},C.prototype.has=function(e){return D(this.__data__,e)>-1},C.prototype.set=function(e,t){var n=this.__data__,r=D(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},M.prototype.clear=function(){this.__data__={hash:new I,map:new(L||C),string:new I}},M.prototype.delete=function(e){return U(this,e).delete(e)},M.prototype.get=function(e){return U(this,e).get(e)},M.prototype.has=function(e){return U(this,e).has(e)},M.prototype.set=function(e,t){return U(this,e).set(e,t),this};var j=Y((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(F(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(l,(function(e,t,r,o){n.push(r?o.replace(h,"$1"):t||e)})),n}));function z(e){if("string"==typeof e||F(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Y(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Y.Cache||M),n}Y.Cache=M;var G=Array.isArray;function K(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function F(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==T.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:x(e,t);return void 0===r?n:r}},994:function(e,t,n){e=n.nmd(e);var r=n(944).default,o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Function]",u="[object Object]",c=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[a]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h[s]=h["[object Map]"]=h["[object Number]"]=h[u]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var f="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,d="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),g="object"==r(t)&&t&&!t.nodeType&&t,v=g&&"object"==r(e)&&e&&!e.nodeType&&e,m=v&&v.exports===g,y=m&&f.process,_=function(){try{var e=v&&v.require&&v.require("util").types;return e||y&&y.binding&&y.binding("util")}catch(e){}}(),b=_&&_.isTypedArray;function E(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var w,S,T,A=Array.prototype,P=Function.prototype,R=Object.prototype,L=p["__core-js_shared__"],k=P.toString,N=R.hasOwnProperty,O=(w=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",I=R.toString,C=k.call(Object),M=RegExp("^"+k.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=m?p.Buffer:void 0,x=p.Symbol,B=p.Uint8Array,U=D?D.allocUnsafe:void 0,H=(S=Object.getPrototypeOf,T=Object,function(e){return S(T(e))}),j=Object.create,z=R.propertyIsEnumerable,Y=A.splice,G=x?x.toStringTag:void 0,K=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=D?D.isBuffer:void 0,V=Math.max,W=Date.now,q=ve(p,"Map"),J=ve(Object,"create"),X=function(){function e(){}return function(t){if(!Le(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(e){var t=this.__data__=new Q(e);this.size=t.size}function te(e,t){var n=Se(e),r=!n&&we(e),o=!n&&!r&&Ae(e),i=!n&&!r&&!o&&Ne(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!N.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||me(c,u))||s.push(c);return s}function ne(e,t,n){(void 0!==n&&!Ee(e[t],n)||void 0===n&&!(t in e))&&ie(e,t,n)}function re(e,t,n){var r=e[t];N.call(e,t)&&Ee(r,n)&&(void 0!==n||t in e)||ie(e,t,n)}function oe(e,t){for(var n=e.length;n--;)if(Ee(e[n][0],t))return n;return-1}function ie(e,t,n){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Z.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(J){var n=t[e];return n===o?void 0:n}return N.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:N.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=J&&void 0===t?o:t,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=oe(t,e);return!(n<0)&&(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,!0)},Q.prototype.get=function(e){var t=this.__data__,n=oe(t,e);return n<0?void 0:t[n][1]},Q.prototype.has=function(e){return oe(this.__data__,e)>-1},Q.prototype.set=function(e,t){var n=this.__data__,r=oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(q||Q),string:new Z}},$.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},$.prototype.get=function(e){return ge(this,e).get(e)},$.prototype.has=function(e){return ge(this,e).has(e)},$.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ee.prototype.clear=function(){this.__data__=new Q,this.size=0},ee.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ee.prototype.get=function(e){return this.__data__.get(e)},ee.prototype.has=function(e){return this.__data__.has(e)},ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Q){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $(r)}return n.set(e,t),this.size=n.size,this};var ae,se=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[ae?a:++r];if(!1===t(o[s],s,o))break}return e};function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?function(e){var t=N.call(e,G),n=e[G];try{e[G]=void 0;var r=!0}catch(e){}var o=I.call(e);r&&(t?e[G]=n:delete e[G]);return o}(e):function(e){return I.call(e)}(e)}function ce(e){return ke(e)&&ue(e)==a}function le(e){return!(!Le(e)||function(e){return!!O&&O in e}(e))&&(Pe(e)?M:c).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function he(e){if(!Le(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ye(e),n=[];for(var r in e)("constructor"!=r||!t&&N.call(e,r))&&n.push(r);return n}function fe(e,t,n,r,o){e!==t&&se(t,(function(i,a){if(o||(o=new ee),Le(i))!function(e,t,n,r,o,i,a){var s=_e(e,n),c=_e(t,n),l=a.get(c);if(l)return void ne(e,n,l);var h=i?i(s,c,n+"",e,t,a):void 0,f=void 0===h;if(f){var d=Se(c),p=!d&&Ae(c),g=!d&&!p&&Ne(c);h=c,d||p||g?Se(s)?h=s:ke(b=s)&&Te(b)?h=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):p?(f=!1,h=function(e,t){if(t)return e.slice();var n=e.length,r=U?U(n):new e.constructor(n);return e.copy(r),r}(c,!0)):g?(f=!1,v=c,m=!0?(y=v.buffer,_=new y.constructor(y.byteLength),new B(_).set(new B(y)),_):v.buffer,h=new v.constructor(m,v.byteOffset,v.length)):h=[]:function(e){if(!ke(e)||ue(e)!=u)return!1;var t=H(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&k.call(n)==C}(c)||we(c)?(h=s,we(s)?h=function(e){return function(e,t,n,r){var o=!n;n||(n={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?ie(n,s,u):re(n,s,u)}return n}(e,Oe(e))}(s):Le(s)&&!Pe(s)||(h=function(e){return"function"!=typeof e.constructor||ye(e)?{}:X(H(e))}(c))):f=!1}var v,m,y,_;var b;f&&(a.set(c,h),o(h,c,r,i,a),a.delete(c));ne(e,n,h)}(e,t,a,n,fe,r,o);else{var s=r?r(_e(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),ne(e,a,s)}}),Oe)}function de(e,t){return be(function(e,t,n){return t=V(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=V(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),E(e,this,s)}}(e,t,Me),e+"")}var pe=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Me;function ge(e,t){var n,o,i=e.__data__;return("string"==(o=r(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function me(e,t){var n=r(e);return!!(t=null==t?i:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var be=function(e){var t=0,n=0;return function(){var r=W(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pe);function Ee(e,t){return e===t||e!=e&&t!=t}var we=ce(function(){return arguments}())?ce:function(e){return ke(e)&&N.call(e,"callee")&&!z.call(e,"callee")},Se=Array.isArray;function Te(e){return null!=e&&Re(e.length)&&!Pe(e)}var Ae=F||function(){return!1};function Pe(e){if(!Le(e))return!1;var t=ue(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Le(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==r(e)}var Ne=b?function(e){return function(t){return e(t)}}(b):function(e){return ke(e)&&Re(e.length)&&!!h[ue(e)]};function Oe(e){return Te(e)?te(e,!0):he(e)}var Ie,Ce=(Ie=function(e,t,n){fe(e,t,n)},de((function(e,t){var n=-1,o=t.length,i=o>1?t[o-1]:void 0,a=o>2?t[2]:void 0;for(i=Ie.length>3&&"function"==typeof i?(o--,i):void 0,a&&function(e,t,n){if(!Le(n))return!1;var o=r(t);return!!("number"==o?Te(n)&&me(t,n.length):"string"==o&&t in n)&&Ee(n[t],e)}(t[0],t[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var s=t[n];s&&Ie(e,s,n,i)}return e})));function Me(e){return e}e.exports=Ce},89:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,u=[],c=!1,l=-1;function h(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||c||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},319:function(e,t,n){var r=n(652);function o(e){var t,n;function o(t,n){try{var a=e[t](n),s=a.value,u=s instanceof r;Promise.resolve(u?s.v:s).then((function(n){if(u){var r="return"===t?"return":"next";if(!s.k||n.done)return o(r,n);n=e[r](n).value}i(a.done?"return":"normal",n)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?o(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(i,a){var s={key:e,arg:r,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,o(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},652:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},317:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},180:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},786:function(e,t,n){var r=n(317);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},374:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},331:function(e,t,n){var r=n(652);e.exports=function(e){var t={},n=!1;function o(t,o){return n=!0,o=new Promise((function(n){n(e[t](o))})),{done:!1,value:new r(o,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):o("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},193:function(e){function t(e){function n(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return t=function(e){this.s=e,this.n=e.next},t.prototype={s:null,n:null,next:function(){return n(this.n.apply(this.s,arguments))},return:function(e){var t=this.s.return;return void 0===t?Promise.resolve({value:e,done:!0}):n(t.apply(this.s,arguments))},throw:function(e){var t=this.s.return;return void 0===t?Promise.reject(e):n(t.apply(this.s,arguments))}},new t(e)}e.exports=function(e){var n,r,o,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,o=Symbol.iterator);i--;){if(r&&null!=(n=e[r]))return n.call(e);if(o&&null!=(n=e[o]))return new t(n.call(e));r="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},404:function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,u,"next",e)}function u(e){t(a,o,i,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},10:function(e,t,n){var r=n(652);e.exports=function(e){return new r(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},486:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},855:function(e,t,n){var r=n(687),o=n(424);function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},702:function(e,t,n){var r=n(281);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},746:function(e,t,n){var r=n(508);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},400:function(e,t,n){var r=n(242),o=n(424),i=n(983);e.exports=function(e){var t=o();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},143:function(e,t,n){var r=n(281);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},225:function(e,t,n){var r=n(155);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},242:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},821:function(e,t,n){var r=n(687);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},185:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},424:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},682:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},249:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},20:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},114:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},118:function(e,t,n){var r=n(143);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},983:function(e,t,n){var r=n(944).default,o=n(374);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},662:function(e,t,n){var r=n(944).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof _?t:_,i=Object.create(o.prototype),a=new I(r||[]);return s(i,"_invoke",{value:L(e,n,a)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var g="suspendedStart",v="executing",m="completed",y={};function _(){}function b(){}function E(){}var w={};f(w,c,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(C([])));T&&T!==i&&a.call(T,c)&&(w=T);var A=E.prototype=_.prototype=Object.create(w);function P(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function n(o,i,s,u){var c=p(e[o],e,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function L(e,n,r){var o=g;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=k(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===g)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var c=p(e,n,r);if("normal"===c.type){if(o=r.done?m:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 C(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return b.prototype=E,s(A,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:b,configurable:!0}),b.displayName=f(E,h,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,h,"GeneratorFunction")),e.prototype=Object.create(A),e},n.awrap=function(e){return{__await:e}},P(R.prototype),f(R.prototype,l,(function(){return this})),n.AsyncIterator=R,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new R(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(A),f(A,h,"Generator"),f(A,c,(function(){return this})),f(A,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=C,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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&&a.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 i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},687:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},925:function(e,t,n){var r=n(180),o=n(249),i=n(508),a=n(20);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},155:function(e,t,n){var r=n(242);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},44:function(e,t,n){var r=n(786),o=n(682),i=n(508),a=n(114);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},224:function(e,t,n){var r=n(944).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},281:function(e,t,n){var r=n(944).default,o=n(224);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},944:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},508:function(e,t,n){var r=n(317);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},697:function(e,t,n){var r=n(319);e.exports=function(e){return function(){return new r(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){var r=n(242),o=n(687),i=n(185),a=n(855);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r={};return function(){"use strict";n.r(r),n.d(r,{ApplePayHostService:function(){return Ds},MessageType:function(){return ne},OpenSDKError:function(){return O},SDKBridge:function(){return se},adjustSessionData:function(){return Qa},awaitWrap:function(){return Rs},buildPageUrl:function(){return t},checkSessionData:function(){return bs},debug:function(){return fs},debugError:function(){return ds},getDevReqConfig:function(){return o},getLocaleFromRenderData:function(){return s},getMetaData:function(){return Xa},isElements2:function(){return $a},oneAccountQuery:function(){return ks},openModal:function(){return Ps},parseHostSign:function(){return Kr},parseTrackerId:function(){return Gr},request:function(){return Wa},sdkQuery:function(){return Os},sdkTracker:function(){return le},themeColorMap:function(){return _s}});var e={};function t(e,t){return function(e){var t=e?"elements2":"elements",n=location.origin,r=localStorage.getItem("antom-web-checkout-v2_app_document_prefix");return r&&(n=r),"".concat(n,"/").concat(t,"/").concat(localStorage.getItem("ANTOM_LOCAL")?"src/pages":"pages")}(t)+(e.startsWith("/")?e:"/".concat(e))}n.r(e),n.d(e,{hasBrowserEnv:function(){return wi},hasStandardBrowserEnv:function(){return Ti},hasStandardBrowserWebWorkerEnv:function(){return Ai},navigator:function(){return Si},origin:function(){return Pi}});function o(){var e=window.localStorage.getItem("antom-web-checkout-v2_app_env")||"dev";"pre"!==e&&"local"!==e||"true"!==window.localStorage.getItem("antom-web-checkout-v2_sandbox_enabled")||(e="sandbox");var t=window.localStorage.getItem("antom-web-checkout-v2_base_url")||void 0,n=window.localStorage.getItem("antom-web-checkout-v2_group_id")||void 0,r=JSON.parse(JSON.stringify({baseURL:t,groupId:n,env:e}));return console.log("[getDevReqConfig] dev request config:",r),r}var i=n(746),a=n.n(i);function s(e){var t,n=(null==e?void 0:e.supportedLanguages)||[],r=a()(n);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.preferred&&o.locale)return o.locale}}catch(e){r.e(e)}finally{r.f()}}var u=n(486),c=n.n(u),l=n(702),h=n.n(l),f=n(374),d=n.n(f),p=n(821),g=n.n(p),v=n(400),m=n.n(v),y=n(143),_=n.n(y),b=n(118),E=n.n(b),w=n(662),S=n.n(w),T=n(404),A=n.n(T),P=n(925),R=n(944),L=n.n(R),k=n(907),N={i18nPrefix:"OPENSDK"},O=function(e){p(n,e);var t=v(n);function n(e,r,o,i){var a,s,c,l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];u(this,n);var h,d=i,p=void 0;return e&&"object"===R(e)?(h=e.message,p=e.params):h=e,c=t.call(this,!N.i18n||l&&"SERVER_API"===o?h:N.i18n.get({id:"".concat(N.i18nPrefix,".").concat(r),dm:(null===(a=(s=N).getDefaultMessage)||void 0===a?void 0:a.call(s))||h},p)),y(f(c),"code",void 0),y(f(c),"name","OpenSDKError"),y(f(c),"_openSDKErrorFlag","__OpenSDKErrorFlag__"),y(f(c),"source","SDK_INTERNAL"),y(f(c),"traceId",void 0),y(f(c),"reason",void 0),c.reason=h,c.code=r,c.source=o,c.traceId=d,c}return l(n,[{key:"toJSON",value:function(){var e={message:this.message,code:this.code,source:this.source,traceId:this.traceId,reason:this.reason,stack:this.stack};return JSON.parse(JSON.stringify(e))}}],[{key:"isError",value:function(e){return e instanceof n||e instanceof Error&&"__OpenSDKErrorFlag__"===e._openSDKErrorFlag}},{key:"unificationError",value:function(e){var t,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";if(n.isError(e))return e;var i=new I(e instanceof Error?e.message:(null===(t=(r=N).getDefaultMessage)||void 0===t?void 0:t.call(r))||"An unknown error occurred.","UNKNOWN_ERROR",o);return i}},{key:"initConfig",value:function(e){N=b(b({},N),e)}}]),n}(k(Error)),I=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),y(f(e),"name","SDKBridgeError"),e}return l(n)}(O),C=n(44),M=function(e){return C(new Set(e))},D=function(e,t){return e.filter((function(e){return!t.includes(e)}))},x=function(e,t){return e.filter((function(e){return t.includes(e)}))},B=function(e){return"bigint"==typeof e||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e},U=function(e){return"bigint"==typeof e||e>=0&&Number.isSafeInteger(e)};function H(e,t){if(0===t.length)return e;for(var n,r=C(e),o=r.length-1,i=0,a=0;o>0;o--,i++){a+=n=t[i%=t.length].codePointAt(0);var s=(n+i+a)%o,u=r[o],c=r[s];r[s]=u,r[o]=c}return r}var j=function(e,t){return e.reduce((function(n,r){var o=t.indexOf(r);if(-1===o)throw new Error("The provided ID (".concat(e.join(""),") is invalid, as it contains characters that do not exist in the alphabet (").concat(t.join(""),")"));if("bigint"==typeof n)return n*BigInt(t.length)+BigInt(o);var i=n*t.length+o;return Number.isSafeInteger(i)?i:(V("Unable to decode the provided string, due to lack of support for BigInt numbers in the current environment"),BigInt(n)*BigInt(t.length)+BigInt(o))}),0)},z=/^\+?\d+$/,Y=function(e){if(!z.test(e))return Number.NaN;var t=Number.parseInt(e,10);return Number.isSafeInteger(t)?t:(V("Unable to encode the provided BigInt string without loss of information due to lack of support for BigInt type in the current environment"),BigInt(e))},G=function(e){return new RegExp(e.map((function(e){return F(e)})).sort((function(e,t){return t.length-e.length})).join("|"))},K=function(e){return new RegExp("^[".concat(e.map((function(e){return F(e)})).sort((function(e,t){return t.length-e.length})).join(""),"]+$"))},F=function(e){return e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&")},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"BigInt is not available in this environment";if("function"!=typeof BigInt)throw new TypeError(e)},W=3.5,q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"cfhistuCFHISTU";if(u(this,e),this.minLength=n,"number"!=typeof n)throw new TypeError("Hashids: Provided 'minLength' has to be a number (is ".concat(R(n),")"));if("string"!=typeof t)throw new TypeError("Hashids: Provided 'salt' has to be a string (is ".concat(R(t),")"));if("string"!=typeof r)throw new TypeError("Hashids: Provided alphabet has to be a string (is ".concat(R(r),")"));var i=Array.from(t),a=Array.from(r),s=Array.from(o);this.salt=i;var c=M(a);if(c.length<16)throw new Error("Hashids: alphabet must contain at least ".concat(16," unique characters, provided: ").concat(c.join("")));this.alphabet=D(c,s);var l,h,f,d=x(s,c);(this.seps=H(d,i),0===this.seps.length||this.alphabet.length/this.seps.length>W)&&((l=Math.ceil(this.alphabet.length/W))>this.seps.length&&(h=l-this.seps.length,(f=this.seps).push.apply(f,C(this.alphabet.slice(0,h))),this.alphabet=this.alphabet.slice(h)));this.alphabet=H(this.alphabet,i);var p=Math.ceil(this.alphabet.length/12);this.alphabet.length<3?(this.guards=this.seps.slice(0,p),this.seps=this.seps.slice(p)):(this.guards=this.alphabet.slice(0,p),this.alphabet=this.alphabet.slice(p)),this.guardsRegExp=G(this.guards),this.sepsRegExp=G(this.seps),this.allowedCharsRegExp=K([].concat(C(this.alphabet),C(this.guards),C(this.seps)))}return l(e,[{key:"encode",value:function(e){for(var t="",n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Array.isArray(e)?e:[].concat(C(null!=e?[e]:[]),r);return 0===i.length?t:(i.every(B)||(i=i.map((function(e){return"bigint"==typeof e||"number"==typeof e?e:Y(String(e))}))),i.every(U)?this._encode(i).join(""):t)}},{key:"decode",value:function(e){return e&&"string"==typeof e&&0!==e.length?this._decode(e):[]}},{key:"encodeHex",value:function(e){var t=e;switch(R(t)){case"bigint":t=t.toString(16);break;case"string":if(!/^[\dA-Fa-f]+$/.test(t))return"";break;default:throw new Error("Hashids: The provided value is neither a string, nor a BigInt (got: ".concat(R(t),")"))}var n,r,o,i=(n=t,r=12,o=function(e){return Number.parseInt("1".concat(e),16)},Array.from({length:Math.ceil(n.length/r)},(function(e,t){return o(n.slice(t*r,(t+1)*r))})));return this.encode(i)}},{key:"decodeHex",value:function(e){return this.decode(e).map((function(e){return e.toString(16).slice(1)})).join("")}},{key:"isValidId",value:function(e){return this.allowedCharsRegExp.test(e)}},{key:"_encode",value:function(e){var t=this,n=this.alphabet,r=e.reduce((function(e,t,n){return e+("bigint"==typeof t?Number(t%BigInt(n+100)):t%(n+100))}),0),o=[n[r%n.length]],i=C(o),a=this.seps,s=this.guards;if(e.forEach((function(r,s){var u,c=i.concat(t.salt,n),l=function(e,t){var n=[],r=e;if("bigint"==typeof r){var o=BigInt(t.length);do{n.unshift(t[Number(r%o)]),r/=o}while(r>BigInt(0))}else do{n.unshift(t[r%t.length]),r=Math.floor(r/t.length)}while(r>0);return n}(r,n=H(n,c));if((u=o).push.apply(u,C(l)),s+1<e.length){var h=l[0].codePointAt(0)+s,f="bigint"==typeof r?Number(r%BigInt(h)):r%h;o.push(a[f%a.length])}})),o.length<this.minLength){var u=(r+o[0].codePointAt(0))%s.length;if(o.unshift(s[u]),o.length<this.minLength){var c=(r+o[2].codePointAt(0))%s.length;o.push(s[c])}}for(var l=Math.floor(n.length/2);o.length<this.minLength;){var h,f;n=H(n,n),(h=o).unshift.apply(h,C(n.slice(l))),(f=o).push.apply(f,C(n.slice(0,l)));var d=o.length-this.minLength;if(d>0){var p=d/2;o=o.slice(p,p+this.minLength)}}return o}},{key:"_decode",value:function(e){if(!this.isValidId(e))throw new Error("The provided ID (".concat(e,") is invalid, as it contains characters that do not exist in the alphabet (").concat(this.guards.join("")).concat(this.seps.join("")).concat(this.alphabet.join(""),")"));var t=e.split(this.guardsRegExp),n=t[3===t.length||2===t.length?1:0];if(0===n.length)return[];var r,o=n[Symbol.iterator]().next().value,a=n.slice(o.length).split(this.sepsRegExp),s=this.alphabet,u=[],c=i(a);try{for(c.s();!(r=c.n()).done;){var l=r.value,h=H(s,[o].concat(C(this.salt),C(s)).slice(0,s.length));u.push(j(Array.from(l),h)),s=h}}catch(e){c.e(e)}finally{c.f()}return this._encode(u).join("")!==e?[]:u}}]),e}(),J=new q("intl-open-sdk",6);function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var r,o=new Promise((function(e,o){r=setTimeout((function(){n?o(n):e(void 0)}),t)}));return Promise.race([o,e.apply(void 0,arguments)]).finally((function(){return clearTimeout(r)}))}}var Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+J.encode("".concat(Date.now()).concat(Math.ceil(100*Math.random())))};function Q(e){if("onpagehide"in self){var t=function(t){t.persisted||e("pagehide")};return self.addEventListener("pagehide",t),function(){return self.removeEventListener("pagehide",t)}}if("undefined"!=typeof document&&void 0!==document.visibilityState){var n=!1,r=function(){"hidden"!==document.visibilityState||n||(n=!0,e("visibilitychange"))};return document.addEventListener("visibilitychange",r),function(){return document.removeEventListener("visibilitychange",r)}}var o=self,i=function(){e("beforeunload")};return o.addEventListener("beforeunload",i),function(){return o.removeEventListener("beforeunload",i)}}var $=function(){function e(t,n){var r=this;u(this,e),y(this,"targetPort",void 0),y(this,"handlers",new Map),y(this,"debugCallback",void 0),y(this,"name",void 0),y(this,"initialized",!1),y(this,"recipientIsReady",!1),y(this,"handleMessage",(function(e){var t=e.data,n=t.type,o=t.payload,i=r.handlers.get(n);i&&(r.debugCallback&&r.debugCallback(b(b({},e.data),{},{type:"MODAL_PORT@"+e.data.type}),"IN"),i.forEach((function(e){e(o)})))})),this.targetPort=n,n.onmessage=this.handleMessage,this.name=t,this.once("ready",(function(){r.recipientIsReady=!0}))}return l(e,[{key:"setDebugCallback",value:function(e){this.debugCallback=e}},{key:"onData",value:function(e){return this.initialized||(this.send("ready"),this.initialized=!0),this.on("data",e)}},{key:"sendData",value:function(e){var t=this;this.recipientIsReady?this.send("data",e):this.once("ready",(function(){t.recipientIsReady=!0,t.send("data",e)}))}},{key:"onClose",value:function(e){var t=this;return new Promise((function(n,r){t.on("close",function(){var o=T(w().mark((function o(i){return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i.name!==t.name){o.next=10;break}return o.prev=1,o.next=4,e(i.manual);case 4:n(),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),r(o.t0);case 10:case"end":return o.stop()}}),o,null,[[1,7]])})));return function(e){return o.apply(this,arguments)}}())}))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.send("close",{name:this.name,manual:e}),new Promise((function(){}))}},{key:"on",value:function(e,t){var n=this;return this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(t),function(){n.handlers.get(e).delete(t)}}},{key:"once",value:function(e,t){var n=this,r=function r(o){try{t(o)}finally{n.off(e,r)}};return this.on(e,r),function(){n.off(e,r)}}},{key:"off",value:function(e,t){var n=this.handlers.get(e);n&&n.delete(t)}},{key:"send",value:function(e,t){var n={id:Z("modal_port_"),type:e,payload:t};this.debugCallback&&this.debugCallback(b(b({},n),{},{type:"MODAL_PORT@"+n.type}),"OUT"),this.targetPort.postMessage(n)}}]),e}(),ee=function(){function e(t){u(this,e),y(this,"targetPorts",[]),y(this,"name",void 0),this.name=t}var t;return l(e,[{key:"addPort",value:function(e){var t;(t=this.targetPorts).push.apply(t,C(e))}},{key:"removePort",value:function(e){this.targetPorts=this.targetPorts.filter((function(t){return e!==t}))}},{key:"getValues",value:(t=T(w().mark((function e(t){var n,r,o=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.timeout)||1e4,r=X((function(){return Promise.all(o.targetPorts.map((function(e){return new Promise((function(t,n){e.postMessage({id:Math.random()+"",type:"".concat(o.name,":START_COLLECT_VALUE")}),e.onmessage=function(e){var r=e.data;if(r&&r.type){var o=r.type.split(":"),i=P(o,2),a=i[0];"SEND_ELEMENT_VALUE"===i[1]&&t(y({},a,r.payload))}else n(new Error("collect error"))}}))}))).then((function(e){return e.reduce((function(e,t){return b(b({},e),t)}),{})}))}),n),e.abrupt("return",r());case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),te=function(){function e(t,n){u(this,e),y(this,"targetPort",void 0),y(this,"name",void 0),this.targetPort=n,this.name=t}return l(e,[{key:"onSendRequest",value:function(e){this.targetPort.onmessage=function(){var t=T(w().mark((function t(n){var r,o,i;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=n.data)&&r.type){t.next=3;break}return t.abrupt("return");case 3:o=r.type.split(":"),i=P(o,2),i[0],"START_COLLECT_VALUE"===i[1]&&e();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}},{key:"send",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={id:Math.random()+"",payload:e,type:"".concat(this.name,":SEND_ELEMENT_VALUE")};this.targetPort.postMessage(t)}}]),e}(),ne={HANDSHAKE:"OPENSDK@HANDSHAKE",READY_HANDSHAKE:"OPENSDK@READY_HANDSHAKE",UPDATE_CONFIG:"OPENSDK@UPDATE_CONFIG",UPDATE_CONFIG_REPLY:"OPENSDK@UPDATE_CONFIG_REPLY",SUBMIT:"OPENSDK@SUBMIT",SUBMIT_REPLY:"OPENSDK@SUBMIT_REPLY",REDIRECT:"OPENSDK@REDIRECT",OPEN_MODAL:"OPENSDK@OPEN_MODAL",OPEN_MODAL_ERROR:"OPENSDK@OPEN_MODAL_ERROR",CLOSE_MODAL:"OPENSDK@CLOSE_MODAL",ERROR:"OPENSDK@ERROR",HANDSHAKE_ACK:"OPENSDK@HANDSHAKE_ACK",TRANSFER_RECEIVE_PORT:"OPENSDK@TRANSFER_RECEIVE_PORT",MESSAGE:"OPENSDK@MESSAGE",TRANSFER_SEND_PORT:"OPENSDK@TRANSFER_SEND_PORT",TRANSFER_APP_PORT:"OPENSDK@TRANSFER_APP_PORT",TRANSFER_MODAL_PORT:"OPENSDK@TRANSFER_MODAL_PORT",TRANSFER_MODAL_APPEARANCE:"OPENSDK@TRANSFER_MODAL_APPEARANCE",TRANSFER_MODAL_INITIALDATA:"OPENSDK@TRANSFER_MODAL_INITIALDATA",HEIGHT_UPDATE:"OPENSDK@HEIGHT_UPDATE",DESTROY_ELEMENT:"OPENSDK@DESTROY_ELEMENT"},re=n(98),oe=[ne.TRANSFER_RECEIVE_PORT,ne.TRANSFER_SEND_PORT,ne.TRANSFER_MODAL_PORT,ne.TRANSFER_MODAL_APPEARANCE,ne.TRANSFER_MODAL_INITIALDATA,ne.OPEN_MODAL_ERROR,ne.TRANSFER_APP_PORT,ne.CLOSE_MODAL,ne.OPEN_MODAL,ne.REDIRECT,ne.MESSAGE,ne.DESTROY_ELEMENT],ie="@@global",ae="@@native",se=function(){function e(t,n,r){var o,i,a=this;(u(this,e),y(this,"targetWindow",void 0),y(this,"currentWindow",void 0),y(this,"targetOrigin","*"),y(this,"scope",void 0),y(this,"handlers",new Map),y(this,"mode",void 0),y(this,"resizeObserver",void 0),y(this,"debugCallback",void 0),y(this,"receivePort",void 0),y(this,"openModalOff",void 0),y(this,"openModalPromise",void 0),y(this,"handleMessage",(function(e){var t=e.data;if(t&&t.type){var n=t.type.split(":"),r=P(n,2),o=r[0],i=r[1];if(a.scope!==ae){if(!["WEBAPP","HOST"].includes(i))return;if("*"!==a.targetOrigin&&e.origin!==a.targetOrigin)return;if(a.mode===i)return}var s=a.handlers.get(t.type);a.scope!==ae&&(s||t.type.endsWith(ne.ERROR)||t.type.endsWith(ne.MESSAGE))&&a.debugCallback&&a.scope===o&&a.debugCallback(t,"IN"),s&&new Set(s).forEach((function(n){n.length>=3?n(t.payload,e.ports,{origin:e.origin,source:e.source}):n(t.payload,e.ports)}))}})),this.mode=t,this.scope=n,this.currentWindow=r||window,"WEBAPP"===this.mode)&&(this.targetWindow=null===(i=this.currentWindow)||void 0===i?void 0:i.parent);null===(o=this.currentWindow)||void 0===o||o.addEventListener("message",this.handleMessage)}return l(e,[{key:"setTarget",value:function(e){this.targetWindow=e}},{key:"setOrigin",value:function(e){this.targetOrigin=e}},{key:"setDebugCallback",value:function(e){this.debugCallback=e}},{key:"destroy",value:function(){var e,t;null===(e=this.currentWindow)||void 0===e||e.removeEventListener("message",this.handleMessage),this.handlers.clear(),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}},{key:"_addPort",value:function(e){var t;this._transferPort(ne.TRANSFER_RECEIVE_PORT,null===(t=this.receivePort)||void 0===t?void 0:t.name,e)}},{key:"_transferReceivePort",value:function(e){this._transferPort(ne.TRANSFER_RECEIVE_PORT,e.name,e.targetPorts)}},{key:"_transferSendPort",value:function(e){this._transferPort(ne.TRANSFER_SEND_PORT,e.name,[e.targetPort])}},{key:"send",value:function(e,t,n){var r;if(!this.targetWindow)return console.warn("[Bridge] Target window not set. Cannot send message:",e),void(null===(r=this.debugCallback)||void 0===r||r.call(this,{id:Z("bridge"),type:"SYSTEM_".concat(ne.ERROR),payload:{message:"Target window not set"}},"OUT"));var o={id:Z("bridge"),type:this.getOriginSendType(e),payload:t};this.debugCallback&&this.debugCallback(o,"OUT"),this.targetWindow.postMessage(o,this.targetOrigin,n)}},{key:"sendError",value:function(e){"WEBAPP"===this.mode&&this.send(ne.ERROR,e.toJSON())}},{key:"sendSubmit",value:function(e){"WEBAPP"===this.mode&&this.send(ne.SUBMIT_REPLY,e)}},{key:"sendMessage",value:function(e,t){"WEBAPP"===this.mode&&this.send(ne.MESSAGE,{type:e,message:t})}},{key:"sendRedirect",value:function(e){if("WEBAPP"===this.mode){if(!e.url)throw new I("url is required","INVALID_REDIRECT_URL","SDK_INTERNAL");try{new URL(e.url)}catch(e){throw new I("Invalid URL","INVALID_REDIRECT_URL","SDK_INTERNAL")}this.send(ne.REDIRECT,e)}}},{key:"redirect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"redirect";if("WEBAPP"===this.mode){if(!e)throw new I("url is required","INVALID_REDIRECT_URL","SDK_INTERNAL");try{new URL(e)}catch(e){throw new I("Invalid URL","INVALID_REDIRECT_URL","SDK_INTERNAL")}this.send(ne.REDIRECT,{url:e,mode:t})}}},{key:"sendDestroyElement",value:function(e){e||(e=this.scope),"WEBAPP"===this.mode&&this.send(ne.DESTROY_ELEMENT,{elementKey:e})}},{key:"openModal",value:function(e,t){var n,r=this;if(this.openModalPromise)return this.openModalPromise;var o=Z("modal_");this.send(ne.OPEN_MODAL,b(b({},e),{},{scope:this.scope,initialData:t,modalId:o})),null===(n=this.openModalOff)||void 0===n||n.call(this);var i=new Promise((function(e,t){var n=function(){},o=function(){},i=function(){n(),o(),r.openModalOff=void 0,r.openModalPromise=void 0};n=r.once(ne.OPEN_MODAL_ERROR,(function(e){i(),t(new O(e.message,e.code,e.source))}));o=r.on(ne.TRANSFER_APP_PORT,(function(n,r){if(null==r||!r[0])return i(),void t(new I("No ports transferred for modal communication","NO_PORTS_ERROR","SDK_INTERNAL"));i(),e(new $(n,r[0]))})),r.openModalOff=i}));return this.openModalPromise=i,i}},{key:"closeModal",value:function(){var e;null===(e=this.openModalOff)||void 0===e||e.call(this),this.send(ne.CLOSE_MODAL)}},{key:"on",value:function(e,t){var n=this,r=this.getOriginListenType(e);return this.handlers.has(r)||this.handlers.set(r,new Set),this.handlers.get(r).add(t),function(){n.handlers.get(r).delete(t)}}},{key:"once",value:function(e,t){var n=this,r=function r(o,i){try{t(o,i)}finally{n.off(e,r)}};return this.on(e,r),function(){n.off(e,r)}}},{key:"off",value:function(e,t){var n=this.getOriginListenType(e),r=this.handlers.get(n);r&&r.delete(t)}},{key:"handsShake",value:function(e,t){var n=this;if("WEBAPP"!==this.mode)throw new I("handsShake can only be called in WEBAPP mode","UNKNOWN_ERROR","SDK_INTERNAL");var r=this.on(ne.HANDSHAKE,function(){var r=T(w().mark((function r(o){var i,a;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:"GROUP"===(null==o?void 0:o.elementMode)?o.isMainElement?n.getReceivePort().then((function(e){t(o,e)})):n.getSendPort().then((function(e){t(o,e)})).catch((function(){t(o)})):t(o),i=0,a=re((function(e){(Math.abs(e-i)>10||Math.abs((e-i)/i)>.01)&&(i=e,n.send(ne.HEIGHT_UPDATE,e))}),400),n.resizeObserver=new ResizeObserver((function(e){var t,n=null==e||null===(t=e[0])||void 0===t?void 0:t.contentRect;n&&a(n.height)})),n.resizeObserver.observe(document.body),n.send(ne.HANDSHAKE_ACK,{version:e});case 6:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());return this.send(ne.READY_HANDSHAKE),function(){var e;r(),null===(e=n.resizeObserver)||void 0===e||e.disconnect()}}},{key:"getOriginListenType",value:function(e){if("error"===e&&(e=ne.ERROR),this.scope===ae)return e;var t=oe.includes(e)?ie:this.scope;return"".concat(t,":").concat("WEBAPP"===this.mode?"HOST":"WEBAPP",":").concat(e)}},{key:"getOriginSendType",value:function(e){if("error"===e&&(e=ne.ERROR),this.scope===ae)return e;var t=oe.includes(e)?ie:this.scope;return"".concat(t,":").concat(this.mode,":").concat(e)}},{key:"_transferPort",value:function(e,t,n){this.targetWindow?"HOST"===this.mode&&this.targetWindow.postMessage({id:Z(),type:this.getOriginSendType(e),payload:t},this.targetOrigin,n):console.warn("[Bridge] Target window not set. Cannot send port")}},{key:"getReceivePort",value:function(){var e=this;return new Promise((function(t){e.on(ne.TRANSFER_RECEIVE_PORT,(function(n,r){e.receivePort||(e.receivePort=new ee(n)),r&&e.receivePort.addPort(r),t(e.receivePort)}))}))}},{key:"getSendPort",value:function(){var e=this;return new Promise((function(t,n){e.on(ne.TRANSFER_SEND_PORT,(function(e,r){if(r){var o=new te(e,r[0]);t(o)}else n(new Error("no ports transfer"))}))}))}}],[{key:"getGlobalBridge",value:function(t){return new e(t,ie)}},{key:"getNativeBridge",value:function(t){return new e("WEBAPP",ae,t)}},{key:"getBridge",value:function(t,n){if(n===ae||n===ie)throw new Error("Scope cannot be ".concat(ae," or ").concat(ie));return new e(t,n)}}]),e}(),ue=n(306),ce=function(){function e(t){u(this,e),y(this,"options",void 0),y(this,"tracker",void 0),y(this,"trackId",void 0),this.initialOptions(t)}var t;return l(e,[{key:"initialOptions",value:function(e){var t,n,r;return this.options=b(b(b({env:"DEV"},this.options),e),{},{appId:(null==e?void 0:e.appId)||(null===(t=this.options)||void 0===t?void 0:t.appId)||"180020050100012557",performance:!0===(null==e?void 0:e.performance)||!0===(null===(n=this.options)||void 0===n?void 0:n.performance),error:!0===(null==e?void 0:e.error)||!0===(null===(r=this.options)||void 0===r?void 0:r.error)}),"trackId"in this.options&&(this.trackId=this.options.trackId),this.options}},{key:"loadTacker",value:function(e){var t=this,n=(0,ue.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-opensdk-debugger/1.0.1/dist/tracker.umd.js","intlSdkTracker");return n?n.then((function(n){var r;return null===(r=n.variable)||void 0===r?void 0:r.getTrackerInstance(t.initialOptions(e))})):Promise.resolve(void 0)}},{key:"initTracker",value:(t=T(w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.tracker||t){e.next=2;break}return e.abrupt("return",this.tracker);case 2:return e.next=4,this.loadTacker(t);case 4:return(n=e.sent)&&(this.tracker=n),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"safeCall",value:function(e){return this.initTracker().then(e)}},{key:"setTrackId",value:function(e){this.trackId=e,this.set({trackId:e})}},{key:"set",value:function(e){this.safeCall((function(t){return null==t?void 0:t.set(e)}))}},{key:"pv",value:function(){this.safeCall((function(e){return null==e?void 0:e.pv()}))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trackId&&(t[0].d18=this.trackId),this.safeCall((function(e){return null==e?void 0:e.log.apply(e,t)}))}},{key:"click",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.click.apply(e,t)}))}},{key:"expo",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.expo.apply(e,t)}))}},{key:"onSendData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.onSendData.apply(e,t)}))}},{key:"offSendData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.offSendData.apply(e,t)}))}},{key:"pageMonitor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.pageMonitor.apply(e,t)}))}},{key:"reportCustomizedPerformance",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.reportCustomizedPerformance.apply(e,t)}))}}]),e}(),le=new ce;var he;!function(e){e["ar-SA"]="ar-SA",e.kn="kn",e.as="as",e.bho="bho",e["pl-PL"]="pl-PL",e["ko-KR"]="ko-KR",e["da-DK"]="da-DK",e["de-DE"]="de-DE",e["ru-RU"]="ru-RU",e["fr-FR"]="fr-FR",e.gu="gu",e["nl-BE"]="nl-BE",e["nl-NL"]="nl-NL",e["cs-CZ"]="cs-CZ",e.ro="ro",e["lo-LA"]="lo-LA",e["my-MM"]="my-MM",e["bn-BD"]="bn-BD",e["bn-IN"]="bn-IN",e.mr="mr",e["ms-MY"]="ms-MY",e.ml="ml",e.mni="mni",e["ne-NP"]="ne-NP",e.or="or",e["pt-BR"]="pt-BR",e["pt-PT"]="pt-PT",e.pa="pa",e["sv-SE"]="sv-SE",e["ja-JP"]="ja-JP",e.sr="sr",e["si-LK"]="si-LK",e["sk-SK"]="sk-SK",e["tr-TR"]="tr-TR",e["tl-PH"]="tl-PH",e.te="te",e.ta="ta",e["th-TH"]="th-TH",e["ur-PK"]="ur-PK",e["ur-IN"]="ur-IN",e["uk-UA"]="uk-UA",e["iw-IL"]="iw-IL",e["es-ES"]="es-ES",e["es-MX"]="es-MX",e.hu="hu",e["it-IT"]="it-IT",e["in-ID"]="in-ID",e["hi-IN"]="hi-IN",e["vi-VN"]="vi-VN",e["en-PK"]="en-PK",e["en-PL"]="en-PL",e["en-FR"]="en-FR",e["en-PH"]="en-PH",e["en-CZ"]="en-CZ",e["en-CA"]="en-CA",e["en-MM"]="en-MM",e["en-US"]="en-US",e["en-BD"]="en-BD",e["en-MY"]="en-MY",e["en-NP"]="en-NP",e["en-LK"]="en-LK",e["en-TH"]="en-TH",e["en-ES"]="en-ES",e["en-SG"]="en-SG",e["en-HU"]="en-HU",e["en-ID"]="en-ID",e["en-GB"]="en-GB",e["en-VN"]="en-VN",e["en-HK"]="en-HK",e["en-KR"]="en-KR",e["zh-TW"]="zh-TW",e["zh-HK"]="zh-HK",e["zh-SG"]="zh-SG",e["zh-CN"]="zh-CN",e["ar-IQ"]="ar-IQ",e["ckb-IQ"]="ckb-IQ",e.ku="ku",e["kk-KZ"]="kk-KZ",e.af="af",e.am="am",e.az="az",e.be="be",e.bg="bg",e.bs="bs",e.ca="ca",e.cy="cy",e.el="el",e.eo="eo",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.gd="gd",e.gl="gl",e.ha="ha",e.haw="haw",e.hr="hr",e.ig="ig",e.is="is",e.ka="ka",e.km="km",e.ky="ky",e.lb="lb",e.ln="ln",e.lt="lt",e.lv="lv",e.mg="mg",e.mk="mk",e.mn="mn",e.mt="mt",e.om="om",e.ps="ps",e.qu="qu",e.rw="rw",e.sl="sl",e.so="so",e.sq="sq",e.sw="sw",e.tg="tg",e.ti="ti",e.ug="ug",e.uz="uz",e.yo="yo",e.zu="zu"}(he||(he={}));var fe={};fe[he["ar-SA"]]="阿拉伯语 (沙特阿拉伯)",fe[he.kn]="埃纳德语",fe[he.as]="阿萨姆语",fe[he.bho]="博杰普尔语",fe[he["pl-PL"]]="波兰语 (波兰)",fe[he["ko-KR"]]="朝鲜语 (韩国)",fe[he["da-DK"]]="丹麦语 (丹麦)",fe[he["de-DE"]]="德语 (德国)",fe[he["ru-RU"]]="俄语 (俄罗斯)",fe[he["fr-FR"]]="法语 (法国)",fe[he.gu]="古加拉提语",fe[he["nl-BE"]]="荷兰语 (比利时)",fe[he["nl-NL"]]="荷兰语 (荷兰)",fe[he["cs-CZ"]]="捷克语 (捷克共和国)",fe[he.ro]="罗马尼亚语",fe[he["lo-LA"]]="老挝语 (老挝)",fe[he["my-MM"]]="缅甸语 (缅甸)",fe[he["bn-BD"]]="孟加拉语 (孟加拉)",fe[he["bn-IN"]]="孟加拉语 (印度)",fe[he.mr]="马拉地语",fe[he["ms-MY"]]="马来语 (马来西亚)",fe[he.ml]="马来亚拉姆语",fe[he.mni]="曼尼普里语",fe[he["ne-NP"]]="尼泊尔语 (尼泊尔)",fe[he.or]="欧里亚语",fe[he["pt-BR"]]="葡萄牙语 (巴西)",fe[he["pt-PT"]]="葡萄牙语 (葡萄牙)",fe[he.pa]="旁遮普语",fe[he["sv-SE"]]="瑞典语 (瑞典)",fe[he["ja-JP"]]="日语 (日本)",fe[he.sr]="塞尔维亚语",fe[he["si-LK"]]="僧伽罗语 (斯里兰卡)",fe[he["sk-SK"]]="斯洛伐克语 (斯洛伐克)",fe[he["tr-TR"]]="土耳其语 (土耳其)",fe[he["tl-PH"]]="塔加路族语 (菲律宾)",fe[he.te]="泰卢固语",fe[he.ta]="泰米尔语",fe[he["th-TH"]]="泰语 (泰国)",fe[he["ur-PK"]]="乌尔都语 (巴基斯坦)",fe[he["ur-IN"]]="乌尔都语 (印度)",fe[he["uk-UA"]]="乌克兰语 (乌克兰)",fe[he["iw-IL"]]="希伯来语 (以色列)",fe[he["es-ES"]]="西班牙语 (西班牙)",fe[he["es-MX"]]="西班牙语 (墨西哥)",fe[he.hu]="匈牙利语",fe[he["it-IT"]]="意大利语 (意大利)",fe[he["in-ID"]]="印度尼西亚语 (印度尼西亚)",fe[he["hi-IN"]]="印地语 (印度)",fe[he["vi-VN"]]="越南语 (越南)",fe[he["en-PK"]]="英语 (巴基斯坦)",fe[he["en-PL"]]="英语 (波兰)",fe[he["en-FR"]]="英语 (法国)",fe[he["en-PH"]]="英语 (菲律宾)",fe[he["en-CZ"]]="英语 (捷克共和国)",fe[he["en-CA"]]="英语 (加拿大)",fe[he["en-MM"]]="英语 (缅甸)",fe[he["en-US"]]="英语 (美国)",fe[he["en-BD"]]="英语 (孟加拉)",fe[he["en-MY"]]="英语 (马来西亚)",fe[he["en-NP"]]="英语 (尼泊尔)",fe[he["en-LK"]]="英语 (斯里兰卡)",fe[he["en-TH"]]="英语 (泰国)",fe[he["en-ES"]]="英语 (西班牙)",fe[he["en-SG"]]="英语 (新加坡)",fe[he["en-HU"]]="英语 (匈牙利)",fe[he["en-ID"]]="英语 (印度尼西亚)",fe[he["en-GB"]]="英语 (英国)",fe[he["en-VN"]]="英语 (越南)",fe[he["en-HK"]]="英语 (中国香港)",fe[he["en-KR"]]="英语 (韩国)",fe[he["zh-TW"]]="繁体中文 (中国台湾)",fe[he["zh-HK"]]="繁体中文 (中国香港)",fe[he["zh-SG"]]="简体中文 (新加坡)",fe[he["zh-CN"]]="简体中文 (中国)",fe[he["ar-IQ"]]="阿拉伯语 (伊拉克)",fe[he["ckb-IQ"]]="中库尔德语 (伊拉克)",fe[he.ku]="库尔德语",fe[he["kk-KZ"]]="哈萨克语",fe[he.af]="南非语",fe[he.am]="阿姆哈拉语",fe[he.az]="阿塞拜疆语",fe[he.be]="白俄罗斯语",fe[he.bg]="保加利亚语",fe[he.bs]="波斯尼亚语",fe[he.ca]="加泰罗尼亚语",fe[he.cy]="威尔士语",fe[he.el]="现代希腊语",fe[he.eo]="世界语",fe[he.et]="爱沙尼亚语",fe[he.eu]="巴斯克语",fe[he.fa]="波斯语",fe[he.fi]="芬兰语",fe[he.gd]="爱尔兰语",fe[he.gl]="加利西亚语",fe[he.ha]="豪萨语",fe[he.haw]="夏威夷语",fe[he.hr]="克罗地亚语",fe[he.ig]="伊博语",fe[he.is]="冰岛语",fe[he.ka]="格鲁吉亚语",fe[he.km]="高棉语",fe[he.ky]="吉尔吉斯语",fe[he.lb]="卢森堡语",fe[he.ln]="林格拉语",fe[he.lt]="立陶宛语",fe[he.lv]="拉脱维亚语",fe[he.mg]="马尔加什语",fe[he.mk]="马其顿语",fe[he.mn]="蒙古文",fe[he.mt]="马耳他语",fe[he.om]="奥罗莫语",fe[he.ps]="普什图语",fe[he.qu]="克丘亚语",fe[he.rw]="卢旺达语",fe[he.sl]="斯洛文尼亚语",fe[he.so]="索马里语",fe[he.sq]="阿尔巴尼亚语",fe[he.sw]="斯瓦希里语",fe[he.tg]="塔吉克语",fe[he.ti]="蒂格尼亚语",fe[he.ug]="维吾尔语",fe[he.uz]="乌兹别克语",fe[he.yo]="约鲁巴语",fe[he.zu]="祖鲁语";var de,pe={};pe[he["ar-SA"]]="Arabic (Saudi Arabia)",pe[he.kn]="Kannada",pe[he.as]="Assamese",pe[he.bho]="Bhojpuri",pe[he["pl-PL"]]="Polish (Poland)",pe[he["ko-KR"]]="Korean (Korean)",pe[he["da-DK"]]="Danish (Denmark)",pe[he["de-DE"]]="German (Germany)",pe[he["ru-RU"]]="Russian (Russia)",pe[he["fr-FR"]]="French (France)",pe[he.gu]="Gujarati",pe[he["nl-BE"]]="Dutch (Belgium)",pe[he["nl-NL"]]="Dutch (Netherlands)",pe[he["cs-CZ"]]="Czech (Czech Republic)",pe[he.ro]="Romanian",pe[he["lo-LA"]]="Lao (Laos)",pe[he["my-MM"]]="Burmese (Myanmar)",pe[he["bn-BD"]]="Bengali (Bangladesh)",pe[he["bn-IN"]]="Bengali (India)",pe[he.mr]="Marathi",pe[he["ms-MY"]]="Malay (Malaysia)",pe[he.ml]="Malayalam",pe[he.mni]="Manipuri",pe[he["ne-NP"]]="Nepalese (Nepal)",pe[he.or]="Odia (Oriya)",pe[he["pt-BR"]]="Portuguese (Brazil)",pe[he["pt-PT"]]="Portuguese (Portugal)",pe[he.pa]="Punjabi",pe[he["sv-SE"]]="Swedish (Sweden)",pe[he["ja-JP"]]="Japanese (Japanese)",pe[he.sr]="Serbian",pe[he["si-LK"]]="Sinhala (Sri Lanka)",pe[he["sk-SK"]]="Slovak (Slovakia)",pe[he["tr-TR"]]="Turkish (Turkish)",pe[he["tl-PH"]]="Tagalog (Philippines)",pe[he.te]="Telugu",pe[he.ta]="Tamil",pe[he["th-TH"]]="Thai (Thailand)",pe[he["ur-PK"]]="Ulduwen (Pakistan)",pe[he["ur-IN"]]="Urduwen (India)",pe[he["uk-UA"]]="Ukrainian (Ukraine)",pe[he["iw-IL"]]="Hebrew (Israel)",pe[he["es-ES"]]="Spanish (Spain)",pe[he["es-MX"]]="Spanish (Mexico)",pe[he.hu]="Hungarian",pe[he["it-IT"]]="Italian (Italian)",pe[he["in-ID"]]="Indonesian (Indonesia)",pe[he["hi-IN"]]="Hindi (India)",pe[he["vi-VN"]]="Vietnamese (Vietnam)",pe[he["en-PK"]]="English (Pakistan)",pe[he["en-PL"]]="English (Poland)",pe[he["en-FR"]]="English (France)",pe[he["en-PH"]]="English (Philippines)",pe[he["en-CZ"]]="English (Czech Republic)",pe[he["en-CA"]]="English (Canada)",pe[he["en-MM"]]="English (Myanmar)",pe[he["en-US"]]="English (US)",pe[he["en-BD"]]="English (Bangladesh)",pe[he["en-MY"]]="English (Malaysia)",pe[he["en-NP"]]="English (Nepal)",pe[he["en-LK"]]="English (Sri Lanka)",pe[he["en-TH"]]="English (Thailand)",pe[he["en-ES"]]="English (Spain)",pe[he["en-SG"]]="English (Singapore)",pe[he["en-HU"]]="English (Hungary)",pe[he["en-ID"]]="English (Indonesia)",pe[he["en-GB"]]="English (UK)",pe[he["en-VN"]]="English (Vietnam)",pe[he["en-HK"]]="English (Hong Kong)",pe[he["en-KR"]]="English (Korean)",pe[he["zh-TW"]]="Chinese Traditional (Taiwan)",pe[he["zh-HK"]]="Chinese Traditional (Hong Kong)",pe[he["zh-SG"]]="Chinese Simplified (Singapore)",pe[he["zh-CN"]]="Chinese Simplified (China)",pe[he["ar-IQ"]]="Arabic (Iraq)",pe[he["ckb-IQ"]]="Central Kurdish (Iraq)",pe[he.ku]="Kurdish",pe[he["kk-KZ"]]="Kazakh",pe[he.af]="Afrikaans",pe[he.am]="Amharic",pe[he.az]="Azerbaijani",pe[he.be]="Belarusian",pe[he.bg]="Bulgarian",pe[he.bs]="Bosnian",pe[he.ca]="Catalan",pe[he.cy]="Welsh",pe[he.el]="Greek",pe[he.eo]="Esperanto",pe[he.et]="Estonian",pe[he.eu]="Basque",pe[he.fa]="Persian",pe[he.fi]="Finnish",pe[he.gd]="Scots Gaelic",pe[he.gl]="Galician",pe[he.ha]="Hausa",pe[he.haw]="Hawaiian",pe[he.hr]="Croatian",pe[he.ig]="Igbo",pe[he.is]="Icelandic",pe[he.ka]="Georgian",pe[he.km]="Khmer",pe[he.ky]="Kyrgyz",pe[he.lb]="Luxembourgish",pe[he.ln]="Lingala",pe[he.lt]="Lithuanian",pe[he.lv]="Latvian",pe[he.mg]="Malagasy",pe[he.mk]="Macedonian",pe[he.mn]="Mongolian",pe[he.mt]="Maltese",pe[he.om]="Oromo",pe[he.ps]="Pashto",pe[he.qu]="Quechua",pe[he.rw]="Kinyarwanda",pe[he.sl]="Slovenian",pe[he.so]="Somali",pe[he.sq]="Albanian",pe[he.sw]="Swahili",pe[he.tg]="Tajik",pe[he.ti]="Tigrinya",pe[he.ug]="Uyghur",pe[he.uz]="Uzbek",pe[he.yo]="Yoruba",pe[he.zu]="Zulu",function(e){e["ar-SA"]="Arabic",e.kn="kannada",e.as="assamese",e.bho="bhojpuri",e["pl-PL"]="Polish",e["ko-KR"]="Korean",e["da-DK"]="danish",e["de-DE"]="German",e["ru-RU"]="Russian",e["fr-FR"]="French",e.gu="gujarati",e["nl-BE"]="Dutch(Belgium)",e["nl-NL"]="Dutch",e["cs-CZ"]="czech",e.ro="romanian",e["lo-LA"]="Lao (Laos)",e["my-MM"]="Burmese",e["bn-BD"]="Bangadesh",e["bn-IN"]="bangadeshIndia",e.mr="marathi",e["ms-MY"]="Malay",e.ml="malayalam",e.mni="manipuri",e["ne-NP"]="NepaliNepal",e.or="oriya",e["pt-BR"]="portuguese (Brazil)",e["pt-PT"]="Portuguese",e.pa="panjabi",e["sv-SE"]="swedish",e["ja-JP"]="Japanese",e.sr="Serbian",e["si-LK"]="Sinhala",e["sk-SK"]="slovak",e["tr-TR"]="Turkish",e["tl-PH"]="Filipino",e.te="telugu",e.ta="tamil",e["th-TH"]="Thai",e["ur-PK"]="Urdu",e["ur-IN"]="urduIndia",e["uk-UA"]="Ukrainian",e["iw-IL"]="Hebrew",e["es-ES"]="Spanish",e["es-MX"]="Spanish (Mexico)",e.hu="hungarian",e["it-IT"]="Italian",e["in-ID"]="Indonesian",e["hi-IN"]="Hindi",e["vi-VN"]="Vietnamese",e["en-PK"]="Pakistan English",e["en-PL"]="Poland English",e["en-FR"]="English (France)",e["en-PH"]="Philippines English",e["en-CZ"]="Czech English",e["en-CA"]="Canadian English",e["en-MM"]="Myanmar English",e["en-US"]="English",e["en-BD"]="Bangladesh English",e["en-MY"]="Malaysia English",e["en-NP"]="Nepal English",e["en-LK"]="Srilanka English",e["en-TH"]="Thai English",e["en-ES"]="English (Spain)",e["en-SG"]="singapore english",e["en-HU"]="Hungarian English",e["en-ID"]="Indonesian English",e["en-GB"]="British English",e["en-VN"]="Vietnamese English",e["en-HK"]="Hong Kong English",e["en-KR"]="Korean English",e["zh-TW"]="Traditional Chinese",e["zh-HK"]="Traditional Chinese(HK)",e["zh-SG"]="Chinese (Singapore)",e["zh-CN"]="Simplified Chinese",e["ar-IQ"]="Arabic (Iraq)",e["ckb-IQ"]="Central Kurdish (Iraq)",e.ku="Kurdish",e["kk-KZ"]="Kazakh"}(de||(de={}));var ge,ve,me,ye={"zh-hans":he["zh-CN"],"zh-hant":he["zh-TW"],ar:he["ar-SA"],bn:he["bn-BD"],cs:he["cs-CZ"],da:he["da-DK"],de:he["de-DE"],en:he["en-US"],es:he["es-ES"],fr:he["fr-FR"],hi:he["hi-IN"],in:he["in-ID"],it:he["it-IT"],iw:he["iw-IL"],ja:he["ja-JP"],ko:he["ko-KR"],lo:he["lo-LA"],ms:he["ms-MY"],my:he["my-MM"],ne:he["ne-NP"],nl:he["nl-NL"],pl:he["pl-PL"],pt:he["pt-PT"],ru:he["ru-RU"],si:he["si-LK"],sk:he["sk-SK"],sv:he["sv-SE"],th:he["th-TH"],tl:he["tl-PH"],tr:he["tr-TR"],uk:he["uk-UA"],ur:he["ur-PK"],vi:he["vi-VN"],zh:he["zh-CN"],kk:he["kk-KZ"]},_e={"zh-hant":he["zh-TW"],"zh-hans":he["zh-CN"]},be=function(e){return Object.keys(e||{}).map((function(t){return e[t]}))},Ee=function(e,t){return-1!==e.indexOf(t)};!function(e){e.ar_EG="ar_EG",e.az_AZ="az_AZ",e.bg_BG="bg_BG",e.bn_BD="bn_BD",e.by_BY="by_BY",e.ca_ES="ca_ES",e.cs_CZ="cs_CZ",e.da_DK="da_DK",e.de_DE="de_DE",e.el_GR="el_GR",e.en_GB="en_GB",e.en_US="en_US",e.es_ES="es_ES",e.et_EE="et_EE",e.fa_IR="fa_IR",e.fi_FI="fi_FI",e.fr_BE="fr_BE",e.fr_CA="fr_CA",e.fr_FR="fr_FR",e.ga_IE="ga_IE",e.gl_ES="gl_ES",e.he_IL="he_IL",e.hi_IN="hi_IN",e.hr_HR="hr_HR",e.hu_HU="hu_HU",e.hy_AM="hy_AM",e.id_ID="id_ID",e.it_IT="it_IT",e.is_IS="is_IS",e.ja_JP="ja_JP",e.ka_GE="ka_GE",e.kmr_IQ="kmr_IQ",e.kn_IN="kn_IN",e.kk_KZ="kk_KZ",e.km_KH="km_KH",e.ko_KR="ko_KR",e.lt_LT="lt_LT",e.lv_LV="lv_LV",e.mk_MK="mk_MK",e.ml_IN="ml_IN",e.mn_MN="mn_MN",e.ms_MY="ms_MY",e.nb_NO="nb_NO",e.ne_NP="ne_NP",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.pl_PL="pl_PL",e.pt_BR="pt_BR",e.pt_PT="pt_PT",e.ro_RO="ro_RO",e.ru_RU="ru_RU",e.si_LK="si_LK",e.sk_SK="sk_SK",e.sr_RS="sr_RS",e.sl_SI="sl_SI",e.sv_SE="sv_SE",e.ta_IN="ta_IN",e.th_TH="th_TH",e.tr_TR="tr_TR",e.tk_TK="tk_TK",e.ur_PK="ur_PK",e.uk_UA="uk_UA",e.uz_UZ="uz_UZ",e.vi_VN="vi_VN",e.zh_CN="zh_CN",e.zh_HK="zh_HK",e.zh_TW="zh_TW"}(ge||(ge={})),be(ge),function(e){e.af="af",e.am="am",e["ar-dz"]="ar-dz",e["ar-iq"]="ar-iq",e["ar-kw"]="ar-kw",e["ar-ly"]="ar-ly",e["ar-ma"]="ar-ma",e["ar-sa"]="ar-sa",e["ar-tn"]="ar-tn",e.ar="ar",e.az="az",e.be="be",e.bg="bg",e.bi="bi",e.bm="bm",e["bn-bd"]="bn-bd",e.bn="bn",e.bo="bo",e.br="br",e.bs="bs",e.ca="ca",e.cs="cs",e.cv="cv",e.cy="cy",e.da="da",e["de-at"]="de-at",e["de-ch"]="de-ch",e.de="de",e.dv="dv",e.el="el",e["en-au"]="en-au",e["en-ca"]="en-ca",e["en-gb"]="en-gb",e["en-ie"]="en-ie",e["en-il"]="en-il",e["en-in"]="en-in",e["en-nz"]="en-nz",e["en-sg"]="en-sg",e["en-tt"]="en-tt",e.en="en",e.eo="eo",e["es-do"]="es-do",e["es-mx"]="es-mx",e["es-PR"]="es-PR",e["es-us"]="es-us",e.es="es",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.fo="fo",e["fr-ca"]="fr-ca",e["fr-ch"]="fr-ch",e.fr="fr",e.fy="fy",e.ga="ga",e.gd="gd",e.gl="gl",e["gom-latn"]="gom-latn",e.gu="gu",e.he="he",e.hi="hi",e.hr="hr",e.ht="ht",e.hu="hu",e["hy-am"]="hy-am",e.id="id",e.is="is",e["it-ch"]="it-ch",e.it="it",e.ja="ja",e.jv="jv",e.ka="ka",e.kk="kk",e.km="km",e.kn="kn",e.ko="ko",e.ku="ku",e.ky="ky",e.lb="lb",e.lo="lo",e.lt="lt",e.lv="lv",e.me="me",e.mi="mi",e.mk="mk",e.ml="ml",e.mn="mn",e.mr="mr",e["ms-my"]="ms-my",e.ms="ms",e.mt="mt",e.my="my",e.nb="nb",e.ne="ne",e["nl-be"]="nl-be",e.nl="nl",e.nn="nn",e["oc-lnc"]="oc-lnc",e["pa-in"]="pa-in",e.pl="pl",e["pt-br"]="pt-br",e.pt="pt",e.rn="rn",e.ro="ro",e.ru="ru",e.rw="rw",e.sd="sd",e.se="se",e.si="si",e.sk="sk",e.sl="sl",e.sq="sq",e["sr-cyrl"]="sr-cyrl",e.sr="sr",e.ss="ss",e["sv-fi"]="sv-fi",e.sv="sv",e.sw="sw",e.ta="ta",e.te="te",e.tet="tet",e.tg="tg",e.th="th",e.tk="tk",e["tl-ph"]="tl-ph",e.tlh="tlh",e.tr="tr",e.tzl="tzl",e["tzm-latn"]="tzm-latn",e.tzm="tzm",e["ug-cn"]="ug-cn",e.uk="uk",e.ur="ur",e["uz-latn"]="uz-latn",e.uz="uz",e.vi="vi",e["x-pseudo"]="x-pseudo",e.yo="yo",e["zh-cn"]="zh-cn",e["zh-hk"]="zh-hk",e["zh-tw"]="zh-tw",e.zh="zh"}(ve||(ve={})),be(ve),function(e){e.af="af",e["ar-dz"]="ar-dz",e["ar-kw"]="ar-kw",e["ar-ly"]="ar-ly",e["ar-ma"]="ar-ma",e["ar-sa"]="ar-sa",e["ar-tn"]="ar-tn",e.ar="ar",e.az="az",e.be="be",e.bg="bg",e.bm="bm",e["bn-bd"]="bn-bd",e.bn="bn",e.bo="bo",e.br="br",e.bs="bs",e.ca="ca",e.cs="cs",e.cv="cv",e.cy="cy",e.da="da",e["de-at"]="de-at",e["de-ch"]="de-ch",e.de="de",e.dv="dv",e.el="el",e["en-au"]="en-au",e["en-ca"]="en-ca",e["en-gb"]="en-gb",e["en-ie"]="en-ie",e["en-il"]="en-il",e["en-in"]="en-in",e["en-nz"]="en-nz",e["en-sg"]="en-sg",e.eo="eo",e["es-do"]="es-do",e["es-mx"]="es-mx",e["es-us"]="es-us",e.es="es",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.fil="fil",e.fo="fo",e["fr-ca"]="fr-ca",e["fr-ch"]="fr-ch",e.fr="fr",e.fy="fy",e.ga="ga",e.gd="gd",e.gl="gl",e["gom-deva"]="gom-deva",e["gom-latn"]="gom-latn",e.gu="gu",e.he="he",e.hi="hi",e.hr="hr",e.hu="hu",e["hy-am"]="hy-am",e.id="id",e.is="is",e["it-ch"]="it-ch",e.it="it",e.ja="ja",e.jv="jv",e.ka="ka",e.kk="kk",e.km="km",e.kn="kn",e.ko="ko",e.ku="ku",e.ky="ky",e.lb="lb",e.lo="lo",e.lt="lt",e.lv="lv",e.me="me",e.mi="mi",e.mk="mk",e.ml="ml",e.mn="mn",e.mr="mr",e["ms-my"]="ms-my",e.ms="ms",e.mt="mt",e.my="my",e.nb="nb",e.ne="ne",e["nl-be"]="nl-be",e.nl="nl",e.nn="nn",e["oc-lnc"]="oc-lnc",e["pa-in"]="pa-in",e.pl="pl",e["pt-br"]="pt-br",e.pt="pt",e.ro="ro",e.ru="ru",e.sd="sd",e.se="se",e.si="si",e.sk="sk",e.sl="sl",e.sq="sq",e["sr-cyrl"]="sr-cyrl",e.sr="sr",e.ss="ss",e.sv="sv",e.sw="sw",e.ta="ta",e.te="te",e.tet="tet",e.tg="tg",e.th="th",e.tk="tk",e["tl-ph"]="tl-ph",e.tlh="tlh",e.tr="tr",e.tzl="tzl",e["tzm-latn"]="tzm-latn",e.tzm="tzm",e["ug-cn"]="ug-cn",e.uk="uk",e.ur="ur",e["uz-latn"]="uz-latn",e.uz="uz",e.vi="vi",e["x-pseudo"]="x-pseudo",e.yo="yo",e["zh-cn"]="zh-cn",e["zh-hk"]="zh-hk",e["zh-mo"]="zh-mo",e["zh-tw"]="zh-tw"}(me||(me={})),be(me);var we,Se,Te,Ae,Pe,Re,Le,ke,Ne,Oe,Ie,Ce,Me,De,xe,Be;he["ar-IQ"],ge.ar_EG,me.ar,ve.ar,he["ar-SA"],ge.ar_EG,me["ar-sa"],ve["ar-sa"],he["bn-BD"],ge.bn_BD,me["bn-bd"],ve["bn-bd"],he["bn-IN"],ge.bn_BD,me.bn,ve.bn,he["cs-CZ"],ge.cs_CZ,me.cs,ve.cs,he["da-DK"],ge.da_DK,me.da,ve.da,he["de-DE"],ge.de_DE,me.de,ve.de,he["en-BD"],ge.en_US,me["en-gb"],ve.en,he["en-CA"],ge.en_US,me["en-ca"],ve["en-ca"],he["en-CZ"],ge.en_US,me["en-gb"],ve.en,he["en-ES"],ge.en_US,me["en-gb"],ve.en,he["en-FR"],ge.en_US,me["en-gb"],ve.en,he["en-GB"],ge.en_GB,me["en-gb"],ve["en-gb"],he["en-HU"],ge.en_US,me["en-gb"],ve.en,he["en-ID"],ge.en_US,me["en-gb"],ve.en,he["en-LK"],ge.en_US,me["en-gb"],ve.en,he["en-MM"],ge.en_US,me["en-gb"],ve.en,he["en-MY"],ge.en_US,me["en-gb"],ve.en,he["en-NP"],ge.en_US,me["en-gb"],ve.en,he["en-PH"],ge.en_US,me["en-gb"],ve.en,he["en-PK"],ge.en_US,me["en-gb"],ve.en,he["en-PL"],ge.en_US,me["en-gb"],ve.en,he["en-SG"],ge.en_US,me["en-sg"],ve.en,he["en-TH"],ge.en_US,me["en-gb"],ve.en,he["en-US"],ge.en_US,me["en-gb"],ve.en,he["en-VN"],ge.en_US,me["en-gb"],ve.en,he["en-HK"],ge.en_US,me["en-gb"],ve.en,he["en-KR"],ge.en_US,me["en-gb"],ve.en,he["es-ES"],ge.es_ES,me.es,ve.es,he["es-MX"],ge.es_ES,me.es,ve.es,he["fr-FR"],ge.fr_FR,me.fr,ve.fr,he["hi-IN"],ge.hi_IN,me.hi,ve.hi,he.hu,ge.hu_HU,me.hu,ve.hu,he["in-ID"],ge.id_ID,me.id,ve.id,he["it-IT"],ge.it_IT,me.it,ve.it,he["ja-JP"],ge.ja_JP,me.ja,ve.ja,he.kn,ge.kn_IN,me.kn,ve.kn,he["ko-KR"],ge.ko_KR,me.ko,ve.ko,he.ml,ge.ml_IN,me.ml,ve.ml,he["ms-MY"],ge.ms_MY,me["ms-my"],ve["ms-my"],he["ne-NP"],ge.ne_NP,me.ne,ve.ne,he["nl-BE"],ge.nl_BE,me["nl-be"],ve["nl-be"],he["nl-NL"],ge.nl_NL,me.nl,ve.nl,he["pl-PL"],ge.pl_PL,me.pl,ve.pl,he["pt-BR"],ge.pt_BR,me["pt-br"],ve["pt-br"],he["pt-PT"],ge.pt_PT,me.pt,ve.pt,he.ro,ge.ro_RO,me.ro,ve.ro,he["ru-RU"],ge.ru_RU,me.ru,ve.ru,he["si-LK"],ge.si_LK,me.si,ve.si,he["sk-SK"],ge.sk_SK,me.sk,ve.sk,he.sr,ge.sr_RS,me.sr,ve.sr,he["sv-SE"],ge.sv_SE,me.sv,ve.sv,he.ta,ge.ta_IN,me.ta,ve.ta,he["th-TH"],ge.th_TH,me.th,ve.th,he["tr-TR"],ge.tr_TR,me.tr,ve.tr,he["uk-UA"],ge.uk_UA,me.uk,ve.uk,he["ur-PK"],ge.ur_PK,me.ur,ve.ur,he["vi-VN"],ge.vi_VN,me.vi,ve.vi,he["zh-CN"],ge.zh_CN,me["zh-cn"],ve["zh-cn"],he["zh-HK"],ge.zh_HK,me["zh-hk"],ve["zh-hk"],he["zh-SG"],ge.zh_HK,me["zh-hk"],ve["zh-hk"],he["zh-TW"],ge.zh_TW,me["zh-tw"],ve["zh-tw"],he["kk-KZ"],ge.kk_KZ,me.kk,ve.kk;!function(e){e.ar_SA="ar_SA",e.kn="kn",e.as="as",e.bho="bho",e.pl_PL="pl_PL",e.ko_KR="ko_KR",e.da_DK="da_DK",e.de_DE="de_DE",e.ru_RU="ru_RU",e.fr_FR="fr_FR",e.gu="gu",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.cs_CZ="cs_CZ",e.ro="ro",e.lo_LA="lo_LA",e.my_MM="my_MM",e.bn_BD="bn_BD",e.bn_IN="bn_IN",e.mr="mr",e.ms_MY="ms_MY",e.ml="ml",e.mni="mni",e.ne_NP="ne_NP",e.or="or",e.pt_BR="pt_BR",e.pt_PT="pt_PT",e.pa="pa",e.sv_SE="sv_SE",e.ja_JP="ja_JP",e.sr="sr",e.si_LK="si_LK",e.sk_SK="sk_SK",e.tr_TR="tr_TR",e.tl_PH="tl_PH",e.te="te",e.ta="ta",e.th_TH="th_TH",e.ur_PK="ur_PK",e.ur_IN="ur_IN",e.uk_UA="uk_UA",e.iw_IL="iw_IL",e.es_ES="es_ES",e.es_MX="es_MX",e.hu="hu",e.it_IT="it_IT",e.in_ID="in_ID",e.hi_IN="hi_IN",e.vi_VN="vi_VN",e.en_PK="en_PK",e.en_PL="en_PL",e.en_FR="en_FR",e.en_PH="en_PH",e.en_CZ="en_CZ",e.en_CA="en_CA",e.en_MM="en_MM",e.en_US="en_US",e.en_BD="en_BD",e.en_MY="en_MY",e.en_NP="en_NP",e.en_LK="en_LK",e.en_TH="en_TH",e.en_ES="en_ES",e.en_SG="en_SG",e.en_HU="en_HU",e.en_ID="en_ID",e.en_GB="en_GB",e.en_VN="en_VN",e.en_HK="en_HK",e.en_KR="en_KR",e.zh_TW="zh_TW",e.zh_HK="zh_HK",e.zh_SG="zh_SG",e.zh_CN="zh_CN",e.ar_IQ="ar_IQ",e.ckb_IQ="ckb_IQ",e.ku="ku",e.kk_KZ="kk_KZ",e.af="af",e.am="am",e.az="az",e.be="be",e.bg="bg",e.bs="bs",e.ca="ca",e.cy="cy",e.el="el",e.eo="eo",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.gd="gd",e.gl="gl",e.ha="ha",e.haw="haw",e.hr="hr",e.ig="ig",e.is="is",e.ka="ka",e.km="km",e.ky="ky",e.lb="lb",e.ln="ln",e.lt="lt",e.lv="lv",e.mg="mg",e.mk="mk",e.mn="mn",e.mt="mt",e.om="om",e.ps="ps",e.qu="qu",e.rw="rw",e.sl="sl",e.so="so",e.sq="sq",e.sw="sw",e.tg="tg",e.ti="ti",e.ug="ug",e.uz="uz",e.yo="yo",e.zu="zu"}(Be||(Be={}));var Ue,He,je=be(Be),ze={};ze[Be.kn]="AiNaDeYu",ze[Be.ar_SA]="ALaBoYu (ShaTeALaBo)",ze[Be.ar_IQ]="ALaBoYu (YiLaKe)",ze[Be.as]="ASaMuYu",ze[Be.bho]="BoJiePuErYu",ze[Be.pl_PL]="BoLanYu (BoLan)",ze[Be.ko_KR]="ChaoXianYu (HanGuo)",ze[Be.da_DK]="DanMaiYu (DanMai)",ze[Be.de_DE]="DeYu (DeGuo)",ze[Be.ru_RU]="EYu (ELuoSi)",ze[Be.fr_FR]="FaYu (FaGuo)",ze[Be.gu]="GuJiaLaTiYu",ze[Be.nl_BE]="HeLanYu (BiLiShi)",ze[Be.nl_NL]="HeLanYu (HeLan)",ze[Be.cs_CZ]="JieKeYu (JieKeGongHeGuo)",ze[Be.ku]="KuErDeYu",ze[Be.lo_LA]="LaoWoYu (LaoWo)",ze[Be.ro]="LuoMaNiYaYu",ze[Be.mr]="MaLaDiYu",ze[Be.ms_MY]="MaLaiYu (MaLaiXiYa)",ze[Be.ml]="MaLaiYaLaMuYu",ze[Be.mni]="ManNiPuLiYu",ze[Be.bn_BD]="MengJiaLaYu (MengJiaLa)",ze[Be.bn_IN]="MengJiaLaYu (YinDu)",ze[Be.my_MM]="MianDianYu (MianDian)",ze[Be.ne_NP]="NiBoErYu (NiBoEr)",ze[Be.or]="OuLiYaYu",ze[Be.pa]="PangZhePuYu",ze[Be.pt_BR]="PuTaoYaYu (BaXi)",ze[Be.pt_PT]="PuTaoYaYu (PuTaoYa)",ze[Be.ja_JP]="RiYu (RiBen)",ze[Be.sv_SE]="RuiDianYu (RuiDian)",ze[Be.sr]="SaiErWeiYaYu",ze[Be.si_LK]="SengJiaLuoYu (SiLiLanKa)",ze[Be.sk_SK]="SiLuoFaKeYu (SiLuoFaKe)",ze[Be.te]="TaiLuGuYu",ze[Be.ta]="TaiMiErYu",ze[Be.th_TH]="TaiYu (TaiGuo)",ze[Be.tl_PH]="TaJiaLuZuYu (FeiLvBin)",ze[Be.tr_TR]="TuErQiYu (TuErQi)",ze[Be.ur_PK]="WuErDuYu (BaJiSiTan)",ze[Be.ur_IN]="WuErDuYu (YinDu)",ze[Be.uk_UA]="WuKeLanYu (WuKeLan)",ze[Be.es_ES]="XiBanYaYu (XiBanYa)",ze[Be.es_MX]="XiBanYaYu (MoXiGe)",ze[Be.iw_IL]="XiBoLaiYu (YiSeLie)",ze[Be.hu]="XiongYaLiYu",ze[Be.it_IT]="YiDaLiYu (YiDaLi)",ze[Be.hi_IN]="YinDiYu (YinDu)",ze[Be.in_ID]="YinDuNiXiYaYu (YinDuNiXiYa)",ze[Be.en_PK]="YingYu (BaJiSiTan)",ze[Be.en_PL]="YingYu (BoLan)",ze[Be.en_FR]="YingYu (FaGuo)",ze[Be.en_PH]="YingYu (FeiLvBin)",ze[Be.en_CA]="YingYu (JiaNaDa)",ze[Be.en_CZ]="YingYu (JieKeGongHeGuo)",ze[Be.en_MY]="YingYu (MaLaiXiYa)",ze[Be.en_US]="YingYu (MeiGuo)",ze[Be.en_BD]="YingYu (MengJiaLa)",ze[Be.en_MM]="YingYu (MianDian)",ze[Be.en_NP]="YingYu (NiBoEr)",ze[Be.en_LK]="YingYu (SiLiLanKa)",ze[Be.en_TH]="YingYu (TaiGuo)",ze[Be.en_ES]="YingYu (XiBanYa)",ze[Be.en_SG]="YingYu (XinJiaPo)",ze[Be.en_HU]="YingYu (XiongYaLi)",ze[Be.en_ID]="YingYu (YinDuNiXiYa)",ze[Be.en_GB]="YingYu (YingGuo)",ze[Be.en_VN]="YingYu (YueNan)",ze[Be.en_HK]="YingYu (XiangGang)",ze[Be.en_KR]="YingYu (HanGuo)",ze[Be.vi_VN]="YueNanYu (YueNan)",ze[Be.ckb_IQ]="ZhongKuErDeYu (YiLaKe)",ze[Be.zh_TW]="ZhongWen (TaiWanDiQu)",ze[Be.zh_HK]="ZhongWen (XiangGang)",ze[Be.zh_SG]="ZhongWen (XinJiaPo)",ze[Be.zh_CN]="ZhongWen (ZhongGuo)",ze[Be.kk_KZ]="HaSaKeYu (HaSaKeSiTan)",ze[Be.af]="NanFeiYu",ze[Be.am]="AMuHaLaYu",ze[Be.az]="ASaiBaiJiangYu",ze[Be.be]="BaiErLuoSiYu",ze[Be.bg]="BaoJiaLiYaYu",ze[Be.bs]="BoSiNiYaYu",ze[Be.ca]="JiaTaiLuoNiYaYu",ze[Be.cy]="WeiErShiYu",ze[Be.el]="XianDaiXiLaYu",ze[Be.eo]="ShiJieYu",ze[Be.et]="AiShaNiYaYu",ze[Be.eu]="BaSiKeYu",ze[Be.fa]="BoSiYu",ze[Be.fi]="FenLanYu",ze[Be.gd]="AiErLanYu",ze[Be.gl]="JiaLiXiYaYu",ze[Be.ha]="HaoSaYu",ze[Be.haw]="XiaWeiYiYu",ze[Be.hr]="KeLuoDiYaYu",ze[Be.ig]="YiBoYu",ze[Be.is]="BingDaoYu",ze[Be.ka]="GeLuJiYaYu",ze[Be.km]="GaoMianYu",ze[Be.ky]="JiErJiSiYu",ze[Be.lb]="LuSenBaoYu",ze[Be.ln]="LinGeLaYu",ze[Be.lt]="LiTaoWanYu",ze[Be.lv]="LaTuoWeiYaYu",ze[Be.mg]="MaErJiaShiYu",ze[Be.mk]="MaQiDunYu",ze[Be.mn]="MengGuWen",ze[Be.mt]="MaErTaYu",ze[Be.om]="AoLuoMoYu",ze[Be.ps]="PuShiTuYu",ze[Be.qu]="KeQiuYaYu",ze[Be.rw]="LuWangDaYu",ze[Be.sl]="SiLuoWeiNiYaYu",ze[Be.so]="SuoMaLiYu",ze[Be.sq]="AErBaNiYaYu",ze[Be.sw]="SiWaXiLiYu",ze[Be.tg]="TaJiKeYu",ze[Be.ti]="DiGeNiYaYu",ze[Be.ug]="WeiWuErYu",ze[Be.uz]="WuZiBieKeYu",ze[Be.yo]="YueLuBaYu",ze[Be.zu]="ZuLuYu",function(e){e.AiSelected="AiSelected",e.Aliyun="Aliyun",e["ChatGPT3.5"]="ChatGPT3.5",e.Google="Google",e.Papago="Papago",e.DeepL="DeepL",e.Microsoft="Microsoft",e.Amazon="Amazon"}(Ue||(Ue={})),function(e){e.AiSelected="AiSelected",e.Aliyun="Aliyun",e["ChatGPT3.5"]="ChatGPT3.5",e.Google="Google",e.Papago="Papago",e.DeepL="DeepL",e.Microsoft="Microsoft",e.Amazon="Amazon"}(He||(He={})),be(He);var Ye=Object.assign(Object.assign({},He),{TranslationMemory:"TranslationMemory"}),Ge=(be(Ye),{aliyunSupportedLanguages:["ab","sq","ak","ar","an","am","as","az","ast","nch","ee","ay","ga","et","oj","oc","or","om","os","tpi","ba","eu","be","ber","bm","pag","bg","se","bem","byn","bi","bal","is","pl","bs","fa","bho","br","ch","cbk","cv","ts","tt","da","shn","tet","de","nds","sco","dv","kdx","dtp","ru","fo","fr","sa","fil","fj","fi","fur","fvr","kg","km","ngu","kl","ka","gos","gu","gn","kk","ht","ko","ha","nl","cnr","hup","gil","rn","quc","ky","gl","ca","cs","kab","kn","kr","csb","kha","kw","xh","co","mus","crh","tlh","hbs","qu","ks","ku","la","ltg","lv","lo","lt","li","ln","lg","lb","rue","rw","ro","rm","rom","jbo","mg","gv","mt","mr","ml","ms","chm","mk","mh","kek","mai","mfe","mi","mn","bn","my","hmn","umb","nv","af","ne","niu","no","pmn","pap","pa","pt","ps","ny","tw","chr","ja","sv","sm","sg","si","hsb","eo","sl","sw","so","sk","tl","tg","ty","te","ta","th","to","toi","ti","tvl","tyv","tr","tk","wa","war","cy","ve","vo","wo","udm","ur","uz","es","ie","fy","szl","he","hil","haw","el","lfn","sd","hu","sn","ceb","syr","su","hy","ace","iba","ig","io","ilo","iu","it","yi","ia","hi","id","inh","en","yo","vi","zza","jv","zh","zh-tw","yue","zu"],mapAliyunLanguage:function(e){if(e===Be.zh_HK||e===Be.zh_TW||e===Be.zh_SG)return"zh-tw";if(e===Be.in_ID)return"id";if(e===Be.iw_IL)return"he";var t=e.split("_")[0];return Ee(Ge.aliyunSupportedLanguages,t)?t:null},googleSupportedLanguages:["af","sq","am","ar","hy","as","ay","az","bm","eu","be","bn","bho","bs","bg","ca","ceb","zh","zh-CN","zh-TW","co","hr","cs","da","dv","doi","nl","en","eo","et","ee","fil","fi","fr","fy","gl","ka","de","el","gn","gu","ht","ha","haw","he","iw","hi","hmn","hu","is","ig","ilo","id","ga","it","ja","jv","jw","kn","kk","km","rw","gom","ko","kri","ku","ckb","ky","lo","la","lv","ln","lt","lg","lb","mk","mai","mg","ms","ml","mt","mi","mr","mni-Mtei","lus","mn","my","ne","no","ny","or","om","ps","fa","pl","pt","pa","qu","ro","ru","sm","sa","gd","nso","sr","st","sn","sd","si","sk","sl","so","es","su","sw","sv","tl","tg","ta","tt","te","th","ti","ts","tr","tk","ak","uk","ur","ug","uz","vi","cy","xh","yi","yo","zu"],mapGoogleLanguage:function(e){if(e===Be.zh_HK||e===Be.zh_TW||e===Be.zh_SG)return"zh-TW";if(e===Be.in_ID)return"id";if(e===Be.mni)return"mni-Mtei";var t=e.split("_")[0];return Ee(Ge.googleSupportedLanguages,t)?t:null},papagoSupportedLanguages:["ko","en","ja","zh-CN","zh-TW"],mapPapagoLanguage:function(e){if(e===Be.zh_CN)return"zh-CN";if(e===Be.zh_HK||e===Be.zh_TW||e===Be.zh_SG)return"zh-TW";var t=e.split("_")[0];return Ee(Ge.papagoSupportedLanguages,t)?t:null},deepLSupportedSourceLanguages:["AR","BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT","RO","RU","SK","SL","SV","TR","UK","ZH"],deepLSupportedLanguages:["AR","BG","CS","DA","DE","EL","EN-GB","EN-US","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT-BR","PT-PT","RO","RU","SK","SL","SV","TR","UK","ZH"],mapDeepLSourceLanguage:function(e){var t=e.toUpperCase();if(e===Be.in_ID)return"ID";var n=t.split("_")[0];return Ee(Ge.deepLSupportedSourceLanguages,n)?n:null},mapDeepLLanguage:function(e){var t=e.toUpperCase();if(e===Be.zh_CN||e===Be.zh_SG)return"ZH";if(e===Be.zh_HK||e===Be.zh_TW)return null;if(e===Be.en_GB||e===Be.en_US||e===Be.pt_BR||e===Be.pt_PT)return t.replace("_","-");if(e===Be.in_ID)return"ID";var n=t.split("_")[0];return"EN"===n?"EN-US":Ee(Ge.deepLSupportedLanguages,n)?n:null},microsoftSupportedLanguages:["af","sq","am","ar","hy","as","az","bn","ba","eu","bho","brx","bs","bg","yue","ca","lzh","zh-Hans","zh-Hant","sn","hr","cs","da","prs","dv","doi","nl","en","et","fo","fj","fil","fi","fr","fr-ca","gl","ka","de","el","gu","ht","ha","he","hi","mww","hu","is","ig","id","ikt","iu","iu-Latn","ga","it","ja","kn","ks","kk","km","rw","tlh-Latn","tlh-Piqd","gom","ko","ku","kmr","ky","lo","lv","lt","ln","dsb","lug","mk","mai","mg","ms","ml","mt","mi","mr","mn-Cyrl","mn-Mong","my","ne","nb","nya","or","ps","fa","pl","pt","pt-pt","pa","otq","ro","run","ru","sm","sr-Cyrl","sr-Latn","st","nso","tn","sd","si","sk","sl","so","es","sw","sv","ty","ta","tt","te","th","bo","ti","to","tr","tk","uk","hsb","ur","ug","uz","vi","cy","xh","yo","yua","zu"],mapMicrosoftLanguage:function(e){if(e===Be.pt_PT)return"pt-pt";if(e===Be.pt_BR)return"pt";if([Be.zh_CN,Be.zh_SG].includes(e))return"zh-Hans";if([Be.zh_HK,Be.zh_TW].includes(e))return"zh-Hant";if(e===Be.iw_IL)return"he";if(e===Be.in_ID)return"id";if(e===Be.ckb_IQ)return"ku";var t=e.split("_")[0];return Ee(Ge.microsoftSupportedLanguages,t)?t:null},amazonSupportedLanguages:["af","sq","am","ar","hy","az","bn","bs","bg","ca","zh","zh-TW","hr","cs","da","fa-AF","nl","en","et","fa","tl","fi","fr","fr-CA","ka","de","el","gu","ht","ha","he","hi","hu","is","id","ga","it","ja","kn","kk","ko","lv","lt","mk","ms","ml","mt","mr","mn","no","ps","pl","pt","pt-PT","pa","ro","ru","sr","si","sk","sl","so","es","es-MX","sw","sv","ta","te","th","tr","uk","ur","uz","vi","cy"],mapAmazonLanguage:function(e){if(e===Be.pt_PT)return"pt-PT";if(e===Be.pt_BR)return"pt";if(e===Be.es_MX)return"es-MX";if(e===Be.in_ID)return"id";if(e===Be.zh_CN||e===Be.zh_SG)return"zh";if(e===Be.zh_HK||e===Be.zh_TW)return"zh-TW";var t=e.split("_")[0];return Ee(Ge.amazonSupportedLanguages,t)?t:null}}),Ke={};Ke[He.AiSelected]=je,Ke[He.Aliyun]=je.filter((function(e){return Boolean(Ge.mapAliyunLanguage(e))})),Ke[He["ChatGPT3.5"]]=je,Ke[He.Google]=je.filter((function(e){return Boolean(Ge.mapGoogleLanguage(e))})),Ke[He.Papago]=je.filter((function(e){return Boolean(Ge.mapPapagoLanguage(e))})),Ke[He.DeepL]=je.filter((function(e){return Boolean(Ge.mapDeepLLanguage(e))})),Ke[He.Microsoft]=je.filter((function(e){return Boolean(Ge.mapMicrosoftLanguage(e))})),Ke[He.Amazon]=je.filter((function(e){return Boolean(Ge.mapAmazonLanguage(e))}));var Fe={};Fe[He.AiSelected]=je,Fe[He.Aliyun]=je.filter((function(e){return Boolean(Ge.mapAliyunLanguage(e))})),Fe[He["ChatGPT3.5"]]=je,Fe[He.Google]=je.filter((function(e){return Boolean(Ge.mapGoogleLanguage(e))})),Fe[He.Papago]=je.filter((function(e){return Boolean(Ge.mapPapagoLanguage(e))})),Fe[He.DeepL]=je.filter((function(e){return Boolean(Ge.mapDeepLSourceLanguage(e))})),Fe[He.Microsoft]=je.filter((function(e){return Boolean(Ge.mapMicrosoftLanguage(e))})),Fe[He.Amazon]=je.filter((function(e){return Boolean(Ge.mapAmazonLanguage(e))})),Ve=je.map((function(e){return[e,be(He).filter((function(t){return Ee(Ke[t],e)}))]})),We={},Object.keys(Ve||{}).forEach((function(e){var t=Ve[e],n=t[0],r=t[1];We[n]=r}));var Ve,We,qe={};qe[Be.ar_SA]="العربية)السعودية)",qe[Be.kn]="ಕನ್ನಡ",qe[Be.as]="অসমীয়া",qe[Be.bho]="भोजपुरी",qe[Be.pl_PL]="Polski (Polska)",qe[Be.ko_KR]="한국어 (대한민국)",qe[Be.da_DK]="Dansk (Danmark)",qe[Be.de_DE]="Deutsch (Deutschland)",qe[Be.ru_RU]="Русский (Россия)",qe[Be.fr_FR]="Français (France)",qe[Be.gu]="ગુજરાતી",qe[Be.nl_BE]="Nederlands (Belgium)",qe[Be.nl_NL]="Nederlands (Nederland)",qe[Be.cs_CZ]="Čeština (Česká republika)",qe[Be.ro]="Română",qe[Be.lo_LA]="ລາວ (ລາວ)",qe[Be.my_MM]="မြန်မာဘာသာ (မြန်မာ)",qe[Be.bn_BD]="বাংলা (বাংলাদেশ)",qe[Be.bn_IN]="বাংলা (ভারত)",qe[Be.mr]="मराठी",qe[Be.ms_MY]="Bahasa Melayu (Malaysia)",qe[Be.ml]="മലയാളം",qe[Be.mni]="ꯃꯩꯇꯩꯂꯣꯟ",qe[Be.ne_NP]="नेपाली (नेपाल)\t",qe[Be.or]="ଓଡ଼ିଆ",qe[Be.pt_BR]="Português (Brasil)",qe[Be.pt_PT]="Português (Portugal)",qe[Be.pa]="پنجابی",qe[Be.sv_SE]="Svenska (Sverige)",qe[Be.ja_JP]="日本語",qe[Be.sr]="Српски",qe[Be.si_LK]="සිංහල (ශ්රී ලංකාව)",qe[Be.sk_SK]="Slovenčina (Slovensko)",qe[Be.tr_TR]="Türkçe (Türkiye)",qe[Be.tl_PH]="Wikang Tagalog (Philippines)",qe[Be.te]="తెలుగు",qe[Be.ta]="தமிழ்",qe[Be.th_TH]="ไทย (ประเทศไทย)",qe[Be.ur_PK]="اردو)پاکستان)",qe[Be.ur_IN]="اردو)بھارت)",qe[Be.uk_UA]="Українська (Україна)",qe[Be.iw_IL]="עִבְרִית (ישראל)",qe[Be.es_ES]="Español (España)",qe[Be.es_MX]="Español (México)",qe[Be.hu]="Magyar",qe[Be.it_IT]="Italiano (Italia)",qe[Be.in_ID]="Bahasa Indonesia (Indonesia)",qe[Be.hi_IN]="हिन्दी (भारत)",qe[Be.vi_VN]="Tiếng Việt (Việt Nam)",qe[Be.en_PK]="English (Pakistan)",qe[Be.en_PL]="English (Poland)",qe[Be.en_FR]="English (France)",qe[Be.en_PH]="English (Philippines)",qe[Be.en_CZ]="English (Czech Republic)",qe[Be.en_CA]="English (Canada)",qe[Be.en_MM]="English (Myanmar)",qe[Be.en_US]="English (United States)",qe[Be.en_BD]="English (Bangladesh)",qe[Be.en_MY]="English (Malaysia)",qe[Be.en_NP]="English (Nepal)",qe[Be.en_LK]="English (Sri Lanka)",qe[Be.en_TH]="English (Thailand)",qe[Be.en_ES]="English (Spain)",qe[Be.en_SG]="English (Singapore)",qe[Be.en_HU]="English (Hungary)",qe[Be.en_ID]="English (Indonesia)",qe[Be.en_GB]="English (Great Britain)",qe[Be.en_VN]="English (Vietnam)",qe[Be.en_HK]="English (Hong Kong)",qe[Be.en_KR]="English (Korea)",qe[Be.zh_TW]="繁体中文 (中國台灣)",qe[Be.zh_HK]="繁体中文 (中國香港)",qe[Be.zh_SG]="简体中文 (新加坡)",qe[Be.zh_CN]="简体中文",qe[Be.ar_IQ]="العربية (العراق)",qe[Be.ckb_IQ]="کوردیی ناوەندی (عێراق)",qe[Be.ku]="کورمانجی",qe[Be.kk_KZ]="قازاقشا ",qe[Be.af]="Afrikaans",qe[Be.am]="አማርኛ",qe[Be.az]="Azərbaycan",qe[Be.be]="беларуская мова",qe[Be.bg]="Български",qe[Be.bs]="босански",qe[Be.ca]="Català",qe[Be.cy]="Cymraeg",qe[Be.el]="Ελληνικά",qe[Be.eo]="Esperanto",qe[Be.et]="eesti keel",qe[Be.eu]="Euskara",qe[Be.fa]="فارسی",qe[Be.fi]="Suomi",qe[Be.gd]="Gaeilge",qe[Be.gl]="Galego",qe[Be.ha]="هَوُسَ",qe[Be.haw]="ʻŌlelo Hawaiʻi",qe[Be.hr]="Hrvatski",qe[Be.ig]="Asụsụ Igbo",qe[Be.is]="Íslenska",qe[Be.ka]="ქართული",qe[Be.km]="ភាសាខ្មែរ",qe[Be.ky]="кыргыз тили",qe[Be.lb]="Lëtzebuergesch",qe[Be.ln]="Lingála",qe[Be.lt]="lietuvių kalba",qe[Be.lv]="Latviešu valoda",qe[Be.mg]="malagasy",qe[Be.mk]="македонски",qe[Be.mn]="монгол хэл",qe[Be.mt]="Malti",qe[Be.om]="Oromoo",qe[Be.ps]="پښتو",qe[Be.qu]="Quechua",qe[Be.rw]="Ikinyarwanda",qe[Be.sl]="slovenščina",qe[Be.so]="Af-Soomaali",qe[Be.sq]="Gjuha shqipe",qe[Be.sw]="Kiswahili",qe[Be.tg]="тоҷикӣ",qe[Be.ti]="ትግርኛ",qe[Be.ug]="ئۇيغۇر تىلى",qe[Be.uz]="Ўзбек тили",qe[Be.yo]="Èdè Yorùbá",qe[Be.zu]="isiZulu",He.AiSelected,(we={})[Be.en_US]="AI Selected",we[Be.zh_CN]="AI 精选",(Se={})[Be.en_US]="AI selection of translations",Se[Be.zh_CN]="多渠道翻译的 AI 精选",Fe.AiSelected,Ke.AiSelected,(Te={})[Be.en_US]="Use ChatGPT 4.0 to compare and select translation results from multiple sources.\nThe translated content will undergo risk control review and may return blank, please check carefully.",Te[Be.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",(Ae={})[Be.en_US]="Use ChatGPT 4.0 to compare and select translation results from multiple sources.\nThe translated content will undergo risk control review and may return blank, please check carefully.",Ae[Be.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",He["ChatGPT3.5"],(Pe={})[Be.en_US]="GPT-3.5",Pe[Be.zh_CN]="GPT-3.5",(Re={})[Be.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",Re[Be.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",(Le={})[Be.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",Le[Be.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",Fe["ChatGPT3.5"],Ke["ChatGPT3.5"],He.Aliyun,(ke={})[Be.en_US]="Alibaba",ke[Be.zh_CN]="阿里云",Fe.Aliyun,Ke.Aliyun,He.Google,(Ne={})[Be.en_US]="Google",Ne[Be.zh_CN]="Google",Fe.Google,Ke.Google,He.DeepL,(Oe={})[Be.en_US]="DeepL",Oe[Be.zh_CN]="DeepL",Fe.DeepL,Ke.DeepL,He.Microsoft,(Ie={})[Be.en_US]="Azure AI",Ie[Be.zh_CN]="Azure AI",Fe.Microsoft,Ke.Microsoft,He.Amazon,(Ce={})[Be.en_US]="Amazon",Ce[Be.zh_CN]="Amazon",Fe.Amazon,Ke.Amazon,He.Papago,(Me={})[Be.en_US]="Papago",Me[Be.zh_CN]="Papago",(De={})[Be.en_US]="Papago does not support translating HTML and will automatically skip HTML content during batch translation.",De[Be.zh_CN]="Papago 不支持翻译 HTML,在批量翻译时会自动跳过 HTML 内容",(xe={})[Be.en_US]="Papago does not support HTML. Available locales are Chinese, Japanese, Korean, and English. Please check the translation results carefully.",xe[Be.zh_CN]="Papago 不支持翻译 HTML,仅支持翻译中、日、韩、英,请仔细检查翻译结果",Fe.Papago,Ke.Papago;var Je=Object.keys(he).map((function(e){return he[e]})),Xe=/^##@@@(.+?)##(.+?)@@@##(.+?)@@@##$/,Ze=function(e,t){return(Ze=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])})(e,t)};function Qe(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}Ze(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var $e,et,tt,nt=function(){return(nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function rt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function ot(e){return e.type===et.literal}function it(e){return e.type===et.argument}function at(e){return e.type===et.number}function st(e){return e.type===et.date}function ut(e){return e.type===et.time}function ct(e){return e.type===et.select}function lt(e){return e.type===et.plural}function ht(e){return e.type===et.pound}function ft(e){return e.type===et.tag}function dt(e){return!(!e||"object"!=L()(e)||e.type!==tt.number)}function pt(e){return!(!e||"object"!=L()(e)||e.type!==tt.dateTime)}"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}($e||($e={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(et||(et={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(tt||(tt={}));var gt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function mt(e){var t={};return e.replace(vt,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var yt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,_t=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bt=/^(@+)?(\+|#+)?[rs]?$/g,Et=/(\*)(0+)|(#+)(0+)|(0+)/g,wt=/^(0+)$/;function St(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(bt,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Tt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function At(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!wt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Pt(e){return Tt(e)||{}}function Rt(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=nt(nt(nt({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return nt(nt({},e),Pt(t))}),{}));continue;case"engineering":t=nt(nt(nt({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return nt(nt({},e),Pt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Et,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(wt.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(_t.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(_t,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=nt(nt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=nt(nt({},t),St(i)))}else if(bt.test(o.stem))t=nt(nt({},t),St(o.stem));else{var a=Tt(o.stem);a&&(t=nt(nt({},t),a));var s=At(o.stem);s&&(t=nt(nt({},t),s))}}return t}var Lt,kt={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Nt(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(kt[n||""]||kt[r||""]||kt["".concat(r,"-001")]||kt["001"])[0]}var Ot=new RegExp("^".concat(gt.source,"*")),It=new RegExp("".concat(gt.source,"*$"));function Ct(e,t){return{start:e,end:t}}var Mt=!!String.prototype.startsWith&&"_a".startsWith("a",1),Dt=!!String.fromCodePoint,xt=!!Object.fromEntries,Bt=!!String.prototype.codePointAt,Ut=!!String.prototype.trimStart,Ht=!!String.prototype.trimEnd,jt=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},zt=!0;try{zt="a"===(null===(Lt=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Lt?void 0:Lt[0])}catch(he){zt=!1}var Yt,Gt=Mt?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Kt=Dt?String.fromCodePoint:function(){for(var e=arguments,t=[],n=0;n<arguments.length;n++)t[n]=e[n];for(var r,o="",i=t.length,a=0;i>a;){if((r=t[a++])>1114111)throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Ft=xt?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},Vt=Bt?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Wt=Ut?function(e){return e.trimStart()}:function(e){return e.replace(Ot,"")},qt=Ht?function(e){return e.trimEnd()}:function(e){return e.replace(It,"")};function Jt(e,t){return new RegExp(e,t)}if(zt){var Xt=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yt=function(e,t){var n;return Xt.lastIndex=t,null!==(n=Xt.exec(e)[1])&&void 0!==n?n:""}}else Yt=function(e,t){for(var n=[];;){var r=Vt(e,t);if(void 0===r||$t(r)||en(r))break;n.push(r),t+=r>=65536?2:1}return Kt.apply(void 0,n)};var Zt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error($e.UNMATCHED_CLOSING_TAG,Ct(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Qt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:et.pound,location:Ct(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:et.literal,value:"<".concat(r,"/>"),location:Ct(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qt(this.char()))return this.error($e.INVALID_TAG,Ct(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error($e.UNMATCHED_CLOSING_TAG,Ct(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:et.tag,value:r,children:i,location:Ct(n,this.clonePosition())},err:null}:this.error($e.INVALID_TAG,Ct(a,this.clonePosition())))}return this.error($e.UNCLOSED_TAG,Ct(n,this.clonePosition()))}return this.error($e.INVALID_TAG,Ct(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=Ct(n,this.clonePosition());return{val:{type:et.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Qt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Kt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Kt(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error($e.EMPTY_ARGUMENT,Ct(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error($e.MALFORMED_ARGUMENT,Ct(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:et.argument,value:r,location:Ct(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error($e.MALFORMED_ARGUMENT,Ct(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Yt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Ct(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error($e.EXPECT_ARGUMENT_TYPE,Ct(i,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(d=qt(m.val)).length)return this.error($e.EXPECT_ARGUMENT_STYLE,Ct(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:Ct(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var l=Ct(r,this.clonePosition());if(u&&Gt(null==u?void 0:u.style,"::",0)){var h=Wt(u.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?m:{val:{type:et.number,value:n,location:l,style:m.val},err:null};if(0===h.length)return this.error($e.EXPECT_DATE_TIME_SKELETON,l);var f=h;this.locale&&(f=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),u=Nt(t);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===o?"H":o}return n}(h,this.locale));var d={type:tt.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?mt(f):{}};return{val:{type:"date"===a?et.date:et.time,value:n,location:l,style:d},err:null}}return{val:{type:"number"===a?et.number:"date"===a?et.date:et.time,value:n,location:l,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($e.EXPECT_SELECT_ARGUMENT_OPTIONS,Ct(p,nt({},p)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error($e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ct(this.clonePosition(),this.clonePosition()));var m;if(this.bumpSpace(),(m=this.tryParseDecimalInteger($e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),g=this.parseIdentifierIfPossible(),v=m.val}var y,_=this.tryParsePluralOrSelectOptions(e,a,t,g);if(_.err)return _;if((y=this.tryParseArgumentClose(r)).err)return y;var b=Ct(r,this.clonePosition());return"select"===a?{val:{type:et.select,value:n,options:Ft(_.val),location:b},err:null}:{val:{type:et.plural,value:n,options:Ft(_.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error($e.INVALID_ARGUMENT_TYPE,Ct(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error($e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ct(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(yt).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,u=a;s<u.length;s++)if(0===u[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error($e.INVALID_NUMBER_SKELETON,t)}return{val:{type:tt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Rt(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,u=r.value,c=r.location;;){if(0===u.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger($e.EXPECT_PLURAL_ARGUMENT_SELECTOR,$e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Ct(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}if(s.has(u))return this.error("select"===t?$e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?$e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ct(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,t,n);if(d.err)return d;var p=this.tryParseArgumentClose(f);if(p.err)return p;a.push([u,{value:d.val,location:Ct(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?$e.EXPECT_SELECT_ARGUMENT_SELECTOR:$e.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ct(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error($e.MISSING_OTHER_CLAUSE,Ct(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=Ct(r,this.clonePosition());return o?jt(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Vt(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Gt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&$t(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Qt(e){return e>=97&&e<=122||e>=65&&e<=90}function $t(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function en(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function tn(e,t){void 0===t&&(t={}),t=nt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Zt(e,t).parse();if(n.err){var r=SyntaxError($e[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach((function(t){if(delete t.location,ct(t)||lt(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else at(t)&&dt(t.style)||(st(t)||ut(t))&&pt(t.style)?delete t.style.location:ft(t)&&e(t.children)}))}(n.val),n.val}function nn(e,t){var n=t&&t.cache?t.cache:hn,r=t&&t.serializer?t.serializer:un;return(t&&t.strategy?t.strategy:sn)(e,{cache:n,serializer:r})}function rn(e,t,n,r){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:n(r),i=t.get(o);return void 0===i&&(i=e.call(this,r),t.set(o,i)),i}function on(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function an(e,t,n,r,o){return n.bind(t,e,r,o)}function sn(e,t){return an(e,this,1===e.length?rn:on,t.cache.create(),t.serializer)}var un=function(){return JSON.stringify(arguments)};function cn(){this.cache=Object.create(null)}cn.prototype.get=function(e){return this.cache[e]},cn.prototype.set=function(e,t){this.cache[e]=t};var ln,hn={create:function(){return new cn}},fn={variadic:function(e,t){return an(e,this,on,t.cache.create(),t.serializer)},monadic:function(e,t){return an(e,this,rn,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ln||(ln={}));var dn,pn=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return Qe(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),gn=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ln.INVALID_VALUE,o)||this}return Qe(t,e),t}(pn),vn=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),ln.INVALID_VALUE,r)||this}return Qe(t,e),t}(pn),mn=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),ln.MISSING_VALUE,n)||this}return Qe(t,e),t}(pn);function yn(e){return"function"==typeof e}function _n(e,t,n,r,o,i,a){if(1===e.length&&ot(e[0]))return[{type:dn.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var l=c[u];if(ot(l))s.push({type:dn.literal,value:l.value});else if(ht(l))"number"==typeof i&&s.push({type:dn.literal,value:n.getNumberFormat(t).format(i)});else{var h=l.value;if(!o||!(h in o))throw new mn(h,a);var f=o[h];if(it(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?dn.literal:dn.object,value:f});else if(st(l)){var d="string"==typeof l.style?r.date[l.style]:pt(l.style)?l.style.parsedOptions:void 0;s.push({type:dn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(ut(l))d="string"==typeof l.style?r.time[l.style]:pt(l.style)?l.style.parsedOptions:r.time.medium,s.push({type:dn.literal,value:n.getDateTimeFormat(t,d).format(f)});else if(at(l))(d="string"==typeof l.style?r.number[l.style]:dt(l.style)?l.style.parsedOptions:void 0)&&d.scale&&(f*=d.scale||1),s.push({type:dn.literal,value:n.getNumberFormat(t,d).format(f)});else{if(ft(l)){var p=l.children,g=l.value,v=o[g];if(!yn(v))throw new vn(g,"function",a);var m=v(_n(p,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map((function(e){return{type:"string"==typeof e?dn.literal:dn.object,value:e}})))}if(ct(l)){if(!(y=l.options[f]||l.options.other))throw new gn(l.value,f,Object.keys(l.options),a);s.push.apply(s,_n(y.value,t,n,r,o))}else if(lt(l)){var y;if(!(y=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new pn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ln.MISSING_INTL_API,a);var _=n.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));y=l.options[_]||l.options.other}if(!y)throw new gn(l.value,f,Object.keys(l.options),a);s.push.apply(s,_n(y.value,t,n,r,o,f-(l.offset||0)))}}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===dn.literal&&t.type===dn.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function bn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(dn||(dn={}));var En=function(){function e(t,n,r,o){void 0===n&&(n=e.defaultLocale);var i,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===dn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return _n(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{},u=(s.formatters,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(s,["formatters"]));this.ast=e.__parse(t,nt(nt({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?nt(nt(nt({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=nt(nt({},o[t]),i[t]||{}),e}),{})):o),n}),nt({},e)):e}(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:nn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.NumberFormat).bind.apply(e,rt([void 0],n,!1)))}),{cache:bn(i.number),strategy:fn.variadic}),getDateTimeFormat:nn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.DateTimeFormat).bind.apply(e,rt([void 0],n,!1)))}),{cache:bn(i.dateTime),strategy:fn.variadic}),getPluralRules:nn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.PluralRules).bind.apply(e,rt([void 0],n,!1)))}),{cache:bn(i.pluralRules),strategy:fn.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=tn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function wn(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var o in r)e[o]=r[o]}return e}var Sn=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=wn({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",wn({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,wn({},this.attributes,t))},withConverter:function(t){return e(wn({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Tn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.warn.apply(console,e)},An=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.error.apply(console,e)},Pn=function(){return"object"==("undefined"==typeof ac?"undefined":L()(ac))&&"function"==typeof ac.call},Rn=function(){return"undefined"!=typeof my&&void 0!==my.canIUse&&!Pn()},Ln=function(){return"object"==("undefined"==typeof window?"undefined":L()(window))},kn=function(){return function(){var e;return!!Ln()&&((null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"").toLowerCase().indexOf("alipayclient")>-1}()||Ln()&&"undefined"!=typeof AlipayJSBridge},Nn=function(){return"undefined"!=typeof wx&&void 0!==wx.canIUse},On=function(){return!(void 0===n.g||Ln()||Rn()||Nn()||Pn())},In="bailingualLocaleChange",Cn="bailingualDataChange",Mn="bailingualError";function Dn(e){void 0===e&&(e="");for(var t=(function(e){if("object"==("undefined"==typeof document?"undefined":L()(document)))try{return Sn.get(e)||Sn.get("_CHIPS-"+e)}catch(e){return Tn("[bailingual-sdk-glue] readCookie fail: "+e),""}}(e)||"").split("&"),n=0,r=t.length;n<r;n++){var o=t[n].split("="),i=o[0],a=o[1];if("lang"===i)return a}}var xn,Bn=function(e){if(void 0===e&&(e=""),e=e.replace("_","-"),kn()||Rn()||Pn()){var t=_e[e.toLowerCase()];t&&(e=t)}var n=e.split("-"),r=n[0],o=n[1];return o&&(e=r.toLowerCase()+"-"+o.toUpperCase()),ye[e.toLowerCase()]&&(e=ye[e.toLowerCase()]),Qn(Je,e)?e:""};function Un(e){return void 0===e&&(e=!0),Bn(function(e){return void 0===e&&(e=!0),Rn()||Pn()?my.env&&my.env.language||my.getSystemInfoSync().language:Nn()?wx.getSystemInfoSync().language:On()?n.g.BAILINGUAL_LOCALE:!!e&&function(){var e=Dn("x-hng")||Dn("hng");if(e)return e}()||function(){var e;if("object"==("undefined"==typeof document?"undefined":L()(document))){var t=null===(e=document.documentElement)||void 0===e?void 0:e.lang;if(t)return t}}()||function(){var e;if(Ln()){var t=(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(t)||[]).pop();if(n)return n}}()||function(){var e;if(Ln()&&window.navigator){var t=window.navigator,n=(null===(e=t.languages)||void 0===e?void 0:e[0])||t.language||t.userLanguage||t.browserLanguage;if(n)return n}}()}(e)||"")}function Hn(e,t,n){void 0===n&&(n={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&Sn.set(e,t,n)}catch(e){Tn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function jn(e,t){void 0===t&&(t={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&Sn.remove(e,t)}catch(e){Tn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function zn(){"object"==("undefined"==typeof document?"undefined":L()(document))&&"object"==("undefined"==typeof location?"undefined":L()(location))&&(jn("x-hng",{path:"/",domain:location.hostname}),jn("x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0}),jn("_CHIPS-x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0,Partitioned:!0}),jn("x-hng",{path:"/"}),jn("x-hng",{path:"/",SameSite:"None",Secure:!0}),jn("_CHIPS-x-hng",{path:"/",SameSite:"None",Secure:!0,Partitioned:!0}))}!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.MISSING_PARAM="MISSING_PARAM"}(xn||(xn={}));var Yn,Gn,Kn,Fn,Vn,Wn,qn,Jn,Xn=function(e){var t=e.code,n=e.message,r=e.err,o=e.textKey;this.code=t,this.message=n||(null==r?void 0:r.message)||"unknown error",this.stack=(null==r?void 0:r.stack)||r,this.textKey=o},Zn=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.forEach((function(t){Object.keys(t||{}).forEach((function(n){e[n]=t[n]}))})),e},Qn=function(e,t){return e.indexOf(t)>-1};function $n(e){var t,n;try{return Gn?(null===(t=Gn.getItem)||void 0===t?void 0:t.call(Gn,e))||"":Rn()||Pn()?(null===(n=my.getStorageSync({key:e}))||void 0===n?void 0:n.data)||"":Nn()?wx.getStorageSync(e)||"":"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.getItem(e)||""}catch(e){return""}}function er(e,t){var n;try{if(t=(t||"").toString(),Gn)return void(null===(n=Gn.setItem)||void 0===n||n.call(Gn,e,t));if(Rn()||Pn())return void my.setStorage({key:e,data:t});if(Nn())return void wx.setStorage({key:e,data:t});"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.setItem(e,t)}catch(e){}}function tr(e,t){return void 0===t&&(t=3),new Promise((function(n,r){var o,i,a,s;function u(){var e=s()[0];return e++,c.bind(this,e)}function c(e){if(s=function(){return[e]},!(e<t))return[1];var o=function(e){try{return u}catch(e){return r(e)}};try{var a;return i().then((function(e){try{return(a=e)?n(a):function(){try{return u}catch(e){return r(e)}}()}catch(e){return o()}}),o)}catch(e){o()}}return o=function(e){if(e.length&&"{"!==e[0]){var t=e.indexOf("{");t>-1&&(e=e.slice(t))}return e},i=function(){return new Promise((function(t,n){var r;return function(e){return Yn?Yn(e):Pn()?new Promise((function(t,n){my.request({url:e,success:function(e){t(e.data)},fail:function(){n()}})})):Rn()?new Promise((function(t,n){my.call("httpRequest",{url:e},(function(e){!e||e.error?n():t(e.data)}))})):Nn()?new Promise((function(t,n){wx.request({url:e,dataType:"text",success:function(e){t(e.data)},fail:function(e){n(e)}})})):"function"==typeof fetch?fetch(e).then((function(e){return e.text()})):"undefined"!=typeof XMLHttpRequest?new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4===r.readyState&&(200===r.status?t(r.responseText):n())},r.send()})):void 0}(e).then((function(e){try{return r=e,t(JSON.parse(o(r||"")))}catch(e){return n(e)}}),n)}))},(a=function(e){for(;e;){if(e.then)return void e.then(a,r);try{if(e.pop){if(e.length)return e.pop()?l.call(this):e;e=u}else e=e.call(this)}catch(e){return r(e)}}}.bind(this))(c.bind(this,0));function l(){return n()}}))}!function(e){e.DAILY="DAILY",e.PROD="PROD"}(qn||(qn={})),function(e){e.INTERNET="INTERNET",e.INTRANET="INTRANET"}(Jn||(Jn={}));var nr={ANTINTL:(Kn={},Kn[qn.DAILY]="https://bailingual-daily.marmot-cloud.com/manifest/",Kn[qn.PROD]="https://bailingual.marmot-cloud.com/manifest/",Kn),ALIPAY:(Fn={},Fn[qn.DAILY]="https://bailingual-assets-daily.alipay.com/manifest/",Fn[qn.PROD]="https://bailingual-assets.alipay.com/manifest/",Fn)},rr={};rr[Jn.INTERNET]=((Vn={})[qn.DAILY]=function(e,t,n){var r;return""+(n?null===(r=nr[n])||void 0===r?void 0:r[qn.DAILY]:"")+e+"/"+e+(t?"_"+t:"")+".json"},Vn[qn.PROD]=function(e,t,n){var r;return""+(n?null===(r=nr[n])||void 0===r?void 0:r[qn.PROD]:"")+e+"/"+e+(t?"_"+t:"")+".json"},Vn),rr[Jn.INTRANET]=((Wn={})[qn.DAILY]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/daily/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},Wn[qn.PROD]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/prod/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},Wn);var or;function ir(){return"true"===$n("__BAILINGUAL_IN_CONTEXT__")}function ar(){if(!(Rn()||Nn()||Pn())){var e=$n("BAILINGUAL_IN_CONTEXT_CONFIG")||"{}",t=!1;try{t=JSON.parse(e).enableExtension}catch(e){Tn("[bailingual-sdk-glue] JSON.parse data fail: "+e)}or=ir()&&t}}function sr(){return void 0===or&&ar(),or}function ur(){er("__BAILINGUAL_IN_CONTEXT__","true"),ar(),new Promise((function(e,t){if(Rn()||Nn()||Pn())return e();var n;if("undefined"!=typeof document&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script"))return tr("https://render.alipay.com/p/yuyan/bailingual-in-context_bailingual-in-context-version/zh_CN.json").then(function(e){try{return(null==(n=e)?void 0:n.version)&&function(e){if(e&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script")){var t=document.createElement("script");t.setAttribute("class","_BAILINGUAL_IN_CONTEXT_script"),t.setAttribute("src",e),document.body.appendChild(t)}}("https://unpkg.alipay.com/@alipay/bailingual-in-context@"+n.version+"/public/dist/index.js"),r.call(this)}catch(e){return t(e)}}.bind(this),t);function r(){return e()}return r.call(this)}))}function cr(e,t,n){return"##@@@"+t+"##"+e+"@@@##"+n+"@@@##"}function lr(e){var t=[];return e.forEach((function(e){var n=e.key,r=e.count;if(n&&r){var o=-1!==n.indexOf("&")?encodeURIComponent(n):n;t.push(o+"&"+r)}})),t.join(";")}function hr(e,t){var n=function(e){switch(e){case"CN":default:return"https://collect.alipay.com/yuyan/?biztype=yuyanmonitorl";case"SG":return"https://imdap-sea.alipay.com/loggw/dwcookieLogGet.do";case"US":return"https://imdap.alipay.com/loggw/dwcookieLogGet.do"}}(e);if(Pn())my.request({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t,url:n});else if(Rn())my.call("httpRequest",{url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if(Nn())wx.request({url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&"function"==typeof Blob){var r=new Blob([t],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(n,r)}else if(Ln()&&"undefined"!=typeof XMLHttpRequest){var o=new XMLHttpRequest;o.open("POST",n,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.send(t)}else"function"==typeof fetch?fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t}):console.error("No supported method to send data",e,t)}!function(){if(!(Rn()||Nn()||Pn()))try{var e=function(e){if(!e)return{};var t={};return e.slice(1).split("&").forEach((function(e){var n=e.split("="),r=n[0],o=n[1];t[r]=o})),t}("undefined"!=typeof location?location.search:"");if(ir()||e.hasOwnProperty("SML_DEV")||e.hasOwnProperty("BAILINGUAL_IN_CONTEXT")||e.hasOwnProperty("BLG_RIC"))return void ur();if("undefined"==typeof document)return;if(kn()){var t=0,n=0;document.addEventListener("titleClick",(function(){if(!sr()){if(7==++n)return ur(),n=0,clearTimeout(t),void(t=null);clearTimeout(t),t=setTimeout((function(){n=0,t=null}),1500)}}))}document.addEventListener("__BAILINGUAL_IN_CONTEXT_DISABLE__",(function(){er("__BAILINGUAL_IN_CONTEXT__","false"),ar()}))}catch(e){Tn("[bailingual-sdk-glue] initBailingualInContext fail: "+e)}}();var fr=function(e){return e<10?"0"+e:""+e};function dr(){var e=new Date;return e.getFullYear()+"-"+fr(e.getMonth()+1)+"-"+fr(e.getDate())+" "+fr(e.getHours())+":"+fr(e.getMinutes())+":"+fr(e.getSeconds())+":"+e.getMilliseconds()}function pr(e,t){void 0===t&&(t="^");var n=[];if(e instanceof Array)n=e;else if(e instanceof Object)for(var r in e)e.hasOwnProperty(r)&&n.push(r+"="+(e[r]||""));return n.join(t)}function gr(e,t){var n,r,o;if(!t||!t.appName||!t.keyCounts.length)return"";var i=[];switch(e){case"CN":default:i=["D-AE",dr(),"","","2","","","","1000","102023","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",pr({code:"1000",msg:"",d1:t.appName,d3:(null===(n=t.textLocale)||void 0===n?void 0:n.replace(/-/g,"_"))||"",d4:t.sdkName||"",d5:t.sdkVersion||"",env:t.env||"PROD",c1:lr(t.keyCounts),sampleRate:"1",yuyan_id:"180020010101313281",fullURL:"-",s_c:"true"})];break;case"SG":i=["D-AE",dr(),"","","2","","","","1000","bailingualTextUsage","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",pr({code:"1000",msg:"",d1:t.appName,d3:(null===(r=t.textLocale)||void 0===r?void 0:r.replace(/-/g,"_"))||"",d4:t.sdkName||"",d5:t.sdkVersion||"",env:t.env||"PROD",c1:lr(t.keyCounts)})];break;case"US":i=["D-VM",dr(),"","","4","-","-","-","exposure","-","-","-","-","-","-","bailingualTextUsage","2","H5behavior","c","-","-","-",pr({appName:t.appName,textLocale:(null===(o=t.textLocale)||void 0===o?void 0:o.replace(/-/g,"_"))||"",sdkName:t.sdkName||"",sdkVersion:t.sdkVersion||"",env:t.env||"PROD",c1:lr(t.keyCounts)}),"-","-","-","-","-","-","-","-","-","1000","-","-","UNKNOWN","-","-","zh-cn","-","-","-","-","-","-","-","-",Date.now().toString()+"-"+(100*Math.random()).toFixed(0),"-","-"]}return"data="+function(e){return e?encodeURIComponent(e).replace(/'/g,"%27"):e}(i.join())+"&time="+(new Date).getTime()}var vr=function(e){var t=e.region;this.queue=[],this.region=t,this.startTimer()};vr.prototype.startTimer=function(){var e,t,n=this;this.region?(this.timer=setTimeout((function(){n._report()}),5e3),Ln()&&(null===(t=null===(e=window.document)||void 0===e?void 0:e.addEventListener)||void 0===t||t.call(e,"beforeunload",(function(){n._report()})))):clearTimeout(this.timer)},vr.prototype._report=function(){if(clearTimeout(this.timer),this.region&&this.queue.length){var e=new Map;this.queue.forEach((function(t){var n=t.appName+"-"+t.textKey+"-"+t.env,r=e.get(n);r?r.textUsedCount+=t.textUsedCount:e.set(n,t)}));var t=Array.from(e.values());!function(e,t){if(!e)throw new Error("No Region");if(0!==t.length)try{var n=new Map;t.forEach((function(e){var t=e.appName+"-"+e.textLocale+"-"+e.env;n.has(t)||n.set(t,{appName:e.appName,textLocale:e.textLocale,sdkName:e.sdkName,sdkVersion:e.sdkVersion,env:e.env,keyCounts:[]}),n.get(t).keyCounts.push({key:e.textKey,count:e.textUsedCount})})),n.forEach((function(t){for(var n=t.keyCounts,r=0;r<n.length;r+=200){var o=n.slice(r,r+200),i=gr(e,{appName:t.appName,textLocale:t.textLocale,sdkName:t.sdkName,sdkVersion:t.sdkVersion,env:t.env,keyCounts:o});hr(e,i)}}))}catch(n){console.error("reportUsageRequest error with",e,t)}else console.error("empty data")}(this.region,t),this.queue=[]}this.startTimer()},vr.prototype.getRegion=function(){return this.region},vr.prototype.setRegion=function(e){this.region=e,this.startTimer()},vr.prototype.report=function(e){this.region&&this.queue.push(e)};var mr=function(){this.originStrings={},this.availableLocales=[],this.langPkgsNoPatch={},this.i18nText={},this.eventHandler={},this.intlMessages={},this.intlPDKVMessages={},this.appName="",this.canUsePatchedData=!0,this.canStoreCurrentLocaleToCookie=!0,this.canReadLocaleFromCookie=!0},yr={usageReportRegion:{configurable:!0}};mr.setCustomizedGetSystemLocale=function(e){this.customizedGetSystemLocale=e},mr.customizeGetSystemLocale=function(e){this.customizedGetSystemLocale=e},mr.customizeStorage=function(e){return function(e){Gn=e}(e)},mr.getDataFromStorage=function(e){return $n(e)},mr.setDataToStorage=function(e,t){return er(e,t)},mr.customizeFetch=function(e){Yn=e},yr.usageReportRegion.get=function(){var e;return null===(e=this.usageReporter)||void 0===e?void 0:e.getRegion()},yr.usageReportRegion.set=function(e){var t;this.usageReporter||(this.usageReporter=new vr({region:e})),e&&(null===(t=this.usageReporter)||void 0===t||t.setRegion(e))},mr.prototype.init=function(e,t){var n,r;this.initBailingualData(e),this.changeLocale(t||(null===(r=(n=this.constructor).customizedGetSystemLocale)||void 0===r?void 0:r.call(n))||Un(this.canReadLocaleFromCookie))},mr.prototype.getPatchI18nKey=function(){return this.appName?this.tag?this.appName+"+"+this.tag:this.appName:""},mr.prototype.initData=function(e){var t,n;this.initBailingualData(e||this.getServerSideFallbackData()),this.changeLocale((null===(n=(t=this.constructor).customizedGetSystemLocale)||void 0===n?void 0:n.call(t))||Un(this.canReadLocaleFromCookie))},mr.prototype.getServerSideFallbackData=function(){if(On()){var e=n.g.BAILINGUAL_FALLBACK;return e||(Tn("[bailingual-sdk-glue] [Server] no fallback data found."),e={}),e}},mr.prototype.initBailingualData=function(e){var t=this;this.originStrings=e,this.availableLocales=[],this.langPkgsNoPatch={},this.i18nText={},this.eventHandler={},this.intlMessages={},this.intlPDKVMessages={},this.appName=e.appName||"",this.currentLocale=void 0,this.bizEnv=e.bizEnv,this.usageReportRegion=e.usageReportRegion,this.usageReporter=new vr({region:this.usageReportRegion}),this.tag=e.tag||"",Object.keys(e).forEach((function(n){if("object"==L()(e[n])){var r=Bn(n);if(!r)return void An("[bailingual-sdk-glue] "+n+" is not a valid locale code");t.langPkgsNoPatch[r]=Zn({},e[n]),t.i18nText[r]=Zn({},e[n])}})),this.handlePatchedData(),this.availableLocales=Object.keys(this.i18nText);var n=e.defaultLocale||this.availableLocales[0];!e.defaultLocale&&n&&Tn("[bailingual-sdk-glue] no defaultLocale specified, use first locale code '"+n+"' instead."),this.defaultLocale=this.judgeLocaleCode(n),this.defaultLocale||An("[bailingual-sdk-glue] defaultLocale '"+n+"' is invalid.")},mr.prototype.handlePatchedData=function(){var e,t=this,n=this.getPatchI18nKey();if(this.canUsePatchedData){var r=function(e){if(void 0===e&&(e=""),!e)return{};try{var t=$n("BAILINGUAL_PATCH_I18N_DELETED-"+e);return t?JSON.parse(t):{}}catch(e){return An("[bailingual-sdk-glue] fail to get local deleted data, error detail: "+e),{}}}(n),o=function(e){if(void 0===e&&(e=""),!e)return{};try{var t=$n("BAILINGUAL_PATCH_I18N-"+e);return t?JSON.parse(t):{}}catch(e){return An("[bailingual-sdk-glue] fail to get local patch data, error detail: "+e),{}}}(n);Object.keys(o).forEach((function(e){Qn(Je,e)&&(t.i18nText[e]||Tn("[bailingual-sdk-glue] locale '"+e+"' is not exist in init data, but found in patch data."),t.i18nText[e]=t.i18nText[e]||{},Zn(t.i18nText[e],o[e]))})),null===(e=r.removedLocales)||void 0===e||e.forEach((function(e){e=Bn(e),Qn(Je,e)&&delete t.i18nText[e]})),Object.keys(r.removedKeys||{}).forEach((function(e){if(e=Bn(e),Qn(Je,e)){var n=t.i18nText[e],o=r.removedKeys[e];n&&Array.isArray(o)&&o.forEach((function(e){delete n[e]}))}}))}else n&&function(e){if(e)try{er("BAILINGUAL_PATCH_I18N-"+e,""),er("BAILINGUAL_PATCH_I18N_DELETED-"+e,"")}catch(e){An("[bailingual-sdk-glue] fail to remove local patch data, error detail: "+e)}}(n)},mr.prototype.setLocale=function(e){this.currentLocale!==e&&(this.currentLocale=e,this.canStoreCurrentLocaleToCookie&&function(e){"object"!=("undefined"==typeof document?"undefined":L()(document))||"object"!=("undefined"==typeof location?"undefined":L()(location))||kn()||Rn()||Pn()||Nn()||(zn(),Hn("x-hng","lang="+e,{path:"/",expires:180}),Hn("_CHIPS-x-hng","lang="+e,{path:"/",expires:180,SameSite:"None",Partitioned:!0,Secure:!0}))}(e),this.emit(In,e))},mr.prototype.getIntlMessageWithPDKVFormat=function(e,t,n){var r=t.id;this.intlPDKVMessages[e]=this.intlPDKVMessages[e]||{};var o=this.intlPDKVMessages[e][r];if(!o){var i=n[r];i.match(Xe)||(i=cr(this.appName,r,i)),o=this.createIntlMessageFormat(i,e),this.intlPDKVMessages[e][r]=o}return o},mr.prototype.getIntlMessageWithNormalFormat=function(e,t,n){var r=t.id,o=(null==n?void 0:n[r])||t.dm||t.defaultMessage||"";if(null==n?void 0:n[r]){this.intlMessages[e]=this.intlMessages[e]||{};var i=this.intlMessages[e][r];return i||(i=this.createIntlMessageFormat(o,e),this.intlMessages[e][r]=i),i}return this.createIntlMessageFormat(o,e)},mr.prototype.formatByLocaleCode=function(e,t,n){var r,o=this,i=this.i18nText[n];try{r=sr()&&e.id&&(null==i?void 0:i[e.id])?this.getIntlMessageWithPDKVFormat(n,e,i):this.getIntlMessageWithNormalFormat(n,e,i)}catch(t){var a=(null==i?void 0:i[e.id])||e.dm||e.defaultMessage||"",s="[bailingual-sdk-glue] fail to create IntlMessageFormat instance, return original string: "+a;return Tn(s),Tn("[bailingual-sdk-glue] error detail:",t),this.emit(Mn,new Xn({code:xn.FORMAT_ERROR,message:s,err:t,textKey:e.id})),a}if(!r)return"";try{var u=t&&Object.keys(t)||[],c=this.normalizeIntlMessageVariable(r,t);return Object.keys(c).forEach((function(t){Qn(u,t)||o.emit(Mn,new Xn({code:xn.MISSING_PARAM,message:"["+e.id+"] missing param: "+t,textKey:e.id}))})),r.format(c)}catch(n){var l="[bailingual-sdk-glue] format error with key: "+e.id+", value [%s], params: "+t;return Tn(l),Tn("[bailingual-sdk-glue] error detail:",n),this.emit(Mn,new Xn({code:xn.FORMAT_ERROR,message:l,err:n,textKey:e.id})),""}},mr.prototype.format=function(e,t,n){void 0===t&&(t={});var r=n;return r&&((r=Bn(r))||An("[bailingual-sdk-glue] "+n+" is not a valid locale code, use default locale instead.")),r||(r=this.currentLocale),r||An("[bailingual-sdk-glue] no locale code found!"),this.formatByLocaleCode(e,t,r)},mr.prototype.get=function(e,t,n){return"string"==typeof e?(this.reportUsageData({id:e,localeCode:n}),this.format({id:e},t,n)):(this.reportUsageData({id:e.id,localeCode:n}),this.format(e,t,n))},mr.prototype.judgeLocaleCode=function(e){if(void 0===e&&(e=""),e=Bn(e),Qn(this.availableLocales,e))return e},mr.prototype.changeLocale=function(e){var t=this.judgeLocaleCode(e);t||this.currentLocale||(t=this.defaultLocale),t?this.setLocale(t):An("[bailingual-sdk-glue] '"+e+"' is not a vaid locale code")},mr.prototype.unsafeChangeLocale=function(e){void 0===e&&(e=""),this.setLocale(e)},mr.prototype.getAllData=function(e){var t=this;if(this.i18nText&&e&&sr()){var n={};return Object.keys(this.i18nText).forEach((function(e){n[e]=t.buildPDKVLocaleText(t.i18nText[e])})),n}return this.i18nText},mr.prototype.buildPDKVLocaleText=function(e){var t=this,n={};return Object.keys(e||{}).forEach((function(r){var o=e[r];o.match(Xe)||(o=cr(t.appName,r,o)),n[r]=o})),n},mr.prototype.getDataWithLocale=function(e,t){e||Tn("[bailingual-sdk-glue] no locale code specified, use default locale ("+this.defaultLocale+") instead.");var n=this.i18nText[Bn(e||this.defaultLocale)];return n&&t&&sr()?this.buildPDKVLocaleText(n):n},mr.prototype.getDataFromCurrentLocale=function(e){if(this.currentLocale)return this.getDataWithLocale(this.currentLocale,e);An("[bailingual-sdk-glue] error occured: no 'currentLocale' found, please check if you have called 'initData' or 'changeLocale' method before.")},mr.prototype.getCurrentLocale=function(){return this.currentLocale||""},mr.prototype.getDefaultLocale=function(){return this.defaultLocale},mr.prototype.formatLocaleCode=function(e){return Bn(e)},mr.prototype.patchI18n=function(e,t){return new Promise(function(n,r){var o,i,a,s;if(!(t=t||{}).isIntranet&&!t.buIdentifier)return An('[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'),this.emit(Mn,new Xn({code:xn.MISSING_PARAM,message:'[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'})),n();if(!Array.isArray(e)){if(!e.appName){if(!this.appName)return An("[bailingual-sdk-glue] no appName found, patchI18n will not work."),n();e.appName=this.appName}e.tag||(e.tag=this.tag),e=[e]}return(e=e.filter((function(e){return!!(null==e?void 0:e.appName)||(An("[bailingual-sdk-glue] no appName found, skip: "+e),!1)}))).length?function(e,t,n){return new Promise((function(r,o){return function(e,t){return new Promise((function(n,r){var o,i,a,s;return o=t&&"buIdentifier"in t?t.buIdentifier:void 0,(i=e.map((function(e){return tr(function(e,t,n,r,o){var i,a;return null===(a=null===(i=rr[t])||void 0===i?void 0:i[e])||void 0===a?void 0:a.call(i,n,r,o)}(t.isDaily?qn.DAILY:qn.PROD,t.isIntranet?Jn.INTRANET:Jn.INTERNET,e.appName,e.tag,o)).then((function(e){return e?tr(e.url):void 0})).then((function(e){return e||{}}))})),a=[],s=0,new Promise((function(e){i.forEach((function(t,n){t.then((function(t){a[n]=t,++s===i.length&&e(a)}))}))}))).then((function(e){try{return n(e)}catch(e){return r(e)}}),r)}))}(t,n).then((function(t){try{return r(function(e,t){var n={};t.forEach((function(e){e=e||{},Object.keys(e).forEach((function(t){if("object"==L()(e[t])){var r=Bn(t);r&&(n[r]=n[r]||{},Zn(n[r],e[t]))}}))}));var r=Object.keys(n),o=Object.keys(e);r.sort().toString()!==o.sort().toString()&&Tn("[bailingual-sdk-glue] locales in local data '"+o+"' is different from cdn data '"+r+"'");var i={removedKeys:{},removedLocales:o.filter((function(e){return!Qn(r,e)}))},a={},s={};return r.forEach((function(t){var r=n[t]||{},o=e[t]||{};a[t]=a[t]||{};var i=a[t];Object.keys(r).forEach((function(e){Object.prototype.hasOwnProperty.call(r,e)&&r[e]!==o[e]&&(i[e]=r[e])})),s[t]=Zn({},o,r)})),o.forEach((function(t){if(!Qn(i.removedLocales,t)){var r=e[t]||{},o=n[t]||{},a=s[t]||{};Object.keys(r).forEach((function(e){Object.prototype.hasOwnProperty.call(o,e)||(delete a[e],i.removedKeys[t]=i.removedKeys[t]||[],Qn(i.removedKeys[t],e)||i.removedKeys[t].push(e))}))}})),{newI18nData:s,patchedData:a,deletedData:i}}(e,t))}catch(e){return o(e)}}),o)}))}(this.langPkgsNoPatch,e,t).then(function(e){var t;try{return o=(t=e).newI18nData,i=t.patchedData,a=t.deletedData,s=this.getPatchI18nKey(),this.updateData(o)&&s&&(er("BAILINGUAL_PATCH_I18N-"+s,JSON.stringify(i)),er("BAILINGUAL_PATCH_I18N_DELETED-"+s,JSON.stringify(a))),n()}catch(e){return r(e)}}.bind(this),r):(An("[bailingual-sdk-glue] no bailingual packages found, stop patch"),n())}.bind(this))},mr.prototype.updateData=function(e){var t=Object.keys(e).filter((function(e){return Qn(Je,e)}));return this.defaultLocale&&!Qn(t,this.defaultLocale)?(An("[bailingual-sdk-glue] default locale "+this.defaultLocale+" is not exist in new data, can't update data."),!1):(this.i18nText=e,this.intlMessages={},this.intlPDKVMessages={},this.availableLocales=t,this.emit(Cn,e),this.currentLocale&&!Qn(t,this.currentLocale)&&(Tn("[bailingual-sdk-glue] current locale "+this.currentLocale+" is not available, use default locale ("+this.defaultLocale+") instead."),this.changeLocale(this.defaultLocale)),!0)},mr.prototype.on=function(e,t){this.eventHandler[e]=this.eventHandler[e]||[],this.eventHandler[e].push(t)},mr.prototype.off=function(e,t){var n,r=this;null===(n=this.eventHandler[e])||void 0===n||n.forEach((function(n,o){n===t&&(r.eventHandler[e][o]=null)}))},mr.prototype.onDataChange=function(e){this.on(Cn,e)},mr.prototype.offDataChange=function(e){this.off(Cn,e)},mr.prototype.onLocaleChange=function(e){this.on(In,e)},mr.prototype.offLocaleChange=function(e){this.off(In,e)},mr.prototype.onError=function(e){this.on(Mn,e)},mr.prototype.offError=function(e){this.off(Mn,e)},mr.prototype.emit=function(e,t){var n,r;null===(r=null===(n=this.eventHandler[e])||void 0===n?void 0:n.forEach)||void 0===r||r.call(n,(function(e){null==e||e(t)}))},mr.prototype.stopPatchI18n=function(){this.canUsePatchedData=!1},mr.prototype.setAutoStoreCurrentLocaleToCookie=function(e){this.canStoreCurrentLocaleToCookie=!!e},mr.prototype.setAutoReadLocaleFromCookie=function(e){this.canReadLocaleFromCookie=!!e},mr.prototype.getAllLocales=function(){return[].concat(this.availableLocales)},mr.prototype.changeUsageReportRegion=function(e){this.usageReportRegion=e},mr.prototype.changeBizEnv=function(e){this.bizEnv=e},mr.prototype.reportUsageData=function(e){var t=e.id,n=e.count;void 0===n&&(n=1);var r,o=e.localeCode;void 0===o&&(o=this.currentLocale),null===(r=this.usageReporter)||void 0===r||r.report({appName:this.appName,textKey:t,textLocale:o,textUsedCount:n,sdkName:"bailingual-sdk-glue",env:this.bizEnv||"PROD"})},mr.prototype.removeBailingualCookie=function(){zn()},Object.defineProperties(mr.prototype,yr),mr.customizedGetSystemLocale=void 0;var _r=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.normalizeIntlMessageVariable=function(e,t){var n=e.getAst(),r=t||{};return n.forEach((function(e){Qn([et.argument,et.number,et.date,et.time,et.select,et.plural],e.type)&&"value"in e&&void 0===r[e.value]&&(r[e.value]="")})),r},t.prototype.createIntlMessageFormat=function(e,t){return new En(e,t,{},{ignoreTag:!0})},t}(mr),br=(new _r,"antom-language-storage-key"),Er="en_US",wr=new _r;function Sr(e){if(e)return Tr(e);try{var t=window._amsSdkLanguage||window.sessionStorage.getItem(br)||window.localStorage.getItem(br);if(t)return Tr(t)}catch(e){}if(navigator.language){var n=!/[-,_]/.test(navigator.language),r=wr.getAllLocales().find((function(e){return n?e.startsWith(navigator.language):Tr(e)===Tr(navigator.language)}))||Er;if(r)return r=Tr(r)}return Er}function Tr(e){var t=e;t||(t=Er);var n=t.split(/[-,_]/),r=P(n,2),o=r[0],i=r[1];return o||(o="en"),i?"".concat(o.toLowerCase(),"_").concat(i.toUpperCase()):o.toLowerCase()}"true"==={NODE_ENV:"production",PUBLIC_PATH:"/"}.ANTOM_CORE_UNIT_TEST&&wr.initData(window.bailingual_ckp||{});var Ar={API_MISS_PARAMS:"API_MISS_PARAMS",API_GATEWAY_TIMEOUT:"API_GATEWAY_TIMEOUT",API_SYSTEM_ERROR:"API_SYSTEM_ERROR",API_TIMEOUT:"API_TIMEOUT",API_NOT_LOGIN:"API_NOT_LOGIN",API_GATEWAY_ERROR:"API_GATEWAY_ERROR"},Pr=b(b({},{UNKNOWN_ERROR:"UNKNOWN_ERROR",NO_PORTS_ERROR:"NO_PORTS_ERROR",INVALID_REDIRECT_URL:"INVALID_REDIRECT_URL"}),Ar);O.initConfig({i18n:wr,i18nPrefix:"ANTOMSDK",getDefaultMessage:function(){return wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})}});var Rr=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),y(f(e),"name","AntomError"),y(f(e),"response",void 0),e}return l(n,null,[{key:"isError",value:function(e){return O.isError(e)}},{key:"unificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";return O.unificationError(e,t)}}]),n}(O),Lr=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),y(f(e),"name","AntomCoreError"),e}return l(n)}(Rr),kr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaultRequestScope";return e?{success:function(n,r,o){e.log({code:"11",msg:n,d1:o||"无traceId",d2:t,d3:Math.round(r),d5:"是",m1:1})},error:function(n,r,o,i,a){e.log({code:"11",msg:n,d1:a||"无traceId",d2:t,d3:Math.round(r),d4:"".concat(i,"-").concat(o),d5:"否",m1:0})}}:{success:function(){},error:function(){}}},Nr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaultJsErrorScope";return function(n){e&&e.log({code:"12",msg:(null==n?void 0:n.message)||"上报未知的异常信息",d1:(null==n?void 0:n.stack)||"无stack信息",d2:t})}},Or=(window||{}).navigator,Ir=Or.userAgent,Cr=function(){var e=/OpenHarmony/i.test(Or.userAgent),t=/Phone/i.test(Or.userAgent),n=/Tablet/i.test(Or.userAgent);return e&&(t||n)},Mr=/iPhone|iPad|iPod/i.test(Ir)||"MacIntel"===Or.platform&&Or.maxTouchPoints>1,Dr=/Android/i.test(Ir),xr=(/\bMacintosh\b/.test(Ir),/Windows NT/.test(Ir),function(){return/Android|iPhone|iPad|iPod|Mobile|SymbianOS|Windows Phone/.test(Ir)||Cr()}),Br=Mr,Ur=Dr,Hr=!!xr(),jr=!xr();Cr();var zr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(!e){if(t)throw t;return}return JSON.parse(e)}catch(e){if(t)throw t;return}},Yr=function(e){var t=e.split("&&")[3];if(t){var n=function(e){try{if(!e)return;var t=atob(e),n=Uint8Array.from(t,(function(e){return e.codePointAt(0)}));return(new TextDecoder).decode(n)}catch(e){return}}(t);if(n)return zr(n)}},Gr=function(e){return(null==e?void 0:e.split("&&").slice(0,2).join("&&"))||"无trackId"},Kr=function(e){return e.split("&&")[1]||"SG"};function Fr(e,t){return function(){return e.apply(t,arguments)}}var Vr,Wr,qr=n(89),Jr=Object.prototype.toString,Xr=Object.getPrototypeOf,Zr=Symbol.iterator,Qr=Symbol.toStringTag,$r=(Vr=Object.prototype.hasOwnProperty,function(e,t){return Vr.call(e,t)}),eo=function(e,t){for(var n=e,r=[];null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),$r(n,t))return!0;n=Xr(n)}return!1},to=(Wr=Object.create(null),function(e){var t=Jr.call(e);return Wr[t]||(Wr[t]=t.slice(8,-1).toLowerCase())}),no=function(e){return e=e.toLowerCase(),function(t){return to(t)===e}},ro=function(e){return function(t){return R(t)===e}},oo=Array.isArray,io=ro("undefined");function ao(e){return null!==e&&!io(e)&&null!==e.constructor&&!io(e.constructor)&&co(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var so=no("ArrayBuffer");var uo=ro("string"),co=ro("function"),lo=ro("number"),ho=function(e){return null!==e&&"object"===R(e)},fo=function(e){if(!ho(e))return!1;var t=Xr(e);return!(null!==t&&t!==Object.prototype&&null!==Xr(t)||eo(e,Qr)||eo(e,Zr))},po=no("Date"),go=no("File"),vo=no("Blob"),mo=no("FileList");var yo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},_o=void 0!==yo.FormData?yo.FormData:void 0,bo=no("URLSearchParams"),Eo=["ReadableStream","Request","Response","Headers"].map(no),wo=P(Eo,4),So=wo[0],To=wo[1],Ao=wo[2],Po=wo[3];function Ro(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.allOwnKeys,a=void 0!==i&&i;if(null!=e)if("object"!==R(e)&&(e=[e]),oo(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(ao(e))return;var s,u=a?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;for(n=0;n<c;n++)s=u[n],t.call(null,e[s],s,e)}}function Lo(e,t){if(ao(e))return null;t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var ko="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,No=function(e){return!io(e)&&e!==ko};var Oo,Io=(Oo="undefined"!=typeof Uint8Array&&Xr(Uint8Array),function(e){return Oo&&e instanceof Oo}),Co=no("HTMLFormElement"),Mo=Object.prototype.propertyIsEnumerable,Do=no("RegExp"),xo=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};Ro(n,(function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};var Bo,Uo,Ho,jo,zo=no("AsyncFunction"),Yo=(Bo="function"==typeof setImmediate,Uo=co(ko.postMessage),Bo?setImmediate:Uo?(Ho="axios@".concat(Math.random()),jo=[],ko.addEventListener("message",(function(e){var t=e.source,n=e.data;t===ko&&n===Ho&&jo.length&&jo.shift()()}),!1),function(e){jo.push(e),ko.postMessage(Ho,"*")}):function(e){return setTimeout(e)}),Go="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ko):void 0!==qr&&qr.nextTick||Yo,Ko=function(e){return null!=e&&co(e[Zr])},Fo={isArray:oo,isArrayBuffer:so,isBuffer:ao,isFormData:function(e){if(!e)return!1;if(_o&&e instanceof _o)return!0;var t=Xr(e);if(!t||t===Object.prototype)return!1;if(!co(e.append))return!1;var n=to(e);return"formdata"===n||"object"===n&&co(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&so(e.buffer)},isString:uo,isNumber:lo,isBoolean:function(e){return!0===e||!1===e},isObject:ho,isPlainObject:fo,isEmptyObject:function(e){if(!ho(e)||ao(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:So,isRequest:To,isResponse:Ao,isHeaders:Po,isUndefined:io,isDate:po,isFile:go,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:vo,isRegExp:Do,isFunction:co,isStream:function(e){return ho(e)&&co(e.pipe)},isURLSearchParams:bo,isTypedArray:Io,isFileList:mo,forEach:Ro,merge:function e(){for(var t=No(this)&&this||{},n=t.caseless,r=t.skipUndefined,o={},i=function(t,i){if("__proto__"!==i&&"constructor"!==i&&"prototype"!==i){var a=n&&"string"==typeof i&&Lo(o,i)||i,s=$r(o,a)?o[a]:void 0;fo(s)&&fo(t)?o[a]=e(s,t):fo(t)?o[a]=e({},t):oo(t)?o[a]=t.slice():r&&io(t)||(o[a]=t)}},a=0,s=arguments.length;a<s;a++){var u=a<0||arguments.length<=a?void 0:arguments[a];if(u&&!ao(u)&&(Ro(u,i),"object"===R(u)&&!oo(u)))for(var c=Object.getOwnPropertySymbols(u),l=0;l<c.length;l++){var h=c[l];Mo.call(u,h)&&i(u[h],h)}}return o},extend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return Ro(t,(function(t,r){n&&co(t)?Object.defineProperty(e,r,{__proto__:null,value:Fr(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Xr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:to,kindOfTest:no,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(oo(e))return e;var t=e.length;if(!lo(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Zr]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Co,hasOwnProperty:$r,hasOwnProp:$r,hasOwnInPrototypeChain:eo,getSafeProp:function(e,t){return null!=e&&eo(e,t)?e[t]:void 0},reduceDescriptors:xo,freezeMethods:function(e){xo(e,(function(t,n){if(co(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];co(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return oo(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:Lo,global:ko,isContextDefined:No,isSpecCompliantForm:function(e){return!!(e&&co(e.append)&&"FormData"===e[Qr]&&e[Zr])},toJSONObject:function(e){var t=new WeakSet;return function e(n){if(ho(n)){if(t.has(n))return;if(ao(n))return n;if(!("toJSON"in n)){t.add(n);var r=oo(n)?[]:{};return Ro(n,(function(t,n){var o=e(t);!io(o)&&(r[n]=o)})),t.delete(n),r}}return n}(e)},isAsyncFn:zo,isThenable:function(e){return e&&(ho(e)||co(e))&&co(e.then)&&co(e.catch)},setImmediate:Yo,asap:Go,isIterable:Ko,isSafeIterable:function(e){return null!=e&&eo(e,Zr)&&Ko(e)}},Vo=Fo.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Wo=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),qo=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Jo(e,t){return Fo.isArray(e)?e.map((function(e){return Jo(e,t)})):function(e){for(var t=0,n=e.length;t<n;){var r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;n>t;){var o=e.charCodeAt(n-1);if(9!==o&&32!==o)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Xo(e){var t=Object.create(null);return Fo.forEach(e.toJSON(),(function(e,n){t[n]=function(e){return Jo(e,qo)}(e)})),t}var Zo=Symbol("internals");function Qo(e){return e&&String(e).trim().toLowerCase()}function $o(e){return!1===e||null==e?e:Fo.isArray(e)?e.map($o):function(e){return Jo(e,Wo)}(String(e))}function ei(e,t,n,r,o){return Fo.isFunction(r)?r.call(this,t,n):(o&&(t=n),Fo.isString(t)?Fo.isString(r)?-1!==t.indexOf(r):Fo.isRegExp(r)?r.test(t):void 0:void 0)}var ti=function(e,t){function n(e){u(this,n),e&&this.set(e)}return l(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=Qo(t);if(o){var i=Fo.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=$o(e))}}var a=function(e,t){return Fo.forEach(e,(function(e,n){return o(e,n,t)}))};if(Fo.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Fo.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(function(e){var t,n,r,o={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&Vo[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)})),o}(e),t);else if(Fo.isObject(e)&&Fo.isSafeIterable(e)){var s,u,c,l=Object.create(null),h=i(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(!Fo.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],Fo.hasOwnProp(l,u)?(s=l[u],l[u]=Fo.isArray(s)?[].concat(C(s),[f[1]]):[s,f[1]]):l[u]=f[1]}}catch(e){h.e(e)}finally{h.f()}a(l,t)}else null!=e&&o(t,e,n);return this}},{key:"get",value:function(e,t){if(e=Qo(e)){var n=Fo.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(Fo.isFunction(t))return t.call(this,r,n);if(Fo.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Qo(e)){var n=Fo.findKey(this,e);return!(!n||void 0===this[n]||t&&!ei(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=Qo(e)){var o=Fo.findKey(n,e);!o||t&&!ei(0,n[o],o,t)||(delete n[o],r=!0)}}return Fo.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!ei(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return Fo.forEach(this,(function(r,o){var i=Fo.findKey(n,o);if(i)return t[i]=$o(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=$o(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return Fo.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&Fo.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=P(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:"getSetCookie",value:function(){return this.get("set-cookie")||[]}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Zo]=this[Zo]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=Qo(e);t[r]||(!function(e,t){var n=Fo.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Fo.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Fo.reduceDescriptors(ti.prototype,(function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}})),Fo.freezeMethods(ti);var ni=ti;function ri(e,t){var n=new Set(t.map((function(e){return String(e).toLowerCase()}))),r=[];return function e(t){if(null===t||"object"!==R(t))return t;if(Fo.isBuffer(t))return t;if(-1===r.indexOf(t)){var o;if(t instanceof ni&&(t=t.toJSON()),r.push(t),Fo.isArray(t))o=[],t.forEach((function(t,n){var r=e(t);Fo.isUndefined(r)||(o[n]=r)}));else{if(!Fo.isPlainObject(t)&&function(e){if(Fo.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Fo.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(t))return r.pop(),t;o=Object.create(null);for(var i=0,a=Object.entries(t);i<a.length;i++){var s=P(a[i],2),u=s[0],c=s[1],l=n.has(u.toLowerCase())?"[REDACTED ****]":e(c);Fo.isUndefined(l)||(o[u]=l)}}return r.pop(),o}}(e)}var oi=function(e){p(n,e);var t=v(n);function n(e,r,o,i,a){var s;return u(this,n),s=t.call(this,e),Object.defineProperty(f(s),"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),s.name="AxiosError",s.isAxiosError=!0,r&&(s.code=r),o&&(s.config=o),i&&(s.request=i),a&&(s.response=a,s.status=a.status),s}return l(n,[{key:"toJSON",value:function(){var e=this.config,t=e&&Fo.hasOwnProp(e,"redact")?e.redact:void 0,n=Fo.isArray(t)&&t.length>0?ri(e,t):Fo.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}],[{key:"from",value:function(e,t,r,o,i,a){var s=new n(e.message,t||e.code,r,o,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),a&&Object.assign(s,a),s}}]),n}(k(Error));oi.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",oi.ERR_BAD_OPTION="ERR_BAD_OPTION",oi.ECONNABORTED="ECONNABORTED",oi.ETIMEDOUT="ETIMEDOUT",oi.ECONNREFUSED="ECONNREFUSED",oi.ERR_NETWORK="ERR_NETWORK",oi.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",oi.ERR_DEPRECATED="ERR_DEPRECATED",oi.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",oi.ERR_BAD_REQUEST="ERR_BAD_REQUEST",oi.ERR_CANCELED="ERR_CANCELED",oi.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",oi.ERR_INVALID_URL="ERR_INVALID_URL",oi.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ii=oi,ai=n(207).lW;function si(e){return Fo.isPlainObject(e)||Fo.isArray(e)}function ui(e){return Fo.endsWith(e,"[]")?e.slice(0,-2):e}function ci(e,t,n){return e?e.concat(t).map((function(e,t){return e=ui(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var li=Fo.toFlatObject(Fo,{},null,(function(e){return/^is[A-Z]/.test(e)}));var hi=function(e,t,n){if(!Fo.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=Fo.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Fo.isUndefined(t[e])}))).metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===n.maxDepth?100:n.maxDepth,c=s&&Fo.isSpecCompliantForm(t),l=[];if(!Fo.isFunction(o))throw new TypeError("visitor must be a function");function h(e){if(null===e)return"";if(Fo.isDate(e))return e.toISOString();if(Fo.isBoolean(e))return e.toString();if(!c&&Fo.isBlob(e))throw new ii("Blob is not supported. Use a Buffer instead.");if(Fo.isArrayBuffer(e)||Fo.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if(void 0!==ai)return ai.from(e);throw new ii("Blob is not supported. Use a Buffer instead.",ii.ERR_NOT_SUPPORT)}return e}function f(e){if(e>u)throw new ii("Object is too deeply nested ("+e+" levels). Max depth: "+u,ii.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(e,n,o){var s=e;if(Fo.isReactNative(t)&&Fo.isReactNativeBlob(e))return t.append(ci(o,n,i),h(e)),!1;if(e&&!o&&"object"===R(e))if(Fo.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);var n=[];return JSON.stringify(e,(function(e,r){if(!Fo.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r}))}(e,1);else if(Fo.isArray(e)&&function(e){return Fo.isArray(e)&&!e.some(si)}(e)||(Fo.isFileList(e)||Fo.endsWith(n,"[]"))&&(s=Fo.toArray(e)))return n=ui(n),s.forEach((function(e,r){!Fo.isUndefined(e)&&null!==e&&t.append(!0===a?ci([n],r,i):null===a?n:n+"[]",h(e))})),!1;return!!si(e)||(t.append(ci(o,n,i),h(e)),!1)}var p=Object.assign(li,{defaultVisitor:d,convertValue:h,isVisitable:si});if(!Fo.isObject(e))throw new TypeError("data must be an object");return function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Fo.isUndefined(n)){if(f(i),-1!==l.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));l.push(n),Fo.forEach(n,(function(n,a){!0===(!(Fo.isUndefined(n)||null===n)&&o.call(t,n,Fo.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a],i+1)})),l.pop()}}(e),t};function fi(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function di(e,t){this._pairs=[],e&&hi(e,this,t)}var pi=di.prototype;pi.append=function(e,t){this._pairs.push([e,t])},pi.toString=function(e){var t=this,n=e?function(n){return e.call(t,n,fi)}:fi;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};var gi=di;function vi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mi(e,t,n){if(!t)return e;e=e||"";var r,o=Fo.isFunction(n)?{serialize:n}:n,i=Fo.getSafeProp(o,"encode")||vi,a=Fo.getSafeProp(o,"serialize");if(r=a?a(t,o):Fo.isURLSearchParams(t)?t.toString():new gi(t,o).toString(i)){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var yi=function(){function e(){u(this,e),this.handlers=[]}return l(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){Fo.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),_i=yi,bi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ei={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},wi="undefined"!=typeof window&&"undefined"!=typeof document,Si="object"===("undefined"==typeof navigator?"undefined":R(navigator))&&navigator||void 0,Ti=wi&&(!Si||["ReactNative","NativeScript","NS"].indexOf(Si.product)<0),Ai="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Pi=wi&&window.location.href||"http://localhost",Ri=b(b({},e),Ei);function Li(e){if(e>100)throw new ii("FormData field is too deeply nested ("+e+" levels). Max depth: 100",ii.ERR_FORM_DATA_DEPTH_EXCEEDED)}var ki=function(e){function t(e,n,r,o){Li(o);var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Fo.isArray(r)?r.length:i,s?(Fo.hasOwnProp(r,i)?r[i]=Fo.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(Fo.hasOwnProp(r,i)&&Fo.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Fo.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(Fo.isFormData(e)&&Fo.isFunction(e.entries)){var n={};return Fo.forEachEntry(e,(function(e,r){t(function(e){for(var t,n=[],r=/\w+|\[(\w*)]/g;null!==(t=r.exec(e));)Li(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),r,n,0)})),n}return null},Ni=function(e,t){return null!=e&&Fo.hasOwnProp(e,t)?e[t]:void 0};var Oi={transitional:bi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=Fo.isObject(e);if(i&&Fo.isHTMLForm(e)&&(e=new FormData(e)),Fo.isFormData(e))return o?JSON.stringify(ki(e)):e;if(Fo.isArrayBuffer(e)||Fo.isBuffer(e)||Fo.isStream(e)||Fo.isFile(e)||Fo.isBlob(e)||Fo.isReadableStream(e))return e;if(Fo.isArrayBufferView(e))return e.buffer;if(Fo.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=Ni(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return hi(e,new Ri.classes.URLSearchParams,b({visitor:function(e,t,n,r){return Ri.isNode&&Fo.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=Fo.isFileList(e))||r.indexOf("multipart/form-data")>-1){var s=Ni(this,"env"),u=s&&s.FormData;return hi(n?{"files[]":e}:e,u&&new u,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Fo.isString(e))try{return(t||JSON.parse)(e),Fo.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=Ni(this,"transitional")||Oi.transitional,n=t&&t.forcedJSONParsing,r=Ni(this,"responseType"),o="json"===r;if(Fo.isResponse(e)||Fo.isReadableStream(e))return e;if(e&&Fo.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Ni(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw ii.from(e,ii.ERR_BAD_RESPONSE,this,null,Ni(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ri.classes.FormData,Blob:Ri.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fo.forEach(["delete","get","head","post","put","patch","query"],(function(e){Oi.headers[e]={}}));var Ii=Oi;function Ci(e,t){var n=this||Ii,r=t||n,o=ni.from(r.headers),i=r.data;return Fo.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Mi(e){return!(!e||!e.__CANCEL__)}var Di=function(e){p(n,e);var t=v(n);function n(e,r,o){var i;return u(this,n),(i=t.call(this,null==e?"canceled":e,ii.ERR_CANCELED,r,o)).name="CanceledError",i.__CANCEL__=!0,i}return l(n)}(ii);function xi(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ii("Request failed with status code "+n.status,n.status>=400&&n.status<500?ii.ERR_BAD_REQUEST:ii.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var Bi=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=o[a];n||(n=u),r[i]=s,o[i]=u;for(var l=a,h=0;l!==i;)h+=r[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(u-n<t)){var f=c&&u-c;return f?Math.round(1e3*h/f):void 0}}};var Ui=function(e,t){var n,r,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(void 0,C(t))};return[function(){for(var e=Date.now(),t=e-o,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];t>=i?a(u,e):(n=u,r||(r=setTimeout((function(){r=null,a(n)}),i-t)))},function(){return n&&a(n)}]},Hi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,o=Bi(50,250);return Ui((function(n){if(n&&"number"==typeof n.loaded){var i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,u=Math.max(0,s-r),c=o(u);r=Math.max(r,s);var l=y({loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(l)}}),n)},ji=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},zi=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fo.asap((function(){return e.apply(void 0,n)}))}},Yi=Ri.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,Ri.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(Ri.origin),Ri.navigator&&/(msie|trident)/i.test(Ri.navigator.userAgent)):function(){return!0},Gi=Ri.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var s=["".concat(e,"=").concat(encodeURIComponent(t))];Fo.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),Fo.isString(r)&&s.push("path=".concat(r)),Fo.isString(o)&&s.push("domain=".concat(o)),!0===i&&s.push("secure"),Fo.isString(a)&&s.push("SameSite=".concat(a)),document.cookie=s.join("; ")}},read:function(e){if("undefined"==typeof document)return null;for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch(e){return r.slice(o+1)}}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};var Ki=/^https?:(?!\/\/)/i,Fi=/[\t\n\r]/g;function Vi(e,t){if("string"==typeof e&&Ki.test(function(e){return function(e){for(var t=0;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(Fi,"")}(e)))throw new ii('Invalid URL: missing "//" after protocol',ii.ERR_INVALID_URL,t)}function Wi(e,t,n,r){Vi(t,r);var o,i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));return e&&(i||!1===n)?(Vi(e,r),function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t)):t}var qi=function(e){return e instanceof ni?b({},e):e};function Ji(e,t){e=e||{},t=t||{};var n=Object.create(null);function r(e,t,n,r){return Fo.isPlainObject(e)&&Fo.isPlainObject(t)?Fo.merge.call({caseless:r},e,t):Fo.isPlainObject(t)?Fo.merge({},t):Fo.isArray(t)?t.slice():t}function o(e,t,n,o){return Fo.isUndefined(t)?Fo.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Fo.isUndefined(t))return r(void 0,t)}function a(e,t){return Fo.isUndefined(t)?Fo.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return Fo.hasOwnProp(t,i)?r(n,o):Fo.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:function(e,t,n){return o(qi(e),qi(t),0,!0)}};return Fo.forEach(Object.keys(b(b({},e),t)),(function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=Fo.hasOwnProp(u,r)?u[r]:o,a=i(Fo.hasOwnProp(e,r)?e[r]:void 0,Fo.hasOwnProp(t,r)?t[r]:void 0,r);Fo.isUndefined(a)&&i!==s||(n[r]=a)}})),Fo.hasOwnProp(t,"validateStatus")&&Fo.isUndefined(t.validateStatus)&&!1===function(n){var r=Fo.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Fo.isUndefined(r)){if(!Fo.isPlainObject(r))return;if(Fo.hasOwnProp(r,n))return r[n]}var o=Fo.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Fo.isPlainObject(o)&&Fo.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(Fo.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var Xi=["content-type","content-length"];var Zi=function(e){var t=Ji({},e),n=function(e){return Fo.hasOwnProp(t,e)?t[e]:void 0},r=n("data"),o=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),u=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),h=n("url");if(t.headers=s=ni.from(s),t.url=mi(Wi(c,h,l,t),n("params"),n("paramsSerializer")),u){var f=Fo.getSafeProp(u,"username")||"",d=Fo.getSafeProp(u,"password")||"";try{s.set("Authorization","Basic "+btoa(f+":"+(d?encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})):"")))}catch(t){throw ii.from(t,ii.ERR_BAD_OPTION_VALUE,e)}}if(Fo.isFormData(r)&&(Ri.hasStandardBrowserEnv||Ri.hasStandardBrowserWebWorkerEnv||Fo.isReactNative(r)?s.setContentType(void 0):Fo.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach((function(t){var n=P(t,2),r=n[0],o=n[1];Xi.includes(r.toLowerCase())&&e.set(r,o)})):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),Ri.hasStandardBrowserEnv&&(Fo.isFunction(o)&&(o=o(t)),!0===o||null==o&&Yi(t.url))){var p=i&&a&&Gi.read(a);p&&s.set(i,p)}return t},Qi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,o,i,a,s,u=Zi(e),c=u.data,l=ni.from(u.headers).normalize(),h=u.responseType,f=u.onUploadProgress,d=u.onDownloadProgress;function p(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}var g=new XMLHttpRequest;function v(){if(g){var r=ni.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());xi((function(e){t(e),p()}),(function(e){n(e),p()}),{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}}if(g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new ii("Request aborted",ii.ECONNABORTED,e,g)),p(),g=null)},g.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new ii(r,ii.ERR_NETWORK,e,g);o.event=t||null,n(o),p(),g=null},g.ontimeout=function(){var t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||bi;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(new ii(t,r.clarifyTimeoutError?ii.ETIMEDOUT:ii.ECONNABORTED,e,g)),p(),g=null},void 0===c&&l.setContentType(null),"setRequestHeader"in g&&Fo.forEach(Xo(l),(function(e,t){g.setRequestHeader(t,e)})),Fo.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),h&&"json"!==h&&(g.responseType=u.responseType),d){var m=Hi(d,!0),y=P(m,2);i=y[0],s=y[1],g.addEventListener("progress",i)}if(f&&g.upload){var _=Hi(f),b=P(_,2);o=b[0],a=b[1],g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",a)}(u.cancelToken||u.signal)&&(r=function(t){g&&(n(!t||t.type?new Di(null,e,g):t),g.abort(),p(),g=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));var E,w,S=(E=u.url,(w=/^([-+\w]{1,25}):(?:\/\/)?/.exec(E))&&w[1]||"");if(S&&!Ri.protocols.includes(S))return n(new ii("Unsupported protocol "+S+":",ii.ERR_BAD_REQUEST,e)),void p();g.send(c||null)}))},$i=function(e,t){if(e=e?e.filter(Boolean):[],t||e.length){var n=new AbortController,r=!1,o=function(e){if(!r){r=!0,a();var t=e instanceof Error?e:this.reason;n.abort(t instanceof ii?t:new Di(t instanceof Error?t.message:t))}},i=t&&setTimeout((function(){i=null,o(new ii("timeout of ".concat(t,"ms exceeded"),ii.ETIMEDOUT))}),t),a=function(){e&&(i&&clearTimeout(i),i=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",o,{once:!0})}));var s=n.signal;return s.unsubscribe=function(){return Fo.asap(a)},s}},ea=n(697),ta=n(10),na=n(331),ra=n(193),oa=w().mark((function e(t,n){var r,o,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.byteLength,n&&!(r<n)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:o=0;case 6:if(!(o<r)){e.next=13;break}return i=o+n,e.next=10,t.slice(o,i);case 10:o=i,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),ia=function(){var e=ea(w().mark((function e(t,n){var r,o,i,a,s,u;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,o=!1,e.prev=2,a=ra(aa(t));case 4:return e.next=6,ta(a.next());case 6:if(!(r=!(s=e.sent).done)){e.next=12;break}return u=s.value,e.delegateYield(na(ra(oa(u,n)),ta),"t0",9);case 9:r=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),o=!0,i=e.t1;case 18:if(e.prev=18,e.prev=19,!r||null==a.return){e.next=23;break}return e.next=23,ta(a.return());case 23:if(e.prev=23,!o){e.next=26;break}throw i;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,n){return e.apply(this,arguments)}}(),aa=function(){var e=ea(w().mark((function e(t){var n,r,o,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(na(ra(t),ta),"t0",2);case 2:return e.abrupt("return");case 3:n=t.getReader(),e.prev=4;case 5:return e.next=7,ta(n.read());case 7:if(r=e.sent,o=r.done,i=r.value,!o){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,i;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,ta(n.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),sa=function(e,t,n,r){var o,i=ia(e,t),a=0,s=function(e){o||(o=!0,r&&r(e))};return new ReadableStream({pull:function(e){return T(w().mark((function t(){var r,o,u,c,l;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.next();case 3:if(r=t.sent,o=r.done,u=r.value,!o){t.next=10;break}return s(),e.close(),t.abrupt("return");case 10:c=u.byteLength,n&&(l=a+=c,n(l)),e.enqueue(new Uint8Array(u)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),s(t.t0),t.t0;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},cancel:function(e){return s(e),i.return()}},{highWaterMark:2})},ua=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},ca=function(e,t,n){return t+2<n&&ua(e.charCodeAt(t+1))&&ua(e.charCodeAt(t+2))};function la(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var t=e.indexOf(",");if(t<0)return 0;var n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){for(var o=r.length,i=r.length,a=0;a<i;a++)if(37===r.charCodeAt(a)&&a+2<i){var s=r.charCodeAt(a+1),u=r.charCodeAt(a+2);ua(s)&&ua(u)&&(o-=2,a+=2)}var c=0,l=i-1,h=function(e){return e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e))};l>=0&&(61===r.charCodeAt(l)?(c++,l--):h(l)&&(c++,l-=3)),1===c&&l>=0&&(61===r.charCodeAt(l)||h(l))&&c++;var f=3*Math.floor(o/4)-(c||0);return f>0?f:0}for(var d=0,p=0,g=r.length;p<g;p++){var v=r.charCodeAt(p);if(37===v&&ca(r,p,g))d+=1,p+=2;else if(v<128)d+=1;else if(v<2048)d+=2;else if(v>=55296&&v<=56319&&p+1<g){var m=r.charCodeAt(p+1);m>=56320&&m<=57343?(d+=4,p++):d+=3}else d+=3}return d}var ha="1.18.1",fa=Fo.isFunction,da=function(e){if(!Fo.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},pa=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e.apply(void 0,n)}catch(e){return!1}},ga=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},va=function(e){var t=void 0!==Fo.global&&null!==Fo.global?Fo.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,o=e=Fo.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),i=o.fetch,a=o.Request,s=o.Response,u=i?fa(i):"function"==typeof fetch,c=fa(a),l=fa(s);if(!u)return!1;var h,f=u&&fa(n),d=u&&("function"==typeof r?(h=new r,function(e){return h.encode(e)}):function(){var e=T(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new a(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),p=c&&f&&pa((function(){var e=!1,t=new a(Ri.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r})),g=l&&f&&pa((function(){return Fo.isReadableStream(new s("").body)})),v={stream:g&&function(e){return e.body}};u&&["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!v[e]&&(v[e]=function(t,n){var r=t&&t[e];if(r)return r.call(t);throw new ii("Response type '".concat(e,"' is not supported"),ii.ERR_NOT_SUPPORT,n)})}));var m=function(){var e=T(w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!Fo.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!Fo.isSpecCompliantForm(t)){e.next=9;break}return n=new a(Ri.origin,{method:"POST",body:t}),e.next=8,n.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!Fo.isArrayBufferView(t)&&!Fo.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(Fo.isURLSearchParams(t)&&(t+=""),!Fo.isString(t)){e.next=16;break}return e.next=15,d(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=T(w().mark((function e(t,n){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Fo.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==r?m(n):r);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){var e=T(w().mark((function e(t){var n,o,u,l,h,d,_,E,S,T,A,R,L,k,N,O,I,C,M,D,x,B,U,H,j,z,Y,G,K,F,V,W,q,J,X,Z,Q,$,ee,te,ne,re,oe,ie,ae,se,ue,ce,le,he,fe,de,pe,ge,ve,me,ye,_e,be,Ee;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Zi(t),o=n.url,u=n.method,l=n.data,h=n.signal,d=n.cancelToken,_=n.timeout,E=n.onDownloadProgress,S=n.onUploadProgress,T=n.responseType,A=n.headers,R=n.withCredentials,L=void 0===R?"same-origin":R,k=n.fetchOptions,N=n.maxContentLength,O=n.maxBodyLength,I=Fo.isNumber(N)&&N>-1,C=Fo.isNumber(O)&&O>-1,M=function(e){return Fo.hasOwnProp(t,e)?t[e]:void 0},D=i||fetch,T=T?(T+"").toLowerCase():"text",x=$i([h,d&&d.toAbortSignal()],_),B=null,U=x&&x.unsubscribe&&function(){x.unsubscribe()},j=null,z=function(){return new ii("Request body larger than maxBodyLength limit",ii.ERR_BAD_REQUEST,t,B)},e.prev=11,Y=void 0,(G=M("auth"))&&(K=Fo.getSafeProp(G,"username")||"",F=Fo.getSafeProp(G,"password")||"",Y={username:K,password:F}),ga(o)&&(V=new URL(o,Ri.origin),Y||!V.username&&!V.password||(W=da(V.username),q=da(V.password),Y={username:W,password:q}),(V.username||V.password)&&(V.username="",V.password="",o=V.href)),Y&&(A.delete("authorization"),A.set("Authorization","Basic "+btoa((w=(Y.username||"")+":"+(Y.password||""),encodeURIComponent(w).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})))))),!I||"string"!=typeof o||!o.startsWith("data:")){e.next=21;break}if(!(la(o)>N)){e.next=21;break}throw new ii("maxContentLength size of "+N+" exceeded",ii.ERR_BAD_RESPONSE,t,B);case 21:if(!C||"get"===u||"head"===u){e.next=29;break}return e.next=24,m(l);case 24:if("number"!=typeof(J=e.sent)||!isFinite(J)){e.next=29;break}if(H=J,!(J>O)){e.next=29;break}throw z();case 29:if(X=C&&(Fo.isReadableStream(l)||Fo.isStream(l)),Z=function(e,t,n){return sa(e,65536,(function(e){if(C&&e>O)throw j=z();t&&t(e)}),n)},!p||"get"===u||"head"===u||!S&&!X){e.next=43;break}if(null!=H){e.next=38;break}return e.next=35,y(A,l);case 35:e.t0=e.sent,e.next=39;break;case 38:e.t0=H;case 39:(0!==(H=e.t0)||X)&&(Q=new a(o,{method:"POST",body:l,duplex:"half"}),Fo.isFormData(l)&&($=Q.headers.get("content-type"))&&A.setContentType($),Q.body&&(ee=S&&ji(H,Hi(zi(S)))||[],te=P(ee,2),ne=te[0],re=te[1],l=Z(Q.body,ne,re))),e.next=49;break;case 43:if(!X||c||!f||"get"===u||"head"===u){e.next=47;break}l=Z(l),e.next=49;break;case 47:if(!X||!c||p||"get"===u||"head"===u){e.next=49;break}throw new ii("Stream request bodies are not supported by the current fetch implementation",ii.ERR_NOT_SUPPORT,t,B);case 49:return Fo.isString(L)||(L=L?"include":"omit"),oe=c&&"credentials"in a.prototype,Fo.isFormData(l)&&(ie=A.getContentType())&&/^multipart\/form-data/i.test(ie)&&!/boundary=/i.test(ie)&&A.delete("content-type"),A.set("User-Agent","axios/"+ha,!1),ae=b(b({},k),{},{signal:x,method:u.toUpperCase(),headers:Xo(A.normalize()),body:l,duplex:"half",credentials:oe?L:void 0}),B=c&&new a(o,ae),e.next=57,c?D(B,k):D(o,ae);case 57:if(se=e.sent,ue=ni.from(se.headers),!I){e.next=63;break}if(!(null!=(ce=Fo.toFiniteNumber(ue.getContentLength()))&&ce>N)){e.next=63;break}throw new ii("maxContentLength size of "+N+" exceeded",ii.ERR_BAD_RESPONSE,t,B);case 63:return le=g&&("stream"===T||"response"===T),g&&se.body&&(E||I||le&&U)&&(he={},["status","statusText","headers"].forEach((function(e){he[e]=se[e]})),fe=Fo.toFiniteNumber(ue.getContentLength()),de=E&&ji(fe,Hi(zi(E),!0))||[],pe=P(de,2),ge=pe[0],ve=pe[1],0,me=function(e){if(I&&e>N)throw new ii("maxContentLength size of "+N+" exceeded",ii.ERR_BAD_RESPONSE,t,B);ge&&ge(e)},se=new s(sa(se.body,65536,me,(function(){ve&&ve(),U&&U()})),he)),T=T||"text",e.next=68,v[Fo.findKey(v,T)||"text"](se,t);case 68:if(ye=e.sent,!I||g||le){e.next=73;break}if(null!=ye&&("number"==typeof ye.byteLength?_e=ye.byteLength:"number"==typeof ye.size?_e=ye.size:"string"==typeof ye&&(_e="function"==typeof r?(new r).encode(ye).byteLength:ye.length)),!("number"==typeof _e&&_e>N)){e.next=73;break}throw new ii("maxContentLength size of "+N+" exceeded",ii.ERR_BAD_RESPONSE,t,B);case 73:return!le&&U&&U(),e.next=76,new Promise((function(e,n){xi(e,n,{data:ye,headers:ni.from(se.headers),status:se.status,statusText:se.statusText,config:t,request:B})}));case 76:return e.abrupt("return",e.sent);case 79:if(e.prev=79,e.t1=e.catch(11),U&&U(),!(x&&x.aborted&&x.reason instanceof ii)){e.next=88;break}throw(be=x.reason).config=t,B&&(be.request=B),e.t1!==be&&Object.defineProperty(be,"cause",{__proto__:null,value:e.t1,writable:!0,enumerable:!1,configurable:!0}),be;case 88:if(!j){e.next=91;break}throw B&&!j.request&&(j.request=B),j;case 91:if(!(e.t1 instanceof ii)){e.next=94;break}throw B&&!e.t1.request&&(e.t1.request=B),e.t1;case 94:if(!e.t1||"TypeError"!==e.t1.name||!/Load failed|fetch/i.test(e.t1.message)){e.next=98;break}throw Ee=new ii("Network Error",ii.ERR_NETWORK,t,B,e.t1&&e.t1.response),Object.defineProperty(Ee,"cause",{__proto__:null,value:e.t1.cause||e.t1,writable:!0,enumerable:!1,configurable:!0}),Ee;case 98:throw ii.from(e.t1,e.t1&&e.t1.code,t,B,e.t1&&e.t1.response);case 99:case"end":return e.stop()}var w}),e,null,[[11,79]])})));return function(t){return e.apply(this,arguments)}}()},ma=new Map,ya=function(e){for(var t,n,r=e&&e.env||{},o=r.fetch,i=[r.Request,r.Response,o],a=i.length,s=ma;a--;)t=i[a],void 0===(n=s.get(t))&&s.set(t,n=a?new Map:va(r)),s=n;return n},_a=(ya(),{http:null,xhr:Qi,fetch:{get:ya}});Fo.forEach(_a,(function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));var ba=function(e){return"- ".concat(e)},Ea=function(e){return Fo.isFunction(e)||null===e||!1===e};var wa={getAdapter:function(e,t){for(var n,r,o=(e=Fo.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var s=void 0;if(r=n=e[a],!Ea(n)&&void 0===(r=_a[(s=String(n)).toLowerCase()]))throw new ii("Unknown adapter '".concat(s,"'"));if(r&&(Fo.isFunction(r)||(r=r.get(t))))break;i[s||"#"+a]=r}if(!r){var u=Object.entries(i).map((function(e){var t=P(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")})),c=o?u.length>1?"since :\n"+u.map(ba).join("\n"):" "+ba(u[0]):"as no adapter specified";throw new ii("There is no suitable adapter to dispatch the request "+c,ii.ERR_NOT_SUPPORT)}return r},adapters:_a};function Sa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Di(null,e)}function Ta(e){return Sa(e),e.headers=ni.from(e.headers),e.data=Ci.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wa.getAdapter(e.adapter||Ii.adapter,e)(e).then((function(t){Sa(e),e.response=t;try{t.data=Ci.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=ni.from(t.headers),t}),(function(t){if(!Mi(t)&&(Sa(e),t&&t.response)){e.response=t.response;try{t.response.data=Ci.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=ni.from(t.response.headers)}return Promise.reject(t)}))}var Aa={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Aa[e]=function(n){return R(n)===e||"a"+(t<1?"n ":" ")+e}}));var Pa={};Aa.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ha+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new ii(r(o," has been removed"+(t?" in "+t:"")),ii.ERR_DEPRECATED);return t&&!Pa[o]&&(Pa[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Aa.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var Ra={assertOptions:function(e,t,n){if("object"!==R(e)||null===e)throw new ii("options must be an object",ii.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new ii("option "+i+" must be "+u,ii.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ii("Unknown option "+i,ii.ERR_BAD_OPTION)}},validators:Aa},La=Ra.validators,ka=function(){function e(t){u(this,e),this.defaults=t||{},this.interceptors={request:new _i,response:new _i}}var t;return l(e,[{key:"request",value:(t=T(w().mark((function e(t,n){var r,o,i,a,s;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,o=function(){if(!r.stack)return"";var e=r.stack.indexOf("\n");return-1===e?"":r.stack.slice(e+1)}();try{e.t0.stack?o&&(i=o.indexOf("\n"),a=-1===i?-1:o.indexOf("\n",i+1),s=-1===a?"":o.slice(a+1),String(e.t0.stack).endsWith(s)||(e.t0.stack+="\n"+o)):e.t0.stack=o}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e,n){return t.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n=t=Ji(this.defaults,t),r=n.transitional,o=n.paramsSerializer,i=n.headers;void 0!==r&&Ra.assertOptions(r,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean),legacyInterceptorReqResOrdering:La.transitional(La.boolean),advertiseZstdAcceptEncoding:La.transitional(La.boolean),validateStatusUndefinedResolves:La.transitional(La.boolean)},!1),null!=o&&(Fo.isFunction(o)?t.paramsSerializer={serialize:o}:Ra.assertOptions(o,{encode:La.function,serialize:La.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ra.assertOptions(t,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&Fo.merge(i.common,i[t.method]);i&&Fo.forEach(["delete","get","head","post","put","patch","query","common"],(function(e){delete i[e]})),t.headers=ni.concat(a,i);var s=[],u=!0;this.interceptors.request.forEach((function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){u=u&&e.synchronous;var n=t.transitional||bi;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)}}));var c,l=[];this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));var h,f=0;if(!u){var d=[Ta.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,l),h=d.length,c=Promise.resolve(t);f<h;)c=c.then(d[f++],d[f++]);return c}h=s.length;for(var p=t;f<h;){var g=s[f++],v=s[f++];try{p=g(p)}catch(e){v.call(this,e);break}}try{c=Ta.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,h=l.length;f<h;)c=c.then(l[f++],l[f++]);return c}},{key:"getUri",value:function(e){return mi(Wi((e=Ji(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}]),e}();Fo.forEach(["delete","get","head","options"],(function(e){ka.prototype[e]=function(t,n){return this.request(Ji(n||{},{method:e,url:t,data:n&&Fo.hasOwnProp(n,"data")?n.data:void 0}))}})),Fo.forEach(["post","put","patch","query"],(function(e){function t(t){return function(n,r,o){return this.request(Ji(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ka.prototype[e]=t(),"query"!==e&&(ka.prototype[e+"Form"]=t(!0))}));var Na=ka,Oa=function(){function e(t){if(u(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,o){r.reason||(r.reason=new Di(e,t,o),n(r.reason))}))}return l(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t,n=new e((function(e){t=e}));return{token:n,cancel:t}}}]),e}(),Ia=Oa;var Ca={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ca).forEach((function(e){var t=P(e,2),n=t[0],r=t[1];Ca[r]=n}));var Ma=Ca;var Da=function e(t){var n=new Na(t),r=Fr(Na.prototype.request,n);return Fo.extend(r,Na.prototype,n,{allOwnKeys:!0}),Fo.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ji(t,n))},r}(Ii);Da.Axios=Na,Da.CanceledError=Di,Da.CancelToken=Ia,Da.isCancel=Mi,Da.VERSION=ha,Da.toFormData=hi,Da.AxiosError=ii,Da.Cancel=Da.CanceledError,Da.all=function(e){return Promise.all(e)},Da.spread=function(e){return function(t){return e.apply(null,t)}},Da.isAxiosError=function(e){return Fo.isObject(e)&&!0===e.isAxiosError},Da.mergeConfig=Ji,Da.AxiosHeaders=ni,Da.formToJSON=function(e){return ki(Fo.isHTMLForm(e)?new FormData(e):e)},Da.getAdapter=wa.getAdapter,Da.HttpStatusCode=Ma,Da.default=Da;var xa=Da,Ba=n(414),Ua=function(){try{var e;return(null===(e=navigator)||void 0===e?void 0:e.javaEnabled())||!1}catch(e){}return!1},Ha={local:"http://imgs-63.sggz00b.dev.alipay.net/mgw.htm",dev:"http://imgs-63.sggz00b.dev.alipay.net/mgw.htm",sit:"http://imgs-9.sggz00a.test.alipay.net/mgw.htm",light_sandbox:"https://imgs-sea-global.alipay.com/mgw.htm",pre:"https://imgs-sea-pre.alipay.com/mgw.htm",prod:"https://imgs-sea-global.alipay.com/mgw.htm",sandbox:"https://imgs-sea-global.alipay.com/mgw.htm"},ja="ANTOM_PAYMENT_WEB",za=(function(e){var t={};(e||(e=window.location.href),"undefined"==typeof URL)?e.replace(/([^?=&#]+)(=([^&#]*))?/g,(function(e,n,r,o){return void 0===o?"":(t[n]=decodeURIComponent(o).replace(/\+/g," "),t[n])})):new URL(e).searchParams.forEach((function(e,n){t[n]=e}));return t}()||{}).instanceId;function Ya(){return new Promise((function(e){window&&window.AlipayJSBridge?e():document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)}))}var Ga=function(){function e(t){u(this,e),y(this,"baseUrl",void 0),y(this,"headers",void 0),y(this,"method",void 0),y(this,"timeout",void 0),this.baseUrl=t.baseURL,this.headers=t.headers,this.method=t.method,this.timeout=t.timeout,this.request=this.request.bind(this)}return l(e,[{key:"request",value:function(e){var t=this;return new Promise((function(n,r){var o,i,a={url:e.url?t.baseUrl+e.url:t.baseUrl,method:null!==(o=e.method)&&void 0!==o?o:t.method,headers:b(b({},t.headers),e.headers),timeout:null!==(i=e.timeout)&&void 0!==i?i:t.timeout};e.data&&(a.data=function(e,t){try{var n=new WeakSet;return JSON.stringify(e,(function(e,t){if("object"===R(t)&&null!==t){if(n.has(t))return;n.add(t)}return t}))||t}catch(e){return t}}(e.data,"")),function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise((function(t){Ya().then((function(){var r;(r=window.AlipayJSBridge).call.apply(r,[e].concat(n,[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t([].concat(n))}]))}))}))}("httpRequest",b({instanceId:za},a)).then((function(e){var t=Array.isArray(e)?e.length>0?e[0]:null:e;if(!t)return r(new Error("timeout"));if(0!==t.status)return r(new Error("timeout"));var o={status:t.httpCode,data:zr(t.data),headers:Ka(t.headers)};n(o)}))}))}}]),e}();function Ka(e){if(!e)return e;var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=Array.isArray(r)?r.length>0?r[0]:void 0:r}return t}var Fa=function(e){var t=Ba(e,"Result-Status")||Ba(e,"result-status","");if(!t)return null;if(2e3==+t)return{success:!1,errorCode:Ar.API_NOT_LOGIN,errorMessage:wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(4001==+t)return{success:!1,errorCode:Ar.API_GATEWAY_TIMEOUT,errorMessage:wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(1e3!=+t){var n=Ba(e,"Tips")||Ba(e,"tips","");return{success:!1,errorCode:Ar.API_GATEWAY_ERROR,errorMessage:n?decodeURIComponent(n):wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t}}return null},Va={};function Wa(e,t,n){return qa.apply(this,arguments)}function qa(){return(qa=T(w().mark((function e(t,n,r){var o,i,a,s,u,c,l,h,f,d,p,g,v,m,y,_,E,S,T,A,P,R,L;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=b(b(b({},Va),r),{},{envInfo:b(b({},Va.envInfo),null==r?void 0:r.envInfo),headers:b(b({},Va.headers),null==r?void 0:r.headers)}),a=kr(i.tracker,i.scope),s=Nr(i.tracker,i.scope),i.hostSign){e.next=10;break}e.next=8;break;case 8:console.warn("[Antom SDK] request hostSign is missing, please set hostSign in request options or global options.");case 9:i.hostSign="SG";case 10:return"WAP"===(u=b(b({terminalType:Hr?"WAP":"WEB",browserInfo:{browserJavaScriptEnabled:!0,browserJavaEnabled:Ua(),browserLanguage:navigator.language,browserUserAgent:navigator.userAgent,browserColorDepth:screen.colorDepth},deviceLanguage:navigator.language,screenWidth:screen.width,screenHeight:screen.height,timeZoneOffset:(new Date).getTimezoneOffset()},null==i?void 0:i.envInfo),{},{locale:Sr((null==i?void 0:i.locale)||(null==i||null===(o=i.envInfo)||void 0===o?void 0:o.locale))})).terminalType&&(u.osType=Br?"IOS":"ANDROID"),c=[b(b({},n),{},{envInfo:u,extParams:b(b({},null==n?void 0:n.extParams),{},{refUrl:window.location.href})})],l=performance.now(),e.prev=14,h=Ja(t,i),e.next=18,h({data:c});case 18:if(f=e.sent,d=f.data,p=f.headers,g=d||{},v=Ba(p,"Mgw-TraceId")||Ba(p,"mgw-traceid",""),g.traceId=v,!(m=Fa(p))){e.next=29;break}throw y=m.errorMessage,_=m.errorCode,new Lr(y,_,"SERVER_API","".concat(v," (").concat(t,")"));case 29:if(g.success){e.next=36;break}throw T=g.errorMessage||g.resultMessage||wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),A=g.errorCode||(null===(E=g.errorContext)||void 0===E||null===(E=E.errorStack)||void 0===E||null===(E=E[0])||void 0===E?void 0:E.errorName)||"API_SYSTEM_ERROR","true"!==(null===(S=g.extendInfo)||void 0===S?void 0:S.mulityLanguageMapping)&&(T=wr.get({id:"server.".concat(A),defaultMessage:wr.get({id:"event.callback.code.${errorCode}",defaultMessage:wr.get({id:"ckp.paymentError.${errorCode}",defaultMessage:wr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})})})})),(P=new Rr(T,A,"SERVER_API","".concat(v," (").concat(t,")"))).response=g,P;case 36:return a.success(t,performance.now()-l,v),e.abrupt("return",g);case 40:if(e.prev=40,e.t0=e.catch(14),!Lr.isError(e.t0)){e.next=45;break}return a.error(t,performance.now()-l,e.t0.message,e.t0.code,e.t0.traceId),e.abrupt("return",Promise.reject(e.t0));case 45:return L=e.t0,s(L),e.abrupt("return",Promise.reject(new Lr(L.message,null!==(R=L.message)&&void 0!==R&&R.includes("timeout")?"API_TIMEOUT":"API_SYSTEM_ERROR","SYSTEM","WithoutTraceId (".concat(t,")"))));case 48:case"end":return e.stop()}}),e,null,[[14,40]])})))).apply(this,arguments)}function Ja(e,t){var n,r=new Date,o=r.getTime()+60*r.getTimezoneOffset()*1e3,i=(null==t?void 0:t.env)||"prod",a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n={"com.ipay.iexpcashier.sdkAction.query":"com.ipay.iopensandbox.sdk.paymentSession.query"},r="SDK_MOCK_SANDBOX";if(n[e]&&"light_sandbox"===t)return{appId:r,operationType:n[e]}}(e,i),s=(null==t?void 0:t.baseURL)||function(e,t){var n;return"pre"===t||"sandbox"===t&&"pre"===(null===(n=window)||void 0===n||null===(n=n.marmotInjectInfo)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.toLocaleLowerCase())?{SG:"https://imgs-sea-pre.alipay.com/mgw.htm",US:"https://imgs-pre.alipay.com/mgw.htm",DE:"https://imgs-de-pre.alipay.com/mgw.htm",QK:"https://iopengw-qkgz99p.alipay.com/mgw.htm",ID:"https://imgs-id-pre.alipay.com/mgw.htm",SA:"https://imgs-sa-pre.alipay.com/mgw.htm"}[e||"SG"]:"prod"===t||"light_sandbox"===t||"sandbox"===t?{SG:"https://imgs-sea-global.alipay.com/mgw.htm",US:"https://imgs-na-global.alipay.com/mgw.htm",DE:"https://imgs-de-global.alipay.com/mgw.htm",QK:"https://imgs-qk.alipay.com/mgw.htm",ID:"https://imgs-id.alipay.com/mgw.htm",SA:"https://imgs-sa.alipay.com/mgw.htm"}[e||"SG"]:void 0}(null==t?void 0:t.hostSign,i)||Ha[i],u=b(y(y(y(y(y(y(y(y({appId:(null==t?void 0:t.appId)||(null==a?void 0:a.appId)||ja,workspaceId:"pre"===(null==t?void 0:t.env)?"pre":"default"},"x-cors-".concat(ja.toLowerCase(),"-default"),"1"),"version","2.0"),"sofa-group-name",null==t?void 0:t.groupId),"Operation-Type",(null==a?void 0:a.operationType)||e),"Client-Time",o),"tntInstId","ALIPW3SG"),"x-mago-timeout",(null==t?void 0:t.timeout)||15e3),"sdk-version",(null==t?void 0:t.sdkVersion)||"0.0.1783323899-dev.1"),null==t?void 0:t.headers);"dev"!==i&&delete u["sofa-group-name"],"sandbox"===i&&(u["load-test"]=!0,u.sofaPenAttrs="instMock=O&loadMode=2");var c,l=null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:15e3,h=Object.entries(u).filter((function(e){return void 0!==e[1]&&null!==e[1]&&"object"!==R(e[1])})).reduce((function(e,t){var n=P(t,2),r=n[0],o=n[1];return e[r]=String(o),e}),{}),f={baseURL:s,timeout:l,headers:u},d=null;"app"===Va.appType?d=new Ga({baseURL:s,method:"POST",timeout:l,headers:h}):d=xa.create(b(b({},f),{},{withCredentials:null===(c=null==t?void 0:t.withCredentials)||void 0===c||c,method:(null==t?void 0:t.method)||"POST"}));return d.request}Wa.setGlobalOptions=function(e){Object.assign(Va,e)};"".concat(window.location.origin,"/elements/src/pages");var Xa=Yr,Za=function(e){var t;if(!e)return{modernWeb:!1};var n=Xa(e),r=!(null==n||null===(t=n.flowSwitchTags)||void 0===t||!t.split(",").includes("elementV3"));var o=!(null==n||!n.modernWeb);return(r||o)&&console.log("isModernWeb ------------\x3e true"),{fromFrontend:o,modernWeb:r||o}};function Qa(e){if(!e)return e;var t=Za(e),n=t.fromFrontend,r=t.modernWeb;if(!n||!r)return e;var o=e.split("&&").slice(0,3),i=Xa(e);return null==i||delete i.modernWeb,o.concat(function(e){try{if(!e)return;var t=(new TextEncoder).encode(e),n=Array.from(t,(function(e){return String.fromCodePoint(e)})).join("");return btoa(n)}catch(e){return}}(JSON.stringify(i))).join("&&")}var $a=function(e){return Za(e).modernWeb},es=n(225),ts=n(242),ns=n(994);function rs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ns.apply(void 0,[{},e].concat(n))}var os=new ce({appId:"180020050100012557",performance:!1,error:!1,env:"DEV"}),is="7981",as=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){os.log(b({code:"".concat(is).concat(e)},t))}},ss=as(),us=as("event"),cs=as("mount"),ls=as("handshake"),hs=as("merchant"),fs=(as("element"),function(e,t,n,r){var o;if("ERROR"===e){var i=r||{};ss({msg:i.code||n,d1:t,d2:i.reason,d3:i.stack,d4:i.traceId,d5:i.operationType,d6:n})}else{if(n.includes(":HOST:")||n.includes(":WEBAPP:")){var a=n.split(":"),s=P(a,3),u=s[0],c=s[1],l=s[2];us({msg:l,d1:t,d2:u,d3:c,d4:JSON.stringify(r),d5:"无",d6:e})}}null===(o=window.sdkDebugger)||void 0===o||o.log(e,t,n,r)}),ds=function(e){if(e){var t=function(e){var t=e.message,n=e.traceId,r=e.code,o=e.source,i=e.stack,a=e.reason;if("SERVER_API"===e.source){var s=(null==n?void 0:n.match(/([a-z0-9\sA-Z]*)(\s*\(([a-zA-Z0-9\.]*)\))?/))||[],u=P(s,4),c=(u[0],u[1]),l=(u[2],{code:r,source:o,message:t,operationType:u[3],traceId:(null==c?void 0:c.replace(/\s/g,""))||"无traceID",stack:i,reason:a});return JSON.parse(JSON.stringify(l))}return e}(O.isError(e)?e.toJSON():e);fs("ERROR",t.source,t.operationType||t.message||"Unknown Error",t)}},ps=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),y(f(e),"name","SDKInternalError"),e}return l(n)}(O),gs=function(e){p(n,e);var t=v(n);function n(e){return u(this,n),t.call(this,"HOST",e)}return l(n,[{key:"_transferReceivePort",value:function(e){es(ts(n.prototype),"_transferReceivePort",this).call(this,e)}},{key:"_addPort",value:function(e){es(ts(n.prototype),"_addPort",this).call(this,e)}},{key:"_transferSendPort",value:function(e){es(ts(n.prototype),"_transferSendPort",this).call(this,e)}},{key:"setTarget",value:function(e){es(ts(n.prototype),"setTarget",this).call(this,e)}},{key:"setDebugCallback",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=es(ts(n.prototype),"setDebugCallback",this)).call.apply(e,[this].concat(r))}}],[{key:"getGlobalBridge",value:function(){return se.getGlobalBridge("HOST")}}]),n}(se),vs=function(e){p(n,e);var t=v(n);function n(e,r,o){var i;return u(this,n),i=t.call(this,e,r,o||"SDK_USAGE"),y(f(i),"name","MountError"),i}return l(n)}(ps),ms=function(){function e(t,n){u(this,e),y(this,"name",void 0),y(this,"_elementMode",void 0),y(this,"_isMainElement",void 0),y(this,"config",void 0),y(this,"bridge",void 0),y(this,"hooks",{}),y(this,"iframe",null),y(this,"status",void 0),y(this,"cachedSend",[]),this.config=n,this._isMainElement=n.isMainElement,this._elementMode=n.elementMode,this.name=t,this.bridge=new gs(t),this.bridge.setOrigin(n.targetOrigin),n.trackId&&os.setTrackId(n.trackId),this.config.debug&&this.bridge.setDebugCallback((function(e,t){var n,r;e.type.endsWith(ne.UPDATE_CONFIG)||e.type.endsWith(ne.HEIGHT_UPDATE)||(e.type.endsWith(ne.MESSAGE)?fs(null===(n=e.payload)||void 0===n?void 0:n.type,"APP_RUNTIME",e.type,null===(r=e.payload)||void 0===r?void 0:r.message):e.type.endsWith(ne.ERROR)&&"IN"===t?ds(e.payload):fs("INFO","OUT"===t?"SDK_INTERNAL":"APP_RUNTIME",e.type,e.payload))})),this.status="initialized"}var t,n,r,o,i;return l(e,[{key:"submit",value:function(e){throw new ps("This element not support submit","NOT_SUPPORT_SUBMIT","SDK_USAGE")}},{key:"setup",value:(i=T(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",void 0);case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"mount",value:(o=T(w().mark((function e(t){var n,r,o,i,a=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("initialized"===this.status||"unmounted"===this.status){e.next=4;break}throw n=new vs({message:"element status is ".concat(this.status,", can not mount again"),params:{status:this.status}},"MOUNT_NOT_SUPPORT"),ds(n),n;case 4:return r=Date.now(),o=X((function(){return Promise.all([a.setup(),a._mount(t)])}),15e3,new vs("Mount timeout","MOUNT_TIMEOUT","SYSTEM")),i=Q((function(){cs({msg:a.name,d1:"用户退出页面",m1:0,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0})})),e.abrupt("return",o().then((function(e){var t=P(e,1)[0];hs({msg:a.name,d1:(null==t?void 0:t.merchantId)||"未配置的商户"}),cs({msg:a.name,d1:"挂载成功",m1:1,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0}),a.bridge.send(ne.HANDSHAKE,rs(a.config.appConfig,t||{}))})).catch((function(e){a.unmount();var t=ps.unificationError(e);throw cs({msg:a.name,d1:"挂载失败",d2:t.code,d3:t.reason,m1:0,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0}),ds(t),t})).finally((function(){i()})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"_mount",value:(r=T(w().mark((function e(t){var n=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=T(w().mark((function e(r,o){var i,a,s,u,c,l,h,f,d,p;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.isMainElement||!n.isSingleMode){e.next=2;break}return e.abrupt("return",o(new vs({message:"".concat(n.name," element can not be used with single mode"),params:{elementName:n.name}},"MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE")));case 2:if(e.prev=2,t){e.next=5;break}return e.abrupt("return",o(new vs("container missing","MOUNT_MISSING_CONTAINER")));case 5:i=n.config.appUrl,a=new URL(n.config.appUrl),s=[["origin",window.location.origin],["locale",n.config.locale]].concat(C(n.config.trackId?[["track_id",n.config.trackId]]:[]));try{s.forEach((function(e){var t=P(e,2),n=t[0],r=t[1];return a.searchParams.set(n,r)})),i=a.toString()}catch(e){u=i.includes("?")?"&":"?",c=s.map((function(e){var t=P(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat(encodeURIComponent(r))})).join("&"),i="".concat(i).concat(u).concat(c)}(l=t.querySelector("#sdk-loading"))&&(l.style.display=""),n.status="mounting",n.iframe||(n.iframe=document.createElement("iframe"),n.iframe.src=i,n.iframe.style.width="100%",n.iframe.style.border="none",n.iframe.style.height="0",n.iframe.style.borderRadius="inherit",n.iframe.style.transition="height 0.3s ease",n.iframe.style.colorScheme=null!==(h=n.config.colorScheme)&&void 0!==h?h:"light dark",n.iframe.allow="payment",n.bridge.on(ne.HEIGHT_UPDATE,(function(e){n.iframe&&(n.iframe.style.height="".concat(e,"px"))}))),f=Date.now(),d="*";try{"null"===(d=new URL(n.iframe.src).origin)&&(d="*")}catch(e){d="*"}n.bridge.setOrigin(d),p=function(){var e;if(l&&(l.style.display="none"),"mounted"!==n.status&&"ready"!==n.status){if(null===(e=n.iframe)||void 0===e||!e.contentWindow)return r();fs("INFO","SYSTEM","Iframe ".concat(n.name," loaded, initiating handshake...")),n.status="mounted",n.bridge.setTarget(n.iframe.contentWindow);var t=Date.now();n.bridge.once(ne.HANDSHAKE_ACK,(function(e){n.status="ready",n.cachedSend.length&&(n.cachedSend.forEach((function(e){var t=e.type,r=e.payload;n.bridge.send(t,r)})),n.cachedSend=[]),ls({msg:n.name,d1:(null==e?void 0:e.version)||"未知版本",m1:Math.round(Date.now()-t),m2:1,m3:Math.round(Date.now()-f)})})),r()}},n.bridge.once(ne.READY_HANDSHAKE,(function(){p()})),n.iframe.onerror=function(e){o(new vs("Iframe load error: ".concat(e),"MOUNT_IFRAME_LOAD_ERROR","SYSTEM"))},t.appendChild(n.iframe),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(2),o(new vs("Initialization crashed: ".concat(e.t0.message),"MOUNT_INITIAL_FAILED","SDK_INTERNAL"));case 24:case"end":return e.stop()}}),e,null,[[2,21]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"updateConfig",value:(n=T(w().mark((function e(t){var n,r,o,i=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"destroyed"!==this.status){e.next=3;break}throw new ps("Element already destroyed, cannot update destroyed SDK instance","ELEMENT_INSTANCE_DESTROYED","SDK_USAGE");case 3:if("ready"===this.status){e.next=5;break}throw new ps({message:"Element is { status }, it is not ready, cannot update config",params:{status:this.status}},"UPDATE_CONFIG_NOT_READY","SDK_USAGE");case 5:return this.config.appConfig=rs(this.config.appConfig,t),fs("INFO","SDK_USAGE","Updating configuration via API",t),n=function(){},r=X((function(){return new Promise((function(e){n=i.bridge.once(ne.UPDATE_CONFIG_REPLY,(function(t){e(t)})),i.bridge.send(ne.UPDATE_CONFIG,{merged:i.config.appConfig,updated:t})}))}),3e3,new ps("Update config timeout","UPDATE_CONFIG_TIMEOUT","SYSTEM")),e.abrupt("return",r().catch((function(e){return n(),{error:ps.unificationError(e).toJSON()}})));case 12:return e.prev=12,e.t0=e.catch(0),o=ps.unificationError(e.t0),e.abrupt("return",Promise.resolve({error:o.toJSON()}));case 16:case"end":return e.stop()}}),e,this,[[0,12]])}))),function(e){return n.apply(this,arguments)})},{key:"unmount",value:function(){"mounted"===this.status||"ready"===this.status?(this.status="unmounted",this.iframe&&this.iframe.parentNode&&(this.iframe.style.height="0",this.iframe.parentNode.removeChild(this.iframe))):fs("WARN","SDK_USAGE","element status is ".concat(this.status,", can not unmount, please check the usage. only mounted or ready status can unmount"))}},{key:"isSingleMode",get:function(){return"SINGLE"===this._elementMode}},{key:"on",value:function(e,t){this.bridge.on(e,t)}},{key:"send",value:function(e,t){"destroyed"!==this.status?"ready"===this.status?this.bridge.send(e,t):this.cachedSend.push({type:e,payload:t}):ds(new ps("element status is ".concat(this.status,", can not send message"),"ELEMENT_INSTANCE_DESTROYED","SDK_USAGE"))}},{key:"_addPort",value:function(e){!this.isSingleMode&&this.isMainElement&&this.bridge._addPort(e)}},{key:"_transferReceivePort",value:function(e){!this.isSingleMode&&this.isMainElement&&this.bridge._transferReceivePort(e)}},{key:"_transferSendPort",value:function(e){this.isSingleMode||this.isMainElement||this.bridge._transferSendPort(e)}},{key:"_submit",value:(t=T(w().mark((function e(t){var n=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("HOST"===this.bridge.mode){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("submit method only available in HOST mode")));case 2:return this.send(ne.SUBMIT,t),e.abrupt("return",new Promise((function(e){n.bridge.once(ne.SUBMIT_REPLY,(function(t){e(t)}))})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"destroy",value:function(){var e;"ready"===this.status||"mounted"===this.status?(null===(e=this.hooks.ondestroy)||void 0===e||e.forEach((function(e){return e()})),this.hooks={},this.bridge.destroy(),this.unmount(),this.status="destroyed"):fs("WARN","SDK_USAGE","element status is ".concat(this.status,", can not destroy, please check the usage. only mounted or ready status can destroy"))}},{key:"isMainElement",get:function(){return this._isMainElement}},{key:"_addHook",value:function(e,t){var n,r=this;return this.hooks[e]||(this.hooks[e]=[]),null===(n=this.hooks[e])||void 0===n||n.push(t),function(){var n;r.hooks[e]=null===(n=r.hooks[e])||void 0===n?void 0:n.filter((function(e){return e!==t}))}}}]),e}();y(ms,"elementType",void 0);E()(E()(E()({},Pr),{GENERATE_ELEMENT_KEY_FAILED:"GENERATE_ELEMENT_KEY_FAILED",ELEMENT_INIT_FAILED:"ELEMENT_INIT_FAILED",MOUNT_TIMEOUT:"MOUNT_TIMEOUT",MOUNT_MISSING_CONTAINER:"MOUNT_MISSING_CONTAINER",MOUNT_IFRAME_LOAD_ERROR:"MOUNT_IFRAME_LOAD_ERROR",MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE:"MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE",MOUNT_NOT_SUPPORT:"MOUNT_NOT_SUPPORT",MOUNT_INITIAL_FAILED:"MOUNT_INITIAL_FAILED",ELEMENT_INSTANCE_DESTROYED:"ELEMENT_INSTANCE_DESTROYED",ELEMENT_DEFINE_ERROR:"ELEMENT_DEFINE_ERROR",ELEMENT_ALREADY_REGISTERED:"ELEMENT_ALREADY_REGISTERED",CANNOT_CREATE_SAME_ELEMENT_TWICE:"CANNOT_CREATE_SAME_ELEMENT_TWICE",GROUPS_ONLY_ONE_MAIN_ELEMENT:"GROUPS_ONLY_ONE_MAIN_ELEMENT",GROUPS_NOT_FOUND_MAIN_ELEMENT:"GROUPS_NOT_FOUND_MAIN_ELEMENT",NOT_SUPPORT_ELEMENT:"NOT_SUPPORT_ELEMENT",NOT_SUPPORT_SUBMIT:"NOT_SUPPORT_SUBMIT",UPDATE_CONFIG_TIMEOUT:"UPDATE_CONFIG_TIMEOUT",UPDATE_CONFIG_NOT_READY:"UPDATE_CONFIG_NOT_READY",INVALID_MODAL_URL:"INVALID_MODAL_URL",LOAD_DEBUGGER_FAILED:"LOAD_DEBUGGER_FAILED"}),{},{NOT_FIND_MAINELEMENT:"NOT_FIND_MAINELEMENT",SESSION_DATA_INVALID:"SESSION_DATA_INVALID",SDK_LAUNCH_PAYMENT_APP_ERROR:"SDK_LAUNCH_PAYMENT_APP_ERROR",PARAM_INVALID:"PARAM_INVALID",CHANNEL_CLIENT_ID_QUERY_TIMEOUT:"CHANNEL_CLIENT_ID_QUERY_TIMEOUT",CHANNEL_CLIENT_ID_MISSING:"CHANNEL_CLIENT_ID_MISSING",CHANNEL_CLIENT_ID_QUERY_FAILED:"CHANNEL_CLIENT_ID_QUERY_FAILED",CHANNEL_CLIENT_ID_QUERY_ERROR:"CHANNEL_CLIENT_ID_QUERY_ERROR",CHECKOUT_NOT_READY:"CHECKOUT_NOT_READY",PAYMENT_IN_PROGRESS:"PAYMENT_IN_PROGRESS",AMOUNT_VALUE_EMPTY:"AMOUNT_VALUE_EMPTY",AMOUNT_VALUE_INVALID:"AMOUNT_VALUE_INVALID"});var ys=function(e){g()(n,e);var t=m()(n);function n(){var e;c()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),_()(d()(e),"name","AntomSDKError"),e}return h()(n)}(Rr),_s={default:{theme:"light",backgroundColor:"#ffffff"},light:{theme:"light",backgroundColor:"#ffffff"},night:{theme:"dark",backgroundColor:"#141935"},agateGreen:{theme:"dark",backgroundColor:"#344343"},nostalgicGray:{theme:"light",backgroundColor:"#e8e8e8"},gamingPurple:{theme:"dark",backgroundColor:"#070b29"},cherryBlossomPink:{theme:"light",backgroundColor:"#FFFCFD"}};function bs(e,t){var n;if(!e)throw new ys("sessionData is required","SESSION_DATA_INVALID","SDK_USAGE");fs("INFO","SDK_USAGE","Setup called with sessionData:",{sessionData:e});var r=Xa(e);if(!r)throw new ys("Failed to parse sessionData, please check the sessionData","SESSION_DATA_INVALID","SDK_USAGE");var o=null===(n=r.paymentSessionConfig)||void 0===n?void 0:n.productScene;if(t&&o!==t)throw new ys("Invalid productScene in sessionData, expected ".concat(t,", but get ").concat(o,", please check the sessionData is correct?"),"SESSION_DATA_INVALID","SDK_USAGE");return r}var Es="ams-popup",ws=300,Ss="ams-component-popup-loading",Ts="\n .".concat(Es,"modal {\n /* 添加弹窗样式 */\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 9999; /* 设置弹窗的层级为 9999 */\n overflow: hidden;\n }\n .").concat(Es,"modal-mobile{\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n bottom: 0;\n left: 0%;\n z-index: 9999; /* 设置弹窗的层级为 9999 */\n overflow: hidden;\n }\n\n .").concat(Es,"overlay {\n /* 添加蒙层样式 */\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n }\n\n .").concat(Es,"fadeIn {\n /* 添加淡入动画 */\n animation: fadeIn ").concat(ws,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(Es,"fadeOut {\n /* 添加淡出动画 */\n animation: fadeOut ").concat(ws,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(Es,"-drawer-enter {\n animation: slideIn ").concat(ws,"ms forwards;\n }\n\n @keyframes slideIn {\n from {\n transform: translateY(100%); /* 滑入时在视口底部外 */\n opacity: 0; /* 初始透明度为 0 */\n }\n to {\n transform: translateY(0); /* 滑入结束时在原位置 */\n opacity: 1; /* 结束时透明度为 1 */\n }\n }\n\n /* 抽屉从底部滑出 */\n .").concat(Es,"-drawer-exit {\n animation: slideOut ").concat(ws,'ms forwards;\n }\n\n @keyframes slideOut {\n from {\n transform: translateY(0); /* 滑出时从当前位置开始 */\n opacity: 1; /* 初始透明度为 1 */\n }\n to {\n transform: translateY(100%); /* 滑出结束时在视口底部外 */\n opacity: 0; /* 结束时透明度为 0 */\n }\n }\n\n /* 定义淡入动画 */\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-webkit-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-moz-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n /* 定义淡出动画 */\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-webkit-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-moz-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n\n.ams-component-popup-loading {\n width: 0.8em;\n height:0.8em;\n border-radius: 8px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.ams-component-popup-loading .line {\n width: 40px;\n height: 40px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-popup-loading .line div {\n position: absolute;\n left: 17.67px;\n top: 0;\n width: 5.33px;\n height: 40px;\n}\n\n.ams-component-popup-loading .line div:before,\n.ams-component-popup-loading .line div:after {\n content: \'\';\n display: block;\n height: 13.33px;\n background: black;\n border-radius: 5.3px;\n}\n.ams-component-popup-loading .line div:after {\n margin-top: 13.33px;\n}\n\n.ams-component-popup-loading .line div:nth-child(2) {\n -webkit-transform: rotate(45deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(3) {\n -webkit-transform: rotate(90deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(4) {\n -webkit-transform: rotate(135deg);\n}\n\n/** 加载动画 **/\n@-webkit-keyframes load {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-popup-loading-logo {\n width: 0.44em;\n height: 0.44em;\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg);\n -webkit-transition:-webkit-transform 1s linear;\n transition:transform 1s linear;\n animation: ams-component-loading-logo 1s linear infinite;\n}\n'),As=function(e,t){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",t="\n .ams-component-popup-loading .line div:before,\n .ams-component-popup-loading .line div:after {\n background: ".concat("light"===e?"#000000":"#ffffff"," !important;\n }"),n=document.createElement("style");n.innerHTML=t,document.head.appendChild(n)}(e);var n=document.createElement("div");return null==n||n.classList.add(Ss),n.id=Ss,n.innerHTML='<div class="line"><div></div><div></div><div></div><div></div></div><span id="text" style="font-size: 16px;position:absolute;bottom: 0;white-space: nowrap">'.concat(t||"","</span>"),n.style.fontSize="".concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:390,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:130,n=document.documentElement.clientWidth,r=jr?t:100*n/e;return Math.min(r,t)}(),"px"),n};var Ps=function(e){var t=e.mode,n=e.url,r=e.loadingConfig,o=e.showClose,i=void 0===o||o,a=e.hideCloseWhenLoaded,s=void 0===a||a,u=e.onClose,c=e.textDirection,l=void 0===c?"ltr":c,h=e.showLoading,f=void 0===h||h,d=document.createElement("div");d.classList.add("".concat(Es,"overlay"),"".concat(Es,"fadeIn"));var p=document.createElement("div");"desktop"===t?(p.classList.add("".concat(Es,"modal"),"".concat(Es,"fadeIn")),p.style.width="656px",p.style.height="620px",p.style.borderRadius="12px"):(p.classList.add("".concat(Es,"modal-mobile"),"".concat(Es,"-drawer-enter")),p.style.width="100%",p.style.height="80vh",p.style.borderRadius="12px 12px 0 0"),p.setAttribute("dir",l);var g=function(e,t,n){return function(){t&&(t.classList.remove("".concat(Es,"fadeIn")),t.classList.add("".concat(Es,"fadeOut")),"desktop"===e?(n.classList.remove("".concat(Es,"fadeIn")),n.classList.add("".concat(Es,"fadeOut"))):(n.classList.remove("".concat(Es,"-drawer-enter")),n.classList.add("".concat(Es,"-drawer-exit"))),setTimeout((function(){var e,r;null===(e=t.parentNode)||void 0===e||e.removeChild(t),null===(r=n.parentNode)||void 0===r||r.removeChild(n)}),ws))}}(t,d,p),v=document.createElement("iframe");v.src=n,v.style.border="none",v.style.width="100%",v.style.height="100%";var m,y=r||{},_=y.theme,b=void 0===_?"light":_,E=y.backgroundColor,w=void 0===E?"#ffffff":E,T=As(b);if(v.addEventListener("load",(function e(){p.removeChild(T),v.removeEventListener("load",e)})),i){var P=function(e){var t=e.onClose,n=e.textDirection,r=document.createElement("div");r.style.position="absolute","rtl"===n?r.style.left="16px":r.style.right="16px",r.style.top="23px",r.style.cursor="pointer";var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("width","16"),o.setAttribute("height","16"),o.setAttribute("viewBox","0 0 16 16"),o.setAttribute("fill","none");var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill-rule","evenodd"),i.setAttribute("clip-rule","evenodd"),i.setAttribute("d","M13.0449 2.99894L12.9494 2.91165L12.8685 2.85222L12.7802 2.7996C12.3611 2.57499 11.8556 2.64328 11.5228 2.9763L7.99909 6.50088L4.48854 2.99028L4.44701 2.95034C4.0098 2.57169 3.38048 2.57202 2.99838 2.9525L2.92363 3.03297L2.85175 3.12897L2.79916 3.21735C2.57471 3.63642 2.64292 4.14198 2.9757 4.47491L6.50186 8.00046L2.95226 11.5518C2.57141 11.9917 2.57173 12.6211 2.95197 13.0033L3.0324 13.078L3.12837 13.15L3.21674 13.2026C3.63573 13.4272 4.14123 13.3589 4.47407 13.0259L7.99909 9.49935L11.5474 13.0494C11.9944 13.4368 12.6238 13.4235 13.0212 13.0259L13.0922 12.9471L13.1559 12.8595C13.4298 12.4403 13.3789 11.8852 13.0211 11.5272L9.497 8.00115L13.0052 4.4915L13.07 4.4225C13.4304 4.00477 13.4199 3.37582 13.0449 2.99894Z"),i.setAttribute("fill","#ABB9CC"),o.appendChild(i),r.appendChild(o),r.onclick=t,r}({onClose:(m=!1,A()(S()().mark((function e(){var t,n;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m){e.next=2;break}return e.abrupt("return");case 2:return null===(t=T.parentNode)||void 0===t||t.removeChild(T),p.removeChild(v),n=As(b,wr.get({defaultMessage:"closing",id:"antom.common.closing"})),p.appendChild(n),m=!0,e.prev=7,e.next=10,null==u?void 0:u();case 10:return e.prev=10,m=!1,e.finish(10);case 13:g();case 14:case"end":return e.stop()}}),e,null,[[7,,10,13]])})))),textDirection:l});s&&v.addEventListener("load",(function e(){p.removeChild(P),v.removeEventListener("load",e)})),p.appendChild(P)}if(f){p.style.backgroundColor=w,v.style.backgroundColor=w;v.addEventListener("load",(function e(){var t;null===(t=T.parentNode)||void 0===t||t.removeChild(T),v.removeEventListener("load",e)})),p.appendChild(T)}p.appendChild(v);var R,L=document.getElementsByTagName("body")[0];return(R=document.createElement("style")).innerHTML=Ts,document.head.appendChild(R),L.appendChild(d),L.appendChild(p),{iframe:v,destroy:g}};function Rs(e){return Ls.apply(this,arguments)}function Ls(){return(Ls=A()(S()().mark((function e(t){var n;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return n=e.sent,e.abrupt("return",{error:void 0,data:n});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{error:ys.unificationError(e.t0).toJSON(),data:void 0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function ks(e,t){return Ns.apply(this,arguments)}function Ns(){return(Ns=A()(S()().mark((function e(t,n){return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Wa("com.ipay.iexpfront.one.account.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Os(e,t){return Is.apply(this,arguments)}function Is(){return(Is=A()(S()().mark((function e(t,n){return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Wa("com.ipay.iexpcashier.sdkAction.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Cs="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",Ms=null;var Ds=function(){function e(t){c()(this,e),_()(this,"opts",void 0),_()(this,"session",null),_()(this,"settled",!1),_()(this,"phase","idle"),_()(this,"cancelReason",null),_()(this,"modalCloseHandler",null),this.opts=t}var t;return h()(e,[{key:"startPay",value:(t=A()(S()().mark((function e(){var t,n,r,o,i,a,s,u=this;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.settled=!1,this.phase="idle",this.cancelReason=null,(i=this.opts.paymentRequest).version&&Array.isArray(i.supportedNetworks)&&0!==i.supportedNetworks.length&&Array.isArray(i.merchantCapabilities)&&0!==i.merchantCapabilities.length&&i.countryCode&&i.currencyCode&&null!==(t=i.total)&&void 0!==t&&t.label&&null!==(n=i.total)&&void 0!==n&&n.amount){e.next=8;break}throw console.warn("[ApplePay] Required Apple Pay fields are missing"),{errorCode:"APPLE_PAY_MISSING_DATA"};case 8:return e.next=10,Ms||(Ms=new Promise((function(e){if(Ur)return e(!1);if(window.ApplePaySession)return e(!0);var t=document.querySelector('script[src="'.concat(Cs,'"]'));if(t)return t.addEventListener("load",(function(){return e(!0)})),void t.addEventListener("error",(function(){return e(!1)}));var n=document.createElement("script");n.src=Cs,n.onload=function(){return e(!0)},n.onerror=function(){return e(!1)},document.head.appendChild(n)})),Ms);case 10:if(a=e.sent,s=window.ApplePaySession,a&&s){e.next=16;break}throw console.warn("[ApplePay] Apple Pay SDK not available on host"),{errorCode:"APPLE_PAY_NOT_SUPPORTED"};case 16:if(null!==(r=s.canMakePayments)&&void 0!==r&&r.call(s)&&null!==(o=s.supportsVersion)&&void 0!==o&&o.call(s,i.version)){e.next=20;break}throw console.warn("[ApplePay] canMakePayments=false (version=".concat(i.version,")")),{errorCode:"APPLE_PAY_NOT_SUPPORTED"};case 20:e.prev=20,this.session=new s(i.version,this.buildSessionParams()),e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(20),console.warn("[ApplePay] ApplePaySession constructor failed:",e.t0),{errorCode:"APPLE_PAY_NOT_SUPPORTED"};case 29:return e.abrupt("return",new Promise((function(e,t){var n=function(n){u.settled||(u.settled=!0,u.clearModalCloseListener(),n?t(n):e())};u.session.onvalidatemerchant=function(){var e=A()(S()().mark((function e(t){var r,o;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.phase="validating",e.prev=1,e.next=4,u.opts.callbacks.validateMerchant(null==t?void 0:t.validationURL);case 4:if(r=e.sent){e.next=7;break}throw{errorCode:"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED"};case 7:u.phase="validated",u.session.completeMerchantValidation(r),e.next=21;break;case 11:if(e.prev=11,e.t0=e.catch(1),u.phase="idle",!u.settled){e.next=17;break}return u.safeAbort(),e.abrupt("return");case 17:o=(null===e.t0||void 0===e.t0?void 0:e.t0.errorCode)||"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED",console.warn("[ApplePay] validateMerchant failed:",e.t0),n({errorCode:o}),u.safeAbort();case 21:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}(),u.session.onpaymentauthorized=function(){var e=A()(S()().mark((function e(t){var r,o,i,a,c,l,h;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.phase="authorizing",r=(null==t?void 0:t.payment)||{},o=r.token,i=r.billingContact,a=r.shippingContact,o){e.next=7;break}return u.safeComplete(s.STATUS_FAILURE),n({errorCode:"APPLE_PAY_TOKEN_ERROR"}),e.abrupt("return");case 7:return e.prev=7,e.next=10,u.opts.callbacks.onAuthorized({token:o,billingContact:i,shippingContact:a});case 10:(c=e.sent).success?(u.safeComplete(s.STATUS_SUCCESS),n()):("MERCHANT_CONFIRM_ABORT"===c.errorCode&&(u.cancelReason="MERCHANT_ABORT"),u.safeComplete(s.STATUS_FAILURE),l=c.errorCode||"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED",c.errorMessage&&console.warn("[ApplePay] onAuthorized returned failure:",c.errorMessage),n({errorCode:l})),e.next=20;break;case 14:e.prev=14,e.t0=e.catch(7),u.safeComplete(s.STATUS_FAILURE),h=(null===e.t0||void 0===e.t0?void 0:e.t0.errorCode)||"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED",console.warn("[ApplePay] onAuthorized threw:",e.t0),n({errorCode:h});case 20:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t){return e.apply(this,arguments)}}(),u.session.oncancel=function(){return"MERCHANT_ABORT"===u.cancelReason?(u.phase="idle",void n({errorCode:"MERCHANT_CONFIRM_ABORT"})):"validating"===u.phase||"validated"===u.phase?(u.phase="idle",void n({errorCode:"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED"})):(u.phase="idle",void n({errorCode:"APPLE_PAY_CANCEL"}))};try{u.session.begin()}catch(e){return console.warn("[ApplePay] ApplePaySession.begin() failed:",e),void n({errorCode:"APPLE_PAY_NOT_SUPPORTED"})}u.opts.enableModalCloseListener&&u.attachModalCloseListener((function(){u.safeAbort(),n({errorCode:"APPLE_PAY_CANCEL"})}))})));case 30:case"end":return e.stop()}}),e,this,[[20,24]])}))),function(){return t.apply(this,arguments)})},{key:"buildSessionParams",value:function(){var e=this.opts.paymentRequest,t={countryCode:e.countryCode,currencyCode:e.currencyCode,merchantCapabilities:e.merchantCapabilities,supportedNetworks:e.supportedNetworks,requiredBillingContactFields:e.requiredBillingContactFields,requiredShippingContactFields:e.requiredShippingContactFields,total:e.total};return e.lineItems&&e.lineItems.length>0&&(t.lineItems=e.lineItems),e.recurringPaymentRequest&&(t.recurringPaymentRequest=e.recurringPaymentRequest),t}},{key:"safeAbort",value:function(){try{var e,t;null===(e=this.session)||void 0===e||null===(t=e.abort)||void 0===t||t.call(e)}catch(e){}}},{key:"safeComplete",value:function(e){try{var t,n;null===(t=this.session)||void 0===t||null===(n=t.completePayment)||void 0===n||n.call(t,e)}catch(e){}}},{key:"attachModalCloseListener",value:function(e){var t,n=document.querySelector("apple-pay-modal"),r=(null==n||null===(t=n.shadowRoot)||void 0===t?void 0:t.querySelector(".modal-close-button"))||null;if(r){var o=function(){e()};r.addEventListener("click",o,{once:!0}),this.modalCloseHandler={el:r,fn:o}}}},{key:"clearModalCloseListener",value:function(){this.modalCloseHandler&&(this.modalCloseHandler.el.removeEventListener("click",this.modalCloseHandler.fn),this.modalCloseHandler=null)}}]),e}()}(),r}()}));
|