@alipay/ams-checkout 2.0.27 → 2.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){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={381: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(159),a=n(858);Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return a.loadScript}});var s=null;function u(e,t,n){return s=s?s.then((function(r){return r.isDestroyed?c(e,t,n):r})):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}))}},159:function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},i=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())}))},a=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 s=n(858),u=function(){function e(e){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}return Object.defineProperty(e.prototype,"loadTacker",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return(0,s.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-intl-tracker/1.3.0/dist/common.min.js","CompatibleTrackerFull").then((function(t){var n=null==t?void 0:t.variable;if(n)return new n(o({compactExtraInfo:!0,appId:"180020050100012557"},e.initOptions))})).catch((function(){}))}}),Object.defineProperty(e.prototype,"getTracker",{enumerable:!1,configurable:!0,writable:!0,value:function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return this.tracker?[2,this.tracker]:[4,this.loadTacker()];case 1:return(e=t.sent())&&(e.set({keyFormat:"origin",userPathAuto:!1}),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=u;var c=(null===(r="PROD")?void 0:r.toUpperCase())||"PROD",l=["DEV","SIT","PRE","PROD","LOCAL"].includes(c)?c:"PROD";t.tracker=new u({appId:"180020050100012557",env:l,server:"sg",performance:!1,error:!1})},858: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},245:function(e,t,n){var r=n(65).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 S(e);s=setTimeout(E,function(e){var n=t-(e-u);return h?p(n,i-(e-c)):n}(e))}function S(e){return s=void 0,f&&r?m(e):(r=o=void 0,a)}function w(){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),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},w.flush=function(){return void 0===s?a:S(g())},w}},34:function(e,t,n){var r=n(65).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:"",S=y.toString,w=_.hasOwnProperty,T=_.toString,A=RegExp("^"+S.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=g.Symbol,R=m.splice,k=H(g,"Map"),O=H(Object,"create"),N=P?P.prototype:void 0,L=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 D(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,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||Y(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 U(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 S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function B(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 U(n)?n:void 0}I.prototype.clear=function(){this.__data__=O?O(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(O){var n=t[e];return n===o?void 0:n}return w.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return O?void 0!==t[e]:w.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=O&&void 0===t?o:t,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(e){var t=this.__data__,n=M(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=M(t,e);return n<0?void 0:t[n][1]},C.prototype.has=function(e){return M(this.__data__,e)>-1},C.prototype.set=function(e,t){var n=this.__data__,r=M(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new I,map:new(k||C),string:new I}},D.prototype.delete=function(e){return B(this,e).delete(e)},D.prototype.get=function(e){return B(this,e).get(e)},D.prototype.has=function(e){return B(this,e).has(e)},D.prototype.set=function(e,t){return B(this,e).set(e,t),this};var j=F((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Y(e))return L?L.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||Y(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function F(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(F.Cache||D),n}F.Cache=D;var G=Array.isArray;function K(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function Y(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}},270:function(e,t,n){e=n.nmd(e);var r=n(65).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 S,w,T,A=Array.prototype,P=Function.prototype,R=Object.prototype,k=p["__core-js_shared__"],O=P.toString,N=R.hasOwnProperty,L=(S=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",I=R.toString,C=O.call(Object),D=RegExp("^"+O.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=m?p.Buffer:void 0,x=p.Symbol,U=p.Uint8Array,B=M?M.allocUnsafe:void 0,H=(w=Object.getPrototypeOf,T=Object,function(e){return w(T(e))}),j=Object.create,z=R.propertyIsEnumerable,F=A.splice,G=x?x.toStringTag:void 0,K=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=M?M.isBuffer:void 0,W=Math.max,V=Date.now,q=ve(p,"Map"),J=ve(Object,"create"),X=function(){function e(){}return function(t){if(!ke(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=we(e),r=!n&&Se(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():F.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 Oe(e)&&ue(e)==a}function le(e){return!(!ke(e)||function(e){return!!L&&L in e}(e))&&(Pe(e)?D:c).test(function(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function he(e){if(!ke(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),ke(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=we(c),p=!d&&Ae(c),g=!d&&!p&&Ne(c);h=c,d||p||g?we(s)?h=s:Oe(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=B?B(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 U(_).set(new U(y)),_):v.buffer,h=new v.constructor(m,v.byteOffset,v.length)):h=[]:function(e){if(!Oe(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&&O.call(n)==C}(c)||Se(c)?(h=s,Se(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,Le(e))}(s):ke(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)}}),Le)}function de(e,t){return be(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=W(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,De),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}:De;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=V(),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 Se=ce(function(){return arguments}())?ce:function(e){return Oe(e)&&N.call(e,"callee")&&!z.call(e,"callee")},we=Array.isArray;function Te(e){return null!=e&&Re(e.length)&&!Pe(e)}var Ae=Y||function(){return!1};function Pe(e){if(!ke(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 ke(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}function Oe(e){return null!=e&&"object"==r(e)}var Ne=b?function(e){return function(t){return e(t)}}(b):function(e){return Oe(e)&&Re(e.length)&&!!h[ue(e)]};function Le(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(!ke(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 De(e){return e}e.exports=Ce},822: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}},93:function(e,t,n){var r=n(953);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},953:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},820: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},720:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},748:function(e,t,n){var r=n(820);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},402: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},774:function(e,t,n){var r=n(953);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},164: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},842: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},621:function(e,t,n){var r=n(953);e.exports=function(e){return new r(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},952: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},603:function(e,t,n){var r=n(975),o=n(377);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},86:function(e,t,n){var r=n(893);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},286:function(e,t,n){var r=n(617);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},929:function(e,t,n){var r=n(731),o=n(377),i=n(365);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},762:function(e,t,n){var r=n(893);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},606:function(e,t,n){var r=n(482);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},731: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},832:function(e,t,n){var r=n(975);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},315: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},377: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},454: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},587: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},469: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},928: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},212:function(e,t,n){var r=n(762);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},578:function(e,t,n){var r=n(710);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},710:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},365:function(e,t,n){var r=n(65).default,o=n(402);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},650:function(e,t,n){var r=n(65).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:k(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 S={};f(S,c,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(C([])));T&&T!==i&&a.call(T,c)&&(S=T);var A=E.prototype=_.prototype=Object.create(S);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 k(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=O(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 O(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,O(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 L(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(L),!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),L(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;L(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},975: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},50:function(e,t,n){var r=n(720),o=n(587),i=n(617),a=n(469);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},482:function(e,t,n){var r=n(731);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},705:function(e,t,n){var r=n(748),o=n(454),i=n(617),a=n(928);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},571:function(e,t,n){var r=n(65).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},893:function(e,t,n){var r=n(65).default,o=n(571);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},65: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},617:function(e,t,n){var r=n(820);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},101:function(e,t,n){var r=n(93);e.exports=function(e){return function(){return new r(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},184:function(e,t,n){var r=n(731),o=n(975),i=n(315),a=n(603);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 hu},MessageType:function(){return ne},ModalPort:function(){return $},OpenSDKError:function(){return L},SDKBridge:function(){return se},adjustSessionData:function(){return Ss},awaitWrap:function(){return ru},buildPageUrl:function(){return t},buildRecurringPaymentRequest:function(){return fu},checkSessionData:function(){return Ys},debug:function(){return xs},debugError:function(){return Us},getDevReqConfig:function(){return o},getLocaleFromRenderData:function(){return s},getMetaData:function(){return bs},isElements2:function(){return ws},oneAccountQuery:function(){return iu},openModal:function(){return Zs},parseHostSign:function(){return Wr},parseTrackerId:function(){return Yr},request:function(){return ms},sdkQuery:function(){return su},sdkTracker:function(){return fe},showToast:function(){return nu},themeColorMap:function(){return Ks}});var e={};function t(e,t){return function(e){return"https://checkout.antom.com/".concat(e?"elements2":"elements","/pages")}(t)+(e.startsWith("/")?e:"/".concat(e))}n.r(e),n.d(e,{hasBrowserEnv:function(){return Mi},hasStandardBrowserEnv:function(){return Ui},hasStandardBrowserWebWorkerEnv:function(){return Bi},navigator:function(){return xi},origin:function(){return Hi}});function o(){}var i=n(286),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(952),c=n.n(u),l=n(86),h=n.n(l),f=n(402),d=n.n(f),p=n(832),g=n.n(p),v=n(929),m=n.n(v),y=n(762),_=n.n(y),b=n(212),E=n.n(b),S=n(650),w=n.n(S),T=n(842),A=n.n(T),P=n(50),R=n(65),k=n.n(R),O=n(184),N={i18nPrefix:"OPENSDK"},L=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}(O(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)}(L),C=n(705),D=function(e){return C(new Set(e))},M=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)}))},U=function(e){return"bigint"==typeof e||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e},B=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:(W("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+$/,F=function(e){if(!z.test(e))return Number.NaN;var t=Number.parseInt(e,10);return Number.isSafeInteger(t)?t:(W("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 Y(e)})).sort((function(e,t){return t.length-e.length})).join("|"))},K=function(e){return new RegExp("^[".concat(e.map((function(e){return Y(e)})).sort((function(e,t){return t.length-e.length})).join(""),"]+$"))},Y=function(e){return e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&")},W=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)},V=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=D(a);if(c.length<16)throw new Error("Hashids: alphabet must contain at least ".concat(16," unique characters, provided: ").concat(c.join("")));this.alphabet=M(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>V)&&((l=Math.ceil(this.alphabet.length/V))>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(U)||(i=i.map((function(e){return"bigint"==typeof e||"number"==typeof e?e:F(String(e))}))),i.every(B)?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(S().mark((function o(i){return S().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(S().mark((function e(t){var n,r,o=this;return S().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(S().mark((function t(n){var r,o,i;return S().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",MODAL_TRANSFER_READY:"OPENSDK@MODAL_TRANSFER_READY",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(245),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.MODAL_TRANSFER_READY,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);Object.defineProperties(this,{targetWindow:{value:this.targetWindow,writable:!0,enumerable:!1,configurable:!0},currentWindow:{value:this.currentWindow,writable:!0,enumerable:!1,configurable:!0}}),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 L(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,a){try{t(o,i,a)}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(S().mark((function r(o){var i,a;return S().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(578),ce=n(381),le=["trackId","userPathAuto","keyFormat"],he=function(){function e(t){u(this,e),y(this,"options",void 0),y(this,"intlTrackerOptions",void 0),y(this,"tracker",void 0),y(this,"trackerInitPromise",void 0),y(this,"trackId",void 0),this.initialOptions(t)}var t;return l(e,[{key:"initialOptions",value:function(e){var t,n,r,o,i=e||{},a=(i.trackId,i.userPathAuto),s=i.keyFormat,u=ue(i,le);(this.options=b(b(b({env:"PROD",compactExtraInfo:!0},this.options),u),{},{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)}),this.intlTrackerOptions=b(b({},this.options),{},{userPathAuto:a,keyFormat:s}),e&&"trackId"in e)&&(this.trackId=e.trackId||"",this.options=b(b(b({},this.options),u),{},{mdata:b(b(b({},null===(o=this.options)||void 0===o?void 0:o.mdata),u.mdata),{},{trackId:this.trackId})}));return this.options}},{key:"loadTacker",value:function(e){var t=this,n=(0,ce.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-intl-tracker/1.3.0/dist/common.min.js","CompatibleTrackerFull");return n?n.then((function(n){var r=n.variable;if(r)return new r(t.initialOptions(e))})):Promise.resolve(void 0)}},{key:"initTracker",value:(t=T(S().mark((function e(t){var n,r=this;return S().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:if(t||!this.trackerInitPromise){e.next=4;break}return e.abrupt("return",this.trackerInitPromise);case 4:if(n=this.loadTacker(t).then((function(e){var n,o,i,a,s,u;return e&&(e.set({keyFormat:null!==(n=null!==(o=null==t?void 0:t.keyFormat)&&void 0!==o?o:null===(i=r.intlTrackerOptions)||void 0===i?void 0:i.keyFormat)&&void 0!==n?n:"origin",userPathAuto:null!==(a=null!==(s=null==t?void 0:t.userPathAuto)&&void 0!==s?s:null===(u=r.intlTrackerOptions)||void 0===u?void 0:u.userPathAuto)&&void 0!==a&&a}),r.tracker=e),e})),t){e.next=8;break}return this.trackerInitPromise=n.finally((function(){r.trackerInitPromise=void 0})),e.abrupt("return",this.trackerInitPromise);case 8:return e.abrupt("return",n);case 9: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({mdata:{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}(),fe=new he;var de;!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"}(de||(de={}));var pe={};pe[de["ar-SA"]]="阿拉伯语 (沙特阿拉伯)",pe[de.kn]="埃纳德语",pe[de.as]="阿萨姆语",pe[de.bho]="博杰普尔语",pe[de["pl-PL"]]="波兰语 (波兰)",pe[de["ko-KR"]]="朝鲜语 (韩国)",pe[de["da-DK"]]="丹麦语 (丹麦)",pe[de["de-DE"]]="德语 (德国)",pe[de["ru-RU"]]="俄语 (俄罗斯)",pe[de["fr-FR"]]="法语 (法国)",pe[de.gu]="古加拉提语",pe[de["nl-BE"]]="荷兰语 (比利时)",pe[de["nl-NL"]]="荷兰语 (荷兰)",pe[de["cs-CZ"]]="捷克语 (捷克共和国)",pe[de.ro]="罗马尼亚语",pe[de["lo-LA"]]="老挝语 (老挝)",pe[de["my-MM"]]="缅甸语 (缅甸)",pe[de["bn-BD"]]="孟加拉语 (孟加拉)",pe[de["bn-IN"]]="孟加拉语 (印度)",pe[de.mr]="马拉地语",pe[de["ms-MY"]]="马来语 (马来西亚)",pe[de.ml]="马来亚拉姆语",pe[de.mni]="曼尼普里语",pe[de["ne-NP"]]="尼泊尔语 (尼泊尔)",pe[de.or]="欧里亚语",pe[de["pt-BR"]]="葡萄牙语 (巴西)",pe[de["pt-PT"]]="葡萄牙语 (葡萄牙)",pe[de.pa]="旁遮普语",pe[de["sv-SE"]]="瑞典语 (瑞典)",pe[de["ja-JP"]]="日语 (日本)",pe[de.sr]="塞尔维亚语",pe[de["si-LK"]]="僧伽罗语 (斯里兰卡)",pe[de["sk-SK"]]="斯洛伐克语 (斯洛伐克)",pe[de["tr-TR"]]="土耳其语 (土耳其)",pe[de["tl-PH"]]="塔加路族语 (菲律宾)",pe[de.te]="泰卢固语",pe[de.ta]="泰米尔语",pe[de["th-TH"]]="泰语 (泰国)",pe[de["ur-PK"]]="乌尔都语 (巴基斯坦)",pe[de["ur-IN"]]="乌尔都语 (印度)",pe[de["uk-UA"]]="乌克兰语 (乌克兰)",pe[de["iw-IL"]]="希伯来语 (以色列)",pe[de["es-ES"]]="西班牙语 (西班牙)",pe[de["es-MX"]]="西班牙语 (墨西哥)",pe[de.hu]="匈牙利语",pe[de["it-IT"]]="意大利语 (意大利)",pe[de["in-ID"]]="印度尼西亚语 (印度尼西亚)",pe[de["hi-IN"]]="印地语 (印度)",pe[de["vi-VN"]]="越南语 (越南)",pe[de["en-PK"]]="英语 (巴基斯坦)",pe[de["en-PL"]]="英语 (波兰)",pe[de["en-FR"]]="英语 (法国)",pe[de["en-PH"]]="英语 (菲律宾)",pe[de["en-CZ"]]="英语 (捷克共和国)",pe[de["en-CA"]]="英语 (加拿大)",pe[de["en-MM"]]="英语 (缅甸)",pe[de["en-US"]]="英语 (美国)",pe[de["en-BD"]]="英语 (孟加拉)",pe[de["en-MY"]]="英语 (马来西亚)",pe[de["en-NP"]]="英语 (尼泊尔)",pe[de["en-LK"]]="英语 (斯里兰卡)",pe[de["en-TH"]]="英语 (泰国)",pe[de["en-ES"]]="英语 (西班牙)",pe[de["en-SG"]]="英语 (新加坡)",pe[de["en-HU"]]="英语 (匈牙利)",pe[de["en-ID"]]="英语 (印度尼西亚)",pe[de["en-GB"]]="英语 (英国)",pe[de["en-VN"]]="英语 (越南)",pe[de["en-HK"]]="英语 (中国香港)",pe[de["en-KR"]]="英语 (韩国)",pe[de["zh-TW"]]="繁体中文 (中国台湾)",pe[de["zh-HK"]]="繁体中文 (中国香港)",pe[de["zh-SG"]]="简体中文 (新加坡)",pe[de["zh-CN"]]="简体中文 (中国)",pe[de["ar-IQ"]]="阿拉伯语 (伊拉克)",pe[de["ckb-IQ"]]="中库尔德语 (伊拉克)",pe[de.ku]="库尔德语",pe[de["kk-KZ"]]="哈萨克语",pe[de.af]="南非语",pe[de.am]="阿姆哈拉语",pe[de.az]="阿塞拜疆语",pe[de.be]="白俄罗斯语",pe[de.bg]="保加利亚语",pe[de.bs]="波斯尼亚语",pe[de.ca]="加泰罗尼亚语",pe[de.cy]="威尔士语",pe[de.el]="现代希腊语",pe[de.eo]="世界语",pe[de.et]="爱沙尼亚语",pe[de.eu]="巴斯克语",pe[de.fa]="波斯语",pe[de.fi]="芬兰语",pe[de.gd]="爱尔兰语",pe[de.gl]="加利西亚语",pe[de.ha]="豪萨语",pe[de.haw]="夏威夷语",pe[de.hr]="克罗地亚语",pe[de.ig]="伊博语",pe[de.is]="冰岛语",pe[de.ka]="格鲁吉亚语",pe[de.km]="高棉语",pe[de.ky]="吉尔吉斯语",pe[de.lb]="卢森堡语",pe[de.ln]="林格拉语",pe[de.lt]="立陶宛语",pe[de.lv]="拉脱维亚语",pe[de.mg]="马尔加什语",pe[de.mk]="马其顿语",pe[de.mn]="蒙古文",pe[de.mt]="马耳他语",pe[de.om]="奥罗莫语",pe[de.ps]="普什图语",pe[de.qu]="克丘亚语",pe[de.rw]="卢旺达语",pe[de.sl]="斯洛文尼亚语",pe[de.so]="索马里语",pe[de.sq]="阿尔巴尼亚语",pe[de.sw]="斯瓦希里语",pe[de.tg]="塔吉克语",pe[de.ti]="蒂格尼亚语",pe[de.ug]="维吾尔语",pe[de.uz]="乌兹别克语",pe[de.yo]="约鲁巴语",pe[de.zu]="祖鲁语";var ge,ve={};ve[de["ar-SA"]]="Arabic (Saudi Arabia)",ve[de.kn]="Kannada",ve[de.as]="Assamese",ve[de.bho]="Bhojpuri",ve[de["pl-PL"]]="Polish (Poland)",ve[de["ko-KR"]]="Korean (Korean)",ve[de["da-DK"]]="Danish (Denmark)",ve[de["de-DE"]]="German (Germany)",ve[de["ru-RU"]]="Russian (Russia)",ve[de["fr-FR"]]="French (France)",ve[de.gu]="Gujarati",ve[de["nl-BE"]]="Dutch (Belgium)",ve[de["nl-NL"]]="Dutch (Netherlands)",ve[de["cs-CZ"]]="Czech (Czech Republic)",ve[de.ro]="Romanian",ve[de["lo-LA"]]="Lao (Laos)",ve[de["my-MM"]]="Burmese (Myanmar)",ve[de["bn-BD"]]="Bengali (Bangladesh)",ve[de["bn-IN"]]="Bengali (India)",ve[de.mr]="Marathi",ve[de["ms-MY"]]="Malay (Malaysia)",ve[de.ml]="Malayalam",ve[de.mni]="Manipuri",ve[de["ne-NP"]]="Nepalese (Nepal)",ve[de.or]="Odia (Oriya)",ve[de["pt-BR"]]="Portuguese (Brazil)",ve[de["pt-PT"]]="Portuguese (Portugal)",ve[de.pa]="Punjabi",ve[de["sv-SE"]]="Swedish (Sweden)",ve[de["ja-JP"]]="Japanese (Japanese)",ve[de.sr]="Serbian",ve[de["si-LK"]]="Sinhala (Sri Lanka)",ve[de["sk-SK"]]="Slovak (Slovakia)",ve[de["tr-TR"]]="Turkish (Turkish)",ve[de["tl-PH"]]="Tagalog (Philippines)",ve[de.te]="Telugu",ve[de.ta]="Tamil",ve[de["th-TH"]]="Thai (Thailand)",ve[de["ur-PK"]]="Ulduwen (Pakistan)",ve[de["ur-IN"]]="Urduwen (India)",ve[de["uk-UA"]]="Ukrainian (Ukraine)",ve[de["iw-IL"]]="Hebrew (Israel)",ve[de["es-ES"]]="Spanish (Spain)",ve[de["es-MX"]]="Spanish (Mexico)",ve[de.hu]="Hungarian",ve[de["it-IT"]]="Italian (Italian)",ve[de["in-ID"]]="Indonesian (Indonesia)",ve[de["hi-IN"]]="Hindi (India)",ve[de["vi-VN"]]="Vietnamese (Vietnam)",ve[de["en-PK"]]="English (Pakistan)",ve[de["en-PL"]]="English (Poland)",ve[de["en-FR"]]="English (France)",ve[de["en-PH"]]="English (Philippines)",ve[de["en-CZ"]]="English (Czech Republic)",ve[de["en-CA"]]="English (Canada)",ve[de["en-MM"]]="English (Myanmar)",ve[de["en-US"]]="English (US)",ve[de["en-BD"]]="English (Bangladesh)",ve[de["en-MY"]]="English (Malaysia)",ve[de["en-NP"]]="English (Nepal)",ve[de["en-LK"]]="English (Sri Lanka)",ve[de["en-TH"]]="English (Thailand)",ve[de["en-ES"]]="English (Spain)",ve[de["en-SG"]]="English (Singapore)",ve[de["en-HU"]]="English (Hungary)",ve[de["en-ID"]]="English (Indonesia)",ve[de["en-GB"]]="English (UK)",ve[de["en-VN"]]="English (Vietnam)",ve[de["en-HK"]]="English (Hong Kong)",ve[de["en-KR"]]="English (Korean)",ve[de["zh-TW"]]="Chinese Traditional (Taiwan)",ve[de["zh-HK"]]="Chinese Traditional (Hong Kong)",ve[de["zh-SG"]]="Chinese Simplified (Singapore)",ve[de["zh-CN"]]="Chinese Simplified (China)",ve[de["ar-IQ"]]="Arabic (Iraq)",ve[de["ckb-IQ"]]="Central Kurdish (Iraq)",ve[de.ku]="Kurdish",ve[de["kk-KZ"]]="Kazakh",ve[de.af]="Afrikaans",ve[de.am]="Amharic",ve[de.az]="Azerbaijani",ve[de.be]="Belarusian",ve[de.bg]="Bulgarian",ve[de.bs]="Bosnian",ve[de.ca]="Catalan",ve[de.cy]="Welsh",ve[de.el]="Greek",ve[de.eo]="Esperanto",ve[de.et]="Estonian",ve[de.eu]="Basque",ve[de.fa]="Persian",ve[de.fi]="Finnish",ve[de.gd]="Scots Gaelic",ve[de.gl]="Galician",ve[de.ha]="Hausa",ve[de.haw]="Hawaiian",ve[de.hr]="Croatian",ve[de.ig]="Igbo",ve[de.is]="Icelandic",ve[de.ka]="Georgian",ve[de.km]="Khmer",ve[de.ky]="Kyrgyz",ve[de.lb]="Luxembourgish",ve[de.ln]="Lingala",ve[de.lt]="Lithuanian",ve[de.lv]="Latvian",ve[de.mg]="Malagasy",ve[de.mk]="Macedonian",ve[de.mn]="Mongolian",ve[de.mt]="Maltese",ve[de.om]="Oromo",ve[de.ps]="Pashto",ve[de.qu]="Quechua",ve[de.rw]="Kinyarwanda",ve[de.sl]="Slovenian",ve[de.so]="Somali",ve[de.sq]="Albanian",ve[de.sw]="Swahili",ve[de.tg]="Tajik",ve[de.ti]="Tigrinya",ve[de.ug]="Uyghur",ve[de.uz]="Uzbek",ve[de.yo]="Yoruba",ve[de.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"}(ge||(ge={}));var me,ye,_e,be={"zh-hans":de["zh-CN"],"zh-hant":de["zh-TW"],ar:de["ar-SA"],bn:de["bn-BD"],cs:de["cs-CZ"],da:de["da-DK"],de:de["de-DE"],en:de["en-US"],es:de["es-ES"],fr:de["fr-FR"],hi:de["hi-IN"],in:de["in-ID"],it:de["it-IT"],iw:de["iw-IL"],ja:de["ja-JP"],ko:de["ko-KR"],lo:de["lo-LA"],ms:de["ms-MY"],my:de["my-MM"],ne:de["ne-NP"],nl:de["nl-NL"],pl:de["pl-PL"],pt:de["pt-PT"],ru:de["ru-RU"],si:de["si-LK"],sk:de["sk-SK"],sv:de["sv-SE"],th:de["th-TH"],tl:de["tl-PH"],tr:de["tr-TR"],uk:de["uk-UA"],ur:de["ur-PK"],vi:de["vi-VN"],zh:de["zh-CN"],kk:de["kk-KZ"]},Ee={"zh-hant":de["zh-TW"],"zh-hans":de["zh-CN"]},Se=function(e){return Object.keys(e||{}).map((function(t){return e[t]}))},we=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"}(me||(me={})),Se(me),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"}(ye||(ye={})),Se(ye),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"}(_e||(_e={})),Se(_e);var Te,Ae,Pe,Re,ke,Oe,Ne,Le,Ie,Ce,De,Me,xe,Ue,Be,He;de["ar-IQ"],me.ar_EG,_e.ar,ye.ar,de["ar-SA"],me.ar_EG,_e["ar-sa"],ye["ar-sa"],de["bn-BD"],me.bn_BD,_e["bn-bd"],ye["bn-bd"],de["bn-IN"],me.bn_BD,_e.bn,ye.bn,de["cs-CZ"],me.cs_CZ,_e.cs,ye.cs,de["da-DK"],me.da_DK,_e.da,ye.da,de["de-DE"],me.de_DE,_e.de,ye.de,de["en-BD"],me.en_US,_e["en-gb"],ye.en,de["en-CA"],me.en_US,_e["en-ca"],ye["en-ca"],de["en-CZ"],me.en_US,_e["en-gb"],ye.en,de["en-ES"],me.en_US,_e["en-gb"],ye.en,de["en-FR"],me.en_US,_e["en-gb"],ye.en,de["en-GB"],me.en_GB,_e["en-gb"],ye["en-gb"],de["en-HU"],me.en_US,_e["en-gb"],ye.en,de["en-ID"],me.en_US,_e["en-gb"],ye.en,de["en-LK"],me.en_US,_e["en-gb"],ye.en,de["en-MM"],me.en_US,_e["en-gb"],ye.en,de["en-MY"],me.en_US,_e["en-gb"],ye.en,de["en-NP"],me.en_US,_e["en-gb"],ye.en,de["en-PH"],me.en_US,_e["en-gb"],ye.en,de["en-PK"],me.en_US,_e["en-gb"],ye.en,de["en-PL"],me.en_US,_e["en-gb"],ye.en,de["en-SG"],me.en_US,_e["en-sg"],ye.en,de["en-TH"],me.en_US,_e["en-gb"],ye.en,de["en-US"],me.en_US,_e["en-gb"],ye.en,de["en-VN"],me.en_US,_e["en-gb"],ye.en,de["en-HK"],me.en_US,_e["en-gb"],ye.en,de["en-KR"],me.en_US,_e["en-gb"],ye.en,de["es-ES"],me.es_ES,_e.es,ye.es,de["es-MX"],me.es_ES,_e.es,ye.es,de["fr-FR"],me.fr_FR,_e.fr,ye.fr,de["hi-IN"],me.hi_IN,_e.hi,ye.hi,de.hu,me.hu_HU,_e.hu,ye.hu,de["in-ID"],me.id_ID,_e.id,ye.id,de["it-IT"],me.it_IT,_e.it,ye.it,de["ja-JP"],me.ja_JP,_e.ja,ye.ja,de.kn,me.kn_IN,_e.kn,ye.kn,de["ko-KR"],me.ko_KR,_e.ko,ye.ko,de.ml,me.ml_IN,_e.ml,ye.ml,de["ms-MY"],me.ms_MY,_e["ms-my"],ye["ms-my"],de["ne-NP"],me.ne_NP,_e.ne,ye.ne,de["nl-BE"],me.nl_BE,_e["nl-be"],ye["nl-be"],de["nl-NL"],me.nl_NL,_e.nl,ye.nl,de["pl-PL"],me.pl_PL,_e.pl,ye.pl,de["pt-BR"],me.pt_BR,_e["pt-br"],ye["pt-br"],de["pt-PT"],me.pt_PT,_e.pt,ye.pt,de.ro,me.ro_RO,_e.ro,ye.ro,de["ru-RU"],me.ru_RU,_e.ru,ye.ru,de["si-LK"],me.si_LK,_e.si,ye.si,de["sk-SK"],me.sk_SK,_e.sk,ye.sk,de.sr,me.sr_RS,_e.sr,ye.sr,de["sv-SE"],me.sv_SE,_e.sv,ye.sv,de.ta,me.ta_IN,_e.ta,ye.ta,de["th-TH"],me.th_TH,_e.th,ye.th,de["tr-TR"],me.tr_TR,_e.tr,ye.tr,de["uk-UA"],me.uk_UA,_e.uk,ye.uk,de["ur-PK"],me.ur_PK,_e.ur,ye.ur,de["vi-VN"],me.vi_VN,_e.vi,ye.vi,de["zh-CN"],me.zh_CN,_e["zh-cn"],ye["zh-cn"],de["zh-HK"],me.zh_HK,_e["zh-hk"],ye["zh-hk"],de["zh-SG"],me.zh_HK,_e["zh-hk"],ye["zh-hk"],de["zh-TW"],me.zh_TW,_e["zh-tw"],ye["zh-tw"],de["kk-KZ"],me.kk_KZ,_e.kk,ye.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"}(He||(He={}));var je,ze,Fe=Se(He),Ge={};Ge[He.kn]="AiNaDeYu",Ge[He.ar_SA]="ALaBoYu (ShaTeALaBo)",Ge[He.ar_IQ]="ALaBoYu (YiLaKe)",Ge[He.as]="ASaMuYu",Ge[He.bho]="BoJiePuErYu",Ge[He.pl_PL]="BoLanYu (BoLan)",Ge[He.ko_KR]="ChaoXianYu (HanGuo)",Ge[He.da_DK]="DanMaiYu (DanMai)",Ge[He.de_DE]="DeYu (DeGuo)",Ge[He.ru_RU]="EYu (ELuoSi)",Ge[He.fr_FR]="FaYu (FaGuo)",Ge[He.gu]="GuJiaLaTiYu",Ge[He.nl_BE]="HeLanYu (BiLiShi)",Ge[He.nl_NL]="HeLanYu (HeLan)",Ge[He.cs_CZ]="JieKeYu (JieKeGongHeGuo)",Ge[He.ku]="KuErDeYu",Ge[He.lo_LA]="LaoWoYu (LaoWo)",Ge[He.ro]="LuoMaNiYaYu",Ge[He.mr]="MaLaDiYu",Ge[He.ms_MY]="MaLaiYu (MaLaiXiYa)",Ge[He.ml]="MaLaiYaLaMuYu",Ge[He.mni]="ManNiPuLiYu",Ge[He.bn_BD]="MengJiaLaYu (MengJiaLa)",Ge[He.bn_IN]="MengJiaLaYu (YinDu)",Ge[He.my_MM]="MianDianYu (MianDian)",Ge[He.ne_NP]="NiBoErYu (NiBoEr)",Ge[He.or]="OuLiYaYu",Ge[He.pa]="PangZhePuYu",Ge[He.pt_BR]="PuTaoYaYu (BaXi)",Ge[He.pt_PT]="PuTaoYaYu (PuTaoYa)",Ge[He.ja_JP]="RiYu (RiBen)",Ge[He.sv_SE]="RuiDianYu (RuiDian)",Ge[He.sr]="SaiErWeiYaYu",Ge[He.si_LK]="SengJiaLuoYu (SiLiLanKa)",Ge[He.sk_SK]="SiLuoFaKeYu (SiLuoFaKe)",Ge[He.te]="TaiLuGuYu",Ge[He.ta]="TaiMiErYu",Ge[He.th_TH]="TaiYu (TaiGuo)",Ge[He.tl_PH]="TaJiaLuZuYu (FeiLvBin)",Ge[He.tr_TR]="TuErQiYu (TuErQi)",Ge[He.ur_PK]="WuErDuYu (BaJiSiTan)",Ge[He.ur_IN]="WuErDuYu (YinDu)",Ge[He.uk_UA]="WuKeLanYu (WuKeLan)",Ge[He.es_ES]="XiBanYaYu (XiBanYa)",Ge[He.es_MX]="XiBanYaYu (MoXiGe)",Ge[He.iw_IL]="XiBoLaiYu (YiSeLie)",Ge[He.hu]="XiongYaLiYu",Ge[He.it_IT]="YiDaLiYu (YiDaLi)",Ge[He.hi_IN]="YinDiYu (YinDu)",Ge[He.in_ID]="YinDuNiXiYaYu (YinDuNiXiYa)",Ge[He.en_PK]="YingYu (BaJiSiTan)",Ge[He.en_PL]="YingYu (BoLan)",Ge[He.en_FR]="YingYu (FaGuo)",Ge[He.en_PH]="YingYu (FeiLvBin)",Ge[He.en_CA]="YingYu (JiaNaDa)",Ge[He.en_CZ]="YingYu (JieKeGongHeGuo)",Ge[He.en_MY]="YingYu (MaLaiXiYa)",Ge[He.en_US]="YingYu (MeiGuo)",Ge[He.en_BD]="YingYu (MengJiaLa)",Ge[He.en_MM]="YingYu (MianDian)",Ge[He.en_NP]="YingYu (NiBoEr)",Ge[He.en_LK]="YingYu (SiLiLanKa)",Ge[He.en_TH]="YingYu (TaiGuo)",Ge[He.en_ES]="YingYu (XiBanYa)",Ge[He.en_SG]="YingYu (XinJiaPo)",Ge[He.en_HU]="YingYu (XiongYaLi)",Ge[He.en_ID]="YingYu (YinDuNiXiYa)",Ge[He.en_GB]="YingYu (YingGuo)",Ge[He.en_VN]="YingYu (YueNan)",Ge[He.en_HK]="YingYu (XiangGang)",Ge[He.en_KR]="YingYu (HanGuo)",Ge[He.vi_VN]="YueNanYu (YueNan)",Ge[He.ckb_IQ]="ZhongKuErDeYu (YiLaKe)",Ge[He.zh_TW]="ZhongWen (TaiWanDiQu)",Ge[He.zh_HK]="ZhongWen (XiangGang)",Ge[He.zh_SG]="ZhongWen (XinJiaPo)",Ge[He.zh_CN]="ZhongWen (ZhongGuo)",Ge[He.kk_KZ]="HaSaKeYu (HaSaKeSiTan)",Ge[He.af]="NanFeiYu",Ge[He.am]="AMuHaLaYu",Ge[He.az]="ASaiBaiJiangYu",Ge[He.be]="BaiErLuoSiYu",Ge[He.bg]="BaoJiaLiYaYu",Ge[He.bs]="BoSiNiYaYu",Ge[He.ca]="JiaTaiLuoNiYaYu",Ge[He.cy]="WeiErShiYu",Ge[He.el]="XianDaiXiLaYu",Ge[He.eo]="ShiJieYu",Ge[He.et]="AiShaNiYaYu",Ge[He.eu]="BaSiKeYu",Ge[He.fa]="BoSiYu",Ge[He.fi]="FenLanYu",Ge[He.gd]="AiErLanYu",Ge[He.gl]="JiaLiXiYaYu",Ge[He.ha]="HaoSaYu",Ge[He.haw]="XiaWeiYiYu",Ge[He.hr]="KeLuoDiYaYu",Ge[He.ig]="YiBoYu",Ge[He.is]="BingDaoYu",Ge[He.ka]="GeLuJiYaYu",Ge[He.km]="GaoMianYu",Ge[He.ky]="JiErJiSiYu",Ge[He.lb]="LuSenBaoYu",Ge[He.ln]="LinGeLaYu",Ge[He.lt]="LiTaoWanYu",Ge[He.lv]="LaTuoWeiYaYu",Ge[He.mg]="MaErJiaShiYu",Ge[He.mk]="MaQiDunYu",Ge[He.mn]="MengGuWen",Ge[He.mt]="MaErTaYu",Ge[He.om]="AoLuoMoYu",Ge[He.ps]="PuShiTuYu",Ge[He.qu]="KeQiuYaYu",Ge[He.rw]="LuWangDaYu",Ge[He.sl]="SiLuoWeiNiYaYu",Ge[He.so]="SuoMaLiYu",Ge[He.sq]="AErBaNiYaYu",Ge[He.sw]="SiWaXiLiYu",Ge[He.tg]="TaJiKeYu",Ge[He.ti]="DiGeNiYaYu",Ge[He.ug]="WeiWuErYu",Ge[He.uz]="WuZiBieKeYu",Ge[He.yo]="YueLuBaYu",Ge[He.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"}(je||(je={})),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"}(ze||(ze={})),Se(ze);var Ke=Object.assign(Object.assign({},ze),{TranslationMemory:"TranslationMemory"}),Ye=(Se(Ke),{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===He.zh_HK||e===He.zh_TW||e===He.zh_SG)return"zh-tw";if(e===He.in_ID)return"id";if(e===He.iw_IL)return"he";var t=e.split("_")[0];return we(Ye.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===He.zh_HK||e===He.zh_TW||e===He.zh_SG)return"zh-TW";if(e===He.in_ID)return"id";if(e===He.mni)return"mni-Mtei";var t=e.split("_")[0];return we(Ye.googleSupportedLanguages,t)?t:null},papagoSupportedLanguages:["ko","en","ja","zh-CN","zh-TW"],mapPapagoLanguage:function(e){if(e===He.zh_CN)return"zh-CN";if(e===He.zh_HK||e===He.zh_TW||e===He.zh_SG)return"zh-TW";var t=e.split("_")[0];return we(Ye.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===He.in_ID)return"ID";var n=t.split("_")[0];return we(Ye.deepLSupportedSourceLanguages,n)?n:null},mapDeepLLanguage:function(e){var t=e.toUpperCase();if(e===He.zh_CN||e===He.zh_SG)return"ZH";if(e===He.zh_HK||e===He.zh_TW)return null;if(e===He.en_GB||e===He.en_US||e===He.pt_BR||e===He.pt_PT)return t.replace("_","-");if(e===He.in_ID)return"ID";var n=t.split("_")[0];return"EN"===n?"EN-US":we(Ye.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===He.pt_PT)return"pt-pt";if(e===He.pt_BR)return"pt";if([He.zh_CN,He.zh_SG].includes(e))return"zh-Hans";if([He.zh_HK,He.zh_TW].includes(e))return"zh-Hant";if(e===He.iw_IL)return"he";if(e===He.in_ID)return"id";if(e===He.ckb_IQ)return"ku";var t=e.split("_")[0];return we(Ye.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===He.pt_PT)return"pt-PT";if(e===He.pt_BR)return"pt";if(e===He.es_MX)return"es-MX";if(e===He.in_ID)return"id";if(e===He.zh_CN||e===He.zh_SG)return"zh";if(e===He.zh_HK||e===He.zh_TW)return"zh-TW";var t=e.split("_")[0];return we(Ye.amazonSupportedLanguages,t)?t:null}}),We={};We[ze.AiSelected]=Fe,We[ze.Aliyun]=Fe.filter((function(e){return Boolean(Ye.mapAliyunLanguage(e))})),We[ze["ChatGPT3.5"]]=Fe,We[ze.Google]=Fe.filter((function(e){return Boolean(Ye.mapGoogleLanguage(e))})),We[ze.Papago]=Fe.filter((function(e){return Boolean(Ye.mapPapagoLanguage(e))})),We[ze.DeepL]=Fe.filter((function(e){return Boolean(Ye.mapDeepLLanguage(e))})),We[ze.Microsoft]=Fe.filter((function(e){return Boolean(Ye.mapMicrosoftLanguage(e))})),We[ze.Amazon]=Fe.filter((function(e){return Boolean(Ye.mapAmazonLanguage(e))}));var Ve={};Ve[ze.AiSelected]=Fe,Ve[ze.Aliyun]=Fe.filter((function(e){return Boolean(Ye.mapAliyunLanguage(e))})),Ve[ze["ChatGPT3.5"]]=Fe,Ve[ze.Google]=Fe.filter((function(e){return Boolean(Ye.mapGoogleLanguage(e))})),Ve[ze.Papago]=Fe.filter((function(e){return Boolean(Ye.mapPapagoLanguage(e))})),Ve[ze.DeepL]=Fe.filter((function(e){return Boolean(Ye.mapDeepLSourceLanguage(e))})),Ve[ze.Microsoft]=Fe.filter((function(e){return Boolean(Ye.mapMicrosoftLanguage(e))})),Ve[ze.Amazon]=Fe.filter((function(e){return Boolean(Ye.mapAmazonLanguage(e))})),qe=Fe.map((function(e){return[e,Se(ze).filter((function(t){return we(We[t],e)}))]})),Je={},Object.keys(qe||{}).forEach((function(e){var t=qe[e],n=t[0],r=t[1];Je[n]=r}));var qe,Je,Xe={};Xe[He.ar_SA]="العربية)السعودية)",Xe[He.kn]="ಕನ್ನಡ",Xe[He.as]="অসমীয়া",Xe[He.bho]="भोजपुरी",Xe[He.pl_PL]="Polski (Polska)",Xe[He.ko_KR]="한국어 (대한민국)",Xe[He.da_DK]="Dansk (Danmark)",Xe[He.de_DE]="Deutsch (Deutschland)",Xe[He.ru_RU]="Русский (Россия)",Xe[He.fr_FR]="Français (France)",Xe[He.gu]="ગુજરાતી",Xe[He.nl_BE]="Nederlands (Belgium)",Xe[He.nl_NL]="Nederlands (Nederland)",Xe[He.cs_CZ]="Čeština (Česká republika)",Xe[He.ro]="Română",Xe[He.lo_LA]="ລາວ (ລາວ)",Xe[He.my_MM]="မြန်မာဘာသာ (မြန်မာ)",Xe[He.bn_BD]="বাংলা (বাংলাদেশ)",Xe[He.bn_IN]="বাংলা (ভারত)",Xe[He.mr]="मराठी",Xe[He.ms_MY]="Bahasa Melayu (Malaysia)",Xe[He.ml]="മലയാളം",Xe[He.mni]="ꯃꯩꯇꯩꯂꯣꯟ",Xe[He.ne_NP]="नेपाली (नेपाल)\t",Xe[He.or]="ଓଡ଼ିଆ",Xe[He.pt_BR]="Português (Brasil)",Xe[He.pt_PT]="Português (Portugal)",Xe[He.pa]="پنجابی",Xe[He.sv_SE]="Svenska (Sverige)",Xe[He.ja_JP]="日本語",Xe[He.sr]="Српски",Xe[He.si_LK]="සිංහල (ශ්රී ලංකාව)",Xe[He.sk_SK]="Slovenčina (Slovensko)",Xe[He.tr_TR]="Türkçe (Türkiye)",Xe[He.tl_PH]="Wikang Tagalog (Philippines)",Xe[He.te]="తెలుగు",Xe[He.ta]="தமிழ்",Xe[He.th_TH]="ไทย (ประเทศไทย)",Xe[He.ur_PK]="اردو)پاکستان)",Xe[He.ur_IN]="اردو)بھارت)",Xe[He.uk_UA]="Українська (Україна)",Xe[He.iw_IL]="עִבְרִית (ישראל)",Xe[He.es_ES]="Español (España)",Xe[He.es_MX]="Español (México)",Xe[He.hu]="Magyar",Xe[He.it_IT]="Italiano (Italia)",Xe[He.in_ID]="Bahasa Indonesia (Indonesia)",Xe[He.hi_IN]="हिन्दी (भारत)",Xe[He.vi_VN]="Tiếng Việt (Việt Nam)",Xe[He.en_PK]="English (Pakistan)",Xe[He.en_PL]="English (Poland)",Xe[He.en_FR]="English (France)",Xe[He.en_PH]="English (Philippines)",Xe[He.en_CZ]="English (Czech Republic)",Xe[He.en_CA]="English (Canada)",Xe[He.en_MM]="English (Myanmar)",Xe[He.en_US]="English (United States)",Xe[He.en_BD]="English (Bangladesh)",Xe[He.en_MY]="English (Malaysia)",Xe[He.en_NP]="English (Nepal)",Xe[He.en_LK]="English (Sri Lanka)",Xe[He.en_TH]="English (Thailand)",Xe[He.en_ES]="English (Spain)",Xe[He.en_SG]="English (Singapore)",Xe[He.en_HU]="English (Hungary)",Xe[He.en_ID]="English (Indonesia)",Xe[He.en_GB]="English (Great Britain)",Xe[He.en_VN]="English (Vietnam)",Xe[He.en_HK]="English (Hong Kong)",Xe[He.en_KR]="English (Korea)",Xe[He.zh_TW]="繁体中文 (中國台灣)",Xe[He.zh_HK]="繁体中文 (中國香港)",Xe[He.zh_SG]="简体中文 (新加坡)",Xe[He.zh_CN]="简体中文",Xe[He.ar_IQ]="العربية (العراق)",Xe[He.ckb_IQ]="کوردیی ناوەندی (عێراق)",Xe[He.ku]="کورمانجی",Xe[He.kk_KZ]="قازاقشا ",Xe[He.af]="Afrikaans",Xe[He.am]="አማርኛ",Xe[He.az]="Azərbaycan",Xe[He.be]="беларуская мова",Xe[He.bg]="Български",Xe[He.bs]="босански",Xe[He.ca]="Català",Xe[He.cy]="Cymraeg",Xe[He.el]="Ελληνικά",Xe[He.eo]="Esperanto",Xe[He.et]="eesti keel",Xe[He.eu]="Euskara",Xe[He.fa]="فارسی",Xe[He.fi]="Suomi",Xe[He.gd]="Gaeilge",Xe[He.gl]="Galego",Xe[He.ha]="هَوُسَ",Xe[He.haw]="ʻŌlelo Hawaiʻi",Xe[He.hr]="Hrvatski",Xe[He.ig]="Asụsụ Igbo",Xe[He.is]="Íslenska",Xe[He.ka]="ქართული",Xe[He.km]="ភាសាខ្មែរ",Xe[He.ky]="кыргыз тили",Xe[He.lb]="Lëtzebuergesch",Xe[He.ln]="Lingála",Xe[He.lt]="lietuvių kalba",Xe[He.lv]="Latviešu valoda",Xe[He.mg]="malagasy",Xe[He.mk]="македонски",Xe[He.mn]="монгол хэл",Xe[He.mt]="Malti",Xe[He.om]="Oromoo",Xe[He.ps]="پښتو",Xe[He.qu]="Quechua",Xe[He.rw]="Ikinyarwanda",Xe[He.sl]="slovenščina",Xe[He.so]="Af-Soomaali",Xe[He.sq]="Gjuha shqipe",Xe[He.sw]="Kiswahili",Xe[He.tg]="тоҷикӣ",Xe[He.ti]="ትግርኛ",Xe[He.ug]="ئۇيغۇر تىلى",Xe[He.uz]="Ўзбек тили",Xe[He.yo]="Èdè Yorùbá",Xe[He.zu]="isiZulu",ze.AiSelected,(Te={})[He.en_US]="AI Selected",Te[He.zh_CN]="AI 精选",(Ae={})[He.en_US]="AI selection of translations",Ae[He.zh_CN]="多渠道翻译的 AI 精选",Ve.AiSelected,We.AiSelected,(Pe={})[He.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.",Pe[He.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",(Re={})[He.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.",Re[He.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",ze["ChatGPT3.5"],(ke={})[He.en_US]="GPT-3.5",ke[He.zh_CN]="GPT-3.5",(Oe={})[He.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",Oe[He.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",(Ne={})[He.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",Ne[He.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",Ve["ChatGPT3.5"],We["ChatGPT3.5"],ze.Aliyun,(Le={})[He.en_US]="Alibaba",Le[He.zh_CN]="阿里云",Ve.Aliyun,We.Aliyun,ze.Google,(Ie={})[He.en_US]="Google",Ie[He.zh_CN]="Google",Ve.Google,We.Google,ze.DeepL,(Ce={})[He.en_US]="DeepL",Ce[He.zh_CN]="DeepL",Ve.DeepL,We.DeepL,ze.Microsoft,(De={})[He.en_US]="Azure AI",De[He.zh_CN]="Azure AI",Ve.Microsoft,We.Microsoft,ze.Amazon,(Me={})[He.en_US]="Amazon",Me[He.zh_CN]="Amazon",Ve.Amazon,We.Amazon,ze.Papago,(xe={})[He.en_US]="Papago",xe[He.zh_CN]="Papago",(Ue={})[He.en_US]="Papago does not support translating HTML and will automatically skip HTML content during batch translation.",Ue[He.zh_CN]="Papago 不支持翻译 HTML,在批量翻译时会自动跳过 HTML 内容",(Be={})[He.en_US]="Papago does not support HTML. Available locales are Chinese, Japanese, Korean, and English. Please check the translation results carefully.",Be[He.zh_CN]="Papago 不支持翻译 HTML,仅支持翻译中、日、韩、英,请仔细检查翻译结果",Ve.Papago,We.Papago;var Ze=Object.keys(de).map((function(e){return de[e]})),Qe=/^##@@@(.+?)##(.+?)@@@##(.+?)@@@##$/,$e=function(e,t){return($e=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 et(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}$e(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var tt,nt,rt,ot=function(){return(ot=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 it(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 at(e){return e.type===nt.literal}function st(e){return e.type===nt.argument}function ut(e){return e.type===nt.number}function ct(e){return e.type===nt.date}function lt(e){return e.type===nt.time}function ht(e){return e.type===nt.select}function ft(e){return e.type===nt.plural}function dt(e){return e.type===nt.pound}function pt(e){return e.type===nt.tag}function gt(e){return!(!e||"object"!=k()(e)||e.type!==rt.number)}function vt(e){return!(!e||"object"!=k()(e)||e.type!==rt.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"}(tt||(tt={})),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"}(nt||(nt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(rt||(rt={}));var mt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,yt=/(?:[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 _t(e){var t={};return e.replace(yt,(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 bt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Et=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,St=/^(@+)?(\+|#+)?[rs]?$/g,wt=/(\*)(0+)|(#+)(0+)|(0+)/g,Tt=/^(0+)$/;function At(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(St,(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 Pt(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 Rt(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)),!Tt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function kt(e){return Pt(e)||{}}function Ot(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=ot(ot(ot({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return ot(ot({},e),kt(t))}),{}));continue;case"engineering":t=ot(ot(ot({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return ot(ot({},e),kt(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(wt,(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(Tt.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Et.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Et,(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=ot(ot({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ot(ot({},t),At(i)))}else if(St.test(o.stem))t=ot(ot({},t),At(o.stem));else{var a=Pt(o.stem);a&&(t=ot(ot({},t),a));var s=Rt(o.stem);s&&(t=ot(ot({},t),s))}}return t}var Nt,Lt={"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 It(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),(Lt[n||""]||Lt[r||""]||Lt["".concat(r,"-001")]||Lt["001"])[0]}var Ct=new RegExp("^".concat(mt.source,"*")),Dt=new RegExp("".concat(mt.source,"*$"));function Mt(e,t){return{start:e,end:t}}var xt=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ut=!!String.fromCodePoint,Bt=!!Object.fromEntries,Ht=!!String.prototype.codePointAt,jt=!!String.prototype.trimStart,zt=!!String.prototype.trimEnd,Ft=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Gt=!0;try{Gt="a"===(null===(Nt=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Nt?void 0:Nt[0])}catch(de){Gt=!1}var Kt,Yt=xt?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Wt=Ut?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},Vt=Bt?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},qt=Ht?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}},Jt=jt?function(e){return e.trimStart()}:function(e){return e.replace(Ct,"")},Xt=zt?function(e){return e.trimEnd()}:function(e){return e.replace(Dt,"")};function Zt(e,t){return new RegExp(e,t)}if(Gt){var Qt=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Kt=function(e,t){var n;return Qt.lastIndex=t,null!==(n=Qt.exec(e)[1])&&void 0!==n?n:""}}else Kt=function(e,t){for(var n=[];;){var r=qt(e,t);if(void 0===r||tn(r)||nn(r))break;n.push(r),t+=r>=65536?2:1}return Wt.apply(void 0,n)};var $t=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(tt.UNMATCHED_CLOSING_TAG,Mt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&en(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:nt.pound,location:Mt(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:nt.literal,value:"<".concat(r,"/>"),location:Mt(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()||!en(this.char()))return this.error(tt.INVALID_TAG,Mt(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(tt.UNMATCHED_CLOSING_TAG,Mt(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:nt.tag,value:r,children:i,location:Mt(n,this.clonePosition())},err:null}:this.error(tt.INVALID_TAG,Mt(a,this.clonePosition())))}return this.error(tt.UNCLOSED_TAG,Mt(n,this.clonePosition()))}return this.error(tt.INVALID_TAG,Mt(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=Mt(n,this.clonePosition());return{val:{type:nt.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(en(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 Wt.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(),Wt(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(tt.EMPTY_ARGUMENT,Mt(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(tt.MALFORMED_ARGUMENT,Mt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:nt.argument,value:r,location:Mt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(tt.MALFORMED_ARGUMENT,Mt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Kt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Mt(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(tt.EXPECT_ARGUMENT_TYPE,Mt(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=Xt(m.val)).length)return this.error(tt.EXPECT_ARGUMENT_STYLE,Mt(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:Mt(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var l=Mt(r,this.clonePosition());if(u&&Yt(null==u?void 0:u.style,"::",0)){var h=Jt(u.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?m:{val:{type:nt.number,value:n,location:l,style:m.val},err:null};if(0===h.length)return this.error(tt.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=It(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:rt.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?_t(f):{}};return{val:{type:"date"===a?nt.date:nt.time,value:n,location:l,style:d},err:null}}return{val:{type:"number"===a?nt.number:"date"===a?nt.date:nt.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(tt.EXPECT_SELECT_ARGUMENT_OPTIONS,Mt(p,ot({},p)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Mt(this.clonePosition(),this.clonePosition()));var m;if(this.bumpSpace(),(m=this.tryParseDecimalInteger(tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,tt.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=Mt(r,this.clonePosition());return"select"===a?{val:{type:nt.select,value:n,options:Vt(_.val),location:b},err:null}:{val:{type:nt.plural,value:n,options:Vt(_.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error(tt.INVALID_ARGUMENT_TYPE,Mt(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(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(tt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Mt(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(bt).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(tt.INVALID_NUMBER_SKELETON,t)}return{val:{type:rt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Ot(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(tt.EXPECT_PLURAL_ARGUMENT_SELECTOR,tt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Mt(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}if(s.has(u))return this.error("select"===t?tt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:tt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?tt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:tt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Mt(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:Mt(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?tt.EXPECT_SELECT_ARGUMENT_SELECTOR:tt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Mt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(tt.MISSING_OTHER_CLAUSE,Mt(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=Mt(r,this.clonePosition());return o?Ft(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=qt(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(Yt(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()&&tn(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 en(e){return e>=97&&e<=122||e>=65&&e<=90}function tn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function nn(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 rn(e,t){void 0===t&&(t={}),t=ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new $t(e,t).parse();if(n.err){var r=SyntaxError(tt[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,ht(t)||ft(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else ut(t)&&gt(t.style)||(ct(t)||lt(t))&&vt(t.style)?delete t.style.location:pt(t)&&e(t.children)}))}(n.val),n.val}function on(e,t){var n=t&&t.cache?t.cache:dn,r=t&&t.serializer?t.serializer:ln;return(t&&t.strategy?t.strategy:cn)(e,{cache:n,serializer:r})}function an(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 sn(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 un(e,t,n,r,o){return n.bind(t,e,r,o)}function cn(e,t){return un(e,this,1===e.length?an:sn,t.cache.create(),t.serializer)}var ln=function(){return JSON.stringify(arguments)};function hn(){this.cache=Object.create(null)}hn.prototype.get=function(e){return this.cache[e]},hn.prototype.set=function(e,t){this.cache[e]=t};var fn,dn={create:function(){return new hn}},pn={variadic:function(e,t){return un(e,this,sn,t.cache.create(),t.serializer)},monadic:function(e,t){return un(e,this,an,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(fn||(fn={}));var gn,vn=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return et(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),mn=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('", "'),'"'),fn.INVALID_VALUE,o)||this}return et(t,e),t}(vn),yn=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),fn.INVALID_VALUE,r)||this}return et(t,e),t}(vn),_n=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,'"'),fn.MISSING_VALUE,n)||this}return et(t,e),t}(vn);function bn(e){return"function"==typeof e}function En(e,t,n,r,o,i,a){if(1===e.length&&at(e[0]))return[{type:gn.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var l=c[u];if(at(l))s.push({type:gn.literal,value:l.value});else if(dt(l))"number"==typeof i&&s.push({type:gn.literal,value:n.getNumberFormat(t).format(i)});else{var h=l.value;if(!o||!(h in o))throw new _n(h,a);var f=o[h];if(st(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?gn.literal:gn.object,value:f});else if(ct(l)){var d="string"==typeof l.style?r.date[l.style]:vt(l.style)?l.style.parsedOptions:void 0;s.push({type:gn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(lt(l))d="string"==typeof l.style?r.time[l.style]:vt(l.style)?l.style.parsedOptions:r.time.medium,s.push({type:gn.literal,value:n.getDateTimeFormat(t,d).format(f)});else if(ut(l))(d="string"==typeof l.style?r.number[l.style]:gt(l.style)?l.style.parsedOptions:void 0)&&d.scale&&(f*=d.scale||1),s.push({type:gn.literal,value:n.getNumberFormat(t,d).format(f)});else{if(pt(l)){var p=l.children,g=l.value,v=o[g];if(!bn(v))throw new yn(g,"function",a);var m=v(En(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?gn.literal:gn.object,value:e}})))}if(ht(l)){if(!(y=l.options[f]||l.options.other))throw new mn(l.value,f,Object.keys(l.options),a);s.push.apply(s,En(y.value,t,n,r,o))}else if(ft(l)){var y;if(!(y=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new vn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fn.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 mn(l.value,f,Object.keys(l.options),a);s.push.apply(s,En(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===gn.literal&&t.type===gn.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function Sn(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"}(gn||(gn={}));var wn=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===gn.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 En(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,ot(ot({},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])?ot(ot(ot({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=ot(ot({},o[t]),i[t]||{}),e}),{})):o),n}),ot({},e)):e}(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:on((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,it([void 0],n,!1)))}),{cache:Sn(i.number),strategy:pn.variadic}),getDateTimeFormat:on((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,it([void 0],n,!1)))}),{cache:Sn(i.dateTime),strategy:pn.variadic}),getPluralRules:on((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,it([void 0],n,!1)))}),{cache:Sn(i.pluralRules),strategy:pn.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=rn,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 Tn(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 An=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Tn({},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,"",Tn({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Tn({},this.attributes,t))},withConverter:function(t){return e(Tn({},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:"/"}),Pn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.warn.apply(console,e)},Rn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.error.apply(console,e)},kn=function(){return"object"==("undefined"==typeof ac?"undefined":k()(ac))&&"function"==typeof ac.call},On=function(){return"undefined"!=typeof my&&void 0!==my.canIUse&&!kn()},Nn=function(){return"object"==("undefined"==typeof window?"undefined":k()(window))},Ln=function(){return function(){var e;return!!Nn()&&((null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"").toLowerCase().indexOf("alipayclient")>-1}()||Nn()&&"undefined"!=typeof AlipayJSBridge},In=function(){return"undefined"!=typeof wx&&void 0!==wx.canIUse},Cn=function(){return!(void 0===n.g||Nn()||On()||In()||kn())},Dn="bailingualLocaleChange",Mn="bailingualDataChange",xn="bailingualError";function Un(e){void 0===e&&(e="");for(var t=(function(e){if("object"==("undefined"==typeof document?"undefined":k()(document)))try{return An.get(e)||An.get("_CHIPS-"+e)}catch(e){return Pn("[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 Bn,Hn=function(e){if(void 0===e&&(e=""),e=e.replace("_","-"),Ln()||On()||kn()){var t=Ee[e.toLowerCase()];t&&(e=t)}var n=e.split("-"),r=n[0],o=n[1];return o&&(e=r.toLowerCase()+"-"+o.toUpperCase()),be[e.toLowerCase()]&&(e=be[e.toLowerCase()]),er(Ze,e)?e:""};function jn(e){return void 0===e&&(e=!0),Hn(function(e){return void 0===e&&(e=!0),On()||kn()?my.env&&my.env.language||my.getSystemInfoSync().language:In()?wx.getSystemInfoSync().language:Cn()?n.g.BAILINGUAL_LOCALE:!!e&&function(){var e=Un("x-hng")||Un("hng");if(e)return e}()||function(){var e;if("object"==("undefined"==typeof document?"undefined":k()(document))){var t=null===(e=document.documentElement)||void 0===e?void 0:e.lang;if(t)return t}}()||function(){var e;if(Nn()){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(Nn()&&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 zn(e,t,n){void 0===n&&(n={});try{"object"==("undefined"==typeof document?"undefined":k()(document))&&An.set(e,t,n)}catch(e){Pn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function Fn(e,t){void 0===t&&(t={});try{"object"==("undefined"==typeof document?"undefined":k()(document))&&An.remove(e,t)}catch(e){Pn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function Gn(){"object"==("undefined"==typeof document?"undefined":k()(document))&&"object"==("undefined"==typeof location?"undefined":k()(location))&&(Fn("x-hng",{path:"/",domain:location.hostname}),Fn("x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0}),Fn("_CHIPS-x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0,Partitioned:!0}),Fn("x-hng",{path:"/"}),Fn("x-hng",{path:"/",SameSite:"None",Secure:!0}),Fn("_CHIPS-x-hng",{path:"/",SameSite:"None",Secure:!0,Partitioned:!0}))}!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.MISSING_PARAM="MISSING_PARAM"}(Bn||(Bn={}));var Kn,Yn,Wn,Vn,qn,Jn,Xn,Zn,Qn=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},$n=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},er=function(e,t){return e.indexOf(t)>-1};function tr(e){var t,n;try{return Yn?(null===(t=Yn.getItem)||void 0===t?void 0:t.call(Yn,e))||"":On()||kn()?(null===(n=my.getStorageSync({key:e}))||void 0===n?void 0:n.data)||"":In()?wx.getStorageSync(e)||"":"object"==("undefined"==typeof localStorage?"undefined":k()(localStorage))&&localStorage.getItem(e)||""}catch(e){return""}}function nr(e,t){var n;try{if(t=(t||"").toString(),Yn)return void(null===(n=Yn.setItem)||void 0===n||n.call(Yn,e,t));if(On()||kn())return void my.setStorage({key:e,data:t});if(In())return void wx.setStorage({key:e,data:t});"object"==("undefined"==typeof localStorage?"undefined":k()(localStorage))&&localStorage.setItem(e,t)}catch(e){}}function rr(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 Kn?Kn(e):kn()?new Promise((function(t,n){my.request({url:e,success:function(e){t(e.data)},fail:function(){n()}})})):On()?new Promise((function(t,n){my.call("httpRequest",{url:e},(function(e){!e||e.error?n():t(e.data)}))})):In()?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"}(Xn||(Xn={})),function(e){e.INTERNET="INTERNET",e.INTRANET="INTRANET"}(Zn||(Zn={}));var or={ANTINTL:(Wn={},Wn[Xn.DAILY]="https://bailingual-daily.marmot-cloud.com/manifest/",Wn[Xn.PROD]="https://bailingual.marmot-cloud.com/manifest/",Wn),ALIPAY:(Vn={},Vn[Xn.DAILY]="https://bailingual-assets-daily.alipay.com/manifest/",Vn[Xn.PROD]="https://bailingual-assets.alipay.com/manifest/",Vn)},ir={};ir[Zn.INTERNET]=((qn={})[Xn.DAILY]=function(e,t,n){var r;return""+(n?null===(r=or[n])||void 0===r?void 0:r[Xn.DAILY]:"")+e+"/"+e+(t?"_"+t:"")+".json"},qn[Xn.PROD]=function(e,t,n){var r;return""+(n?null===(r=or[n])||void 0===r?void 0:r[Xn.PROD]:"")+e+"/"+e+(t?"_"+t:"")+".json"},qn),ir[Zn.INTRANET]=((Jn={})[Xn.DAILY]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/daily/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},Jn[Xn.PROD]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/prod/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},Jn);var ar;function sr(){return"true"===tr("__BAILINGUAL_IN_CONTEXT__")}function ur(){if(!(On()||In()||kn())){var e=tr("BAILINGUAL_IN_CONTEXT_CONFIG")||"{}",t=!1;try{t=JSON.parse(e).enableExtension}catch(e){Pn("[bailingual-sdk-glue] JSON.parse data fail: "+e)}ar=sr()&&t}}function cr(){return void 0===ar&&ur(),ar}function lr(){nr("__BAILINGUAL_IN_CONTEXT__","true"),ur(),new Promise((function(e,t){if(On()||In()||kn())return e();var n;if("undefined"!=typeof document&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script"))return rr("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 hr(e,t,n){return"##@@@"+t+"##"+e+"@@@##"+n+"@@@##"}function fr(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 dr(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(kn())my.request({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t,url:n});else if(On())my.call("httpRequest",{url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if(In())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(Nn()&&"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(!(On()||In()||kn()))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(sr()||e.hasOwnProperty("SML_DEV")||e.hasOwnProperty("BAILINGUAL_IN_CONTEXT")||e.hasOwnProperty("BLG_RIC"))return void lr();if("undefined"==typeof document)return;if(Ln()){var t=0,n=0;document.addEventListener("titleClick",(function(){if(!cr()){if(7==++n)return lr(),n=0,clearTimeout(t),void(t=null);clearTimeout(t),t=setTimeout((function(){n=0,t=null}),1500)}}))}document.addEventListener("__BAILINGUAL_IN_CONTEXT_DISABLE__",(function(){nr("__BAILINGUAL_IN_CONTEXT__","false"),ur()}))}catch(e){Pn("[bailingual-sdk-glue] initBailingualInContext fail: "+e)}}();var pr=function(e){return e<10?"0"+e:""+e};function gr(){var e=new Date;return e.getFullYear()+"-"+pr(e.getMonth()+1)+"-"+pr(e.getDate())+" "+pr(e.getHours())+":"+pr(e.getMinutes())+":"+pr(e.getSeconds())+":"+e.getMilliseconds()}function vr(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 mr(e,t){var n,r,o;if(!t||!t.appName||!t.keyCounts.length)return"";var i=[];switch(e){case"CN":default:i=["D-AE",gr(),"","","2","","","","1000","102023","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",vr({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:fr(t.keyCounts),sampleRate:"1",yuyan_id:"180020010101313281",fullURL:"-",s_c:"true"})];break;case"SG":i=["D-AE",gr(),"","","2","","","","1000","bailingualTextUsage","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",vr({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:fr(t.keyCounts)})];break;case"US":i=["D-VM",gr(),"","","4","-","-","-","exposure","-","-","-","-","-","-","bailingualTextUsage","2","H5behavior","c","-","-","-",vr({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:fr(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 yr=function(e){var t=e.region;this.queue=[],this.region=t,this.startTimer()};yr.prototype.startTimer=function(){var e,t,n=this;this.region?(this.timer=setTimeout((function(){n._report()}),5e3),Nn()&&(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)},yr.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=mr(e,{appName:t.appName,textLocale:t.textLocale,sdkName:t.sdkName,sdkVersion:t.sdkVersion,env:t.env,keyCounts:o});dr(e,i)}}))}catch(n){console.error("reportUsageRequest error with",e,t)}else console.error("empty data")}(this.region,t),this.queue=[]}this.startTimer()},yr.prototype.getRegion=function(){return this.region},yr.prototype.setRegion=function(e){this.region=e,this.startTimer()},yr.prototype.report=function(e){this.region&&this.queue.push(e)};var _r=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},br={usageReportRegion:{configurable:!0}};_r.setCustomizedGetSystemLocale=function(e){this.customizedGetSystemLocale=e},_r.customizeGetSystemLocale=function(e){this.customizedGetSystemLocale=e},_r.customizeStorage=function(e){return function(e){Yn=e}(e)},_r.getDataFromStorage=function(e){return tr(e)},_r.setDataToStorage=function(e,t){return nr(e,t)},_r.customizeFetch=function(e){Kn=e},br.usageReportRegion.get=function(){var e;return null===(e=this.usageReporter)||void 0===e?void 0:e.getRegion()},br.usageReportRegion.set=function(e){var t;this.usageReporter||(this.usageReporter=new yr({region:e})),e&&(null===(t=this.usageReporter)||void 0===t||t.setRegion(e))},_r.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))||jn(this.canReadLocaleFromCookie))},_r.prototype.getPatchI18nKey=function(){return this.appName?this.tag?this.appName+"+"+this.tag:this.appName:""},_r.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))||jn(this.canReadLocaleFromCookie))},_r.prototype.getServerSideFallbackData=function(){if(Cn()){var e=n.g.BAILINGUAL_FALLBACK;return e||(Pn("[bailingual-sdk-glue] [Server] no fallback data found."),e={}),e}},_r.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 yr({region:this.usageReportRegion}),this.tag=e.tag||"",Object.keys(e).forEach((function(n){if("object"==k()(e[n])){var r=Hn(n);if(!r)return void Rn("[bailingual-sdk-glue] "+n+" is not a valid locale code");t.langPkgsNoPatch[r]=$n({},e[n]),t.i18nText[r]=$n({},e[n])}})),this.handlePatchedData(),this.availableLocales=Object.keys(this.i18nText);var n=e.defaultLocale||this.availableLocales[0];!e.defaultLocale&&n&&Pn("[bailingual-sdk-glue] no defaultLocale specified, use first locale code '"+n+"' instead."),this.defaultLocale=this.judgeLocaleCode(n),this.defaultLocale||Rn("[bailingual-sdk-glue] defaultLocale '"+n+"' is invalid.")},_r.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=tr("BAILINGUAL_PATCH_I18N_DELETED-"+e);return t?JSON.parse(t):{}}catch(e){return Rn("[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=tr("BAILINGUAL_PATCH_I18N-"+e);return t?JSON.parse(t):{}}catch(e){return Rn("[bailingual-sdk-glue] fail to get local patch data, error detail: "+e),{}}}(n);Object.keys(o).forEach((function(e){er(Ze,e)&&(t.i18nText[e]||Pn("[bailingual-sdk-glue] locale '"+e+"' is not exist in init data, but found in patch data."),t.i18nText[e]=t.i18nText[e]||{},$n(t.i18nText[e],o[e]))})),null===(e=r.removedLocales)||void 0===e||e.forEach((function(e){e=Hn(e),er(Ze,e)&&delete t.i18nText[e]})),Object.keys(r.removedKeys||{}).forEach((function(e){if(e=Hn(e),er(Ze,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{nr("BAILINGUAL_PATCH_I18N-"+e,""),nr("BAILINGUAL_PATCH_I18N_DELETED-"+e,"")}catch(e){Rn("[bailingual-sdk-glue] fail to remove local patch data, error detail: "+e)}}(n)},_r.prototype.setLocale=function(e){this.currentLocale!==e&&(this.currentLocale=e,this.canStoreCurrentLocaleToCookie&&function(e){"object"!=("undefined"==typeof document?"undefined":k()(document))||"object"!=("undefined"==typeof location?"undefined":k()(location))||Ln()||On()||kn()||In()||(Gn(),zn("x-hng","lang="+e,{path:"/",expires:180}),zn("_CHIPS-x-hng","lang="+e,{path:"/",expires:180,SameSite:"None",Partitioned:!0,Secure:!0}))}(e),this.emit(Dn,e))},_r.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(Qe)||(i=hr(this.appName,r,i)),o=this.createIntlMessageFormat(i,e),this.intlPDKVMessages[e][r]=o}return o},_r.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)},_r.prototype.formatByLocaleCode=function(e,t,n){var r,o=this,i=this.i18nText[n];try{r=cr()&&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 Pn(s),Pn("[bailingual-sdk-glue] error detail:",t),this.emit(xn,new Qn({code:Bn.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){er(u,t)||o.emit(xn,new Qn({code:Bn.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 Pn(l),Pn("[bailingual-sdk-glue] error detail:",n),this.emit(xn,new Qn({code:Bn.FORMAT_ERROR,message:l,err:n,textKey:e.id})),""}},_r.prototype.format=function(e,t,n){void 0===t&&(t={});var r=n;return r&&((r=Hn(r))||Rn("[bailingual-sdk-glue] "+n+" is not a valid locale code, use default locale instead.")),r||(r=this.currentLocale),r||Rn("[bailingual-sdk-glue] no locale code found!"),this.formatByLocaleCode(e,t,r)},_r.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))},_r.prototype.judgeLocaleCode=function(e){if(void 0===e&&(e=""),e=Hn(e),er(this.availableLocales,e))return e},_r.prototype.changeLocale=function(e){var t=this.judgeLocaleCode(e);t||this.currentLocale||(t=this.defaultLocale),t?this.setLocale(t):Rn("[bailingual-sdk-glue] '"+e+"' is not a vaid locale code")},_r.prototype.unsafeChangeLocale=function(e){void 0===e&&(e=""),this.setLocale(e)},_r.prototype.getAllData=function(e){var t=this;if(this.i18nText&&e&&cr()){var n={};return Object.keys(this.i18nText).forEach((function(e){n[e]=t.buildPDKVLocaleText(t.i18nText[e])})),n}return this.i18nText},_r.prototype.buildPDKVLocaleText=function(e){var t=this,n={};return Object.keys(e||{}).forEach((function(r){var o=e[r];o.match(Qe)||(o=hr(t.appName,r,o)),n[r]=o})),n},_r.prototype.getDataWithLocale=function(e,t){e||Pn("[bailingual-sdk-glue] no locale code specified, use default locale ("+this.defaultLocale+") instead.");var n=this.i18nText[Hn(e||this.defaultLocale)];return n&&t&&cr()?this.buildPDKVLocaleText(n):n},_r.prototype.getDataFromCurrentLocale=function(e){if(this.currentLocale)return this.getDataWithLocale(this.currentLocale,e);Rn("[bailingual-sdk-glue] error occured: no 'currentLocale' found, please check if you have called 'initData' or 'changeLocale' method before.")},_r.prototype.getCurrentLocale=function(){return this.currentLocale||""},_r.prototype.getDefaultLocale=function(){return this.defaultLocale},_r.prototype.formatLocaleCode=function(e){return Hn(e)},_r.prototype.patchI18n=function(e,t){return new Promise(function(n,r){var o,i,a,s;if(!(t=t||{}).isIntranet&&!t.buIdentifier)return Rn('[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'),this.emit(xn,new Qn({code:Bn.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 Rn("[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)||(Rn("[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 rr(function(e,t,n,r,o){var i,a;return null===(a=null===(i=ir[t])||void 0===i?void 0:i[e])||void 0===a?void 0:a.call(i,n,r,o)}(t.isDaily?Xn.DAILY:Xn.PROD,t.isIntranet?Zn.INTRANET:Zn.INTERNET,e.appName,e.tag,o)).then((function(e){return e?rr(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"==k()(e[t])){var r=Hn(t);r&&(n[r]=n[r]||{},$n(n[r],e[t]))}}))}));var r=Object.keys(n),o=Object.keys(e);r.sort().toString()!==o.sort().toString()&&Pn("[bailingual-sdk-glue] locales in local data '"+o+"' is different from cdn data '"+r+"'");var i={removedKeys:{},removedLocales:o.filter((function(e){return!er(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]=$n({},o,r)})),o.forEach((function(t){if(!er(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]||[],er(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&&(nr("BAILINGUAL_PATCH_I18N-"+s,JSON.stringify(i)),nr("BAILINGUAL_PATCH_I18N_DELETED-"+s,JSON.stringify(a))),n()}catch(e){return r(e)}}.bind(this),r):(Rn("[bailingual-sdk-glue] no bailingual packages found, stop patch"),n())}.bind(this))},_r.prototype.updateData=function(e){var t=Object.keys(e).filter((function(e){return er(Ze,e)}));return this.defaultLocale&&!er(t,this.defaultLocale)?(Rn("[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(Mn,e),this.currentLocale&&!er(t,this.currentLocale)&&(Pn("[bailingual-sdk-glue] current locale "+this.currentLocale+" is not available, use default locale ("+this.defaultLocale+") instead."),this.changeLocale(this.defaultLocale)),!0)},_r.prototype.on=function(e,t){this.eventHandler[e]=this.eventHandler[e]||[],this.eventHandler[e].push(t)},_r.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)}))},_r.prototype.onDataChange=function(e){this.on(Mn,e)},_r.prototype.offDataChange=function(e){this.off(Mn,e)},_r.prototype.onLocaleChange=function(e){this.on(Dn,e)},_r.prototype.offLocaleChange=function(e){this.off(Dn,e)},_r.prototype.onError=function(e){this.on(xn,e)},_r.prototype.offError=function(e){this.off(xn,e)},_r.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)}))},_r.prototype.stopPatchI18n=function(){this.canUsePatchedData=!1},_r.prototype.setAutoStoreCurrentLocaleToCookie=function(e){this.canStoreCurrentLocaleToCookie=!!e},_r.prototype.setAutoReadLocaleFromCookie=function(e){this.canReadLocaleFromCookie=!!e},_r.prototype.getAllLocales=function(){return[].concat(this.availableLocales)},_r.prototype.changeUsageReportRegion=function(e){this.usageReportRegion=e},_r.prototype.changeBizEnv=function(e){this.bizEnv=e},_r.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"})},_r.prototype.removeBailingualCookie=function(){Gn()},Object.defineProperties(_r.prototype,br),_r.customizedGetSystemLocale=void 0;var Er=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){er([nt.argument,nt.number,nt.date,nt.time,nt.select,nt.plural],e.type)&&"value"in e&&void 0===r[e.value]&&(r[e.value]="")})),r},t.prototype.createIntlMessageFormat=function(e,t){return new wn(e,t,{},{ignoreTag:!0})},t}(_r),Sr=(new Er,"antom-language-storage-key"),wr="en_US",Tr=new Er;function Ar(e){if(e)return Pr(e);try{var t=window._amsSdkLanguage||window.sessionStorage.getItem(Sr)||window.localStorage.getItem(Sr);if(t)return Pr(t)}catch(e){}if(navigator.language){var n=!/[-,_]/.test(navigator.language),r=Tr.getAllLocales().find((function(e){return n?e.startsWith(navigator.language):Pr(e)===Pr(navigator.language)}))||wr;if(r)return r=Pr(r)}return wr}function Pr(e){var t=e;t||(t=wr);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&&Tr.initData(window.bailingual_ckp||{});var Rr={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"},kr=b(b({},{UNKNOWN_ERROR:"UNKNOWN_ERROR",NO_PORTS_ERROR:"NO_PORTS_ERROR",INVALID_REDIRECT_URL:"INVALID_REDIRECT_URL"}),Rr);L.initConfig({i18n:Tr,i18nPrefix:"ANTOMSDK",getDefaultMessage:function(){return Tr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})}});var Or=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 L.isError(e)}},{key:"unificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";return L.unificationError(e,t)}}]),n}(L),Nr=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)}(Or),Lr=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(){}}},Ir=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})}},Cr=(window||{}).navigator,Dr=Cr.userAgent,Mr=function(){var e=/OpenHarmony/i.test(Cr.userAgent),t=/Phone/i.test(Cr.userAgent),n=/Tablet/i.test(Cr.userAgent);return e&&(t||n)},xr=/iPhone|iPad|iPod/i.test(Dr)||"MacIntel"===Cr.platform&&Cr.maxTouchPoints>1,Ur=/Android/i.test(Dr),Br=(/\bMacintosh\b/.test(Dr),/Windows NT/.test(Dr),function(){return/Android|iPhone|iPad|iPod|Mobile|SymbianOS|Windows Phone/.test(Dr)||Mr()}),Hr=xr,jr=Ur,zr=!!Br(),Fr=!Br();Mr();var Gr=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}},Kr=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 Gr(n)}},Yr=function(e){return(null==e?void 0:e.split("&&").slice(0,2).join("&&"))||"无trackId"},Wr=function(e){return e.split("&&")[1]||"SG"};function Vr(e,t){return function(){return e.apply(t,arguments)}}var qr,Jr,Xr=n(822),Zr=Object.prototype.toString,Qr=Object.getPrototypeOf,$r=Symbol.iterator,eo=Symbol.toStringTag,to=(qr=Object.prototype.hasOwnProperty,function(e,t){return qr.call(e,t)}),no=function(e){return"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e)},ro=function(e,t,n){return e===Object.prototype||!n&&null===t},oo=function(e,t){for(var n=e,r=[];null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);var o=Qr(n);if(ro(n,o,n===e))return!1;if(to(n,t))return!0;n=o}return!1},io=(Jr=Object.create(null),function(e){var t=Zr.call(e);return Jr[t]||(Jr[t]=t.slice(8,-1).toLowerCase())}),ao=function(e){return e=e.toLowerCase(),function(t){return io(t)===e}},so=function(e){return function(t){return R(t)===e}},uo=Array.isArray,co=so("undefined");function lo(e){return null!==e&&!co(e)&&null!==e.constructor&&!co(e.constructor)&&po(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ho=ao("ArrayBuffer");var fo=so("string"),po=so("function"),go=so("number"),vo=function(e){return null!==e&&"object"===R(e)},mo=function(e){if(!vo(e))return!1;var t=Qr(e);return!(null!==t&&t!==Object.prototype&&null!==Qr(t)||oo(e,eo)||oo(e,$r))},yo=ao("Date"),_o=ao("File"),bo=ao("Blob"),Eo=ao("FileList"),So=ao("Set");var wo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},To=void 0!==wo.FormData?wo.FormData:void 0,Ao=ao("URLSearchParams"),Po=["ReadableStream","Request","Response","Headers"].map(ao),Ro=P(Po,4),ko=Ro[0],Oo=Ro[1],No=Ro[2],Lo=Ro[3];function Io(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]),uo(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(lo(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 Co(e,t){if(lo(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 Do="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,Mo=function(e){return!co(e)&&e!==Do};var xo,Uo=(xo="undefined"!=typeof Uint8Array&&Qr(Uint8Array),function(e){return xo&&e instanceof xo}),Bo=ao("HTMLFormElement"),Ho=Object.prototype.propertyIsEnumerable,jo=ao("RegExp"),zo=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};Io(n,(function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};var Fo,Go,Ko,Yo,Wo=ao("AsyncFunction"),Vo=(Fo="function"==typeof setImmediate,Go=po(Do.postMessage),Fo?setImmediate:Go?(Ko="axios@".concat(Math.random()),Yo=[],Do.addEventListener("message",(function(e){var t=e.source,n=e.data;t===Do&&n===Ko&&Yo.length&&Yo.shift()()}),!1),function(e){Yo.push(e),Do.postMessage(Ko,"*")}):function(e){return setTimeout(e)}),qo="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Do):void 0!==Xr&&Xr.nextTick||Vo,Jo=function(e){return null!=e&&po(e[$r])},Xo={isArray:uo,isArrayBuffer:ho,isBuffer:lo,isFormData:function(e){if(!e)return!1;if(To&&e instanceof To)return!0;var t=Qr(e);if(!t||t===Object.prototype)return!1;if(!po(e.append))return!1;var n=io(e);return"formdata"===n||"object"===n&&po(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ho(e.buffer)},isString:fo,isNumber:go,isBoolean:function(e){return!0===e||!1===e},isObject:vo,isPlainObject:mo,isEmptyObject:function(e){if(!vo(e)||lo(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ko,isRequest:Oo,isResponse:No,isHeaders:Lo,isUndefined:co,isDate:yo,isFile:_o,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:bo,isRegExp:jo,isFunction:po,isStream:function(e){return vo(e)&&po(e.pipe)},isURLSearchParams:Ao,isTypedArray:Uo,isFileList:Eo,forEach:Io,merge:function e(){for(var t=Mo(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&&Co(o,i)||i,s=to(o,a)?o[a]:void 0;mo(s)&&mo(t)?o[a]=e(s,t):mo(t)?o[a]=e({},t):uo(t)?o[a]=t.slice():r&&co(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&&!lo(u)&&(Io(u,i),"object"===R(u)&&!uo(u)))for(var c=Object.getOwnPropertySymbols(u),l=0;l<c.length;l++){var h=c[l];Ho.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 Io(t,(function(t,r){n&&po(t)?Object.defineProperty(e,r,{__proto__:null,value:Vr(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&&Qr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:io,kindOfTest:ao,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(uo(e))return e;var t=e.length;if(!go(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[$r]).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:Bo,hasOwnProperty:to,hasOwnProp:to,hasOwnInPrototypeChain:oo,getSafeProp:function(e,t){return null!=e&&oo(e,t)?e[t]:void 0},toSafeFlatObject:function(e){if(null==e||"object"!==R(e)&&"function"!=typeof e)return e;var t=Qr(e);if(null===t&&function(e){if(!Object.isExtensible(e))return!1;var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push.apply(t,C(Object.getOwnPropertySymbols(e))),t.every((function(t){if(no(t))return!1;var n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable}))}(e))return e;for(var n=Object.create(null),r=Object.create(null),o=[],a=e;null!=a&&-1===o.indexOf(a);){o.push(a);var s=a===e?t:Qr(a);if(ro(a,s,a===e))break;var u=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&u.push.apply(u,C(Object.getOwnPropertySymbols(a)));var c,l=i(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;no(h)||(to(r,h)||(n[h]=e[h],r[h]=!0))}}catch(e){l.e(e)}finally{l.f()}a=s}return n},reduceDescriptors:zo,freezeMethods:function(e){zo(e,(function(t,n){if(po(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];po(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 uo(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:Co,global:Do,isContextDefined:Mo,isSpecCompliantForm:function(e){return!!(e&&po(e.append)&&"FormData"===e[eo]&&e[$r])},toJSONObject:function(e){var t=new WeakSet;return function e(n){if(vo(n)){if(t.has(n))return;if(lo(n))return n;if(!("toJSON"in n)){var r;if(t.add(n),So(n)){r=[];var o,a=i(n);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=e(s);!co(u)&&r.push(u)}}catch(e){a.e(e)}finally{a.f()}}else r=uo(n)?[]:{},Io(n,(function(t,n){var o=e(t);!co(o)&&(r[n]=o)}));return t.delete(n),r}}return n}(e)},isAsyncFn:Wo,isThenable:function(e){return e&&(vo(e)||po(e))&&po(e.then)&&po(e.catch)},setImmediate:Vo,asap:qo,isIterable:Jo,isSafeIterable:function(e){return null!=e&&oo(e,$r)&&Jo(e)}},Zo=Xo.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 Qo=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),$o=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ei(e,t){return Xo.isArray(e)?e.map((function(e){return ei(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 ti(e){var t=Object.create(null);return Xo.forEach(e.toJSON(),(function(e,n){t[n]=function(e){return ei(e,$o)}(e)})),t}var ni=Symbol("internals");function ri(e){return e&&String(e).trim().toLowerCase()}function oi(e){return!1===e||null==e?e:Xo.isArray(e)?e.map(oi):function(e){return ei(e,Qo)}(String(e))}var ii=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ai(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)}function si(e,t,n,r,o){return Xo.isFunction(r)?r.call(this,t,n):(o&&(t=n),Xo.isString(t)?Xo.isString(r)?-1!==t.indexOf(r):Xo.isRegExp(r)?r.test(t):void 0:void 0)}var ui=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=ri(t);if(o){var i=Xo.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=oi(e))}}var a=function(e,t){return Xo.forEach(e,(function(e,n){return o(e,n,t)}))};if(Xo.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Xo.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();var i=Xo.hasOwnProp(o,t);!t||i&&Xo.hasOwnProp(Zo,t)||("set-cookie"===t?i?o[t].push(n):o[t]=[n]:o[t]=i?o[t]+", "+n:n)})),o}(e),t);else if(Xo.isObject(e)&&Xo.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(!Xo.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],Xo.hasOwnProp(l,u)?(s=l[u],l[u]=Xo.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=ri(e)){var n=Xo.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(Xo.isFunction(t))return t.call(this,r,n);if(Xo.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=ri(e)){var n=Xo.findKey(this,e);return!(!n||void 0===this[n]||t&&!si(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=ri(e)){var o=Xo.findKey(n,e);!o||t&&!si(0,n[o],o,t)||(delete n[o],r=!0)}}return Xo.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&&!si(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return Xo.forEach(this,(function(r,o){var i=Xo.findKey(n,o);if(i)return t[i]=oi(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]=oi(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 Xo.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&Xo.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(){var e=this.get("set-cookie");return Xo.isArray(e)?e:null==e||!1===e?[]:[e]}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"parseParameters",value:function(e){return function(e){var t=Object.create(null),n=String(e),r=0,o=!1,i=!1;function a(e){var o=ai(n.slice(r,e)),i=o.indexOf("=");if(!(i<1)){var a=ai(o.slice(0,i));if(ii.test(a)){var s=a.toLowerCase();if("__proto__"!==s&&"constructor"!==s&&"prototype"!==s){var u=ai(o.slice(i+1));t[s]=function(e){var t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;for(var n="",r=1;r<t;r++){var o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1)>=t)return e;n+=e[r]}return n}(u)}}}}for(var s=0;s<n.length;s++){var u=n.charCodeAt(s);o?i?i=!1:92===u?i=!0:34===u&&(o=!1):34===u?o=!0:44!==u&&59!==u||(a(s),r=s+1)}return a(n.length),t}(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[ni]=this[ni]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=ri(e);t[r]||(!function(e,t){var n=Xo.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 Xo.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);ui.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Xo.reduceDescriptors(ui.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}}})),Xo.freezeMethods(ui);var ci=ui,li="[REDACTED ****]";function hi(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(Xo.isBuffer(t))return t;if(-1===r.indexOf(t)){var o;if(t instanceof ci&&(t=t.toJSON()),r.push(t),Xo.isArray(t))o=[],t.forEach((function(t,n){var r=e(t);Xo.isUndefined(r)||(o[n]=r)}));else{if(!Xo.isPlainObject(t)&&function(e){if(Xo.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Xo.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())?li:e(c);Xo.isUndefined(l)||(o[u]=l)}}return r.pop(),o}}(e)}function fi(e){try{return String(e)}catch(e){return""}}var di=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&&Xo.hasOwnProp(e,"redact")?e.redact:void 0,n=Xo.isArray(t)&&t.length>0?hi(e,t):Xo.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=e.message;!s&&Xo.isArray(e.errors)&&e.errors.length&&(s=function(e){return e.errors.map((function(e){try{return e&&e.message?fi(e.message):fi(e)}catch(e){return""}})).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));var u=new n(s,t||e.code,r,o,i);return Object.defineProperty(u,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),u.name=e.name,null!=e.status&&null==u.status&&(u.status=e.status),a&&Object.assign(u,a),u}}]),n}(O(Error));di.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",di.ERR_BAD_OPTION="ERR_BAD_OPTION",di.ECONNABORTED="ECONNABORTED",di.ETIMEDOUT="ETIMEDOUT",di.ECONNREFUSED="ECONNREFUSED",di.ERR_NETWORK="ERR_NETWORK",di.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",di.ERR_DEPRECATED="ERR_DEPRECATED",di.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",di.ERR_BAD_REQUEST="ERR_BAD_REQUEST",di.ERR_CANCELED="ERR_CANCELED",di.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",di.ERR_INVALID_URL="ERR_INVALID_URL",di.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var pi=di,gi=null;function vi(e){return Xo.isPlainObject(e)||Xo.isArray(e)}function mi(e){return Xo.endsWith(e,"[]")?e.slice(0,-2):e}function yi(e,t,n){return e?e.concat(t).map((function(e,t){return e=mi(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var _i=Xo.toFlatObject(Xo,{},null,(function(e){return/^is[A-Z]/.test(e)}));var bi=function(e,t,n){if(!Xo.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=function(e,t){var r=Xo.getSafeProp(n,e);return Xo.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||p,a=r("dots",!1),s=r("indexes",!1),u=r("Blob")||"undefined"!=typeof Blob&&Blob,c=r("maxDepth",100),l=u&&Xo.isSpecCompliantForm(t),h=[];if(!Xo.isFunction(i))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(Xo.isDate(e))return e.toISOString();if(Xo.isBoolean(e))return e.toString();if(!l&&Xo.isBlob(e))throw new pi("Blob is not supported. Use a Buffer instead.");if(Xo.isArrayBuffer(e)||Xo.isTypedArray(e)){if(l&&"function"==typeof u)return new u([e]);throw new pi("Blob is not supported. Use a Buffer instead.",pi.ERR_NOT_SUPPORT)}return e}function d(e){if(e>c)throw new pi("Object is too deeply nested ("+e+" levels). Max depth: "+c,pi.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,r){var i=e;if(Xo.isReactNative(t)&&Xo.isReactNativeBlob(e))return t.append(yi(r,n,a),f(e)),!1;if(e&&!r&&"object"===R(e))if(Xo.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(c===1/0)return JSON.stringify(e);var n=[];return JSON.stringify(e,(function(e,r){if(!Xo.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),d(t+n.length-1),r}))}(e,1);else if(Xo.isArray(e)&&function(e){return Xo.isArray(e)&&!e.some(vi)}(e)||(Xo.isFileList(e)||Xo.endsWith(n,"[]"))&&(i=Xo.toArray(e)))return n=mi(n),i.forEach((function(e,r){!Xo.isUndefined(e)&&null!==e&&t.append(!0===s?yi([n],r,a):null===s?n:n+"[]",f(e))})),!1;return!!vi(e)||(t.append(yi(r,n,a),f(e)),!1)}var g=Object.assign(_i,{defaultVisitor:p,convertValue:f,isVisitable:vi});if(!Xo.isObject(e))throw new TypeError("data must be an object");return function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Xo.isUndefined(n)){if(d(o),-1!==h.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));h.push(n),Xo.forEach(n,(function(n,a){!0===(!(Xo.isUndefined(n)||null===n)&&i.call(t,n,Xo.isString(a)?a.trim():a,r,g))&&e(n,r?r.concat(a):[a],o+1)})),h.pop()}}(e),t};function Ei(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function Si(e,t){this._pairs=[],e&&bi(e,this,t)}var wi=Si.prototype;wi.append=function(e,t){this._pairs.push([e,t])},wi.toString=function(e){var t=this,n=e?function(n){return e.call(t,n,Ei)}:Ei;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};var Ti=Si;function Ai(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Pi(e,t,n){if(!t)return e;e=e||"";var r,o=Xo.isFunction(n)?{serialize:n}:n,i=Xo.getSafeProp(o,"encode")||Ai,a=Xo.getSafeProp(o,"serialize");if(r=a?a(t,o):Xo.isURLSearchParams(t)?t.toString():new Ti(t,o).toString(i)){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var Ri=Symbol("internals");function ki(e){return e?e.length:0}function Oi(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function Ni(e,t){var n=e.handlers,r=ki(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach((function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)})):t.handlerEntries.clear()),t.handlersLength=r}var Li=function(){function e(){u(this,e),this.handlers=[],this[Ri]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}return l(e,[{key:"use",value:function(e,t,n){var r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[Ri];null==this.handlers&&(this.handlers=[]),Ni(this,o);var i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}},{key:"eject",value:function(e){var t=this[Ri];Ni(this,t);var n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Oi(this.handlers),t.handlersLength=this.handlers.length)}}},{key:"clear",value:function(){this.handlers&&(this.handlers=[],Ni(this,this[Ri]))}},{key:"forEach",value:function(e){var t=this[Ri];Ni(this,t),t.iterationDepth++;try{Xo.forEach(this.handlers,(function(t){null!==t&&e(t)}))}finally{--t.iterationDepth||(Ni(this,t),Oi(this.handlers),t.handlersLength=ki(this.handlers))}}}]),e}(),Ii=Li,Ci={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Di={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ti,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Mi="undefined"!=typeof window&&"undefined"!=typeof document,xi="object"===("undefined"==typeof navigator?"undefined":R(navigator))&&navigator||void 0,Ui=Mi&&(!xi||["ReactNative","NativeScript","NS"].indexOf(xi.product)<0),Bi="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Hi=Mi&&window.location.href||"http://localhost",ji=b(b({},e),Di);function zi(e){if(e>100)throw new pi("FormData field is too deeply nested ("+e+" levels). Max depth: 100",pi.ERR_FORM_DATA_DEPTH_EXCEEDED)}var Fi=function(e){function t(e,n,r,o){zi(o);var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Xo.isArray(r)?r.length:i,s?(Xo.hasOwnProp(r,i)?r[i]=Xo.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(Xo.hasOwnProp(r,i)&&Xo.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Xo.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(Xo.isFormData(e)&&Xo.isFunction(e.entries)){var n={};return Xo.forEachEntry(e,(function(e,r){t(function(e){for(var t,n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;null!==(t=r.exec(e));)zi(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),r,n,0)})),n}return null},Gi=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Ki=function(e,t){return null!=e&&Xo.hasOwnProp(e,t)?e[t]:void 0};var Yi={transitional:Ci,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=Xo.isObject(e);if(i&&Xo.isHTMLForm(e)&&(e=new FormData(e)),Xo.isFormData(e))return o?JSON.stringify(Fi(e)):e;if(Xo.isArrayBuffer(e)||Xo.isBuffer(e)||Xo.isStream(e)||Xo.isFile(e)||Xo.isBlob(e)||Xo.isReadableStream(e))return e;if(Xo.isArrayBufferView(e))return e.buffer;if(Xo.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=Ki(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return bi(e,new ji.classes.URLSearchParams,b({visitor:function(e,t,n,r){return ji.isNode&&Xo.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=Xo.isFileList(e))||r.indexOf("multipart/form-data")>-1){var s=Ki(this,"env"),u=s&&s.FormData;return bi(n?{"files[]":e}:e,u&&new u,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Xo.isString(e))try{return(t||JSON.parse)(e),Xo.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=Ki(this,"transitional")||Yi.transitional,n=t&&t.forcedJSONParsing,r=Ki(this,"responseType"),o="json"===r;if(Xo.isResponse(e)||Xo.isReadableStream(e))return e;if(e&&Xo.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Ki(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw pi.from(e,pi.ERR_BAD_RESPONSE,this,null,Ki(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ji.classes.FormData,Blob:ji.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xo.forEach(Gi,(function(e){Yi.headers[e]={}}));var Wi=Yi;function Vi(e,t){var n=this||Wi,r=t||n,o=ci.from(r.headers),i=r.data;return Xo.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function qi(e){return!(!e||!e.__CANCEL__)}var Ji=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,pi.ERR_CANCELED,r,o)).name="CanceledError",i.__CANCEL__=!0,i}return l(n)}(pi),Xi=Ji;function Zi(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new pi("Request failed with status code "+n.status,n.status>=400&&n.status<500?pi.ERR_BAD_REQUEST:pi.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var Qi=/[\t\n\r]/g;function $i(e){if("string"!=typeof e)return e;for(var t=0;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Qi,"")}function ea(e){var t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}var ta=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 na=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)},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(t)}]},ra=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,o=ta(50,250);return na((function(n){if(n&&Xo.isNumber(n.loaded)){var i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,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)},oa=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},ia=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xo.asap;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t((function(){return e.apply(void 0,r)}))}},aa=ji.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,ji.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(ji.origin),ji.navigator&&/(msie|trident)/i.test(ji.navigator.userAgent)):function(){return!0},sa=ji.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var s=["".concat(e,"=").concat(encodeURIComponent(t))];Xo.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),Xo.isString(r)&&s.push("path=".concat(r)),Xo.isString(o)&&s.push("domain=".concat(o)),!0===i&&s.push("secure"),Xo.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 ua=/^https?:(?!\/\/)/i;function ca(e){var t,n=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,"$1".concat(li,"@")),r=n.indexOf("#"),o=(-1===r?n:n.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,"$1".concat(li));return-1===r?o:"".concat(o,"#").concat((t=n.slice(r+1))?t.replace(/(^|&)([^=&]*=)?[^&]+/g,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(t).concat(n).concat(li)})):t)}function la(e,t){if("string"==typeof e){var n=$i(e);if(ua.test(n))throw new pi("Invalid URL ".concat(JSON.stringify(ca(n)),': missing "//" after protocol'),pi.ERR_INVALID_URL,t)}}function ha(e,t,n,r){la(t,r);var o,i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));return e&&(i||!1===n)?(la(e,r),function(e,t){if(!t)return e;for(var n=e.length;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}var fa=function(e){return e instanceof ci?b({},e):e};function da(e,t){e=e||{},t=t||{};var n=Object.create(null);function r(e,t,n,r){return Xo.isPlainObject(e)&&Xo.isPlainObject(t)?Xo.merge.call({caseless:r},e,t):Xo.isPlainObject(t)?Xo.merge({},t):Xo.isArray(t)?t.slice():t}function o(e,t,n,o){return Xo.isUndefined(t)?Xo.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Xo.isUndefined(t))return r(void 0,t)}function a(e,t){return Xo.isUndefined(t)?Xo.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return Xo.hasOwnProp(t,i)?r(n,o):Xo.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,c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage: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(fa(e),fa(t),0,!0)}};return Xo.forEach((u=b(b({},e),t),Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(u).concat(Object.getOwnPropertySymbols(u).filter((function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable}))):Object.keys(u)),(function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=Xo.hasOwnProp(c,r)?c[r]:o,a=i(Xo.hasOwnProp(e,r)?e[r]:void 0,Xo.hasOwnProp(t,r)?t[r]:void 0,r);Xo.isUndefined(a)&&i!==s||(n[r]=a)}})),Xo.hasOwnProp(t,"validateStatus")&&Xo.isUndefined(t.validateStatus)&&!1===function(n){var r=Xo.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Xo.isUndefined(r)){if(!Xo.isPlainObject(r))return;if(Xo.hasOwnProp(r,n))return r[n]}var o=Xo.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Xo.isPlainObject(o)&&Xo.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(Xo.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var pa=["content-type","content-length"];var ga=function(e){var t=da({},e),n=function(e){return Xo.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=ci.from(s),t.url=Pi(ha(c,h,l,t),n("params"),n("paramsSerializer")),u){var f=Xo.getSafeProp(u,"username")||"",d=Xo.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 pi.from(t,pi.ERR_BAD_OPTION_VALUE,e)}}if(Xo.isFormData(r)){var p=Xo.getSafeProp(r,"getHeaders");ji.hasStandardBrowserEnv||ji.hasStandardBrowserWebWorkerEnv||Xo.isReactNative(r)?s.setContentType(void 0):Xo.isFunction(p)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach((function(t){var n=P(t,2),r=n[0],o=n[1];pa.includes(r.toLowerCase())&&e.set(r,o)})):e.set(t)}(s,p.call(r),n("formDataHeaderPolicy"))}if(ji.hasStandardBrowserEnv&&(Xo.isFunction(o)&&(o=o(t)),!0===o||null==o&&aa(t.url))){var g=i&&a&&sa.read(a);g&&s.set(i,g)}return t},va="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,o,i,a,s,u,c=ga(e),l=c.data,h=ci.from(c.headers).normalize(),f=c.responseType,d=c.onUploadProgress,p=c.onDownloadProgress;function g(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(r),c.signal&&c.signal.removeEventListener("abort",r)}var v=new XMLHttpRequest;function m(r){if(v){if(!(0!==v.status||"file"===(ea($i(c.url))||ea(ji.origin))||v.responseURL&&v.responseURL.startsWith("file:")))return n(new pi("Request aborted",pi.ECONNABORTED,e,v)),g(),void(v=null);try{r?u&&u(r):s&&s()}catch(e){setTimeout((function(){throw e}))}if(v){var o=ci.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());Zi((function(e){t(e),g()}),(function(e){n(e),g()}),{data:f&&"text"!==f&&"json"!==f?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:o,config:e,request:v}),v=null}}}if(v.open(c.method.toUpperCase(),c.url,!0),v.timeout=c.timeout,"onloadend"in v?v.onloadend=m:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(m)},v.onabort=function(){v&&(n(new pi("Request aborted",pi.ECONNABORTED,e,v)),g(),v=null)},v.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new pi(r,pi.ERR_NETWORK,e,v);o.event=t||null,n(o),g(),v=null},v.ontimeout=function(){var t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",r=c.transitional||Ci;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new pi(t,r.clarifyTimeoutError?pi.ETIMEDOUT:pi.ECONNABORTED,e,v)),g(),v=null},void 0===l&&h.setContentType(null),"setRequestHeader"in v&&Xo.forEach(ti(h),(function(e,t){v.setRequestHeader(t,e)})),Xo.isUndefined(c.withCredentials)||(v.withCredentials=!!c.withCredentials),f&&"json"!==f&&(v.responseType=c.responseType),p){var y=ra(p,!0),_=P(y,3);i=_[0],s=_[1],u=_[2],v.addEventListener("progress",i)}if(d&&v.upload){var b=ra(d),E=P(b,2);o=E[0],a=E[1],v.upload.addEventListener("progress",o),v.upload.addEventListener("loadend",a)}(c.cancelToken||c.signal)&&(r=function(t){v&&(n(!t||t.type?new Xi(null,e,v):t),v.abort(),g(),v=null)},c.cancelToken&&c.cancelToken.subscribe(r),c.signal&&(c.signal.aborted?r():c.signal.addEventListener("abort",r)));var S=ea(c.url);if(S&&!ji.protocols.includes(S))return n(new pi("Unsupported protocol "+S+":",pi.ERR_BAD_REQUEST,e)),void g();v.send(l||null)}))},ma=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 pi?t:new Xi(t instanceof Error?t.message:t))}},i=t&&setTimeout((function(){i=null,o(new pi("timeout of ".concat(t,"ms exceeded"),pi.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){r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))}));var s=n.signal;return s.unsubscribe=function(){return Xo.asap(a)},s}},ya=n(101),_a=n(621),ba=n(774),Ea=n(164),Sa=S().mark((function e(t,n){var r,o,i;return S().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)})),wa=function(){var e=ya(S().mark((function e(t,n){var r,o,i,a,s,u;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,o=!1,e.prev=2,a=Ea(Ta(t));case 4:return e.next=6,_a(a.next());case 6:if(!(r=!(s=e.sent).done)){e.next=12;break}return u=s.value,e.delegateYield(ba(Ea(Sa(u,n)),_a),"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,_a(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)}}(),Ta=function(){var e=ya(S().mark((function e(t){var n,r,o,i;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(ba(Ea(t),_a),"t0",2);case 2:return e.abrupt("return");case 3:n=t.getReader(),e.prev=4;case 5:return e.next=7,_a(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,_a(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)}}(),Aa=function(e,t,n,r){var o,i=wa(e,t),a=0,s=function(e){o||(o=!0,r&&r(e))};return new ReadableStream({pull:function(e){return T(S().mark((function t(){var r,o,u,c,l;return S().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})},Pa=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},Ra=function(e,t,n){return t+2<n&&Pa(e.charCodeAt(t+1))&&Pa(e.charCodeAt(t+2))},ka=function(e){return e<=57?e-48:(223&e)-55},Oa=function(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e},Na=function(e){var t=e.length,n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)},La=function(e){for(var t,n=e.length,r=0,o=0,i=!1,a=0;a<n;a++){var s=e.charCodeAt(a);37===s&&Ra(e,a,n)&&(s=16*ka(e.charCodeAt(a+1))+ka(e.charCodeAt(a+2)),a+=2),9!==(t=s)&&10!==t&&12!==t&&13!==t&&32!==t&&(61!==s?!Oa(s)||o>0?i=!0:r++:o++)}return i||o>2||o>0&&(r+o)%4!=0||r%4==1?Na(e):function(e){var t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)}(r)},Ia=function(e,t){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var n=e.indexOf(",");if(n<0)return 0;var r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);for(var i=0,a=0,s=o.length;a<s;a++){var u=o.charCodeAt(a);if(37===u&&Ra(o,a,s))i+=1,a+=2;else if(u<128)i+=1;else if(u<2048)i+=2;else if(u>=55296&&u<=56319&&a+1<s){var c=o.charCodeAt(a+1);c>=56320&&c<=57343?(i+=4,a++):i+=3}else i+=3}return i};function Ca(e){var t="string"==typeof e?e.indexOf("#"):-1;return Ia(-1===t?e:e.slice(0,t),La)}var Da="1.20.0",Ma={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},xa=Xo.isFunction,Ua=function(e){if(!Xo.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Ba=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}},Ha=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},ja=function(e){var t=void 0!==Xo.global&&null!==Xo.global?Xo.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,o=e=Xo.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),i=o.fetch,a=o.Request,s=o.Response,u=i?xa(i):"function"==typeof fetch,c=xa(a),l=xa(s);if(!u)return!1;var h,f=u&&xa(n),d=u&&("function"==typeof r?(h=new r,function(e){return h.encode(e)}):function(){var e=T(S().mark((function e(t){return S().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&&Ba((function(){var e=!1,t=new a(ji.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&&Ba((function(){return Xo.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 pi("Response type '".concat(e,"' is not supported"),pi.ERR_NOT_SUPPORT,n)})}));var m=function(){var e=T(S().mark((function e(t){var n;return S().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(!Xo.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!Xo.isSpecCompliantForm(t)){e.next=9;break}return n=new a(ji.origin,{method:"POST",body:t}),e.next=8,n.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!Xo.isArrayBufferView(t)&&!Xo.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(Xo.isURLSearchParams(t)&&(t+=""),!Xo.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(S().mark((function e(t,n){var r;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Xo.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(S().mark((function e(t){var n,o,u,l,h,d,_,b,E,w,T,A,R,k,O,N,L,I,C,D,M,x,U,B,H,j,z,F,G,K,Y,W,V,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,Se;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=ga(t),o=n.url,u=n.method,l=n.data,h=n.signal,d=n.cancelToken,_=n.timeout,b=n.onDownloadProgress,E=n.onUploadProgress,w=n.responseType,T=n.headers,A=n.withCredentials,R=void 0===A?"same-origin":A,k=n.fetchOptions,O=n.maxContentLength,N=n.maxBodyLength,L=n.maxRedirects,I=Xo.isNumber(O)&&O>-1,C=Xo.isNumber(N)&&N>-1,D=function(e){return Xo.hasOwnProp(t,e)?t[e]:void 0},M=i||fetch,w=w?(w+"").toLowerCase():"text",x=ma([h,d&&d.toAbortSignal()],_),U=null,B=x&&x.unsubscribe&&function(){x.unsubscribe()},j=null,z=function(){return new pi("Request body larger than maxBodyLength limit",pi.ERR_BAD_REQUEST,t,U)},e.prev=11,F=void 0,(G=D("auth"))&&(K=Xo.getSafeProp(G,"username")||"",Y=Xo.getSafeProp(G,"password")||"",F={username:K,password:Y}),Ha(o)&&(W=new URL(o,ji.origin),F||!W.username&&!W.password||(V=Ua(W.username),q=Ua(W.password),F={username:V,password:q}),(W.username||W.password)&&(W.username="",W.password="",o=W.href)),F&&(T.delete("authorization"),T.set("Authorization","Basic "+btoa((S=(F.username||"")+":"+(F.password||""),encodeURIComponent(S).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(!(Ca(o)>O)){e.next=21;break}throw new pi("maxContentLength size of "+O+" exceeded",pi.ERR_BAD_RESPONSE,t,U);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>N)){e.next=29;break}throw z();case 29:if(X=C&&(Xo.isReadableStream(l)||Xo.isStream(l)),Z=function(e,t,n){return Aa(e,65536,(function(e){if(C&&e>N)throw j=z();t&&t(e)}),n)},!p||"get"===u||"head"===u||!E&&!X){e.next=43;break}if(null!=H){e.next=38;break}return e.next=35,y(T,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"}),Xo.isFormData(l)&&($=Q.headers.get("content-type"))&&T.setContentType($),Q.body&&(ee=E&&oa(H,ra(ia(E)))||[],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 pi("Stream request bodies are not supported by the current fetch implementation",pi.ERR_NOT_SUPPORT,t,U);case 49:return Xo.isString(R)||(R=R?"include":"omit"),oe=c&&"credentials"in a.prototype,Xo.isFormData(l)&&(ie=T.getContentType())&&/^multipart\/form-data/i.test(ie)&&!/boundary=/i.test(ie)&&T.delete("content-type"),T.set("User-Agent","axios/"+Da,!1),(ae=null==k?k:Object.assign(Object.create(null),k))&&(delete ae.body,delete ae.headers,delete ae.method,delete ae.signal,delete ae.duplex,delete ae.credentials),se=Object.assign(Object.create(null),ae,{signal:x,method:u.toUpperCase(),headers:ti(T.normalize()),body:l,duplex:"half",credentials:oe?R:void 0}),c&&(Xo.forEach(Ma,(function(e,t){void 0===se[t]&&(se[t]=e)})),void 0===se.signal&&(se.signal=null),void 0===se.body&&(se.body=null)),0===L&&(se.redirect="manual",ae&&(ae.redirect="manual")),U=c&&new a(o,se),e.next=61,c?M(U,ae):M(o,se);case 61:if(ue=e.sent,ce=ci.from(ue.headers),!I){e.next=67;break}if(!(null!=(le=Xo.toFiniteNumber(ce.getContentLength()))&&le>O)){e.next=67;break}throw new pi("maxContentLength size of "+O+" exceeded",pi.ERR_BAD_RESPONSE,t,U);case 67:return he=g&&("stream"===w||"response"===w),g&&ue.body&&(b||I||he&&B)&&(fe={},["status","statusText","headers"].forEach((function(e){fe[e]=ue[e]})),de=Xo.toFiniteNumber(ce.getContentLength()),pe=b&&oa(de,ra(ia(b),!0))||[],ge=P(pe,2),ve=ge[0],me=ge[1],0,ye=function(e){if(I&&e>O)throw new pi("maxContentLength size of "+O+" exceeded",pi.ERR_BAD_RESPONSE,t,U);ve&&ve(e)},ue=new s(Aa(ue.body,65536,ye,(function(){me&&me(),B&&B()})),fe)),w=w||"text",e.next=72,v[Xo.findKey(v,w)||"text"](ue,t);case 72:if(_e=e.sent,!I||g||he){e.next=77;break}if(null!=_e&&("number"==typeof _e.byteLength?be=_e.byteLength:"number"==typeof _e.size?be=_e.size:"string"==typeof _e&&(be="function"==typeof r?(new r).encode(_e).byteLength:_e.length)),!("number"==typeof be&&be>O)){e.next=77;break}throw new pi("maxContentLength size of "+O+" exceeded",pi.ERR_BAD_RESPONSE,t,U);case 77:return!he&&B&&B(),e.next=80,new Promise((function(e,n){Zi(e,n,{data:_e,headers:ci.from(ue.headers),status:ue.status,statusText:ue.statusText,config:t,request:U})}));case 80:return e.abrupt("return",e.sent);case 83:if(e.prev=83,e.t1=e.catch(11),B&&B(),!(x&&x.aborted&&x.reason instanceof pi)){e.next=92;break}throw(Ee=x.reason).config=t,U&&(Ee.request=U),e.t1!==Ee&&Object.defineProperty(Ee,"cause",{__proto__:null,value:e.t1,writable:!0,enumerable:!1,configurable:!0}),Ee;case 92:if(!j){e.next=95;break}throw U&&!j.request&&(j.request=U),j;case 95:if(!(e.t1 instanceof pi)){e.next=98;break}throw U&&!e.t1.request&&(e.t1.request=U),e.t1;case 98:if(!e.t1||"TypeError"!==e.t1.name||!/Load failed|fetch/i.test(e.t1.message)){e.next=102;break}throw Se=new pi("Network Error",pi.ERR_NETWORK,t,U,e.t1&&e.t1.response),Object.defineProperty(Se,"cause",{__proto__:null,value:e.t1.cause||e.t1,writable:!0,enumerable:!1,configurable:!0}),Se;case 102:throw pi.from(e.t1,e.t1&&e.t1.code,t,U,e.t1&&e.t1.response);case 103:case"end":return e.stop()}var S}),e,null,[[11,83]])})));return function(t){return e.apply(this,arguments)}}()},za=new Map,Fa=function(e){for(var t,n,r=e&&e.env||{},o=r.fetch,i=[r.Request,r.Response,o],a=i.length,s=za;a--;)t=i[a],void 0===(n=s.get(t))&&s.set(t,n=a?new Map:ja(r)),s=n;return n},Ga=(Fa(),{http:gi,xhr:va,fetch:{get:Fa}});Xo.forEach(Ga,(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 Ka=function(e){return"- ".concat(e)},Ya=function(e){return Xo.isFunction(e)||null===e||!1===e};var Wa={getAdapter:function(e,t){for(var n,r,o=(e=Xo.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var s=void 0;if(r=n=e[a],!Ya(n)&&void 0===(r=Ga[(s=String(n)).toLowerCase()]))throw new pi("Unknown adapter '".concat(s,"'"));if(r&&(Xo.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(Ka).join("\n"):" "+Ka(u[0]):"as no adapter specified";throw new pi("There is no suitable adapter to dispatch the request "+c,pi.ERR_NOT_SUPPORT)}return r},adapters:Ga};function Va(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xi(null,e)}function qa(e){var t=Xo.toSafeFlatObject(e);return Va(t),t.headers=ci.from(Xo.getSafeProp(t,"headers")),t.data=Vi.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Wa.getAdapter(t.adapter||Wi.adapter,t)(t).then((function(e){Va(t),t.response=e;try{e.data=Vi.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=ci.from(e.headers),e}),(function(e){if(!qi(e)&&(Va(t),e&&e.response)){t.response=e.response;try{e.response.data=Vi.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=ci.from(e.response.headers)}return Promise.reject(e)}))}var Ja={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ja[e]=function(n){return R(n)===e||"a"+(t<1?"n ":" ")+e}}));var Xa={};Ja.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Da+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new pi(r(o," has been removed"+(t?" in "+t:"")),pi.ERR_DEPRECATED);return t&&!Xa[o]&&(Xa[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)}},Ja.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var Za={assertOptions:function(e,t,n){if("object"!==R(e)||null===e)throw new pi("options must be an object",pi.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 pi("option "+i+" must be "+u,pi.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new pi("Unknown option "+i,pi.ERR_BAD_OPTION)}},validators:Ja},Qa=Za.validators,$a=function(){function e(t){u(this,e),this.defaults=t||{},this.interceptors={request:new Ii,response:new Ii}}var t;return l(e,[{key:"request",value:(t=T(S().mark((function e(t,n){var r,o,i,a,s,u,c;return S().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)try{r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,o=r.stack,i="","string"==typeof o&&(a=o.indexOf("\n"),i=-1===a?"":o.slice(a+1)),e.t0.stack?i&&(s=i.indexOf("\n"),u=-1===s?-1:i.indexOf("\n",s+1),c=-1===u?"":i.slice(u+1),String(e.t0.stack).endsWith(c)||(e.t0.stack+="\n"+i)):e.t0.stack=i}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){var n=this;"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=t=da(this.defaults,t),o=r.transitional,i=r.paramsSerializer,a=r.headers;void 0!==o&&Za.assertOptions(o,{silentJSONParsing:Qa.transitional(Qa.boolean),forcedJSONParsing:Qa.transitional(Qa.boolean),clarifyTimeoutError:Qa.transitional(Qa.boolean),legacyInterceptorReqResOrdering:Qa.transitional(Qa.boolean),advertiseZstdAcceptEncoding:Qa.transitional(Qa.boolean),validateStatusUndefinedResolves:Qa.transitional(Qa.boolean)},!1),null!=i&&(Xo.isFunction(i)?t.paramsSerializer={serialize:i}:Za.assertOptions(i,{encode:Qa.function,serialize:Qa.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Za.assertOptions(t,{baseUrl:Qa.spelling("baseURL"),withXsrfToken:Qa.spelling("withXSRFToken")},!0),t.method=(Xo.getSafeProp(t,"method")||Xo.getSafeProp(this.defaults,"method")||"get").toLowerCase();var s=a&&Xo.merge(a.common,a[t.method]);a&&Xo.forEach(Gi.concat("common"),(function(e){delete a[e]})),t.headers=ci.concat(s,a);var u=[],c=!0;this.interceptors.request.forEach((function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){c=c&&e.synchronous;var n=t.transitional||Ci;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)}}));var l,h=[];this.interceptors.response.forEach((function(e){h.push(e.fulfilled,e.rejected)}));var f,d=0;if(!c){var p=[qa.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,h),f=p.length,l=Promise.resolve(t);d<f;)l=l.then(p[d++],p[d++]);return l}f=u.length;for(var g=t;d<f;){var v=u[d++],m=u[d++];try{g=v?v(g):g}catch(e){if(!m){l=Promise.reject(e);break}try{var y=m.call(this,e);Xo.isThenable(y)&&(l=Promise.resolve(y).then((function(){return qa.call(n,g)})))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=qa.call(this,g)}catch(e){l=Promise.reject(e)}for(d=0,f=h.length;d<f;)l=l.then(h[d++],h[d++]);return l}},{key:"getUri",value:function(e){return Pi(ha((e=da(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}]),e}();Xo.forEach(["delete","get","head","options"],(function(e){$a.prototype[e]=function(t,n){return this.request(da(n||{},{method:e,url:t,data:n&&Xo.hasOwnProp(n,"data")?n.data:void 0}))}})),Xo.forEach(["post","put","patch","query"],(function(e){function t(t){return function(n,r,o){return this.request(da(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}$a.prototype[e]=t(),"query"!==e&&($a.prototype[e+"Form"]=t(!0))}));var es=$a,ts=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 Xi(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}(),ns=ts;var rs={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rs).forEach((function(e){var t=P(e,2),n=t[0],r=t[1];void 0===rs[r]&&(rs[r]=n)}));var os=rs;var is=function e(t){var n=new es(t),r=Vr(es.prototype.request,n);return Xo.extend(r,es.prototype,n,{allOwnKeys:!0}),Xo.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(da(t,n))},r}(Wi);is.Axios=es,is.CanceledError=Xi,is.CancelToken=ns,is.isCancel=qi,is.VERSION=Da,is.toFormData=bi,is.AxiosError=pi,is.Cancel=is.CanceledError,is.all=function(e){return Promise.all(e)},is.spread=function(e){return function(t){return e.apply(null,t)}},is.isAxiosError=function(e){return Xo.isObject(e)&&!0===e.isAxiosError},is.mergeConfig=da,is.AxiosHeaders=ci,is.formToJSON=function(e){return Fi(Xo.isHTMLForm(e)?new FormData(e):e)},is.getAdapter=Wa.getAdapter,is.HttpStatusCode=os,is.default=is;var as=is,ss=n(34),us=function(){try{var e;return(null===(e=navigator)||void 0===e?void 0:e.javaEnabled())||!1}catch(e){}return!1},cs={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"},ls="ANTOM_PAYMENT_WEB",hs=(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 fs(){return new Promise((function(e){window&&window.AlipayJSBridge?e():document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)}))}var ds=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){fs().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:hs},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:Gr(t.data),headers:ps(t.headers)};n(o)}))}))}}]),e}();function ps(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 gs=function(e){var t=ss(e,"Result-Status")||ss(e,"result-status","");if(!t)return null;if(2e3==+t)return{success:!1,errorCode:Rr.API_NOT_LOGIN,errorMessage:Tr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(4001==+t)return{success:!1,errorCode:Rr.API_GATEWAY_TIMEOUT,errorMessage:Tr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(1e3!=+t){var n=ss(e,"Tips")||ss(e,"tips","");return{success:!1,errorCode:Rr.API_GATEWAY_ERROR,errorMessage:n?decodeURIComponent(n):Tr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t}}return null},vs={};function ms(e,t,n){return ys.apply(this,arguments)}function ys(){return(ys=T(S().mark((function e(t,n,r){var o,i,a,s,u,c,l,h,f,d,p,g,v,m,y,_,E,w,T,A,P,R,k;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=b(b(b({},vs),r),{},{envInfo:b(b({},vs.envInfo),null==r?void 0:r.envInfo),headers:b(b({},vs.headers),null==r?void 0:r.headers)}),a=Lr(i.tracker,i.scope),s=Ir(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:zr?"WAP":"WEB",browserInfo:{browserJavaScriptEnabled:!0,browserJavaEnabled:us(),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:Ar((null==i?void 0:i.locale)||(null==i||null===(o=i.envInfo)||void 0===o?void 0:o.locale))})).terminalType&&(u.osType=Hr?"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=_s(t,i),e.next=18,h({data:c});case 18:if(f=e.sent,d=f.data,p=f.headers,g=d||{},v=ss(p,"Mgw-TraceId")||ss(p,"mgw-traceid",""),g.traceId=v,!(m=gs(p))){e.next=29;break}throw y=m.errorMessage,_=m.errorCode,new Nr(y,_,"SERVER_API","".concat(v," (").concat(t,")"));case 29:if(g.success){e.next=36;break}throw T=g.errorMessage||g.resultMessage||Tr.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===(w=g.extendInfo)||void 0===w?void 0:w.mulityLanguageMapping)&&(T=Tr.get({id:"server.".concat(A),defaultMessage:Tr.get({id:"event.callback.code.${errorCode}",defaultMessage:Tr.get({id:"ckp.paymentError.${errorCode}",defaultMessage:Tr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})})})})),(P=new Or(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),!Nr.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 k=e.t0,s(k),e.abrupt("return",Promise.reject(new Nr(k.message,null!==(R=k.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 _s(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)||cs[i],u=b(y(y(y(y(y(y(y(y({appId:(null==t?void 0:t.appId)||(null==a?void 0:a.appId)||ls,workspaceId:"pre"===(null==t?void 0:t.env)?"pre":"default"},"x-cors-".concat(ls.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)||"2.0.27"),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"===vs.appType?d=new ds({baseURL:s,method:"POST",timeout:l,headers:h}):d=as.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}ms.setGlobalOptions=function(e){Object.assign(vs,e)};"".concat(window.location.origin,"/elements/src/pages");var bs=Kr,Es=function(){try{return"undefined"!=typeof window&&"true"===window.localStorage.getItem("antom-web-checkout-v2_modern_web")}catch(e){return!1}};function Ss(e){return e}var ws=function(e){return function(e){var t;if(!e)return{modernWeb:!1};var n=bs(e);return{modernWeb:!(null==n||null===(t=n.flowSwitchTags)||void 0===t||!t.split(",").includes("elementV3"))||Es()}}(e).modernWeb},Ts=n(606),As=n(731),Ps=n(270);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 Ps.apply(void 0,[{},e].concat(n))}var ks=new he({appId:"180020050100012557",performance:!1,error:!1,env:"PROD",compactExtraInfo:!0}),Os="7981",Ns=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){ks.log(b({code:"".concat(Os).concat(e)},t))}},Ls=Ns(),Is=Ns("event"),Cs=Ns("mount"),Ds=Ns("handshake"),Ms=Ns("merchant"),xs=(Ns("element"),function(e,t,n,r){var o;if("ERROR"===e){var i=r||{};Ls({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];Is({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)}),Us=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}(L.isError(e)?e.toJSON():e);xs("ERROR",t.source,t.operationType||t.message||"Unknown Error",t)}},Bs=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)}(L),Hs=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){Ts(As(n.prototype),"_transferReceivePort",this).call(this,e)}},{key:"_addPort",value:function(e){Ts(As(n.prototype),"_addPort",this).call(this,e)}},{key:"_transferSendPort",value:function(e){Ts(As(n.prototype),"_transferSendPort",this).call(this,e)}},{key:"setTarget",value:function(e){Ts(As(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=Ts(As(n.prototype),"setDebugCallback",this)).call.apply(e,[this].concat(r))}}],[{key:"getGlobalBridge",value:function(){return se.getGlobalBridge("HOST")}}]),n}(se),js=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)}(Bs),zs=function(e){return new Bs("Element destroyed, previous status: ".concat(e),"ELEMENT_INSTANCE_DESTROYED","SDK_USAGE")},Fs=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",[]),y(this,"submitPromise",void 0),this.config=n,this._isMainElement=n.isMainElement,this._elementMode=n.elementMode,this.name=t,this.bridge=new Hs(t),this.bridge.setOrigin(n.targetOrigin),n.trackId&&ks.setTrackId(n.trackId),this.bridge.setDebugCallback((function(e,t){try{if(e.type.endsWith(ne.UPDATE_CONFIG)||e.type.endsWith(ne.HEIGHT_UPDATE))return;var n,r;if(e.type.endsWith(ne.MESSAGE))xs(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);else e.type.endsWith(ne.ERROR)&&"IN"===t?Us(e.payload):xs("INFO","OUT"===t?"SDK_INTERNAL":"APP_RUNTIME",e.type,e.payload)}catch(e){}})),this.status="initialized"}var t,n,r,o,i;return l(e,[{key:"submit",value:function(e){throw new Bs("This element not support submit","NOT_SUPPORT_SUBMIT","SDK_USAGE")}},{key:"setup",value:(i=T(S().mark((function e(){return S().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:"_setup",value:(o=T(S().mark((function e(){var t,n,r,o,i=this;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=function(){return"destroyed"===i.status})()){e.next=3;break}return e.abrupt("return");case 3:return n=function(){},r=new Promise((function(e,t){n=i._addHook("ondestroy",(function(e){return t(zs(e))}))})),o=Promise.resolve().then(T(S().mark((function e(){var n;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,i.setup();case 4:return n=e.sent,e.abrupt("return",t()?void 0:n);case 6:case"end":return e.stop()}}),e)})))),e.prev=6,e.next=9,Promise.race([o,r]);case 9:return e.abrupt("return",e.sent);case 10:return e.prev=10,t()||n(),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[6,,10,13]])}))),function(){return o.apply(this,arguments)})},{key:"is",value:function(e){return this.name.startsWith(e.elementType)}},{key:"mount",value:(r=T(S().mark((function e(t){var n,r,o,i,a=this;return S().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 js({message:"element status is ".concat(this.status,", can not mount again"),params:{status:this.status}},"MOUNT_NOT_SUPPORT"),Us(n),n;case 4:return r=Date.now(),o=X((function(){return Promise.all([a._setup(),a._mount(t)])}),15e3,new js("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];Ms({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){"destroyed"!==a.status&&a.unmount();var t=Bs.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}),Us(t),t})).finally((function(){i()})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_mount",value:(n=T(S().mark((function e(t){var n=this;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=T(S().mark((function e(r,o){var i,a,s,u,c,l,h,f,d;return S().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 js({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 js("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=n._addHook("ondestroy",(function(e){o(zs(e))})),n.bridge.once(ne.READY_HANDSHAKE,(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();xs("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=[]),Ds({msg:n.name,d1:(null==e?void 0:e.version)||"未知版本",m1:Math.round(Date.now()-t),m2:1,m3:Math.round(Date.now()-f)})})),d(),r()}else d()})),n.iframe.onerror=function(e){o(new js("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 js("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 n.apply(this,arguments)})},{key:"updateConfig",value:(t=T(S().mark((function e(t){var n,r,o,i=this;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"destroyed"!==this.status){e.next=3;break}throw new Bs("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 Bs({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),xs("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 Bs("Update config timeout","UPDATE_CONFIG_TIMEOUT","SYSTEM")),e.abrupt("return",r().catch((function(e){return n(),{error:Bs.unificationError(e).toJSON()}})));case 12:return e.prev=12,e.t0=e.catch(0),o=Bs.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 t.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))):xs("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}):Us(new Bs("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:function(e){var t=this;return"HOST"!==this.bridge.mode?Promise.reject(new Error("submit method only available in HOST mode")):(this.submitPromise||(this.submitPromise=new Promise((function(n){t.send(ne.SUBMIT,e),t.bridge.once(ne.SUBMIT_REPLY,(function(e){n(e)}))})).finally((function(){t.submitPromise=void 0}))),this.submitPromise)}},{key:"destroy",value:function(){var e,t=this;if("destroyed"!==this.status){if(null===(e=this.hooks.ondestroy)||void 0===e||e.forEach((function(e){return e(t.status)})),this.hooks={},this.bridge.destroy(),"mounted"===this.status||"ready"===this.status)this.unmount();else{var n,r=null===(n=this.iframe)||void 0===n?void 0:n.parentNode;r&&r.removeChild(this.iframe)}this.status="destroyed"}else xs("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(Fs,"elementType",void 0);E()(E()(E()({},kr),{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 Gs=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)}(Or),Ks={default:{theme:"light",backgroundColor:"#ffffff"},light:{theme:"light",backgroundColor:"#ffffff"},night:{theme:"dark",backgroundColor:"#000000"},agateGreen:{theme:"dark",backgroundColor:"#344343"},nostalgicGray:{theme:"light",backgroundColor:"#e8e8e8"},gamingPurple:{theme:"dark",backgroundColor:"#1A1F2E"},cherryBlossomPink:{theme:"light",backgroundColor:"#FCF8FA"}};function Ys(e,t){var n;if(!e)throw new Gs("sessionData is required","SESSION_DATA_INVALID","SDK_USAGE");xs("INFO","SDK_USAGE","Setup called with sessionData:",{sessionData:e});var r=bs(e);if(!r)throw new Gs("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 Gs("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 Ws="ams-popup",Vs=300,qs="ams-component-popup-loading",Js="\n .".concat(Ws,"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(Ws,"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(Ws,"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(Ws,"fadeIn {\n /* 添加淡入动画 */\n animation: fadeIn ").concat(Vs,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(Ws,"fadeOut {\n /* 添加淡出动画 */\n animation: fadeOut ").concat(Vs,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(Ws,"-drawer-enter {\n animation: slideIn ").concat(Vs,"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(Ws,"-drawer-exit {\n animation: slideOut ").concat(Vs,'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'),Xs=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(qs),n.id=qs,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=Fr?t:100*n/e;return Math.min(r,t)}(),"px"),n};var Zs=function(e){var t=e.mode,n=e.url,r=e.loadingConfig,o=e.showClose,i=void 0===o||o,a=e.onClose,s=e.textDirection,u=void 0===s?"ltr":s,c=e.showLoading,l=void 0===c||c,h=document.createElement("div");h.classList.add("".concat(Ws,"overlay"),"".concat(Ws,"fadeIn"));var f=document.createElement("div");"desktop"===t?(f.classList.add("".concat(Ws,"modal"),"".concat(Ws,"fadeIn")),f.style.width="656px",f.style.height="620px",f.style.borderRadius="12px"):(f.classList.add("".concat(Ws,"modal-mobile"),"".concat(Ws,"-drawer-enter")),f.style.width="100%",f.style.height="80vh",f.style.borderRadius="12px 12px 0 0"),f.setAttribute("dir",u);var d=function(e,t,n){return function(){t&&(t.classList.remove("".concat(Ws,"fadeIn")),t.classList.add("".concat(Ws,"fadeOut")),"desktop"===e?(n.classList.remove("".concat(Ws,"fadeIn")),n.classList.add("".concat(Ws,"fadeOut"))):(n.classList.remove("".concat(Ws,"-drawer-enter")),n.classList.add("".concat(Ws,"-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)}),Vs))}}(t,h,f),p=document.createElement("iframe");p.src=n,p.style.border="none",p.style.width="100%",p.style.height="100%";var g,v=r||{},m=v.theme,y=void 0===m?"light":m,_=v.backgroundColor,b=void 0===_?"#ffffff":_,E=Xs(y);if(p.addEventListener("load",(function e(){f.removeChild(E),p.removeEventListener("load",e)})),i){var S=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:(g=!1,A()(w()().mark((function e(){var t,n;return w()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!g){e.next=2;break}return e.abrupt("return");case 2:return null===(t=E.parentNode)||void 0===t||t.removeChild(E),f.removeChild(p),n=Xs(y,Tr.get({defaultMessage:"closing",id:"antom.common.closing"})),f.appendChild(n),g=!0,e.prev=7,e.next=10,null==a?void 0:a();case 10:return e.prev=10,g=!1,e.finish(10);case 13:d();case 14:case"end":return e.stop()}}),e,null,[[7,,10,13]])})))),textDirection:u});p.addEventListener("load",(function e(){f.removeChild(S),p.removeEventListener("load",e)})),f.appendChild(S)}if(l){f.style.backgroundColor=b,p.style.backgroundColor=b;p.addEventListener("load",(function e(){var t;null===(t=E.parentNode)||void 0===t||t.removeChild(E),p.removeEventListener("load",e)})),f.appendChild(E)}f.appendChild(p);var T,P=document.getElementsByTagName("body")[0];return(T=document.createElement("style")).innerHTML=Js,document.head.appendChild(T),P.appendChild(h),P.appendChild(f),{iframe:p,destroy:d}};var Qs={position:"bottom-right",backgroundColor:"rgba(0, 0, 0, 0.80)",color:"#ffffff",padding:"20px 16px",borderRadius:"8px",fontSize:"14px",zIndex:9999,width:"148px",duration:2e3},$s={"top-left":{top:"20px",left:"20px"},"top-right":{top:"20px",right:"20px"},"bottom-left":{bottom:"20px",left:"20px"},"bottom-right":{top:"0",right:"0",bottom:"0",left:"0"},center:{top:"0",right:"0",bottom:"0",left:"0"}},eu={SUCCESS:"https://cdn.marmot-cloud.com/storage/2024/07/10/10b191d6-0b0a-4bd9-96cc-310b7f2a8530.svg",FAIL:"https://cdn.marmot-cloud.com/storage/2024/11/08/4ae27343-61d2-4a07-b323-c951c7711b40.svg"},tu="antom_toast-container";function nu(e){if(null!=e&&e.message){var t=E()(E()({},Qs),e),n=document.getElementById(tu);n?n.innerHTML="":((n=document.createElement("div")).id=tu,Object.assign(n.style,{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",pointerEvents:"none"}),document.body.appendChild(n)),n.style.top="",n.style.right="",n.style.bottom="",n.style.left="",n.style.zIndex=String(t.zIndex),Object.assign(n.style,$s[t.position]);var r=document.createElement("div");if(Object.assign(r.style,{backgroundColor:t.backgroundColor,color:t.color,padding:t.padding,borderRadius:t.borderRadius,fontSize:t.fontSize,opacity:"0",transition:"opacity ".concat(300,"ms ease-in-out"),display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",width:t.width,boxSizing:"border-box"}),t.icon){var o=document.createElement("img");Object.assign(o.style,{width:"40px",height:"40px"}),o.src=eu[t.icon],r.appendChild(o)}var i=document.createElement("span");Object.assign(i.style,{textAlign:"center",marginTop:"12px",lineHeight:"20px",fontFamily:"Noto Sans",fontWeight:"400",fontSize:"14px"}),i.textContent=t.message,r.appendChild(i),n.appendChild(r),setTimeout((function(){r.style.opacity="1"}),10),setTimeout((function(){r.style.opacity="0",setTimeout((function(){n.remove()}),300)}),t.duration)}}function ru(e){return ou.apply(this,arguments)}function ou(){return(ou=A()(w()().mark((function e(t){var n;return w()().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:Gs.unificationError(e.t0).toJSON(),data:void 0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function iu(e,t){return au.apply(this,arguments)}function au(){return(au=A()(w()().mark((function e(t,n){return w()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ms("com.ipay.iexpfront.one.account.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function su(e,t){return uu.apply(this,arguments)}function uu(){return(uu=A()(w()().mark((function e(t,n){return w()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ms("com.ipay.iexpcashier.sdkAction.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var cu="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",lu=null;var hu=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,"_activePay",null),this.opts=t}var t,n;return h()(e,[{key:"startPay",value:(n=A()(w()().mark((function e(){var t=this;return w()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._activePay){e.next=2;break}return e.abrupt("return",this._activePay);case 2:return this._activePay=this._startPayInternal().finally((function(){t._activePay=null})),e.abrupt("return",this._activePay);case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"_startPayInternal",value:(t=A()(w()().mark((function e(){var t,n,r,o,i,a,s,u=this;return w()().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,lu||(lu=new Promise((function(e){if(jr)return e(!1);if(window.ApplePaySession)return e(!0);var t=function(t){clearTimeout(n),t||(lu=null),e(t)},n=setTimeout((function(){console.warn("[ApplePay] Apple Pay SDK load timed out, will retry on next call"),t(!1)}),1e4),r=document.querySelector('script[src="'.concat(cu,'"]'));if(r)return window.ApplePaySession?void t(!0):(r.addEventListener("load",(function(){return t(!0)})),void r.addEventListener("error",(function(){return t(!1)})));var o=document.createElement("script");o.src=cu,o.onload=function(){return t(!0)},o.onerror=function(){return t(!1)},document.head.appendChild(o)})),lu);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()(w()().mark((function e(t){var r,o;return w()().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()(w()().mark((function e(t){var r,o,i,a,c,l,h;return w()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.settled){e.next=2;break}return e.abrupt("return");case 2:if(u.phase="authorizing",r=(null==t?void 0:t.payment)||{},o=r.token,i=r.billingContact,a=r.shippingContact,o){e.next=9;break}return u.safeComplete(s.STATUS_FAILURE),n({errorCode:"APPLE_PAY_TOKEN_ERROR"}),e.abrupt("return");case 9:return e.prev=9,e.next=12,u.opts.callbacks.onAuthorized({token:o,billingContact:i,shippingContact:a});case 12:(c=e.sent).success?(u.safeComplete(s.STATUS_SUCCESS),n()):("MERCHANT_CONFIRM_ABORT"===c.errorCode?u.cancelReason="MERCHANT_ABORT":"MERCHANT_CONFIRM_TIMEOUT"===c.errorCode&&(u.cancelReason="MERCHANT_TIMEOUT"),u.safeComplete(s.STATUS_FAILURE),"MERCHANT_CONFIRM_ABORT"!==c.errorCode&&"MERCHANT_CONFIRM_TIMEOUT"!==c.errorCode||u.safeAbort(),l=c.errorCode||"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED",c.errorMessage&&console.warn("[ApplePay] onAuthorized returned failure:",c.errorMessage),n({errorCode:l})),e.next=22;break;case 16:e.prev=16,e.t0=e.catch(9),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 22:case"end":return e.stop()}}),e,null,[[9,16]])})));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"})):"MERCHANT_TIMEOUT"===u.cancelReason?(u.phase="idle",void n({errorCode:"MERCHANT_CONFIRM_TIMEOUT"})):"validating"===u.phase?(u.phase="idle",void n({errorCode:"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED"})):(u.phase,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}();function fu(e,t,n){if(!e)return null;try{var r,o,i,a,s,u,c=bs(e),l=null==c?void 0:c.paymentSessionFactor,h=null==l?void 0:l.recurringInfo;if(!h)return null;var f=null==l||null===(r=l.order)||void 0===r?void 0:r.orderDescription;if(!f||!h.managementURL)return null;var d=E()(E()(E()({type:"final",label:null!==(o=h.title)&&void 0!==o?o:null==t?void 0:t.merchantName,amount:null==n?void 0:n.value,paymentTiming:"recurring"},h.startDate?{recurringPaymentStartDate:new Date(1e3*h.startDate)}:{}),h.endDate?{recurringPaymentEndDate:new Date(1e3*h.endDate)}:{}),{},{recurringPaymentIntervalUnit:null!==(i=h.intervalUnit)&&void 0!==i?i:"month",recurringPaymentIntervalCount:null!==(a=h.intervalCount)&&void 0!==a?a:1});return{paymentDescription:f,billingAgreement:null!==(s=h.agreementDescription)&&void 0!==s?s:void 0,regularBilling:d,managementURL:h.managementURL,tokenNotificationURL:null!==(u=h.tokenNotificationURL)&&void 0!==u?u:void 0}}catch(e){return null}}}(),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={381: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,m=e.single,v=void 0===m||m,y=e.namespace;return function(e){return r(t,void 0,void 0,(function(){var t,l,m=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(m,[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,(v?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(159),a=n(858);Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return a.loadScript}});var s=null;function u(e,t,n){return s=s?s.then((function(r){return r.isDestroyed?c(e,t,n):r})):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}))}},159:function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},i=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())}))},a=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 s=n(858),u=function(){function e(e){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}return Object.defineProperty(e.prototype,"loadTacker",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return(0,s.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-intl-tracker/1.3.0/dist/common.min.js","CompatibleTrackerFull").then((function(t){var n=null==t?void 0:t.variable;if(n)return new n(o({compactExtraInfo:!0,appId:"180020050100012557"},e.initOptions))})).catch((function(){}))}}),Object.defineProperty(e.prototype,"getTracker",{enumerable:!1,configurable:!0,writable:!0,value:function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return this.tracker?[2,this.tracker]:[4,this.loadTacker()];case 1:return(e=t.sent())&&(e.set({keyFormat:"origin",userPathAuto:!1}),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=u;var c=(null===(r="PROD")?void 0:r.toUpperCase())||"PROD",l=["DEV","SIT","PRE","PROD","LOCAL"].includes(c)?c:"PROD";t.tracker=new u({appId:"180020050100012557",env:l,server:"sg",performance:!1,error:!1})},858: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},245:function(e,t,n){var r=n(65).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 m(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function v(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(v(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(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 v(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?v(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 S(e);s=setTimeout(E,function(e){var n=t-(e-u);return h?p(n,i-(e-c)):n}(e))}function S(e){return s=void 0,f&&r?v(e):(r=o=void 0,a)}function w(){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),v(u)}return void 0===s&&(s=setTimeout(E,t)),a}return t=y(t)||0,m(n)&&(l=!!n.leading,i=(h="maxWait"in n)?d(y(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},w.flush=function(){return void 0===s?a:S(g())},w}},34:function(e,t,n){var r=n(65).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 m,v=Array.prototype,y=Function.prototype,_=Object.prototype,b=g["__core-js_shared__"],E=(m=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",S=y.toString,w=_.hasOwnProperty,T=_.toString,A=RegExp("^"+S.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=g.Symbol,R=v.splice,O=H(g,"Map"),N=H(Object,"create"),k=P?P.prototype:void 0,L=k?k.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||Y(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 U(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 S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function B(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 U(n)?n:void 0}I.prototype.clear=function(){this.__data__=N?N(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(N){var n=t[e];return n===o?void 0:n}return w.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return N?void 0!==t[e]:w.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=N&&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(O||C),string:new I}},M.prototype.delete=function(e){return B(this,e).delete(e)},M.prototype.get=function(e){return B(this,e).get(e)},M.prototype.has=function(e){return B(this,e).has(e)},M.prototype.set=function(e,t){return B(this,e).set(e,t),this};var j=F((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Y(e))return L?L.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||Y(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function F(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(F.Cache||M),n}F.Cache=M;var G=Array.isArray;function K(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function Y(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}},270:function(e,t,n){e=n.nmd(e);var r=n(65).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,m=g&&"object"==r(e)&&e&&!e.nodeType&&e,v=m&&m.exports===g,y=v&&f.process,_=function(){try{var e=m&&m.require&&m.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 S,w,T,A=Array.prototype,P=Function.prototype,R=Object.prototype,O=p["__core-js_shared__"],N=P.toString,k=R.hasOwnProperty,L=(S=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",I=R.toString,C=N.call(Object),M=RegExp("^"+N.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=v?p.Buffer:void 0,x=p.Symbol,U=p.Uint8Array,B=D?D.allocUnsafe:void 0,H=(w=Object.getPrototypeOf,T=Object,function(e){return w(T(e))}),j=Object.create,z=R.propertyIsEnumerable,F=A.splice,G=x?x.toStringTag:void 0,K=function(){try{var e=me(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=D?D.isBuffer:void 0,W=Math.max,V=Date.now,q=me(p,"Map"),J=me(Object,"create"),X=function(){function e(){}return function(t){if(!Oe(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=we(e),r=!n&&Se(e),o=!n&&!r&&Ae(e),i=!n&&!r&&!o&&ke(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&&!k.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ve(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];k.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 k.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:k.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():F.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=k.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 Ne(e)&&ue(e)==a}function le(e){return!(!Oe(e)||function(e){return!!L&&L in e}(e))&&(Pe(e)?M:c).test(function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function he(e){if(!Oe(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&&k.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),Oe(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=we(c),p=!d&&Ae(c),g=!d&&!p&&ke(c);h=c,d||p||g?we(s)?h=s:Ne(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=B?B(n):new e.constructor(n);return e.copy(r),r}(c,!0)):g?(f=!1,m=c,v=!0?(y=m.buffer,_=new y.constructor(y.byteLength),new U(_).set(new U(y)),_):m.buffer,h=new m.constructor(v,m.byteOffset,m.length)):h=[]:function(e){if(!Ne(e)||ue(e)!=u)return!1;var t=H(e);if(null===t)return!0;var n=k.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&N.call(n)==C}(c)||Se(c)?(h=s,Se(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,Le(e))}(s):Oe(s)&&!Pe(s)||(h=function(e){return"function"!=typeof e.constructor||ye(e)?{}:X(H(e))}(c))):f=!1}var m,v,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)}}),Le)}function de(e,t){return be(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=W(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 me(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function ve(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=V(),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 Se=ce(function(){return arguments}())?ce:function(e){return Ne(e)&&k.call(e,"callee")&&!z.call(e,"callee")},we=Array.isArray;function Te(e){return null!=e&&Re(e.length)&&!Pe(e)}var Ae=Y||function(){return!1};function Pe(e){if(!Oe(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 Oe(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}function Ne(e){return null!=e&&"object"==r(e)}var ke=b?function(e){return function(t){return e(t)}}(b):function(e){return Ne(e)&&Re(e.length)&&!!h[ue(e)]};function Le(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(!Oe(n))return!1;var o=r(t);return!!("number"==o?Te(n)&&ve(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},822: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}},93:function(e,t,n){var r=n(953);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},953:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},820: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},720:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},748:function(e,t,n){var r=n(820);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},402: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},774:function(e,t,n){var r=n(953);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},164: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},842: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},621:function(e,t,n){var r=n(953);e.exports=function(e){return new r(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},571: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},603:function(e,t,n){var r=n(975),o=n(377);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},86:function(e,t,n){var r=n(893);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},286:function(e,t,n){var r=n(617);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},929:function(e,t,n){var r=n(731),o=n(377),i=n(365);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},762:function(e,t,n){var r=n(893);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},606:function(e,t,n){var r=n(101);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},731: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},832:function(e,t,n){var r=n(975);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},315: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},377: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},454: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},587: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},469: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},928: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},212:function(e,t,n){var r=n(762);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},578:function(e,t,n){var r=n(710);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},710:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},365:function(e,t,n){var r=n(65).default,o=n(402);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},650:function(e,t,n){var r=n(65).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:O(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",m="executing",v="completed",y={};function _(){}function b(){}function E(){}var S={};f(S,c,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(C([])));T&&T!==i&&a.call(T,c)&&(S=T);var A=E.prototype=_.prototype=Object.create(S);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 O(e,n,r){var o=g;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===v){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=N(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=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=p(e,n,r);if("normal"===c.type){if(o=r.done?v:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function N(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,N(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 k(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,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(L),!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),L(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;L(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},975: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},50:function(e,t,n){var r=n(720),o=n(587),i=n(617),a=n(469);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},101:function(e,t,n){var r=n(731);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},705:function(e,t,n){var r=n(748),o=n(454),i=n(617),a=n(928);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},952:function(e,t,n){var r=n(65).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},893:function(e,t,n){var r=n(65).default,o=n(952);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},65: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},617:function(e,t,n){var r=n(820);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},482:function(e,t,n){var r=n(93);e.exports=function(e){return function(){return new r(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},184:function(e,t,n){var r=n(731),o=n(975),i=n(315),a=n(603);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 _u},MessageType:function(){return oe},ModalPort:function(){return te},OpenSDKError:function(){return M},SDKBridge:function(){return ce},adjustSessionData:function(){return Js},awaitWrap:function(){return hu},buildPageUrl:function(){return t},buildRecurringPaymentRequest:function(){return bu},checkSessionData:function(){return $s},debug:function(){return Ae},debugError:function(){return Pe},getDevReqConfig:function(){return o},getLocaleFromRenderData:function(){return s},getMetaData:function(){return Ys},getModalMessageTrackData:function(){return Me},installModalMessageMonitor:function(){return Be},isElements2:function(){return Xs},isModernWeb:function(){return qs},oneAccountQuery:function(){return du},openModal:function(){return iu},parseHostSign:function(){return _o},parseTrackerId:function(){return yo},request:function(){return Fs},sdkQuery:function(){return gu},sdkTracker:function(){return pe},showToast:function(){return lu},themeColorMap:function(){return Qs}});var e={};function t(e,t){return function(e){return"https://checkout.antom.com/".concat(e?"elements2":"elements","/pages")}(t)+(e.startsWith("/")?e:"/".concat(e))}n.r(e),n.d(e,{hasBrowserEnv:function(){return aa},hasStandardBrowserEnv:function(){return ua},hasStandardBrowserWebWorkerEnv:function(){return ca},navigator:function(){return sa},origin:function(){return la}});function o(){}var i=n(286),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(212),c=n.n(u),l=n(606),h=n(731),f=n(705),d=n(50),p=n(650),g=n.n(p),m=n(842),v=n.n(m),y=n(86),_=n.n(y),b=n(571),E=n.n(b),S=n(402),w=n.n(S),T=n(832),A=n.n(T),P=n(929),R=n.n(P),O=n(762),N=n.n(O),k=n(65),L=n.n(k),I=n(184),C={i18nPrefix:"OPENSDK"},M=function(e){T(n,e);var t=P(n);function n(e,r,o,i){var a,s,u,c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];b(this,n);var l,h=i,f=void 0;return e&&"object"===k(e)?(l=e.message,f=e.params):l=e,u=t.call(this,!C.i18n||c&&"SERVER_API"===o?l:C.i18n.get({id:"".concat(C.i18nPrefix,".").concat(r),dm:(null===(a=(s=C).getDefaultMessage)||void 0===a?void 0:a.call(s))||l},f)),O(S(u),"code",void 0),O(S(u),"name","OpenSDKError"),O(S(u),"_openSDKErrorFlag","__OpenSDKErrorFlag__"),O(S(u),"source","SDK_INTERNAL"),O(S(u),"traceId",void 0),O(S(u),"reason",void 0),u.reason=l,u.code=r,u.source=o,u.traceId=h,u}return y(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 D(e instanceof Error?e.message:(null===(t=(r=C).getDefaultMessage)||void 0===t?void 0:t.call(r))||"An unknown error occurred.","UNKNOWN_ERROR",o);return i}},{key:"initConfig",value:function(e){C=u(u({},C),e)}}]),n}(I(Error)),D=function(e){T(n,e);var t=P(n);function n(){var e;b(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)),O(S(e),"name","SDKBridgeError"),e}return y(n)}(M),x=function(e){return f(new Set(e))},U=function(e,t){return e.filter((function(e){return!t.includes(e)}))},B=function(e,t){return e.filter((function(e){return t.includes(e)}))},H=function(e){return"bigint"==typeof e||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e},j=function(e){return"bigint"==typeof e||e>=0&&Number.isSafeInteger(e)};function z(e,t){if(0===t.length)return e;for(var n,r=f(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 F=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:(q("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)},G=/^\+?\d+$/,K=function(e){if(!G.test(e))return Number.NaN;var t=Number.parseInt(e,10);return Number.isSafeInteger(t)?t:(q("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))},Y=function(e){return new RegExp(e.map((function(e){return V(e)})).sort((function(e,t){return t.length-e.length})).join("|"))},W=function(e){return new RegExp("^[".concat(e.map((function(e){return V(e)})).sort((function(e,t){return t.length-e.length})).join(""),"]+$"))},V=function(e){return e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&")},q=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)},J=3.5,X=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(b(this,e),this.minLength=n,"number"!=typeof n)throw new TypeError("Hashids: Provided 'minLength' has to be a number (is ".concat(k(n),")"));if("string"!=typeof t)throw new TypeError("Hashids: Provided 'salt' has to be a string (is ".concat(k(t),")"));if("string"!=typeof r)throw new TypeError("Hashids: Provided alphabet has to be a string (is ".concat(k(r),")"));var i=Array.from(t),a=Array.from(r),s=Array.from(o);this.salt=i;var u=x(a);if(u.length<16)throw new Error("Hashids: alphabet must contain at least ".concat(16," unique characters, provided: ").concat(u.join("")));this.alphabet=U(u,s);var c,l,h,d=B(s,u);(this.seps=z(d,i),0===this.seps.length||this.alphabet.length/this.seps.length>J)&&((c=Math.ceil(this.alphabet.length/J))>this.seps.length&&(l=c-this.seps.length,(h=this.seps).push.apply(h,f(this.alphabet.slice(0,l))),this.alphabet=this.alphabet.slice(l)));this.alphabet=z(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=Y(this.guards),this.sepsRegExp=Y(this.seps),this.allowedCharsRegExp=W([].concat(f(this.alphabet),f(this.guards),f(this.seps)))}return y(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(f(null!=e?[e]:[]),r);return 0===i.length?t:(i.every(H)||(i=i.map((function(e){return"bigint"==typeof e||"number"==typeof e?e:K(String(e))}))),i.every(j)?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(k(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(k(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=f(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=z(n,c));if((u=o).push.apply(u,f(l)),s+1<e.length){var h=l[0].codePointAt(0)+s,d="bigint"==typeof r?Number(r%BigInt(h)):r%h;o.push(a[d%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,d;n=z(n,n),(h=o).unshift.apply(h,f(n.slice(l))),(d=o).push.apply(d,f(n.slice(0,l)));var p=o.length-this.minLength;if(p>0){var g=p/2;o=o.slice(g,g+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=z(s,[o].concat(f(this.salt),f(s)).slice(0,s.length));u.push(F(Array.from(l),h)),s=h}}catch(e){c.e(e)}finally{c.f()}return this._encode(u).join("")!==e?[]:u}}]),e}(),Z=new X("intl-open-sdk",6);function Q(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 $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+Z.encode("".concat(Date.now()).concat(Math.ceil(100*Math.random())))};function ee(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 te=function(){function e(t,n){var r=this;b(this,e),O(this,"targetPort",void 0),O(this,"handlers",new Map),O(this,"debugCallback",void 0),O(this,"name",void 0),O(this,"initialized",!1),O(this,"recipientIsReady",!1),O(this,"handleMessage",(function(e){var t=e.data,n=t.type,o=t.payload,i=r.handlers.get(n);i&&(r.debugCallback&&r.debugCallback(u(u({},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 y(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=m(p().mark((function o(i){return p().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:$("modal_port_"),type:e,payload:t};this.debugCallback&&this.debugCallback(u(u({},n),{},{type:"MODAL_PORT@"+n.type}),"OUT"),this.targetPort.postMessage(n)}}]),e}(),ne=function(){function e(t){b(this,e),O(this,"targetPorts",[]),O(this,"name",void 0),this.name=t}var t;return y(e,[{key:"addPort",value:function(e){var t;(t=this.targetPorts).push.apply(t,f(e))}},{key:"removePort",value:function(e){this.targetPorts=this.targetPorts.filter((function(t){return e!==t}))}},{key:"getValues",value:(t=m(p().mark((function e(t){var n,r,o=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.timeout)||1e4,r=Q((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=d(o,2),a=i[0];"SEND_ELEMENT_VALUE"===i[1]&&t(O({},a,r.payload))}else n(new Error("collect error"))}}))}))).then((function(e){return e.reduce((function(e,t){return u(u({},e),t)}),{})}))}),n),e.abrupt("return",r());case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),re=function(){function e(t,n){b(this,e),O(this,"targetPort",void 0),O(this,"name",void 0),this.targetPort=n,this.name=t}return y(e,[{key:"onSendRequest",value:function(e){this.targetPort.onmessage=function(){var t=m(p().mark((function t(n){var r,o,i;return p().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=d(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}(),oe={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",MODAL_TRANSFER_READY:"OPENSDK@MODAL_TRANSFER_READY",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"},ie=n(245),ae=[oe.TRANSFER_RECEIVE_PORT,oe.TRANSFER_SEND_PORT,oe.TRANSFER_MODAL_PORT,oe.TRANSFER_MODAL_APPEARANCE,oe.TRANSFER_MODAL_INITIALDATA,oe.OPEN_MODAL_ERROR,oe.TRANSFER_APP_PORT,oe.MODAL_TRANSFER_READY,oe.CLOSE_MODAL,oe.OPEN_MODAL,oe.REDIRECT,oe.MESSAGE,oe.DESTROY_ELEMENT],se="@@global",ue="@@native",ce=function(){function e(t,n,r){var o,i,a=this;(b(this,e),O(this,"targetWindow",void 0),O(this,"currentWindow",void 0),O(this,"targetOrigin","*"),O(this,"scope",void 0),O(this,"handlers",new Map),O(this,"mode",void 0),O(this,"resizeObserver",void 0),O(this,"debugCallback",void 0),O(this,"receivePort",void 0),O(this,"openModalOff",void 0),O(this,"openModalPromise",void 0),O(this,"handleMessage",(function(e){var t=e.data;if(t&&"string"==typeof t.type){var n=t.type.split(":"),r=d(n,2),o=r[0],i=r[1];if(a.scope!==ue){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!==ue&&(s||t.type.endsWith(oe.ERROR)||t.type.endsWith(oe.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);Object.defineProperties(this,{targetWindow:{value:this.targetWindow,writable:!0,enumerable:!1,configurable:!0},currentWindow:{value:this.currentWindow,writable:!0,enumerable:!1,configurable:!0}}),null===(o=this.currentWindow)||void 0===o||o.addEventListener("message",this.handleMessage)}return y(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(oe.TRANSFER_RECEIVE_PORT,null===(t=this.receivePort)||void 0===t?void 0:t.name,e)}},{key:"_transferReceivePort",value:function(e){this._transferPort(oe.TRANSFER_RECEIVE_PORT,e.name,e.targetPorts)}},{key:"_transferSendPort",value:function(e){this._transferPort(oe.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:$("bridge"),type:"SYSTEM_".concat(oe.ERROR),payload:{message:"Target window not set"}},"OUT"));var o={id:$("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(oe.ERROR,e.toJSON())}},{key:"sendSubmit",value:function(e){"WEBAPP"===this.mode&&this.send(oe.SUBMIT_REPLY,e)}},{key:"sendMessage",value:function(e,t){"WEBAPP"===this.mode&&this.send(oe.MESSAGE,{type:e,message:t})}},{key:"sendRedirect",value:function(e){if("WEBAPP"===this.mode){if(!e.url)throw new D("url is required","INVALID_REDIRECT_URL","SDK_INTERNAL");try{new URL(e.url)}catch(e){throw new D("Invalid URL","INVALID_REDIRECT_URL","SDK_INTERNAL")}this.send(oe.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 D("url is required","INVALID_REDIRECT_URL","SDK_INTERNAL");try{new URL(e)}catch(e){throw new D("Invalid URL","INVALID_REDIRECT_URL","SDK_INTERNAL")}this.send(oe.REDIRECT,{url:e,mode:t})}}},{key:"sendDestroyElement",value:function(e){e||(e=this.scope),"WEBAPP"===this.mode&&this.send(oe.DESTROY_ELEMENT,{elementKey:e})}},{key:"openModal",value:function(e,t){var n,r=this;if(this.openModalPromise)return this.openModalPromise;var o=$("modal_");this.send(oe.OPEN_MODAL,u(u({},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(oe.OPEN_MODAL_ERROR,(function(e){i(),t(new M(e.message,e.code,e.source))}));o=r.on(oe.TRANSFER_APP_PORT,(function(n,r){if(null==r||!r[0])return i(),void t(new D("No ports transferred for modal communication","NO_PORTS_ERROR","SDK_INTERNAL"));i(),e(new te(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(oe.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,a){try{t(o,i,a)}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 D("handsShake can only be called in WEBAPP mode","UNKNOWN_ERROR","SDK_INTERNAL");var r=this.on(oe.HANDSHAKE,function(){var r=m(p().mark((function r(o){var i,a;return p().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=ie((function(e){(Math.abs(e-i)>10||Math.abs((e-i)/i)>.01)&&(i=e,n.send(oe.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(oe.HANDSHAKE_ACK,{version:e});case 6:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());return this.send(oe.READY_HANDSHAKE),function(){var e;r(),null===(e=n.resizeObserver)||void 0===e||e.disconnect()}}},{key:"getOriginListenType",value:function(e){if("error"===e&&(e=oe.ERROR),this.scope===ue)return e;var t=ae.includes(e)?se:this.scope;return"".concat(t,":").concat("WEBAPP"===this.mode?"HOST":"WEBAPP",":").concat(e)}},{key:"getOriginSendType",value:function(e){if("error"===e&&(e=oe.ERROR),this.scope===ue)return e;var t=ae.includes(e)?se: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:$(),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(oe.TRANSFER_RECEIVE_PORT,(function(n,r){e.receivePort||(e.receivePort=new ne(n)),r&&e.receivePort.addPort(r),t(e.receivePort)}))}))}},{key:"getSendPort",value:function(){var e=this;return new Promise((function(t,n){e.on(oe.TRANSFER_SEND_PORT,(function(e,r){if(r){var o=new re(e,r[0]);t(o)}else n(new Error("no ports transfer"))}))}))}}],[{key:"getGlobalBridge",value:function(t){return new e(t,se)}},{key:"getNativeBridge",value:function(t){return new e("WEBAPP",ue,t)}},{key:"getBridge",value:function(t,n){if(n===ue||n===se)throw new Error("Scope cannot be ".concat(ue," or ").concat(se));return new e(t,n)}}]),e}(),le=n(578),he=n(381),fe=["trackId","userPathAuto","keyFormat"],de=function(){function e(t){b(this,e),O(this,"options",void 0),O(this,"intlTrackerOptions",void 0),O(this,"tracker",void 0),O(this,"trackerInitPromise",void 0),O(this,"trackId",void 0),this.initialOptions(t)}var t;return y(e,[{key:"initialOptions",value:function(e){var t,n,r,o,i=e||{},a=(i.trackId,i.userPathAuto),s=i.keyFormat,c=le(i,fe);(this.options=u(u(u({env:"PROD",compactExtraInfo:!0},this.options),c),{},{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)}),this.intlTrackerOptions=u(u({},this.options),{},{userPathAuto:a,keyFormat:s}),e&&"trackId"in e)&&(this.trackId=e.trackId||"",this.options=u(u(u({},this.options),c),{},{mdata:u(u(u({},null===(o=this.options)||void 0===o?void 0:o.mdata),c.mdata),{},{trackId:this.trackId})}));return this.options}},{key:"loadTacker",value:function(e){var t=this,n=(0,he.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-intl-tracker/1.3.0/dist/common.min.js","CompatibleTrackerFull");return n?n.then((function(n){var r=n.variable;if(r)return new r(t.initialOptions(e))})):Promise.resolve(void 0)}},{key:"initTracker",value:(t=m(p().mark((function e(t){var n,r=this;return p().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:if(t||!this.trackerInitPromise){e.next=4;break}return e.abrupt("return",this.trackerInitPromise);case 4:if(n=this.loadTacker(t).then((function(e){var n,o,i,a,s,u;return e&&(e.set({keyFormat:null!==(n=null!==(o=null==t?void 0:t.keyFormat)&&void 0!==o?o:null===(i=r.intlTrackerOptions)||void 0===i?void 0:i.keyFormat)&&void 0!==n?n:"origin",userPathAuto:null!==(a=null!==(s=null==t?void 0:t.userPathAuto)&&void 0!==s?s:null===(u=r.intlTrackerOptions)||void 0===u?void 0:u.userPathAuto)&&void 0!==a&&a}),r.tracker=e),e})),t){e.next=8;break}return this.trackerInitPromise=n.finally((function(){r.trackerInitPromise=void 0})),e.abrupt("return",this.trackerInitPromise);case 8:return e.abrupt("return",n);case 9: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({mdata:{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}(),pe=new de;var ge=n(270);function me(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 ge.apply(void 0,[{},e].concat(n))}var ve=new de({appId:"180020050100012557",performance:!1,error:!1,env:"PROD",compactExtraInfo:!0}),ye="7981",_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){ve.log(u({code:"".concat(ye).concat(e)},t))}},be=_e(),Ee=_e("event"),Se=_e("mount"),we=_e("handshake"),Te=_e("merchant"),Ae=(_e("element"),function(e,t,n,r){var o;if("ERROR"===e){var i=r||{};be({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=d(a,3),u=s[0],c=s[1],l=s[2];Ee({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)}),Pe=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=d(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}(M.isError(e)?e.toJSON():e);Ae("ERROR",t.source,t.operationType||t.message||"Unknown Error",t)}},Re=function(e){T(n,e);var t=P(n);function n(){var e;b(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)),O(S(e),"name","SDKInternalError"),e}return y(n)}(M),Oe=function(e){T(n,e);var t=P(n);function n(e){return b(this,n),t.call(this,"HOST",e)}return y(n,[{key:"_transferReceivePort",value:function(e){l(h(n.prototype),"_transferReceivePort",this).call(this,e)}},{key:"_addPort",value:function(e){l(h(n.prototype),"_addPort",this).call(this,e)}},{key:"_transferSendPort",value:function(e){l(h(n.prototype),"_transferSendPort",this).call(this,e)}},{key:"setTarget",value:function(e){l(h(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=l(h(n.prototype),"setDebugCallback",this)).call.apply(e,[this].concat(r))}}],[{key:"getGlobalBridge",value:function(){return ce.getGlobalBridge("HOST")}}]),n}(ce),Ne=function(e){T(n,e);var t=P(n);function n(e,r,o){var i;return b(this,n),i=t.call(this,e,r,o||"SDK_USAGE"),O(S(i),"name","MountError"),i}return y(n)}(Re),ke=function(e){return new Re("Element destroyed, previous status: ".concat(e),"ELEMENT_INSTANCE_DESTROYED","SDK_USAGE")},Le=function(){function e(t,n){b(this,e),O(this,"name",void 0),O(this,"_elementMode",void 0),O(this,"_isMainElement",void 0),O(this,"config",void 0),O(this,"bridge",void 0),O(this,"hooks",{}),O(this,"iframe",null),O(this,"status",void 0),O(this,"cachedSend",[]),O(this,"submitPromise",void 0),this.config=n,this._isMainElement=n.isMainElement,this._elementMode=n.elementMode,this.name=t,this.bridge=new Oe(t),this.bridge.setOrigin(n.targetOrigin),n.trackId&&ve.setTrackId(n.trackId),this.bridge.setDebugCallback((function(e,t){try{if(e.type.endsWith(oe.UPDATE_CONFIG)||e.type.endsWith(oe.HEIGHT_UPDATE))return;var n,r;if(e.type.endsWith(oe.MESSAGE))Ae(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);else e.type.endsWith(oe.ERROR)&&"IN"===t?Pe(e.payload):Ae("INFO","OUT"===t?"SDK_INTERNAL":"APP_RUNTIME",e.type,e.payload)}catch(e){}})),this.status="initialized"}var t,n,r,o,i;return y(e,[{key:"submit",value:function(e){throw new Re("This element not support submit","NOT_SUPPORT_SUBMIT","SDK_USAGE")}},{key:"setup",value:(i=m(p().mark((function e(){return p().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:"_setup",value:(o=m(p().mark((function e(){var t,n,r,o,i=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=function(){return"destroyed"===i.status})()){e.next=3;break}return e.abrupt("return");case 3:return n=function(){},r=new Promise((function(e,t){n=i._addHook("ondestroy",(function(e){return t(ke(e))}))})),o=Promise.resolve().then(m(p().mark((function e(){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,i.setup();case 4:return n=e.sent,e.abrupt("return",t()?void 0:n);case 6:case"end":return e.stop()}}),e)})))),e.prev=6,e.next=9,Promise.race([o,r]);case 9:return e.abrupt("return",e.sent);case 10:return e.prev=10,t()||n(),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[6,,10,13]])}))),function(){return o.apply(this,arguments)})},{key:"is",value:function(e){return this.name.startsWith(e.elementType)}},{key:"mount",value:(r=m(p().mark((function e(t){var n,r,o,i,a=this;return p().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 Ne({message:"element status is ".concat(this.status,", can not mount again"),params:{status:this.status}},"MOUNT_NOT_SUPPORT"),Pe(n),n;case 4:return r=Date.now(),o=Q((function(){return Promise.all([a._setup(),a._mount(t)])}),15e3,new Ne("Mount timeout","MOUNT_TIMEOUT","SYSTEM")),i=ee((function(){Se({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=d(e,1)[0];Te({msg:a.name,d1:(null==t?void 0:t.merchantId)||"未配置的商户"}),Se({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(oe.HANDSHAKE,me(a.config.appConfig,t||{}))})).catch((function(e){"destroyed"!==a.status&&a.unmount();var t=Re.unificationError(e);throw Se({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}),Pe(t),t})).finally((function(){i()})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_mount",value:(n=m(p().mark((function e(t){var n=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=m(p().mark((function e(r,o){var i,a,s,u,c,l,h,g,m;return p().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 Ne({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 Ne("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(f(n.config.trackId?[["track_id",n.config.trackId]]:[]));try{s.forEach((function(e){var t=d(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=d(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(oe.HEIGHT_UPDATE,(function(e){n.iframe&&(n.iframe.style.height="".concat(e,"px"))}))),g=Date.now(),m=n._addHook("ondestroy",(function(e){o(ke(e))})),n.bridge.once(oe.READY_HANDSHAKE,(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();Ae("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(oe.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=[]),we({msg:n.name,d1:(null==e?void 0:e.version)||"未知版本",m1:Math.round(Date.now()-t),m2:1,m3:Math.round(Date.now()-g)})})),m(),r()}else m()})),n.iframe.onerror=function(e){o(new Ne("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 Ne("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 n.apply(this,arguments)})},{key:"updateConfig",value:(t=m(p().mark((function e(t){var n,r,o,i=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"destroyed"!==this.status){e.next=3;break}throw new Re("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 Re({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=me(this.config.appConfig,t),Ae("INFO","SDK_USAGE","Updating configuration via API",t),n=function(){},r=Q((function(){return new Promise((function(e){n=i.bridge.once(oe.UPDATE_CONFIG_REPLY,(function(t){e(t)})),i.bridge.send(oe.UPDATE_CONFIG,{merged:i.config.appConfig,updated:t})}))}),3e3,new Re("Update config timeout","UPDATE_CONFIG_TIMEOUT","SYSTEM")),e.abrupt("return",r().catch((function(e){return n(),{error:Re.unificationError(e).toJSON()}})));case 12:return e.prev=12,e.t0=e.catch(0),o=Re.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 t.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))):Ae("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}):Pe(new Re("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:function(e){var t=this;return"HOST"!==this.bridge.mode?Promise.reject(new Error("submit method only available in HOST mode")):(this.submitPromise||(this.submitPromise=new Promise((function(n){t.send(oe.SUBMIT,e),t.bridge.once(oe.SUBMIT_REPLY,(function(e){n(e)}))})).finally((function(){t.submitPromise=void 0}))),this.submitPromise)}},{key:"destroy",value:function(){var e,t=this;if("destroyed"!==this.status){if(null===(e=this.hooks.ondestroy)||void 0===e||e.forEach((function(e){return e(t.status)})),this.hooks={},this.bridge.destroy(),"mounted"===this.status||"ready"===this.status)this.unmount();else{var n,r=null===(n=this.iframe)||void 0===n?void 0:n.parentNode;r&&r.removeChild(this.iframe)}this.status="destroyed"}else Ae("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}();O(Le,"elementType",void 0);var Ie,Ce=".ams-popupoverlay",Me=function(e){return{d1:e.stage,d2:e.modalId,d3:e.scope,d4:e.origin,d5:e.modalState,d6:e.modalStyle,d7:e.iframePath,d8:e.visibilityState,d9:e.layerState,d10:e.sourceState,d11:String(e.sourceFrameIndex),m1:e.elapsedMs,m2:e.modalCount,m3:e.overlayCount}},De=function(e,t){return e===t||e.endsWith(":".concat(t))},xe=function(e){if(!e)return"";try{var t=new URL(e.src,window.location.href);return"".concat(t.origin).concat(t.pathname)}catch(e){return"invalid"}},Ue=function(){var e,t,n=Array.from(document.querySelectorAll(".ams-popupmodal, .ams-popupmodal-mobile")),r=null!==(e=n[n.length-1])&&void 0!==e?e:null,o=null!==(t=null==r?void 0:r.querySelector("iframe"))&&void 0!==t?t:null;if(!r)return{modalState:"missing",modalStyle:"",iframePath:"",layerState:"unknown",modalCount:0,overlayCount:document.querySelectorAll(Ce).length,iframe:o};var i=window.getComputedStyle(r),a=r.getBoundingClientRect(),s="none"===i.display||"hidden"===i.visibility||"0"===i.opacity?"hidden":0===a.width||0===a.height?"zero_size":"visible",u="unknown";if("visible"===s&&"function"==typeof document.elementFromPoint){var c=document.elementFromPoint(a.left+a.width/2,a.top+a.height/2);u=c?r.contains(c)?"front":"covered":"unknown"}return{modalState:s,modalStyle:"".concat(i.display,"/").concat(i.visibility,"/").concat(i.opacity||"1","/").concat(Math.round(a.width),"x").concat(Math.round(a.height),"/z").concat(i.zIndex||"auto"),iframePath:xe(o),layerState:u,modalCount:n.length,overlayCount:document.querySelectorAll(Ce).length,iframe:o}};function Be(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},o=null,i="",a="",s="",u=null,c=!1,l=function(){void 0!==t&&window.clearTimeout(t),void 0!==n&&window.clearTimeout(n),t=void 0,n=void 0},h=function(t,n,r,s){try{var u=Ue(),c=Array.from(document.querySelectorAll("iframe")).findIndex((function(e){return e.contentWindow===r}));e({stage:t,modalId:i,scope:a,origin:n,elapsedMs:null===o?0:Date.now()-o,modalState:u.modalState,modalStyle:u.modalStyle,iframePath:u.iframePath,visibilityState:document.visibilityState,layerState:u.layerState,sourceState:s,sourceFrameIndex:c,modalCount:u.modalCount,overlayCount:u.overlayCount})}catch(e){}},f=function(e){var f=e.data;if("string"==typeof(null==f?void 0:f.type)){if(De(f.type,oe.OPEN_MODAL)){var d,p;if(!r(e))return;return l(),o=Date.now(),i="string"==typeof(null===(d=f.payload)||void 0===d?void 0:d.modalId)?f.payload.modalId:"",a="string"==typeof(null===(p=f.payload)||void 0===p?void 0:p.scope)?f.payload.scope:"",s=e.origin,u=e.source,c=!1,h("open_received",e.origin,e.source,"element"),t=window.setTimeout((function(){return h("open_500ms",s,u,"element")}),500),void(n=window.setTimeout((function(){c||h("ready_timeout",s,null,"none")}),5e3))}if(De(f.type,oe.MODAL_TRANSFER_READY)&&null!==o){var g=Ue().iframe,m=!!g&&e.source===g.contentWindow;return m&&(c=!0,void 0!==n&&window.clearTimeout(n),n=void 0),void h(m?"ready_received":"ready_source_mismatch",e.origin,e.source,m?"modal":"unexpected")}if(De(f.type,oe.CLOSE_MODAL)){var v=null!==o&&e.source===u?"element":"unexpected";h(null===o?"close_without_open":c?"close_after_ready":"close_before_ready",e.origin,e.source,v),l(),o=null,i="",a="",u=null,c=!1}}};return window.addEventListener("message",f),function(){l(),window.removeEventListener("message",f)}}!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"}(Ie||(Ie={}));var He={};He[Ie["ar-SA"]]="阿拉伯语 (沙特阿拉伯)",He[Ie.kn]="埃纳德语",He[Ie.as]="阿萨姆语",He[Ie.bho]="博杰普尔语",He[Ie["pl-PL"]]="波兰语 (波兰)",He[Ie["ko-KR"]]="朝鲜语 (韩国)",He[Ie["da-DK"]]="丹麦语 (丹麦)",He[Ie["de-DE"]]="德语 (德国)",He[Ie["ru-RU"]]="俄语 (俄罗斯)",He[Ie["fr-FR"]]="法语 (法国)",He[Ie.gu]="古加拉提语",He[Ie["nl-BE"]]="荷兰语 (比利时)",He[Ie["nl-NL"]]="荷兰语 (荷兰)",He[Ie["cs-CZ"]]="捷克语 (捷克共和国)",He[Ie.ro]="罗马尼亚语",He[Ie["lo-LA"]]="老挝语 (老挝)",He[Ie["my-MM"]]="缅甸语 (缅甸)",He[Ie["bn-BD"]]="孟加拉语 (孟加拉)",He[Ie["bn-IN"]]="孟加拉语 (印度)",He[Ie.mr]="马拉地语",He[Ie["ms-MY"]]="马来语 (马来西亚)",He[Ie.ml]="马来亚拉姆语",He[Ie.mni]="曼尼普里语",He[Ie["ne-NP"]]="尼泊尔语 (尼泊尔)",He[Ie.or]="欧里亚语",He[Ie["pt-BR"]]="葡萄牙语 (巴西)",He[Ie["pt-PT"]]="葡萄牙语 (葡萄牙)",He[Ie.pa]="旁遮普语",He[Ie["sv-SE"]]="瑞典语 (瑞典)",He[Ie["ja-JP"]]="日语 (日本)",He[Ie.sr]="塞尔维亚语",He[Ie["si-LK"]]="僧伽罗语 (斯里兰卡)",He[Ie["sk-SK"]]="斯洛伐克语 (斯洛伐克)",He[Ie["tr-TR"]]="土耳其语 (土耳其)",He[Ie["tl-PH"]]="塔加路族语 (菲律宾)",He[Ie.te]="泰卢固语",He[Ie.ta]="泰米尔语",He[Ie["th-TH"]]="泰语 (泰国)",He[Ie["ur-PK"]]="乌尔都语 (巴基斯坦)",He[Ie["ur-IN"]]="乌尔都语 (印度)",He[Ie["uk-UA"]]="乌克兰语 (乌克兰)",He[Ie["iw-IL"]]="希伯来语 (以色列)",He[Ie["es-ES"]]="西班牙语 (西班牙)",He[Ie["es-MX"]]="西班牙语 (墨西哥)",He[Ie.hu]="匈牙利语",He[Ie["it-IT"]]="意大利语 (意大利)",He[Ie["in-ID"]]="印度尼西亚语 (印度尼西亚)",He[Ie["hi-IN"]]="印地语 (印度)",He[Ie["vi-VN"]]="越南语 (越南)",He[Ie["en-PK"]]="英语 (巴基斯坦)",He[Ie["en-PL"]]="英语 (波兰)",He[Ie["en-FR"]]="英语 (法国)",He[Ie["en-PH"]]="英语 (菲律宾)",He[Ie["en-CZ"]]="英语 (捷克共和国)",He[Ie["en-CA"]]="英语 (加拿大)",He[Ie["en-MM"]]="英语 (缅甸)",He[Ie["en-US"]]="英语 (美国)",He[Ie["en-BD"]]="英语 (孟加拉)",He[Ie["en-MY"]]="英语 (马来西亚)",He[Ie["en-NP"]]="英语 (尼泊尔)",He[Ie["en-LK"]]="英语 (斯里兰卡)",He[Ie["en-TH"]]="英语 (泰国)",He[Ie["en-ES"]]="英语 (西班牙)",He[Ie["en-SG"]]="英语 (新加坡)",He[Ie["en-HU"]]="英语 (匈牙利)",He[Ie["en-ID"]]="英语 (印度尼西亚)",He[Ie["en-GB"]]="英语 (英国)",He[Ie["en-VN"]]="英语 (越南)",He[Ie["en-HK"]]="英语 (中国香港)",He[Ie["en-KR"]]="英语 (韩国)",He[Ie["zh-TW"]]="繁体中文 (中国台湾)",He[Ie["zh-HK"]]="繁体中文 (中国香港)",He[Ie["zh-SG"]]="简体中文 (新加坡)",He[Ie["zh-CN"]]="简体中文 (中国)",He[Ie["ar-IQ"]]="阿拉伯语 (伊拉克)",He[Ie["ckb-IQ"]]="中库尔德语 (伊拉克)",He[Ie.ku]="库尔德语",He[Ie["kk-KZ"]]="哈萨克语",He[Ie.af]="南非语",He[Ie.am]="阿姆哈拉语",He[Ie.az]="阿塞拜疆语",He[Ie.be]="白俄罗斯语",He[Ie.bg]="保加利亚语",He[Ie.bs]="波斯尼亚语",He[Ie.ca]="加泰罗尼亚语",He[Ie.cy]="威尔士语",He[Ie.el]="现代希腊语",He[Ie.eo]="世界语",He[Ie.et]="爱沙尼亚语",He[Ie.eu]="巴斯克语",He[Ie.fa]="波斯语",He[Ie.fi]="芬兰语",He[Ie.gd]="爱尔兰语",He[Ie.gl]="加利西亚语",He[Ie.ha]="豪萨语",He[Ie.haw]="夏威夷语",He[Ie.hr]="克罗地亚语",He[Ie.ig]="伊博语",He[Ie.is]="冰岛语",He[Ie.ka]="格鲁吉亚语",He[Ie.km]="高棉语",He[Ie.ky]="吉尔吉斯语",He[Ie.lb]="卢森堡语",He[Ie.ln]="林格拉语",He[Ie.lt]="立陶宛语",He[Ie.lv]="拉脱维亚语",He[Ie.mg]="马尔加什语",He[Ie.mk]="马其顿语",He[Ie.mn]="蒙古文",He[Ie.mt]="马耳他语",He[Ie.om]="奥罗莫语",He[Ie.ps]="普什图语",He[Ie.qu]="克丘亚语",He[Ie.rw]="卢旺达语",He[Ie.sl]="斯洛文尼亚语",He[Ie.so]="索马里语",He[Ie.sq]="阿尔巴尼亚语",He[Ie.sw]="斯瓦希里语",He[Ie.tg]="塔吉克语",He[Ie.ti]="蒂格尼亚语",He[Ie.ug]="维吾尔语",He[Ie.uz]="乌兹别克语",He[Ie.yo]="约鲁巴语",He[Ie.zu]="祖鲁语";var je,ze={};ze[Ie["ar-SA"]]="Arabic (Saudi Arabia)",ze[Ie.kn]="Kannada",ze[Ie.as]="Assamese",ze[Ie.bho]="Bhojpuri",ze[Ie["pl-PL"]]="Polish (Poland)",ze[Ie["ko-KR"]]="Korean (Korean)",ze[Ie["da-DK"]]="Danish (Denmark)",ze[Ie["de-DE"]]="German (Germany)",ze[Ie["ru-RU"]]="Russian (Russia)",ze[Ie["fr-FR"]]="French (France)",ze[Ie.gu]="Gujarati",ze[Ie["nl-BE"]]="Dutch (Belgium)",ze[Ie["nl-NL"]]="Dutch (Netherlands)",ze[Ie["cs-CZ"]]="Czech (Czech Republic)",ze[Ie.ro]="Romanian",ze[Ie["lo-LA"]]="Lao (Laos)",ze[Ie["my-MM"]]="Burmese (Myanmar)",ze[Ie["bn-BD"]]="Bengali (Bangladesh)",ze[Ie["bn-IN"]]="Bengali (India)",ze[Ie.mr]="Marathi",ze[Ie["ms-MY"]]="Malay (Malaysia)",ze[Ie.ml]="Malayalam",ze[Ie.mni]="Manipuri",ze[Ie["ne-NP"]]="Nepalese (Nepal)",ze[Ie.or]="Odia (Oriya)",ze[Ie["pt-BR"]]="Portuguese (Brazil)",ze[Ie["pt-PT"]]="Portuguese (Portugal)",ze[Ie.pa]="Punjabi",ze[Ie["sv-SE"]]="Swedish (Sweden)",ze[Ie["ja-JP"]]="Japanese (Japanese)",ze[Ie.sr]="Serbian",ze[Ie["si-LK"]]="Sinhala (Sri Lanka)",ze[Ie["sk-SK"]]="Slovak (Slovakia)",ze[Ie["tr-TR"]]="Turkish (Turkish)",ze[Ie["tl-PH"]]="Tagalog (Philippines)",ze[Ie.te]="Telugu",ze[Ie.ta]="Tamil",ze[Ie["th-TH"]]="Thai (Thailand)",ze[Ie["ur-PK"]]="Ulduwen (Pakistan)",ze[Ie["ur-IN"]]="Urduwen (India)",ze[Ie["uk-UA"]]="Ukrainian (Ukraine)",ze[Ie["iw-IL"]]="Hebrew (Israel)",ze[Ie["es-ES"]]="Spanish (Spain)",ze[Ie["es-MX"]]="Spanish (Mexico)",ze[Ie.hu]="Hungarian",ze[Ie["it-IT"]]="Italian (Italian)",ze[Ie["in-ID"]]="Indonesian (Indonesia)",ze[Ie["hi-IN"]]="Hindi (India)",ze[Ie["vi-VN"]]="Vietnamese (Vietnam)",ze[Ie["en-PK"]]="English (Pakistan)",ze[Ie["en-PL"]]="English (Poland)",ze[Ie["en-FR"]]="English (France)",ze[Ie["en-PH"]]="English (Philippines)",ze[Ie["en-CZ"]]="English (Czech Republic)",ze[Ie["en-CA"]]="English (Canada)",ze[Ie["en-MM"]]="English (Myanmar)",ze[Ie["en-US"]]="English (US)",ze[Ie["en-BD"]]="English (Bangladesh)",ze[Ie["en-MY"]]="English (Malaysia)",ze[Ie["en-NP"]]="English (Nepal)",ze[Ie["en-LK"]]="English (Sri Lanka)",ze[Ie["en-TH"]]="English (Thailand)",ze[Ie["en-ES"]]="English (Spain)",ze[Ie["en-SG"]]="English (Singapore)",ze[Ie["en-HU"]]="English (Hungary)",ze[Ie["en-ID"]]="English (Indonesia)",ze[Ie["en-GB"]]="English (UK)",ze[Ie["en-VN"]]="English (Vietnam)",ze[Ie["en-HK"]]="English (Hong Kong)",ze[Ie["en-KR"]]="English (Korean)",ze[Ie["zh-TW"]]="Chinese Traditional (Taiwan)",ze[Ie["zh-HK"]]="Chinese Traditional (Hong Kong)",ze[Ie["zh-SG"]]="Chinese Simplified (Singapore)",ze[Ie["zh-CN"]]="Chinese Simplified (China)",ze[Ie["ar-IQ"]]="Arabic (Iraq)",ze[Ie["ckb-IQ"]]="Central Kurdish (Iraq)",ze[Ie.ku]="Kurdish",ze[Ie["kk-KZ"]]="Kazakh",ze[Ie.af]="Afrikaans",ze[Ie.am]="Amharic",ze[Ie.az]="Azerbaijani",ze[Ie.be]="Belarusian",ze[Ie.bg]="Bulgarian",ze[Ie.bs]="Bosnian",ze[Ie.ca]="Catalan",ze[Ie.cy]="Welsh",ze[Ie.el]="Greek",ze[Ie.eo]="Esperanto",ze[Ie.et]="Estonian",ze[Ie.eu]="Basque",ze[Ie.fa]="Persian",ze[Ie.fi]="Finnish",ze[Ie.gd]="Scots Gaelic",ze[Ie.gl]="Galician",ze[Ie.ha]="Hausa",ze[Ie.haw]="Hawaiian",ze[Ie.hr]="Croatian",ze[Ie.ig]="Igbo",ze[Ie.is]="Icelandic",ze[Ie.ka]="Georgian",ze[Ie.km]="Khmer",ze[Ie.ky]="Kyrgyz",ze[Ie.lb]="Luxembourgish",ze[Ie.ln]="Lingala",ze[Ie.lt]="Lithuanian",ze[Ie.lv]="Latvian",ze[Ie.mg]="Malagasy",ze[Ie.mk]="Macedonian",ze[Ie.mn]="Mongolian",ze[Ie.mt]="Maltese",ze[Ie.om]="Oromo",ze[Ie.ps]="Pashto",ze[Ie.qu]="Quechua",ze[Ie.rw]="Kinyarwanda",ze[Ie.sl]="Slovenian",ze[Ie.so]="Somali",ze[Ie.sq]="Albanian",ze[Ie.sw]="Swahili",ze[Ie.tg]="Tajik",ze[Ie.ti]="Tigrinya",ze[Ie.ug]="Uyghur",ze[Ie.uz]="Uzbek",ze[Ie.yo]="Yoruba",ze[Ie.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"}(je||(je={}));var Fe,Ge,Ke,Ye={"zh-hans":Ie["zh-CN"],"zh-hant":Ie["zh-TW"],ar:Ie["ar-SA"],bn:Ie["bn-BD"],cs:Ie["cs-CZ"],da:Ie["da-DK"],de:Ie["de-DE"],en:Ie["en-US"],es:Ie["es-ES"],fr:Ie["fr-FR"],hi:Ie["hi-IN"],in:Ie["in-ID"],it:Ie["it-IT"],iw:Ie["iw-IL"],ja:Ie["ja-JP"],ko:Ie["ko-KR"],lo:Ie["lo-LA"],ms:Ie["ms-MY"],my:Ie["my-MM"],ne:Ie["ne-NP"],nl:Ie["nl-NL"],pl:Ie["pl-PL"],pt:Ie["pt-PT"],ru:Ie["ru-RU"],si:Ie["si-LK"],sk:Ie["sk-SK"],sv:Ie["sv-SE"],th:Ie["th-TH"],tl:Ie["tl-PH"],tr:Ie["tr-TR"],uk:Ie["uk-UA"],ur:Ie["ur-PK"],vi:Ie["vi-VN"],zh:Ie["zh-CN"],kk:Ie["kk-KZ"]},We={"zh-hant":Ie["zh-TW"],"zh-hans":Ie["zh-CN"]},Ve=function(e){return Object.keys(e||{}).map((function(t){return e[t]}))},qe=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"}(Fe||(Fe={})),Ve(Fe),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"}(Ge||(Ge={})),Ve(Ge),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"}(Ke||(Ke={})),Ve(Ke);var Je,Xe,Ze,Qe,$e,et,tt,nt,rt,ot,it,at,st,ut,ct,lt;Ie["ar-IQ"],Fe.ar_EG,Ke.ar,Ge.ar,Ie["ar-SA"],Fe.ar_EG,Ke["ar-sa"],Ge["ar-sa"],Ie["bn-BD"],Fe.bn_BD,Ke["bn-bd"],Ge["bn-bd"],Ie["bn-IN"],Fe.bn_BD,Ke.bn,Ge.bn,Ie["cs-CZ"],Fe.cs_CZ,Ke.cs,Ge.cs,Ie["da-DK"],Fe.da_DK,Ke.da,Ge.da,Ie["de-DE"],Fe.de_DE,Ke.de,Ge.de,Ie["en-BD"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-CA"],Fe.en_US,Ke["en-ca"],Ge["en-ca"],Ie["en-CZ"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-ES"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-FR"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-GB"],Fe.en_GB,Ke["en-gb"],Ge["en-gb"],Ie["en-HU"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-ID"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-LK"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-MM"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-MY"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-NP"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-PH"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-PK"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-PL"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-SG"],Fe.en_US,Ke["en-sg"],Ge.en,Ie["en-TH"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-US"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-VN"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-HK"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["en-KR"],Fe.en_US,Ke["en-gb"],Ge.en,Ie["es-ES"],Fe.es_ES,Ke.es,Ge.es,Ie["es-MX"],Fe.es_ES,Ke.es,Ge.es,Ie["fr-FR"],Fe.fr_FR,Ke.fr,Ge.fr,Ie["hi-IN"],Fe.hi_IN,Ke.hi,Ge.hi,Ie.hu,Fe.hu_HU,Ke.hu,Ge.hu,Ie["in-ID"],Fe.id_ID,Ke.id,Ge.id,Ie["it-IT"],Fe.it_IT,Ke.it,Ge.it,Ie["ja-JP"],Fe.ja_JP,Ke.ja,Ge.ja,Ie.kn,Fe.kn_IN,Ke.kn,Ge.kn,Ie["ko-KR"],Fe.ko_KR,Ke.ko,Ge.ko,Ie.ml,Fe.ml_IN,Ke.ml,Ge.ml,Ie["ms-MY"],Fe.ms_MY,Ke["ms-my"],Ge["ms-my"],Ie["ne-NP"],Fe.ne_NP,Ke.ne,Ge.ne,Ie["nl-BE"],Fe.nl_BE,Ke["nl-be"],Ge["nl-be"],Ie["nl-NL"],Fe.nl_NL,Ke.nl,Ge.nl,Ie["pl-PL"],Fe.pl_PL,Ke.pl,Ge.pl,Ie["pt-BR"],Fe.pt_BR,Ke["pt-br"],Ge["pt-br"],Ie["pt-PT"],Fe.pt_PT,Ke.pt,Ge.pt,Ie.ro,Fe.ro_RO,Ke.ro,Ge.ro,Ie["ru-RU"],Fe.ru_RU,Ke.ru,Ge.ru,Ie["si-LK"],Fe.si_LK,Ke.si,Ge.si,Ie["sk-SK"],Fe.sk_SK,Ke.sk,Ge.sk,Ie.sr,Fe.sr_RS,Ke.sr,Ge.sr,Ie["sv-SE"],Fe.sv_SE,Ke.sv,Ge.sv,Ie.ta,Fe.ta_IN,Ke.ta,Ge.ta,Ie["th-TH"],Fe.th_TH,Ke.th,Ge.th,Ie["tr-TR"],Fe.tr_TR,Ke.tr,Ge.tr,Ie["uk-UA"],Fe.uk_UA,Ke.uk,Ge.uk,Ie["ur-PK"],Fe.ur_PK,Ke.ur,Ge.ur,Ie["vi-VN"],Fe.vi_VN,Ke.vi,Ge.vi,Ie["zh-CN"],Fe.zh_CN,Ke["zh-cn"],Ge["zh-cn"],Ie["zh-HK"],Fe.zh_HK,Ke["zh-hk"],Ge["zh-hk"],Ie["zh-SG"],Fe.zh_HK,Ke["zh-hk"],Ge["zh-hk"],Ie["zh-TW"],Fe.zh_TW,Ke["zh-tw"],Ge["zh-tw"],Ie["kk-KZ"],Fe.kk_KZ,Ke.kk,Ge.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"}(lt||(lt={}));var ht,ft,dt=Ve(lt),pt={};pt[lt.kn]="AiNaDeYu",pt[lt.ar_SA]="ALaBoYu (ShaTeALaBo)",pt[lt.ar_IQ]="ALaBoYu (YiLaKe)",pt[lt.as]="ASaMuYu",pt[lt.bho]="BoJiePuErYu",pt[lt.pl_PL]="BoLanYu (BoLan)",pt[lt.ko_KR]="ChaoXianYu (HanGuo)",pt[lt.da_DK]="DanMaiYu (DanMai)",pt[lt.de_DE]="DeYu (DeGuo)",pt[lt.ru_RU]="EYu (ELuoSi)",pt[lt.fr_FR]="FaYu (FaGuo)",pt[lt.gu]="GuJiaLaTiYu",pt[lt.nl_BE]="HeLanYu (BiLiShi)",pt[lt.nl_NL]="HeLanYu (HeLan)",pt[lt.cs_CZ]="JieKeYu (JieKeGongHeGuo)",pt[lt.ku]="KuErDeYu",pt[lt.lo_LA]="LaoWoYu (LaoWo)",pt[lt.ro]="LuoMaNiYaYu",pt[lt.mr]="MaLaDiYu",pt[lt.ms_MY]="MaLaiYu (MaLaiXiYa)",pt[lt.ml]="MaLaiYaLaMuYu",pt[lt.mni]="ManNiPuLiYu",pt[lt.bn_BD]="MengJiaLaYu (MengJiaLa)",pt[lt.bn_IN]="MengJiaLaYu (YinDu)",pt[lt.my_MM]="MianDianYu (MianDian)",pt[lt.ne_NP]="NiBoErYu (NiBoEr)",pt[lt.or]="OuLiYaYu",pt[lt.pa]="PangZhePuYu",pt[lt.pt_BR]="PuTaoYaYu (BaXi)",pt[lt.pt_PT]="PuTaoYaYu (PuTaoYa)",pt[lt.ja_JP]="RiYu (RiBen)",pt[lt.sv_SE]="RuiDianYu (RuiDian)",pt[lt.sr]="SaiErWeiYaYu",pt[lt.si_LK]="SengJiaLuoYu (SiLiLanKa)",pt[lt.sk_SK]="SiLuoFaKeYu (SiLuoFaKe)",pt[lt.te]="TaiLuGuYu",pt[lt.ta]="TaiMiErYu",pt[lt.th_TH]="TaiYu (TaiGuo)",pt[lt.tl_PH]="TaJiaLuZuYu (FeiLvBin)",pt[lt.tr_TR]="TuErQiYu (TuErQi)",pt[lt.ur_PK]="WuErDuYu (BaJiSiTan)",pt[lt.ur_IN]="WuErDuYu (YinDu)",pt[lt.uk_UA]="WuKeLanYu (WuKeLan)",pt[lt.es_ES]="XiBanYaYu (XiBanYa)",pt[lt.es_MX]="XiBanYaYu (MoXiGe)",pt[lt.iw_IL]="XiBoLaiYu (YiSeLie)",pt[lt.hu]="XiongYaLiYu",pt[lt.it_IT]="YiDaLiYu (YiDaLi)",pt[lt.hi_IN]="YinDiYu (YinDu)",pt[lt.in_ID]="YinDuNiXiYaYu (YinDuNiXiYa)",pt[lt.en_PK]="YingYu (BaJiSiTan)",pt[lt.en_PL]="YingYu (BoLan)",pt[lt.en_FR]="YingYu (FaGuo)",pt[lt.en_PH]="YingYu (FeiLvBin)",pt[lt.en_CA]="YingYu (JiaNaDa)",pt[lt.en_CZ]="YingYu (JieKeGongHeGuo)",pt[lt.en_MY]="YingYu (MaLaiXiYa)",pt[lt.en_US]="YingYu (MeiGuo)",pt[lt.en_BD]="YingYu (MengJiaLa)",pt[lt.en_MM]="YingYu (MianDian)",pt[lt.en_NP]="YingYu (NiBoEr)",pt[lt.en_LK]="YingYu (SiLiLanKa)",pt[lt.en_TH]="YingYu (TaiGuo)",pt[lt.en_ES]="YingYu (XiBanYa)",pt[lt.en_SG]="YingYu (XinJiaPo)",pt[lt.en_HU]="YingYu (XiongYaLi)",pt[lt.en_ID]="YingYu (YinDuNiXiYa)",pt[lt.en_GB]="YingYu (YingGuo)",pt[lt.en_VN]="YingYu (YueNan)",pt[lt.en_HK]="YingYu (XiangGang)",pt[lt.en_KR]="YingYu (HanGuo)",pt[lt.vi_VN]="YueNanYu (YueNan)",pt[lt.ckb_IQ]="ZhongKuErDeYu (YiLaKe)",pt[lt.zh_TW]="ZhongWen (TaiWanDiQu)",pt[lt.zh_HK]="ZhongWen (XiangGang)",pt[lt.zh_SG]="ZhongWen (XinJiaPo)",pt[lt.zh_CN]="ZhongWen (ZhongGuo)",pt[lt.kk_KZ]="HaSaKeYu (HaSaKeSiTan)",pt[lt.af]="NanFeiYu",pt[lt.am]="AMuHaLaYu",pt[lt.az]="ASaiBaiJiangYu",pt[lt.be]="BaiErLuoSiYu",pt[lt.bg]="BaoJiaLiYaYu",pt[lt.bs]="BoSiNiYaYu",pt[lt.ca]="JiaTaiLuoNiYaYu",pt[lt.cy]="WeiErShiYu",pt[lt.el]="XianDaiXiLaYu",pt[lt.eo]="ShiJieYu",pt[lt.et]="AiShaNiYaYu",pt[lt.eu]="BaSiKeYu",pt[lt.fa]="BoSiYu",pt[lt.fi]="FenLanYu",pt[lt.gd]="AiErLanYu",pt[lt.gl]="JiaLiXiYaYu",pt[lt.ha]="HaoSaYu",pt[lt.haw]="XiaWeiYiYu",pt[lt.hr]="KeLuoDiYaYu",pt[lt.ig]="YiBoYu",pt[lt.is]="BingDaoYu",pt[lt.ka]="GeLuJiYaYu",pt[lt.km]="GaoMianYu",pt[lt.ky]="JiErJiSiYu",pt[lt.lb]="LuSenBaoYu",pt[lt.ln]="LinGeLaYu",pt[lt.lt]="LiTaoWanYu",pt[lt.lv]="LaTuoWeiYaYu",pt[lt.mg]="MaErJiaShiYu",pt[lt.mk]="MaQiDunYu",pt[lt.mn]="MengGuWen",pt[lt.mt]="MaErTaYu",pt[lt.om]="AoLuoMoYu",pt[lt.ps]="PuShiTuYu",pt[lt.qu]="KeQiuYaYu",pt[lt.rw]="LuWangDaYu",pt[lt.sl]="SiLuoWeiNiYaYu",pt[lt.so]="SuoMaLiYu",pt[lt.sq]="AErBaNiYaYu",pt[lt.sw]="SiWaXiLiYu",pt[lt.tg]="TaJiKeYu",pt[lt.ti]="DiGeNiYaYu",pt[lt.ug]="WeiWuErYu",pt[lt.uz]="WuZiBieKeYu",pt[lt.yo]="YueLuBaYu",pt[lt.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"}(ht||(ht={})),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"}(ft||(ft={})),Ve(ft);var gt=Object.assign(Object.assign({},ft),{TranslationMemory:"TranslationMemory"}),mt=(Ve(gt),{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===lt.zh_HK||e===lt.zh_TW||e===lt.zh_SG)return"zh-tw";if(e===lt.in_ID)return"id";if(e===lt.iw_IL)return"he";var t=e.split("_")[0];return qe(mt.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===lt.zh_HK||e===lt.zh_TW||e===lt.zh_SG)return"zh-TW";if(e===lt.in_ID)return"id";if(e===lt.mni)return"mni-Mtei";var t=e.split("_")[0];return qe(mt.googleSupportedLanguages,t)?t:null},papagoSupportedLanguages:["ko","en","ja","zh-CN","zh-TW"],mapPapagoLanguage:function(e){if(e===lt.zh_CN)return"zh-CN";if(e===lt.zh_HK||e===lt.zh_TW||e===lt.zh_SG)return"zh-TW";var t=e.split("_")[0];return qe(mt.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===lt.in_ID)return"ID";var n=t.split("_")[0];return qe(mt.deepLSupportedSourceLanguages,n)?n:null},mapDeepLLanguage:function(e){var t=e.toUpperCase();if(e===lt.zh_CN||e===lt.zh_SG)return"ZH";if(e===lt.zh_HK||e===lt.zh_TW)return null;if(e===lt.en_GB||e===lt.en_US||e===lt.pt_BR||e===lt.pt_PT)return t.replace("_","-");if(e===lt.in_ID)return"ID";var n=t.split("_")[0];return"EN"===n?"EN-US":qe(mt.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===lt.pt_PT)return"pt-pt";if(e===lt.pt_BR)return"pt";if([lt.zh_CN,lt.zh_SG].includes(e))return"zh-Hans";if([lt.zh_HK,lt.zh_TW].includes(e))return"zh-Hant";if(e===lt.iw_IL)return"he";if(e===lt.in_ID)return"id";if(e===lt.ckb_IQ)return"ku";var t=e.split("_")[0];return qe(mt.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===lt.pt_PT)return"pt-PT";if(e===lt.pt_BR)return"pt";if(e===lt.es_MX)return"es-MX";if(e===lt.in_ID)return"id";if(e===lt.zh_CN||e===lt.zh_SG)return"zh";if(e===lt.zh_HK||e===lt.zh_TW)return"zh-TW";var t=e.split("_")[0];return qe(mt.amazonSupportedLanguages,t)?t:null}}),vt={};vt[ft.AiSelected]=dt,vt[ft.Aliyun]=dt.filter((function(e){return Boolean(mt.mapAliyunLanguage(e))})),vt[ft["ChatGPT3.5"]]=dt,vt[ft.Google]=dt.filter((function(e){return Boolean(mt.mapGoogleLanguage(e))})),vt[ft.Papago]=dt.filter((function(e){return Boolean(mt.mapPapagoLanguage(e))})),vt[ft.DeepL]=dt.filter((function(e){return Boolean(mt.mapDeepLLanguage(e))})),vt[ft.Microsoft]=dt.filter((function(e){return Boolean(mt.mapMicrosoftLanguage(e))})),vt[ft.Amazon]=dt.filter((function(e){return Boolean(mt.mapAmazonLanguage(e))}));var yt={};yt[ft.AiSelected]=dt,yt[ft.Aliyun]=dt.filter((function(e){return Boolean(mt.mapAliyunLanguage(e))})),yt[ft["ChatGPT3.5"]]=dt,yt[ft.Google]=dt.filter((function(e){return Boolean(mt.mapGoogleLanguage(e))})),yt[ft.Papago]=dt.filter((function(e){return Boolean(mt.mapPapagoLanguage(e))})),yt[ft.DeepL]=dt.filter((function(e){return Boolean(mt.mapDeepLSourceLanguage(e))})),yt[ft.Microsoft]=dt.filter((function(e){return Boolean(mt.mapMicrosoftLanguage(e))})),yt[ft.Amazon]=dt.filter((function(e){return Boolean(mt.mapAmazonLanguage(e))})),_t=dt.map((function(e){return[e,Ve(ft).filter((function(t){return qe(vt[t],e)}))]})),bt={},Object.keys(_t||{}).forEach((function(e){var t=_t[e],n=t[0],r=t[1];bt[n]=r}));var _t,bt,Et={};Et[lt.ar_SA]="العربية)السعودية)",Et[lt.kn]="ಕನ್ನಡ",Et[lt.as]="অসমীয়া",Et[lt.bho]="भोजपुरी",Et[lt.pl_PL]="Polski (Polska)",Et[lt.ko_KR]="한국어 (대한민국)",Et[lt.da_DK]="Dansk (Danmark)",Et[lt.de_DE]="Deutsch (Deutschland)",Et[lt.ru_RU]="Русский (Россия)",Et[lt.fr_FR]="Français (France)",Et[lt.gu]="ગુજરાતી",Et[lt.nl_BE]="Nederlands (Belgium)",Et[lt.nl_NL]="Nederlands (Nederland)",Et[lt.cs_CZ]="Čeština (Česká republika)",Et[lt.ro]="Română",Et[lt.lo_LA]="ລາວ (ລາວ)",Et[lt.my_MM]="မြန်မာဘာသာ (မြန်မာ)",Et[lt.bn_BD]="বাংলা (বাংলাদেশ)",Et[lt.bn_IN]="বাংলা (ভারত)",Et[lt.mr]="मराठी",Et[lt.ms_MY]="Bahasa Melayu (Malaysia)",Et[lt.ml]="മലയാളം",Et[lt.mni]="ꯃꯩꯇꯩꯂꯣꯟ",Et[lt.ne_NP]="नेपाली (नेपाल)\t",Et[lt.or]="ଓଡ଼ିଆ",Et[lt.pt_BR]="Português (Brasil)",Et[lt.pt_PT]="Português (Portugal)",Et[lt.pa]="پنجابی",Et[lt.sv_SE]="Svenska (Sverige)",Et[lt.ja_JP]="日本語",Et[lt.sr]="Српски",Et[lt.si_LK]="සිංහල (ශ්රී ලංකාව)",Et[lt.sk_SK]="Slovenčina (Slovensko)",Et[lt.tr_TR]="Türkçe (Türkiye)",Et[lt.tl_PH]="Wikang Tagalog (Philippines)",Et[lt.te]="తెలుగు",Et[lt.ta]="தமிழ்",Et[lt.th_TH]="ไทย (ประเทศไทย)",Et[lt.ur_PK]="اردو)پاکستان)",Et[lt.ur_IN]="اردو)بھارت)",Et[lt.uk_UA]="Українська (Україна)",Et[lt.iw_IL]="עִבְרִית (ישראל)",Et[lt.es_ES]="Español (España)",Et[lt.es_MX]="Español (México)",Et[lt.hu]="Magyar",Et[lt.it_IT]="Italiano (Italia)",Et[lt.in_ID]="Bahasa Indonesia (Indonesia)",Et[lt.hi_IN]="हिन्दी (भारत)",Et[lt.vi_VN]="Tiếng Việt (Việt Nam)",Et[lt.en_PK]="English (Pakistan)",Et[lt.en_PL]="English (Poland)",Et[lt.en_FR]="English (France)",Et[lt.en_PH]="English (Philippines)",Et[lt.en_CZ]="English (Czech Republic)",Et[lt.en_CA]="English (Canada)",Et[lt.en_MM]="English (Myanmar)",Et[lt.en_US]="English (United States)",Et[lt.en_BD]="English (Bangladesh)",Et[lt.en_MY]="English (Malaysia)",Et[lt.en_NP]="English (Nepal)",Et[lt.en_LK]="English (Sri Lanka)",Et[lt.en_TH]="English (Thailand)",Et[lt.en_ES]="English (Spain)",Et[lt.en_SG]="English (Singapore)",Et[lt.en_HU]="English (Hungary)",Et[lt.en_ID]="English (Indonesia)",Et[lt.en_GB]="English (Great Britain)",Et[lt.en_VN]="English (Vietnam)",Et[lt.en_HK]="English (Hong Kong)",Et[lt.en_KR]="English (Korea)",Et[lt.zh_TW]="繁体中文 (中國台灣)",Et[lt.zh_HK]="繁体中文 (中國香港)",Et[lt.zh_SG]="简体中文 (新加坡)",Et[lt.zh_CN]="简体中文",Et[lt.ar_IQ]="العربية (العراق)",Et[lt.ckb_IQ]="کوردیی ناوەندی (عێراق)",Et[lt.ku]="کورمانجی",Et[lt.kk_KZ]="قازاقشا ",Et[lt.af]="Afrikaans",Et[lt.am]="አማርኛ",Et[lt.az]="Azərbaycan",Et[lt.be]="беларуская мова",Et[lt.bg]="Български",Et[lt.bs]="босански",Et[lt.ca]="Català",Et[lt.cy]="Cymraeg",Et[lt.el]="Ελληνικά",Et[lt.eo]="Esperanto",Et[lt.et]="eesti keel",Et[lt.eu]="Euskara",Et[lt.fa]="فارسی",Et[lt.fi]="Suomi",Et[lt.gd]="Gaeilge",Et[lt.gl]="Galego",Et[lt.ha]="هَوُسَ",Et[lt.haw]="ʻŌlelo Hawaiʻi",Et[lt.hr]="Hrvatski",Et[lt.ig]="Asụsụ Igbo",Et[lt.is]="Íslenska",Et[lt.ka]="ქართული",Et[lt.km]="ភាសាខ្មែរ",Et[lt.ky]="кыргыз тили",Et[lt.lb]="Lëtzebuergesch",Et[lt.ln]="Lingála",Et[lt.lt]="lietuvių kalba",Et[lt.lv]="Latviešu valoda",Et[lt.mg]="malagasy",Et[lt.mk]="македонски",Et[lt.mn]="монгол хэл",Et[lt.mt]="Malti",Et[lt.om]="Oromoo",Et[lt.ps]="پښتو",Et[lt.qu]="Quechua",Et[lt.rw]="Ikinyarwanda",Et[lt.sl]="slovenščina",Et[lt.so]="Af-Soomaali",Et[lt.sq]="Gjuha shqipe",Et[lt.sw]="Kiswahili",Et[lt.tg]="тоҷикӣ",Et[lt.ti]="ትግርኛ",Et[lt.ug]="ئۇيغۇر تىلى",Et[lt.uz]="Ўзбек тили",Et[lt.yo]="Èdè Yorùbá",Et[lt.zu]="isiZulu",ft.AiSelected,(Je={})[lt.en_US]="AI Selected",Je[lt.zh_CN]="AI 精选",(Xe={})[lt.en_US]="AI selection of translations",Xe[lt.zh_CN]="多渠道翻译的 AI 精选",yt.AiSelected,vt.AiSelected,(Ze={})[lt.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.",Ze[lt.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",(Qe={})[lt.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.",Qe[lt.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",ft["ChatGPT3.5"],($e={})[lt.en_US]="GPT-3.5",$e[lt.zh_CN]="GPT-3.5",(et={})[lt.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",et[lt.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",(tt={})[lt.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",tt[lt.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",yt["ChatGPT3.5"],vt["ChatGPT3.5"],ft.Aliyun,(nt={})[lt.en_US]="Alibaba",nt[lt.zh_CN]="阿里云",yt.Aliyun,vt.Aliyun,ft.Google,(rt={})[lt.en_US]="Google",rt[lt.zh_CN]="Google",yt.Google,vt.Google,ft.DeepL,(ot={})[lt.en_US]="DeepL",ot[lt.zh_CN]="DeepL",yt.DeepL,vt.DeepL,ft.Microsoft,(it={})[lt.en_US]="Azure AI",it[lt.zh_CN]="Azure AI",yt.Microsoft,vt.Microsoft,ft.Amazon,(at={})[lt.en_US]="Amazon",at[lt.zh_CN]="Amazon",yt.Amazon,vt.Amazon,ft.Papago,(st={})[lt.en_US]="Papago",st[lt.zh_CN]="Papago",(ut={})[lt.en_US]="Papago does not support translating HTML and will automatically skip HTML content during batch translation.",ut[lt.zh_CN]="Papago 不支持翻译 HTML,在批量翻译时会自动跳过 HTML 内容",(ct={})[lt.en_US]="Papago does not support HTML. Available locales are Chinese, Japanese, Korean, and English. Please check the translation results carefully.",ct[lt.zh_CN]="Papago 不支持翻译 HTML,仅支持翻译中、日、韩、英,请仔细检查翻译结果",yt.Papago,vt.Papago;var St=Object.keys(Ie).map((function(e){return Ie[e]})),wt=/^##@@@(.+?)##(.+?)@@@##(.+?)@@@##$/,Tt=function(e,t){return(Tt=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 At(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}Tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Pt,Rt,Ot,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 kt(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 Lt(e){return e.type===Rt.literal}function It(e){return e.type===Rt.argument}function Ct(e){return e.type===Rt.number}function Mt(e){return e.type===Rt.date}function Dt(e){return e.type===Rt.time}function xt(e){return e.type===Rt.select}function Ut(e){return e.type===Rt.plural}function Bt(e){return e.type===Rt.pound}function Ht(e){return e.type===Rt.tag}function jt(e){return!(!e||"object"!=L()(e)||e.type!==Ot.number)}function zt(e){return!(!e||"object"!=L()(e)||e.type!==Ot.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"}(Pt||(Pt={})),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"}(Rt||(Rt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Ot||(Ot={}));var Ft=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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 Kt(e){var t={};return e.replace(Gt,(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,Wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Vt=/^(@+)?(\+|#+)?[rs]?$/g,qt=/(\*)(0+)|(#+)(0+)|(0+)/g,Jt=/^(0+)$/;function Xt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Vt,(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 Zt(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 Qt(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)),!Jt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function $t(e){return Zt(e)||{}}function en(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),$t(t))}),{}));continue;case"engineering":t=Nt(Nt(Nt({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return Nt(Nt({},e),$t(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(qt,(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(Jt.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Wt.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Wt,(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),Xt(i)))}else if(Vt.test(o.stem))t=Nt(Nt({},t),Xt(o.stem));else{var a=Zt(o.stem);a&&(t=Nt(Nt({},t),a));var s=Qt(o.stem);s&&(t=Nt(Nt({},t),s))}}return t}var tn,nn={"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 rn(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),(nn[n||""]||nn[r||""]||nn["".concat(r,"-001")]||nn["001"])[0]}var on=new RegExp("^".concat(Ft.source,"*")),an=new RegExp("".concat(Ft.source,"*$"));function sn(e,t){return{start:e,end:t}}var un=!!String.prototype.startsWith&&"_a".startsWith("a",1),cn=!!String.fromCodePoint,ln=!!Object.fromEntries,hn=!!String.prototype.codePointAt,fn=!!String.prototype.trimStart,dn=!!String.prototype.trimEnd,pn=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},gn=!0;try{gn="a"===(null===(tn=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===tn?void 0:tn[0])}catch(Ie){gn=!1}var mn,vn=un?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},yn=cn?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},_n=ln?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},bn=hn?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}},En=fn?function(e){return e.trimStart()}:function(e){return e.replace(on,"")},Sn=dn?function(e){return e.trimEnd()}:function(e){return e.replace(an,"")};function wn(e,t){return new RegExp(e,t)}if(gn){var Tn=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mn=function(e,t){var n;return Tn.lastIndex=t,null!==(n=Tn.exec(e)[1])&&void 0!==n?n:""}}else mn=function(e,t){for(var n=[];;){var r=bn(e,t);if(void 0===r||Rn(r)||On(r))break;n.push(r),t+=r>=65536?2:1}return yn.apply(void 0,n)};var An=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(Pt.UNMATCHED_CLOSING_TAG,sn(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Pn(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:Rt.pound,location:sn(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:Rt.literal,value:"<".concat(r,"/>"),location:sn(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()||!Pn(this.char()))return this.error(Pt.INVALID_TAG,sn(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(Pt.UNMATCHED_CLOSING_TAG,sn(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Rt.tag,value:r,children:i,location:sn(n,this.clonePosition())},err:null}:this.error(Pt.INVALID_TAG,sn(a,this.clonePosition())))}return this.error(Pt.UNCLOSED_TAG,sn(n,this.clonePosition()))}return this.error(Pt.INVALID_TAG,sn(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=sn(n,this.clonePosition());return{val:{type:Rt.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Pn(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 yn.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(),yn(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,sn(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Pt.EMPTY_ARGUMENT,sn(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Pt.MALFORMED_ARGUMENT,sn(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,sn(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Rt.argument,value:r,location:sn(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,sn(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Pt.MALFORMED_ARGUMENT,sn(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=mn(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:sn(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(Pt.EXPECT_ARGUMENT_TYPE,sn(i,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(d=Sn(v.val)).length)return this.error(Pt.EXPECT_ARGUMENT_STYLE,sn(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:sn(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var l=sn(r,this.clonePosition());if(u&&vn(null==u?void 0:u.style,"::",0)){var h=En(u.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?v:{val:{type:Rt.number,value:n,location:l,style:v.val},err:null};if(0===h.length)return this.error(Pt.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=rn(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:Ot.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Kt(f):{}};return{val:{type:"date"===a?Rt.date:Rt.time,value:n,location:l,style:d},err:null}}return{val:{type:"number"===a?Rt.number:"date"===a?Rt.date:Rt.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(Pt.EXPECT_SELECT_ARGUMENT_OPTIONS,sn(p,Nt({},p)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,sn(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(Pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Pt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=v.val}var y,_=this.tryParsePluralOrSelectOptions(e,a,t,g);if(_.err)return _;if((y=this.tryParseArgumentClose(r)).err)return y;var b=sn(r,this.clonePosition());return"select"===a?{val:{type:Rt.select,value:n,options:_n(_.val),location:b},err:null}:{val:{type:Rt.plural,value:n,options:_n(_.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error(Pt.INVALID_ARGUMENT_TYPE,sn(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,sn(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(Pt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,sn(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(Pt.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ot.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?en(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(Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Pt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=sn(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}if(s.has(u))return this.error("select"===t?Pt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Pt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Pt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,sn(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:sn(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?Pt.EXPECT_SELECT_ARGUMENT_SELECTOR:Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,sn(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Pt.MISSING_OTHER_CLAUSE,sn(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=sn(r,this.clonePosition());return o?pn(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=bn(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(vn(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()&&Rn(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 Pn(e){return e>=97&&e<=122||e>=65&&e<=90}function Rn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function On(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 Nn(e,t){void 0===t&&(t={}),t=Nt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new An(e,t).parse();if(n.err){var r=SyntaxError(Pt[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,xt(t)||Ut(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else Ct(t)&&jt(t.style)||(Mt(t)||Dt(t))&&zt(t.style)?delete t.style.location:Ht(t)&&e(t.children)}))}(n.val),n.val}function kn(e,t){var n=t&&t.cache?t.cache:Bn,r=t&&t.serializer?t.serializer:Dn;return(t&&t.strategy?t.strategy:Mn)(e,{cache:n,serializer:r})}function Ln(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 In(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 Cn(e,t,n,r,o){return n.bind(t,e,r,o)}function Mn(e,t){return Cn(e,this,1===e.length?Ln:In,t.cache.create(),t.serializer)}var Dn=function(){return JSON.stringify(arguments)};function xn(){this.cache=Object.create(null)}xn.prototype.get=function(e){return this.cache[e]},xn.prototype.set=function(e,t){this.cache[e]=t};var Un,Bn={create:function(){return new xn}},Hn={variadic:function(e,t){return Cn(e,this,In,t.cache.create(),t.serializer)},monadic:function(e,t){return Cn(e,this,Ln,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Un||(Un={}));var jn,zn=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return At(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Fn=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('", "'),'"'),Un.INVALID_VALUE,o)||this}return At(t,e),t}(zn),Gn=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Un.INVALID_VALUE,r)||this}return At(t,e),t}(zn),Kn=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,'"'),Un.MISSING_VALUE,n)||this}return At(t,e),t}(zn);function Yn(e){return"function"==typeof e}function Wn(e,t,n,r,o,i,a){if(1===e.length&&Lt(e[0]))return[{type:jn.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var l=c[u];if(Lt(l))s.push({type:jn.literal,value:l.value});else if(Bt(l))"number"==typeof i&&s.push({type:jn.literal,value:n.getNumberFormat(t).format(i)});else{var h=l.value;if(!o||!(h in o))throw new Kn(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?jn.literal:jn.object,value:f});else if(Mt(l)){var d="string"==typeof l.style?r.date[l.style]:zt(l.style)?l.style.parsedOptions:void 0;s.push({type:jn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(Dt(l))d="string"==typeof l.style?r.time[l.style]:zt(l.style)?l.style.parsedOptions:r.time.medium,s.push({type:jn.literal,value:n.getDateTimeFormat(t,d).format(f)});else if(Ct(l))(d="string"==typeof l.style?r.number[l.style]:jt(l.style)?l.style.parsedOptions:void 0)&&d.scale&&(f*=d.scale||1),s.push({type:jn.literal,value:n.getNumberFormat(t,d).format(f)});else{if(Ht(l)){var p=l.children,g=l.value,m=o[g];if(!Yn(m))throw new Gn(g,"function",a);var v=m(Wn(p,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?jn.literal:jn.object,value:e}})))}if(xt(l)){if(!(y=l.options[f]||l.options.other))throw new Fn(l.value,f,Object.keys(l.options),a);s.push.apply(s,Wn(y.value,t,n,r,o))}else if(Ut(l)){var y;if(!(y=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new zn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Un.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 Fn(l.value,f,Object.keys(l.options),a);s.push.apply(s,Wn(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===jn.literal&&t.type===jn.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function Vn(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"}(jn||(jn={}));var qn=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===jn.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 Wn(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:kn((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,kt([void 0],n,!1)))}),{cache:Vn(i.number),strategy:Hn.variadic}),getDateTimeFormat:kn((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,kt([void 0],n,!1)))}),{cache:Vn(i.dateTime),strategy:Hn.variadic}),getPluralRules:kn((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,kt([void 0],n,!1)))}),{cache:Vn(i.pluralRules),strategy:Hn.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=Nn,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 Jn(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 Xn=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Jn({},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,"",Jn({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Jn({},this.attributes,t))},withConverter:function(t){return e(Jn({},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:"/"}),Zn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.warn.apply(console,e)},Qn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.error.apply(console,e)},$n=function(){return"object"==("undefined"==typeof ac?"undefined":L()(ac))&&"function"==typeof ac.call},er=function(){return"undefined"!=typeof my&&void 0!==my.canIUse&&!$n()},tr=function(){return"object"==("undefined"==typeof window?"undefined":L()(window))},nr=function(){return function(){var e;return!!tr()&&((null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"").toLowerCase().indexOf("alipayclient")>-1}()||tr()&&"undefined"!=typeof AlipayJSBridge},rr=function(){return"undefined"!=typeof wx&&void 0!==wx.canIUse},or=function(){return!(void 0===n.g||tr()||er()||rr()||$n())},ir="bailingualLocaleChange",ar="bailingualDataChange",sr="bailingualError";function ur(e){void 0===e&&(e="");for(var t=(function(e){if("object"==("undefined"==typeof document?"undefined":L()(document)))try{return Xn.get(e)||Xn.get("_CHIPS-"+e)}catch(e){return Zn("[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 cr,lr=function(e){if(void 0===e&&(e=""),e=e.replace("_","-"),nr()||er()||$n()){var t=We[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()]),Ar(St,e)?e:""};function hr(e){return void 0===e&&(e=!0),lr(function(e){return void 0===e&&(e=!0),er()||$n()?my.env&&my.env.language||my.getSystemInfoSync().language:rr()?wx.getSystemInfoSync().language:or()?n.g.BAILINGUAL_LOCALE:!!e&&function(){var e=ur("x-hng")||ur("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(tr()){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(tr()&&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 fr(e,t,n){void 0===n&&(n={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&Xn.set(e,t,n)}catch(e){Zn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function dr(e,t){void 0===t&&(t={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&Xn.remove(e,t)}catch(e){Zn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function pr(){"object"==("undefined"==typeof document?"undefined":L()(document))&&"object"==("undefined"==typeof location?"undefined":L()(location))&&(dr("x-hng",{path:"/",domain:location.hostname}),dr("x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0}),dr("_CHIPS-x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0,Partitioned:!0}),dr("x-hng",{path:"/"}),dr("x-hng",{path:"/",SameSite:"None",Secure:!0}),dr("_CHIPS-x-hng",{path:"/",SameSite:"None",Secure:!0,Partitioned:!0}))}!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.MISSING_PARAM="MISSING_PARAM"}(cr||(cr={}));var gr,mr,vr,yr,_r,br,Er,Sr,wr=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},Tr=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},Ar=function(e,t){return e.indexOf(t)>-1};function Pr(e){var t,n;try{return mr?(null===(t=mr.getItem)||void 0===t?void 0:t.call(mr,e))||"":er()||$n()?(null===(n=my.getStorageSync({key:e}))||void 0===n?void 0:n.data)||"":rr()?wx.getStorageSync(e)||"":"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.getItem(e)||""}catch(e){return""}}function Rr(e,t){var n;try{if(t=(t||"").toString(),mr)return void(null===(n=mr.setItem)||void 0===n||n.call(mr,e,t));if(er()||$n())return void my.setStorage({key:e,data:t});if(rr())return void wx.setStorage({key:e,data:t});"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.setItem(e,t)}catch(e){}}function Or(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 gr?gr(e):$n()?new Promise((function(t,n){my.request({url:e,success:function(e){t(e.data)},fail:function(){n()}})})):er()?new Promise((function(t,n){my.call("httpRequest",{url:e},(function(e){!e||e.error?n():t(e.data)}))})):rr()?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"}(Er||(Er={})),function(e){e.INTERNET="INTERNET",e.INTRANET="INTRANET"}(Sr||(Sr={}));var Nr={ANTINTL:(vr={},vr[Er.DAILY]="https://bailingual-daily.marmot-cloud.com/manifest/",vr[Er.PROD]="https://bailingual.marmot-cloud.com/manifest/",vr),ALIPAY:(yr={},yr[Er.DAILY]="https://bailingual-assets-daily.alipay.com/manifest/",yr[Er.PROD]="https://bailingual-assets.alipay.com/manifest/",yr)},kr={};kr[Sr.INTERNET]=((_r={})[Er.DAILY]=function(e,t,n){var r;return""+(n?null===(r=Nr[n])||void 0===r?void 0:r[Er.DAILY]:"")+e+"/"+e+(t?"_"+t:"")+".json"},_r[Er.PROD]=function(e,t,n){var r;return""+(n?null===(r=Nr[n])||void 0===r?void 0:r[Er.PROD]:"")+e+"/"+e+(t?"_"+t:"")+".json"},_r),kr[Sr.INTRANET]=((br={})[Er.DAILY]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/daily/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},br[Er.PROD]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/prod/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},br);var Lr;function Ir(){return"true"===Pr("__BAILINGUAL_IN_CONTEXT__")}function Cr(){if(!(er()||rr()||$n())){var e=Pr("BAILINGUAL_IN_CONTEXT_CONFIG")||"{}",t=!1;try{t=JSON.parse(e).enableExtension}catch(e){Zn("[bailingual-sdk-glue] JSON.parse data fail: "+e)}Lr=Ir()&&t}}function Mr(){return void 0===Lr&&Cr(),Lr}function Dr(){Rr("__BAILINGUAL_IN_CONTEXT__","true"),Cr(),new Promise((function(e,t){if(er()||rr()||$n())return e();var n;if("undefined"!=typeof document&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script"))return Or("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 xr(e,t,n){return"##@@@"+t+"##"+e+"@@@##"+n+"@@@##"}function Ur(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 Br(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($n())my.request({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t,url:n});else if(er())my.call("httpRequest",{url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if(rr())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(tr()&&"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(!(er()||rr()||$n()))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 Dr();if("undefined"==typeof document)return;if(nr()){var t=0,n=0;document.addEventListener("titleClick",(function(){if(!Mr()){if(7==++n)return Dr(),n=0,clearTimeout(t),void(t=null);clearTimeout(t),t=setTimeout((function(){n=0,t=null}),1500)}}))}document.addEventListener("__BAILINGUAL_IN_CONTEXT_DISABLE__",(function(){Rr("__BAILINGUAL_IN_CONTEXT__","false"),Cr()}))}catch(e){Zn("[bailingual-sdk-glue] initBailingualInContext fail: "+e)}}();var Hr=function(e){return e<10?"0"+e:""+e};function jr(){var e=new Date;return e.getFullYear()+"-"+Hr(e.getMonth()+1)+"-"+Hr(e.getDate())+" "+Hr(e.getHours())+":"+Hr(e.getMinutes())+":"+Hr(e.getSeconds())+":"+e.getMilliseconds()}function zr(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 Fr(e,t){var n,r,o;if(!t||!t.appName||!t.keyCounts.length)return"";var i=[];switch(e){case"CN":default:i=["D-AE",jr(),"","","2","","","","1000","102023","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",zr({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:Ur(t.keyCounts),sampleRate:"1",yuyan_id:"180020010101313281",fullURL:"-",s_c:"true"})];break;case"SG":i=["D-AE",jr(),"","","2","","","","1000","bailingualTextUsage","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",zr({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:Ur(t.keyCounts)})];break;case"US":i=["D-VM",jr(),"","","4","-","-","-","exposure","-","-","-","-","-","-","bailingualTextUsage","2","H5behavior","c","-","-","-",zr({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:Ur(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 Gr=function(e){var t=e.region;this.queue=[],this.region=t,this.startTimer()};Gr.prototype.startTimer=function(){var e,t,n=this;this.region?(this.timer=setTimeout((function(){n._report()}),5e3),tr()&&(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)},Gr.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=Fr(e,{appName:t.appName,textLocale:t.textLocale,sdkName:t.sdkName,sdkVersion:t.sdkVersion,env:t.env,keyCounts:o});Br(e,i)}}))}catch(n){console.error("reportUsageRequest error with",e,t)}else console.error("empty data")}(this.region,t),this.queue=[]}this.startTimer()},Gr.prototype.getRegion=function(){return this.region},Gr.prototype.setRegion=function(e){this.region=e,this.startTimer()},Gr.prototype.report=function(e){this.region&&this.queue.push(e)};var Kr=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}};Kr.setCustomizedGetSystemLocale=function(e){this.customizedGetSystemLocale=e},Kr.customizeGetSystemLocale=function(e){this.customizedGetSystemLocale=e},Kr.customizeStorage=function(e){return function(e){mr=e}(e)},Kr.getDataFromStorage=function(e){return Pr(e)},Kr.setDataToStorage=function(e,t){return Rr(e,t)},Kr.customizeFetch=function(e){gr=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 Gr({region:e})),e&&(null===(t=this.usageReporter)||void 0===t||t.setRegion(e))},Kr.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))||hr(this.canReadLocaleFromCookie))},Kr.prototype.getPatchI18nKey=function(){return this.appName?this.tag?this.appName+"+"+this.tag:this.appName:""},Kr.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))||hr(this.canReadLocaleFromCookie))},Kr.prototype.getServerSideFallbackData=function(){if(or()){var e=n.g.BAILINGUAL_FALLBACK;return e||(Zn("[bailingual-sdk-glue] [Server] no fallback data found."),e={}),e}},Kr.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 Gr({region:this.usageReportRegion}),this.tag=e.tag||"",Object.keys(e).forEach((function(n){if("object"==L()(e[n])){var r=lr(n);if(!r)return void Qn("[bailingual-sdk-glue] "+n+" is not a valid locale code");t.langPkgsNoPatch[r]=Tr({},e[n]),t.i18nText[r]=Tr({},e[n])}})),this.handlePatchedData(),this.availableLocales=Object.keys(this.i18nText);var n=e.defaultLocale||this.availableLocales[0];!e.defaultLocale&&n&&Zn("[bailingual-sdk-glue] no defaultLocale specified, use first locale code '"+n+"' instead."),this.defaultLocale=this.judgeLocaleCode(n),this.defaultLocale||Qn("[bailingual-sdk-glue] defaultLocale '"+n+"' is invalid.")},Kr.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=Pr("BAILINGUAL_PATCH_I18N_DELETED-"+e);return t?JSON.parse(t):{}}catch(e){return Qn("[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=Pr("BAILINGUAL_PATCH_I18N-"+e);return t?JSON.parse(t):{}}catch(e){return Qn("[bailingual-sdk-glue] fail to get local patch data, error detail: "+e),{}}}(n);Object.keys(o).forEach((function(e){Ar(St,e)&&(t.i18nText[e]||Zn("[bailingual-sdk-glue] locale '"+e+"' is not exist in init data, but found in patch data."),t.i18nText[e]=t.i18nText[e]||{},Tr(t.i18nText[e],o[e]))})),null===(e=r.removedLocales)||void 0===e||e.forEach((function(e){e=lr(e),Ar(St,e)&&delete t.i18nText[e]})),Object.keys(r.removedKeys||{}).forEach((function(e){if(e=lr(e),Ar(St,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{Rr("BAILINGUAL_PATCH_I18N-"+e,""),Rr("BAILINGUAL_PATCH_I18N_DELETED-"+e,"")}catch(e){Qn("[bailingual-sdk-glue] fail to remove local patch data, error detail: "+e)}}(n)},Kr.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))||nr()||er()||$n()||rr()||(pr(),fr("x-hng","lang="+e,{path:"/",expires:180}),fr("_CHIPS-x-hng","lang="+e,{path:"/",expires:180,SameSite:"None",Partitioned:!0,Secure:!0}))}(e),this.emit(ir,e))},Kr.prototype.getIntlMessageWithPDKVFormat=function(e,t,n){var r,o=t.id,i=null===(r=t.ignoreTag)||void 0===r||r,a=JSON.stringify([o,i]);this.intlPDKVMessages[e]=this.intlPDKVMessages[e]||{};var s=this.intlPDKVMessages[e][a];if(!s){var u=n[o];u.match(wt)||(u=xr(this.appName,o,u)),s=this.createIntlMessageFormat(u,e,i),this.intlPDKVMessages[e][a]=s}return s},Kr.prototype.getIntlMessageWithNormalFormat=function(e,t,n){var r,o=t.id,i=null===(r=t.ignoreTag)||void 0===r||r,a=JSON.stringify([o,i]),s=(null==n?void 0:n[o])||t.dm||t.defaultMessage||"";if(null==n?void 0:n[o]){this.intlMessages[e]=this.intlMessages[e]||{};var u=this.intlMessages[e][a];return u||(u=this.createIntlMessageFormat(s,e,i),this.intlMessages[e][a]=u),u}return this.createIntlMessageFormat(s,e,i)},Kr.prototype.formatByLocaleCode=function(e,t,n){var r,o=this,i=this.i18nText[n];try{r=Mr()&&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 Zn(s),Zn("[bailingual-sdk-glue] error detail:",t),this.emit(sr,new wr({code:cr.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){Ar(u,t)||o.emit(sr,new wr({code:cr.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 Zn(l),Zn("[bailingual-sdk-glue] error detail:",n),this.emit(sr,new wr({code:cr.FORMAT_ERROR,message:l,err:n,textKey:e.id})),""}},Kr.prototype.format=function(e,t,n){void 0===t&&(t={});var r=n;return r&&((r=lr(r))||Qn("[bailingual-sdk-glue] "+n+" is not a valid locale code, use default locale instead.")),r||(r=this.currentLocale),r||Qn("[bailingual-sdk-glue] no locale code found!"),this.formatByLocaleCode(e,t,r)},Kr.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))},Kr.prototype.judgeLocaleCode=function(e){if(void 0===e&&(e=""),e=lr(e),Ar(this.availableLocales,e))return e},Kr.prototype.changeLocale=function(e){var t=this.judgeLocaleCode(e);t||this.currentLocale||(t=this.defaultLocale),t?this.setLocale(t):Qn("[bailingual-sdk-glue] '"+e+"' is not a vaid locale code")},Kr.prototype.unsafeChangeLocale=function(e){void 0===e&&(e=""),this.setLocale(e)},Kr.prototype.getAllData=function(e){var t=this;if(this.i18nText&&e&&Mr()){var n={};return Object.keys(this.i18nText).forEach((function(e){n[e]=t.buildPDKVLocaleText(t.i18nText[e])})),n}return this.i18nText},Kr.prototype.buildPDKVLocaleText=function(e){var t=this,n={};return Object.keys(e||{}).forEach((function(r){var o=e[r];o.match(wt)||(o=xr(t.appName,r,o)),n[r]=o})),n},Kr.prototype.getDataWithLocale=function(e,t){e||Zn("[bailingual-sdk-glue] no locale code specified, use default locale ("+this.defaultLocale+") instead.");var n=this.i18nText[lr(e||this.defaultLocale)];return n&&t&&Mr()?this.buildPDKVLocaleText(n):n},Kr.prototype.getDataFromCurrentLocale=function(e){if(this.currentLocale)return this.getDataWithLocale(this.currentLocale,e);Qn("[bailingual-sdk-glue] error occured: no 'currentLocale' found, please check if you have called 'initData' or 'changeLocale' method before.")},Kr.prototype.getCurrentLocale=function(){return this.currentLocale||""},Kr.prototype.getDefaultLocale=function(){return this.defaultLocale},Kr.prototype.formatLocaleCode=function(e){return lr(e)},Kr.prototype.patchI18n=function(e,t){return new Promise(function(n,r){var o,i,a,s;if(!(t=t||{}).isIntranet&&!t.buIdentifier)return Qn('[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'),this.emit(sr,new wr({code:cr.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 Qn("[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)||(Qn("[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 Or(function(e,t,n,r,o){var i,a;return null===(a=null===(i=kr[t])||void 0===i?void 0:i[e])||void 0===a?void 0:a.call(i,n,r,o)}(t.isDaily?Er.DAILY:Er.PROD,t.isIntranet?Sr.INTRANET:Sr.INTERNET,e.appName,e.tag,o)).then((function(e){return e?Or(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=lr(t);r&&(n[r]=n[r]||{},Tr(n[r],e[t]))}}))}));var r=Object.keys(n),o=Object.keys(e);r.sort().toString()!==o.sort().toString()&&Zn("[bailingual-sdk-glue] locales in local data '"+o+"' is different from cdn data '"+r+"'");var i={removedKeys:{},removedLocales:o.filter((function(e){return!Ar(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]=Tr({},o,r)})),o.forEach((function(t){if(!Ar(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]||[],Ar(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&&(Rr("BAILINGUAL_PATCH_I18N-"+s,JSON.stringify(i)),Rr("BAILINGUAL_PATCH_I18N_DELETED-"+s,JSON.stringify(a))),n()}catch(e){return r(e)}}.bind(this),r):(Qn("[bailingual-sdk-glue] no bailingual packages found, stop patch"),n())}.bind(this))},Kr.prototype.updateData=function(e){var t=Object.keys(e).filter((function(e){return Ar(St,e)}));return this.defaultLocale&&!Ar(t,this.defaultLocale)?(Qn("[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(ar,e),this.currentLocale&&!Ar(t,this.currentLocale)&&(Zn("[bailingual-sdk-glue] current locale "+this.currentLocale+" is not available, use default locale ("+this.defaultLocale+") instead."),this.changeLocale(this.defaultLocale)),!0)},Kr.prototype.on=function(e,t){this.eventHandler[e]=this.eventHandler[e]||[],this.eventHandler[e].push(t)},Kr.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)}))},Kr.prototype.onDataChange=function(e){this.on(ar,e)},Kr.prototype.offDataChange=function(e){this.off(ar,e)},Kr.prototype.onLocaleChange=function(e){this.on(ir,e)},Kr.prototype.offLocaleChange=function(e){this.off(ir,e)},Kr.prototype.onError=function(e){this.on(sr,e)},Kr.prototype.offError=function(e){this.off(sr,e)},Kr.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)}))},Kr.prototype.stopPatchI18n=function(){this.canUsePatchedData=!1},Kr.prototype.setAutoStoreCurrentLocaleToCookie=function(e){this.canStoreCurrentLocaleToCookie=!!e},Kr.prototype.setAutoReadLocaleFromCookie=function(e){this.canReadLocaleFromCookie=!!e},Kr.prototype.getAllLocales=function(){return[].concat(this.availableLocales)},Kr.prototype.changeUsageReportRegion=function(e){this.usageReportRegion=e},Kr.prototype.changeBizEnv=function(e){this.bizEnv=e},Kr.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"})},Kr.prototype.removeBailingualCookie=function(){pr()},Object.defineProperties(Kr.prototype,Yr),Kr.customizedGetSystemLocale=void 0;var Wr=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){Ar([Rt.argument,Rt.number,Rt.date,Rt.time,Rt.select,Rt.plural],e.type)&&"value"in e&&void 0===r[e.value]&&(r[e.value]="")})),r},t.prototype.createIntlMessageFormat=function(e,t,n){return void 0===n&&(n=!0),new qn(e,t,{},{ignoreTag:n})},t}(Kr),Vr=new Wr,qr=(Vr.get.bind(Vr),"antom-language-storage-key"),Jr="en_US",Xr=new Wr;function Zr(e){if(e)return Qr(e);try{var t=window._amsSdkLanguage||window.sessionStorage.getItem(qr)||window.localStorage.getItem(qr);if(t)return Qr(t)}catch(e){}if(navigator.language){var n=!/[-,_]/.test(navigator.language),r=Xr.getAllLocales().find((function(e){return n?e.startsWith(navigator.language):Qr(e)===Qr(navigator.language)}))||Jr;if(r)return r=Qr(r)}return Jr}function Qr(e){var t=e;t||(t=Jr);var n=t.split(/[-,_]/),r=d(n,2),o=r[0],i=r[1];return o||(o="en"),i?"".concat(o.toLowerCase(),"_").concat(i.toUpperCase()):o.toLowerCase()}var $r={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"},eo=u(u({},{UNKNOWN_ERROR:"UNKNOWN_ERROR",NO_PORTS_ERROR:"NO_PORTS_ERROR",INVALID_REDIRECT_URL:"INVALID_REDIRECT_URL"}),$r);M.initConfig({i18n:Xr,i18nPrefix:"ANTOMSDK",getDefaultMessage:function(){return Xr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})}});var to=function(e){T(n,e);var t=P(n);function n(){var e;b(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)),O(S(e),"name","AntomError"),O(S(e),"response",void 0),e}return y(n,null,[{key:"isError",value:function(e){return M.isError(e)}},{key:"unificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";return M.unificationError(e,t)}}]),n}(M),no=function(e){T(n,e);var t=P(n);function n(){var e;b(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)),O(S(e),"name","AntomCoreError"),e}return y(n)}(to),ro=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(){}}},oo=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})}},io=(window||{}).navigator,ao=io.userAgent,so=function(){var e=/OpenHarmony/i.test(io.userAgent),t=/Phone/i.test(io.userAgent),n=/Tablet/i.test(io.userAgent);return e&&(t||n)},uo=/iPhone|iPad|iPod/i.test(ao)||"MacIntel"===io.platform&&io.maxTouchPoints>1,co=/Android/i.test(ao),lo=(/\bMacintosh\b/.test(ao),/Windows NT/.test(ao),function(){return/Android|iPhone|iPad|iPod|Mobile|SymbianOS|Windows Phone/.test(ao)||so()}),ho=uo,fo=co,po=!!lo(),go=!lo();so();var mo=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}},vo=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 mo(n)}},yo=function(e){return(null==e?void 0:e.split("&&").slice(0,2).join("&&"))||"无trackId"},_o=function(e){return e.split("&&")[1]||"SG"};function bo(e,t){return function(){return e.apply(t,arguments)}}var Eo,So,wo=n(822),To=Object.prototype.toString,Ao=Object.getPrototypeOf,Po=Symbol.iterator,Ro=Symbol.toStringTag,Oo=(Eo=Object.prototype.hasOwnProperty,function(e,t){return Eo.call(e,t)}),No=function(e){return"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e)},ko=function(e,t,n){return e===Object.prototype||!n&&null===t},Lo=function(e,t){for(var n=e,r=[];null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);var o=Ao(n);if(ko(n,o,n===e))return!1;if(Oo(n,t))return!0;n=o}return!1},Io=(So=Object.create(null),function(e){var t=To.call(e);return So[t]||(So[t]=t.slice(8,-1).toLowerCase())}),Co=function(e){return e=e.toLowerCase(),function(t){return Io(t)===e}},Mo=function(e){return function(t){return k(t)===e}},Do=Array.isArray,xo=Mo("undefined");function Uo(e){return null!==e&&!xo(e)&&null!==e.constructor&&!xo(e.constructor)&&jo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Bo=Co("ArrayBuffer");var Ho=Mo("string"),jo=Mo("function"),zo=Mo("number"),Fo=function(e){return null!==e&&"object"===k(e)},Go=function(e){if(!Fo(e))return!1;var t=Ao(e);return!(null!==t&&t!==Object.prototype&&null!==Ao(t)||Lo(e,Ro)||Lo(e,Po))},Ko=Co("Date"),Yo=Co("File"),Wo=Co("Blob"),Vo=Co("FileList"),qo=Co("Set");var Jo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},Xo=void 0!==Jo.FormData?Jo.FormData:void 0,Zo=Co("URLSearchParams"),Qo=["ReadableStream","Request","Response","Headers"].map(Co),$o=d(Qo,4),ei=$o[0],ti=$o[1],ni=$o[2],ri=$o[3];function oi(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"!==k(e)&&(e=[e]),Do(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(Uo(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 ii(e,t){if(Uo(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 ai="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,si=function(e){return!xo(e)&&e!==ai};var ui,ci=(ui="undefined"!=typeof Uint8Array&&Ao(Uint8Array),function(e){return ui&&e instanceof ui}),li=Co("HTMLFormElement"),hi=Object.prototype.propertyIsEnumerable,fi=Co("RegExp"),di=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};oi(n,(function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};var pi,gi,mi,vi,yi=Co("AsyncFunction"),_i=(pi="function"==typeof setImmediate,gi=jo(ai.postMessage),pi?setImmediate:gi?(mi="axios@".concat(Math.random()),vi=[],ai.addEventListener("message",(function(e){var t=e.source,n=e.data;t===ai&&n===mi&&vi.length&&vi.shift()()}),!1),function(e){vi.push(e),ai.postMessage(mi,"*")}):function(e){return setTimeout(e)}),bi="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ai):void 0!==wo&&wo.nextTick||_i,Ei=function(e){return null!=e&&jo(e[Po])},Si={isArray:Do,isArrayBuffer:Bo,isBuffer:Uo,isFormData:function(e){if(!e)return!1;if(Xo&&e instanceof Xo)return!0;var t=Ao(e);if(!t||t===Object.prototype)return!1;if(!jo(e.append))return!1;var n=Io(e);return"formdata"===n||"object"===n&&jo(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bo(e.buffer)},isString:Ho,isNumber:zo,isBoolean:function(e){return!0===e||!1===e},isObject:Fo,isPlainObject:Go,isEmptyObject:function(e){if(!Fo(e)||Uo(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ei,isRequest:ti,isResponse:ni,isHeaders:ri,isUndefined:xo,isDate:Ko,isFile:Yo,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:Wo,isRegExp:fi,isFunction:jo,isStream:function(e){return Fo(e)&&jo(e.pipe)},isURLSearchParams:Zo,isTypedArray:ci,isFileList:Vo,forEach:oi,merge:function e(){for(var t=si(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&&ii(o,i)||i,s=Oo(o,a)?o[a]:void 0;Go(s)&&Go(t)?o[a]=e(s,t):Go(t)?o[a]=e({},t):Do(t)?o[a]=t.slice():r&&xo(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&&!Uo(u)&&(oi(u,i),"object"===k(u)&&!Do(u)))for(var c=Object.getOwnPropertySymbols(u),l=0;l<c.length;l++){var h=c[l];hi.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 oi(t,(function(t,r){n&&jo(t)?Object.defineProperty(e,r,{__proto__:null,value:bo(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&&Ao(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Io,kindOfTest:Co,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(Do(e))return e;var t=e.length;if(!zo(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[Po]).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:li,hasOwnProperty:Oo,hasOwnProp:Oo,hasOwnInPrototypeChain:Lo,getSafeProp:function(e,t){return null!=e&&Lo(e,t)?e[t]:void 0},toSafeFlatObject:function(e){if(null==e||"object"!==k(e)&&"function"!=typeof e)return e;var t=Ao(e);if(null===t&&function(e){if(!Object.isExtensible(e))return!1;var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push.apply(t,f(Object.getOwnPropertySymbols(e))),t.every((function(t){if(No(t))return!1;var n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable}))}(e))return e;for(var n=Object.create(null),r=Object.create(null),o=[],a=e;null!=a&&-1===o.indexOf(a);){o.push(a);var s=a===e?t:Ao(a);if(ko(a,s,a===e))break;var u=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&u.push.apply(u,f(Object.getOwnPropertySymbols(a)));var c,l=i(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;No(h)||(Oo(r,h)||(n[h]=e[h],r[h]=!0))}}catch(e){l.e(e)}finally{l.f()}a=s}return n},reduceDescriptors:di,freezeMethods:function(e){di(e,(function(t,n){if(jo(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];jo(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 Do(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:ii,global:ai,isContextDefined:si,isSpecCompliantForm:function(e){return!!(e&&jo(e.append)&&"FormData"===e[Ro]&&e[Po])},toJSONObject:function(e){var t=new WeakSet;return function e(n){if(Fo(n)){if(t.has(n))return;if(Uo(n))return n;if(!("toJSON"in n)){var r;if(t.add(n),qo(n)){r=[];var o,a=i(n);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=e(s);!xo(u)&&r.push(u)}}catch(e){a.e(e)}finally{a.f()}}else r=Do(n)?[]:{},oi(n,(function(t,n){var o=e(t);!xo(o)&&(r[n]=o)}));return t.delete(n),r}}return n}(e)},isAsyncFn:yi,isThenable:function(e){return e&&(Fo(e)||jo(e))&&jo(e.then)&&jo(e.catch)},setImmediate:_i,asap:bi,isIterable:Ei,isSafeIterable:function(e){return null!=e&&Lo(e,Po)&&Ei(e)}},wi=Si.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 Ti=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ai=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Pi(e,t){return Si.isArray(e)?e.map((function(e){return Pi(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 Ri(e){var t=Object.create(null);return Si.forEach(e.toJSON(),(function(e,n){t[n]=function(e){return Pi(e,Ai)}(e)})),t}var Oi=Symbol("internals");function Ni(e){return e&&String(e).trim().toLowerCase()}function ki(e){return!1===e||null==e?e:Si.isArray(e)?e.map(ki):function(e){return Pi(e,Ti)}(String(e))}var Li=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Ii(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)}function Ci(e,t,n,r,o){return Si.isFunction(r)?r.call(this,t,n):(o&&(t=n),Si.isString(t)?Si.isString(r)?-1!==t.indexOf(r):Si.isRegExp(r)?r.test(t):void 0:void 0)}var Mi=function(e,t){function n(e){b(this,n),e&&this.set(e)}return y(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=Ni(t);if(o){var i=Si.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ki(e))}}var a=function(e,t){return Si.forEach(e,(function(e,n){return o(e,n,t)}))};if(Si.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Si.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();var i=Si.hasOwnProp(o,t);!t||i&&Si.hasOwnProp(wi,t)||("set-cookie"===t?i?o[t].push(n):o[t]=[n]:o[t]=i?o[t]+", "+n:n)})),o}(e),t);else if(Si.isObject(e)&&Si.isSafeIterable(e)){var s,u,c,l=Object.create(null),h=i(e);try{for(h.s();!(c=h.n()).done;){var d=c.value;if(!Si.isArray(d))throw new TypeError("Object iterator must return a key-value pair");u=d[0],Si.hasOwnProp(l,u)?(s=l[u],l[u]=Si.isArray(s)?[].concat(f(s),[d[1]]):[s,d[1]]):l[u]=d[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=Ni(e)){var n=Si.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(Si.isFunction(t))return t.call(this,r,n);if(Si.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Ni(e)){var n=Si.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ci(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=Ni(e)){var o=Si.findKey(n,e);!o||t&&!Ci(0,n[o],o,t)||(delete n[o],r=!0)}}return Si.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&&!Ci(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return Si.forEach(this,(function(r,o){var i=Si.findKey(n,o);if(i)return t[i]=ki(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]=ki(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 Si.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&Si.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=d(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:"getSetCookie",value:function(){var e=this.get("set-cookie");return Si.isArray(e)?e:null==e||!1===e?[]:[e]}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"parseParameters",value:function(e){return function(e){var t=Object.create(null),n=String(e),r=0,o=!1,i=!1;function a(e){var o=Ii(n.slice(r,e)),i=o.indexOf("=");if(!(i<1)){var a=Ii(o.slice(0,i));if(Li.test(a)){var s=a.toLowerCase();if("__proto__"!==s&&"constructor"!==s&&"prototype"!==s){var u=Ii(o.slice(i+1));t[s]=function(e){var t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;for(var n="",r=1;r<t;r++){var o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1)>=t)return e;n+=e[r]}return n}(u)}}}}for(var s=0;s<n.length;s++){var u=n.charCodeAt(s);o?i?i=!1:92===u?i=!0:34===u&&(o=!1):34===u?o=!0:44!==u&&59!==u||(a(s),r=s+1)}return a(n.length),t}(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[Oi]=this[Oi]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=Ni(e);t[r]||(!function(e,t){var n=Si.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 Si.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);Mi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Si.reduceDescriptors(Mi.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}}})),Si.freezeMethods(Mi);var Di=Mi,xi="[REDACTED ****]";function Ui(e,t){var n=new Set(t.map((function(e){return String(e).toLowerCase()}))),r=[];return function e(t){if(null===t||"object"!==k(t))return t;if(Si.isBuffer(t))return t;if(-1===r.indexOf(t)){var o;if(t instanceof Di&&(t=t.toJSON()),r.push(t),Si.isArray(t))o=[],t.forEach((function(t,n){var r=e(t);Si.isUndefined(r)||(o[n]=r)}));else{if(!Si.isPlainObject(t)&&function(e){if(Si.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Si.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=d(a[i],2),u=s[0],c=s[1],l=n.has(u.toLowerCase())?xi:e(c);Si.isUndefined(l)||(o[u]=l)}}return r.pop(),o}}(e)}function Bi(e){try{return String(e)}catch(e){return""}}var Hi=function(e){T(n,e);var t=P(n);function n(e,r,o,i,a){var s;return b(this,n),s=t.call(this,e),Object.defineProperty(S(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 y(n,[{key:"toJSON",value:function(){var e=this.config,t=e&&Si.hasOwnProp(e,"redact")?e.redact:void 0,n=Si.isArray(t)&&t.length>0?Ui(e,t):Si.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=e.message;!s&&Si.isArray(e.errors)&&e.errors.length&&(s=function(e){return e.errors.map((function(e){try{return e&&e.message?Bi(e.message):Bi(e)}catch(e){return""}})).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));var u=new n(s,t||e.code,r,o,i);return Object.defineProperty(u,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),u.name=e.name,null!=e.status&&null==u.status&&(u.status=e.status),a&&Object.assign(u,a),u}}]),n}(I(Error));Hi.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Hi.ERR_BAD_OPTION="ERR_BAD_OPTION",Hi.ECONNABORTED="ECONNABORTED",Hi.ETIMEDOUT="ETIMEDOUT",Hi.ECONNREFUSED="ECONNREFUSED",Hi.ERR_NETWORK="ERR_NETWORK",Hi.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Hi.ERR_DEPRECATED="ERR_DEPRECATED",Hi.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Hi.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Hi.ERR_CANCELED="ERR_CANCELED",Hi.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Hi.ERR_INVALID_URL="ERR_INVALID_URL",Hi.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ji=Hi;function zi(e){return Si.isPlainObject(e)||Si.isArray(e)}function Fi(e){return Si.endsWith(e,"[]")?e.slice(0,-2):e}function Gi(e,t,n){return e?e.concat(t).map((function(e,t){return e=Fi(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var Ki=Si.toFlatObject(Si,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Yi=function(e,t,n){if(!Si.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=function(e,t){var r=Si.getSafeProp(n,e);return Si.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||p,a=r("dots",!1),s=r("indexes",!1),u=r("Blob")||"undefined"!=typeof Blob&&Blob,c=r("maxDepth",100),l=u&&Si.isSpecCompliantForm(t),h=[];if(!Si.isFunction(i))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(Si.isDate(e))return e.toISOString();if(Si.isBoolean(e))return e.toString();if(!l&&Si.isBlob(e))throw new ji("Blob is not supported. Use a Buffer instead.");if(Si.isArrayBuffer(e)||Si.isTypedArray(e)){if(l&&"function"==typeof u)return new u([e]);throw new ji("Blob is not supported. Use a Buffer instead.",ji.ERR_NOT_SUPPORT)}return e}function d(e){if(e>c)throw new ji("Object is too deeply nested ("+e+" levels). Max depth: "+c,ji.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,r){var i=e;if(Si.isReactNative(t)&&Si.isReactNativeBlob(e))return t.append(Gi(r,n,a),f(e)),!1;if(e&&!r&&"object"===k(e))if(Si.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(c===1/0)return JSON.stringify(e);var n=[];return JSON.stringify(e,(function(e,r){if(!Si.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),d(t+n.length-1),r}))}(e,1);else if(Si.isArray(e)&&function(e){return Si.isArray(e)&&!e.some(zi)}(e)||(Si.isFileList(e)||Si.endsWith(n,"[]"))&&(i=Si.toArray(e)))return n=Fi(n),i.forEach((function(e,r){!Si.isUndefined(e)&&null!==e&&t.append(!0===s?Gi([n],r,a):null===s?n:n+"[]",f(e))})),!1;return!!zi(e)||(t.append(Gi(r,n,a),f(e)),!1)}var g=Object.assign(Ki,{defaultVisitor:p,convertValue:f,isVisitable:zi});if(!Si.isObject(e))throw new TypeError("data must be an object");return function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Si.isUndefined(n)){if(d(o),-1!==h.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));h.push(n),Si.forEach(n,(function(n,a){!0===(!(Si.isUndefined(n)||null===n)&&i.call(t,n,Si.isString(a)?a.trim():a,r,g))&&e(n,r?r.concat(a):[a],o+1)})),h.pop()}}(e),t};function Wi(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function Vi(e,t){this._pairs=[],e&&Yi(e,this,t)}var qi=Vi.prototype;qi.append=function(e,t){this._pairs.push([e,t])},qi.toString=function(e){var t=this,n=e?function(n){return e.call(t,n,Wi)}:Wi;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};var Ji=Vi;function Xi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Zi(e,t,n){if(!t)return e;e=e||"";var r,o=Si.isFunction(n)?{serialize:n}:n,i=Si.getSafeProp(o,"encode")||Xi,a=Si.getSafeProp(o,"serialize");if(r=a?a(t,o):Si.isURLSearchParams(t)?t.toString():new Ji(t,o).toString(i)){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var Qi=Symbol("internals");function $i(e){return e?e.length:0}function ea(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function ta(e,t){var n=e.handlers,r=$i(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach((function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)})):t.handlerEntries.clear()),t.handlersLength=r}var na=function(){function e(){b(this,e),this.handlers=[],this[Qi]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}return y(e,[{key:"use",value:function(e,t,n){var r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[Qi];null==this.handlers&&(this.handlers=[]),ta(this,o);var i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}},{key:"eject",value:function(e){var t=this[Qi];ta(this,t);var n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(ea(this.handlers),t.handlersLength=this.handlers.length)}}},{key:"clear",value:function(){this.handlers&&(this.handlers=[],ta(this,this[Qi]))}},{key:"forEach",value:function(e){var t=this[Qi];ta(this,t),t.iterationDepth++;try{Si.forEach(this.handlers,(function(t){null!==t&&e(t)}))}finally{--t.iterationDepth||(ta(this,t),ea(this.handlers),t.handlersLength=$i(this.handlers))}}}]),e}(),ra=na,oa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ia={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ji,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},aa="undefined"!=typeof window&&"undefined"!=typeof document,sa="object"===("undefined"==typeof navigator?"undefined":k(navigator))&&navigator||void 0,ua=aa&&(!sa||["ReactNative","NativeScript","NS"].indexOf(sa.product)<0),ca="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,la=aa&&window.location.href||"http://localhost",ha=u(u({},e),ia);function fa(e){if(e>100)throw new ji("FormData field is too deeply nested ("+e+" levels). Max depth: 100",ji.ERR_FORM_DATA_DEPTH_EXCEEDED)}var da=function(e){function t(e,n,r,o){fa(o);var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Si.isArray(r)?r.length:i,s?(Si.hasOwnProp(r,i)?r[i]=Si.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(Si.hasOwnProp(r,i)&&Si.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Si.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(Si.isFormData(e)&&Si.isFunction(e.entries)){var n={};return Si.forEachEntry(e,(function(e,r){t(function(e){for(var t,n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;null!==(t=r.exec(e));)fa(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),r,n,0)})),n}return null},pa=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),ga=function(e,t){return null!=e&&Si.hasOwnProp(e,t)?e[t]:void 0};var ma={transitional:oa,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=Si.isObject(e);if(i&&Si.isHTMLForm(e)&&(e=new FormData(e)),Si.isFormData(e))return o?JSON.stringify(da(e)):e;if(Si.isArrayBuffer(e)||Si.isBuffer(e)||Si.isStream(e)||Si.isFile(e)||Si.isBlob(e)||Si.isReadableStream(e))return e;if(Si.isArrayBufferView(e))return e.buffer;if(Si.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=ga(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Yi(e,new ha.classes.URLSearchParams,u({visitor:function(e,t,n,r){return ha.isNode&&Si.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=Si.isFileList(e))||r.indexOf("multipart/form-data")>-1){var s=ga(this,"env"),c=s&&s.FormData;return Yi(n?{"files[]":e}:e,c&&new c,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Si.isString(e))try{return(t||JSON.parse)(e),Si.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=ga(this,"transitional")||ma.transitional,n=t&&t.forcedJSONParsing,r=ga(this,"responseType"),o="json"===r;if(Si.isResponse(e)||Si.isReadableStream(e))return e;if(e&&Si.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,ga(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw ji.from(e,ji.ERR_BAD_RESPONSE,this,null,ga(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ha.classes.FormData,Blob:ha.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Si.forEach(pa,(function(e){ma.headers[e]={}}));var va=ma;function ya(e,t){var n=this||va,r=t||n,o=Di.from(r.headers),i=r.data;return Si.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function _a(e){return!(!e||!e.__CANCEL__)}var ba=function(e){T(n,e);var t=P(n);function n(e,r,o){var i;return b(this,n),(i=t.call(this,null==e?"canceled":e,ji.ERR_CANCELED,r,o)).name="CanceledError",i.__CANCEL__=!0,i}return y(n)}(ji),Ea=ba;function Sa(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ji("Request failed with status code "+n.status,n.status>=400&&n.status<500?ji.ERR_BAD_REQUEST:ji.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var wa=/[\t\n\r]/g;function Ta(e){if("string"!=typeof e)return e;for(var t=0;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(wa,"")}function Aa(e){var t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}var Pa=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 Ra=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,f(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)},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(t)}]},Oa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,o=Pa(50,250);return Ra((function(n){if(n&&Si.isNumber(n.loaded)){var i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),u=Math.max(0,s-r),c=o(u);r=Math.max(r,s);var l=O({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)},Na=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},ka=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Si.asap;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t((function(){return e.apply(void 0,r)}))}},La=ha.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,ha.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(ha.origin),ha.navigator&&/(msie|trident)/i.test(ha.navigator.userAgent)):function(){return!0},Ia=ha.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var s=["".concat(e,"=").concat(encodeURIComponent(t))];Si.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),Si.isString(r)&&s.push("path=".concat(r)),Si.isString(o)&&s.push("domain=".concat(o)),!0===i&&s.push("secure"),Si.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 Ca=/^https?:(?!\/\/)/i;function Ma(e){var t,n=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,"$1".concat(xi,"@")),r=n.indexOf("#"),o=(-1===r?n:n.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,"$1".concat(xi));return-1===r?o:"".concat(o,"#").concat((t=n.slice(r+1))?t.replace(/(^|&)([^=&]*=)?[^&]+/g,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(t).concat(n).concat(xi)})):t)}function Da(e,t){if("string"==typeof e){var n=Ta(e);if(Ca.test(n))throw new ji("Invalid URL ".concat(JSON.stringify(Ma(n)),': missing "//" after protocol'),ji.ERR_INVALID_URL,t)}}function xa(e,t,n,r){Da(t,r);var o,i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));return e&&(i||!1===n)?(Da(e,r),function(e,t){if(!t)return e;for(var n=e.length;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}var Ua=function(e){return e instanceof Di?u({},e):e};function Ba(e,t){e=e||{},t=t||{};var n=Object.create(null);function r(e,t,n,r){return Si.isPlainObject(e)&&Si.isPlainObject(t)?Si.merge.call({caseless:r},e,t):Si.isPlainObject(t)?Si.merge({},t):Si.isArray(t)?t.slice():t}function o(e,t,n,o){return Si.isUndefined(t)?Si.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Si.isUndefined(t))return r(void 0,t)}function a(e,t){return Si.isUndefined(t)?Si.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return Si.hasOwnProp(t,i)?r(n,o):Si.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 c,l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage: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(Ua(e),Ua(t),0,!0)}};return Si.forEach((c=u(u({},e),t),Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(c).concat(Object.getOwnPropertySymbols(c).filter((function(e){return Object.getOwnPropertyDescriptor(c,e).enumerable}))):Object.keys(c)),(function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=Si.hasOwnProp(l,r)?l[r]:o,a=i(Si.hasOwnProp(e,r)?e[r]:void 0,Si.hasOwnProp(t,r)?t[r]:void 0,r);Si.isUndefined(a)&&i!==s||(n[r]=a)}})),Si.hasOwnProp(t,"validateStatus")&&Si.isUndefined(t.validateStatus)&&!1===function(n){var r=Si.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Si.isUndefined(r)){if(!Si.isPlainObject(r))return;if(Si.hasOwnProp(r,n))return r[n]}var o=Si.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Si.isPlainObject(o)&&Si.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(Si.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var Ha=["content-type","content-length"];var ja=function(e){var t=Ba({},e),n=function(e){return Si.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=Di.from(s),t.url=Zi(xa(c,h,l,t),n("params"),n("paramsSerializer")),u){var f=Si.getSafeProp(u,"username")||"",p=Si.getSafeProp(u,"password")||"";try{s.set("Authorization","Basic "+btoa(f+":"+(p?encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})):"")))}catch(t){throw ji.from(t,ji.ERR_BAD_OPTION_VALUE,e)}}if(Si.isFormData(r)){var g=Si.getSafeProp(r,"getHeaders");ha.hasStandardBrowserEnv||ha.hasStandardBrowserWebWorkerEnv||Si.isReactNative(r)?s.setContentType(void 0):Si.isFunction(g)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach((function(t){var n=d(t,2),r=n[0],o=n[1];Ha.includes(r.toLowerCase())&&e.set(r,o)})):e.set(t)}(s,g.call(r),n("formDataHeaderPolicy"))}if(ha.hasStandardBrowserEnv&&(Si.isFunction(o)&&(o=o(t)),!0===o||null==o&&La(t.url))){var m=i&&a&&Ia.read(a);m&&s.set(i,m)}return t},za="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,o,i,a,s,u,c=ja(e),l=c.data,h=Di.from(c.headers).normalize(),f=c.responseType,p=c.onUploadProgress,g=c.onDownloadProgress;function m(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(r),c.signal&&c.signal.removeEventListener("abort",r)}var v=new XMLHttpRequest;function y(r){if(v){if(!(0!==v.status||"file"===(Aa(Ta(c.url))||Aa(ha.origin))||v.responseURL&&v.responseURL.startsWith("file:")))return n(new ji("Request aborted",ji.ECONNABORTED,e,v)),m(),void(v=null);try{r?u&&u(r):s&&s()}catch(e){setTimeout((function(){throw e}))}if(v){var o=Di.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());Sa((function(e){t(e),m()}),(function(e){n(e),m()}),{data:f&&"text"!==f&&"json"!==f?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:o,config:e,request:v}),v=null}}}if(v.open(c.method.toUpperCase(),c.url,!0),v.timeout=c.timeout,"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(y)},v.onabort=function(){v&&(n(new ji("Request aborted",ji.ECONNABORTED,e,v)),m(),v=null)},v.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new ji(r,ji.ERR_NETWORK,e,v);o.event=t||null,n(o),m(),v=null},v.ontimeout=function(){var t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",r=c.transitional||oa;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new ji(t,r.clarifyTimeoutError?ji.ETIMEDOUT:ji.ECONNABORTED,e,v)),m(),v=null},void 0===l&&h.setContentType(null),"setRequestHeader"in v&&Si.forEach(Ri(h),(function(e,t){v.setRequestHeader(t,e)})),Si.isUndefined(c.withCredentials)||(v.withCredentials=!!c.withCredentials),f&&"json"!==f&&(v.responseType=c.responseType),g){var _=Oa(g,!0),b=d(_,3);i=b[0],s=b[1],u=b[2],v.addEventListener("progress",i)}if(p&&v.upload){var E=Oa(p),S=d(E,2);o=S[0],a=S[1],v.upload.addEventListener("progress",o),v.upload.addEventListener("loadend",a)}(c.cancelToken||c.signal)&&(r=function(t){v&&(n(!t||t.type?new Ea(null,e,v):t),v.abort(),m(),v=null)},c.cancelToken&&c.cancelToken.subscribe(r),c.signal&&(c.signal.aborted?r():c.signal.addEventListener("abort",r)));var w=Aa(c.url);if(w&&!ha.protocols.includes(w))return n(new ji("Unsupported protocol "+w+":",ji.ERR_BAD_REQUEST,e)),void m();v.send(l||null)}))},Fa=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 ji?t:new Ea(t instanceof Error?t.message:t))}},i=t&&setTimeout((function(){i=null,o(new ji("timeout of ".concat(t,"ms exceeded"),ji.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){r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))}));var s=n.signal;return s.unsubscribe=function(){return Si.asap(a)},s}},Ga=n(482),Ka=n(621),Ya=n(774),Wa=n(164),Va=p().mark((function e(t,n){var r,o,i;return p().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)})),qa=function(){var e=Ga(p().mark((function e(t,n){var r,o,i,a,s,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,o=!1,e.prev=2,a=Wa(Ja(t));case 4:return e.next=6,Ka(a.next());case 6:if(!(r=!(s=e.sent).done)){e.next=12;break}return u=s.value,e.delegateYield(Ya(Wa(Va(u,n)),Ka),"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,Ka(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)}}(),Ja=function(){var e=Ga(p().mark((function e(t){var n,r,o,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(Ya(Wa(t),Ka),"t0",2);case 2:return e.abrupt("return");case 3:n=t.getReader(),e.prev=4;case 5:return e.next=7,Ka(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,Ka(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)}}(),Xa=function(e,t,n,r){var o,i=qa(e,t),a=0,s=function(e){o||(o=!0,r&&r(e))};return new ReadableStream({pull:function(e){return m(p().mark((function t(){var r,o,u,c,l;return p().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})},Za=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},Qa=function(e,t,n){return t+2<n&&Za(e.charCodeAt(t+1))&&Za(e.charCodeAt(t+2))},$a=function(e){return e<=57?e-48:(223&e)-55},es=function(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e},ts=function(e){var t=e.length,n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)},ns=function(e){for(var t,n=e.length,r=0,o=0,i=!1,a=0;a<n;a++){var s=e.charCodeAt(a);37===s&&Qa(e,a,n)&&(s=16*$a(e.charCodeAt(a+1))+$a(e.charCodeAt(a+2)),a+=2),9!==(t=s)&&10!==t&&12!==t&&13!==t&&32!==t&&(61!==s?!es(s)||o>0?i=!0:r++:o++)}return i||o>2||o>0&&(r+o)%4!=0||r%4==1?ts(e):function(e){var t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)}(r)},rs=function(e,t){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var n=e.indexOf(",");if(n<0)return 0;var r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);for(var i=0,a=0,s=o.length;a<s;a++){var u=o.charCodeAt(a);if(37===u&&Qa(o,a,s))i+=1,a+=2;else if(u<128)i+=1;else if(u<2048)i+=2;else if(u>=55296&&u<=56319&&a+1<s){var c=o.charCodeAt(a+1);c>=56320&&c<=57343?(i+=4,a++):i+=3}else i+=3}return i};function os(e){var t="string"==typeof e?e.indexOf("#"):-1;return rs(-1===t?e:e.slice(0,t),ns)}var is="1.20.0",as={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},ss=Si.isFunction,us=function(e){if(!Si.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},cs=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}},ls=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},hs=function(e){var t=void 0!==Si.global&&null!==Si.global?Si.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,o=e=Si.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),i=o.fetch,a=o.Request,s=o.Response,u=i?ss(i):"function"==typeof fetch,c=ss(a),l=ss(s);if(!u)return!1;var h,f=u&&ss(n),g=u&&("function"==typeof r?(h=new r,function(e){return h.encode(e)}):function(){var e=m(p().mark((function e(t){return p().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)}}()),v=c&&f&&cs((function(){var e=!1,t=new a(ha.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})),y=l&&f&&cs((function(){return Si.isReadableStream(new s("").body)})),_={stream:y&&function(e){return e.body}};u&&["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!_[e]&&(_[e]=function(t,n){var r=t&&t[e];if(r)return r.call(t);throw new ji("Response type '".concat(e,"' is not supported"),ji.ERR_NOT_SUPPORT,n)})}));var b=function(){var e=m(p().mark((function e(t){var n;return p().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(!Si.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!Si.isSpecCompliantForm(t)){e.next=9;break}return n=new a(ha.origin,{method:"POST",body:t}),e.next=8,n.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!Si.isArrayBufferView(t)&&!Si.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(Si.isURLSearchParams(t)&&(t+=""),!Si.isString(t)){e.next=16;break}return e.next=15,g(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=m(p().mark((function e(t,n){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Si.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==r?b(n):r);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){var e=m(p().mark((function e(t){var n,o,u,l,h,g,m,S,w,T,A,P,R,O,N,k,L,I,C,M,D,x,U,B,H,j,z,F,G,K,Y,W,V,q,J,X,Z,Q,$,ee,te,ne,re,oe,ie,ae,se,ue,ce,le,he,fe,de,pe,ge,me,ve,ye,_e,be,Ee,Se;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=ja(t),o=n.url,u=n.method,l=n.data,h=n.signal,g=n.cancelToken,m=n.timeout,S=n.onDownloadProgress,w=n.onUploadProgress,T=n.responseType,A=n.headers,P=n.withCredentials,R=void 0===P?"same-origin":P,O=n.fetchOptions,N=n.maxContentLength,k=n.maxBodyLength,L=n.maxRedirects,I=Si.isNumber(N)&&N>-1,C=Si.isNumber(k)&&k>-1,M=function(e){return Si.hasOwnProp(t,e)?t[e]:void 0},D=i||fetch,T=T?(T+"").toLowerCase():"text",x=Fa([h,g&&g.toAbortSignal()],m),U=null,B=x&&x.unsubscribe&&function(){x.unsubscribe()},j=null,z=function(){return new ji("Request body larger than maxBodyLength limit",ji.ERR_BAD_REQUEST,t,U)},e.prev=11,F=void 0,(G=M("auth"))&&(K=Si.getSafeProp(G,"username")||"",Y=Si.getSafeProp(G,"password")||"",F={username:K,password:Y}),ls(o)&&(W=new URL(o,ha.origin),F||!W.username&&!W.password||(V=us(W.username),q=us(W.password),F={username:V,password:q}),(W.username||W.password)&&(W.username="",W.password="",o=W.href)),F&&(A.delete("authorization"),A.set("Authorization","Basic "+btoa((p=(F.username||"")+":"+(F.password||""),encodeURIComponent(p).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(!(os(o)>N)){e.next=21;break}throw new ji("maxContentLength size of "+N+" exceeded",ji.ERR_BAD_RESPONSE,t,U);case 21:if(!C||"get"===u||"head"===u){e.next=29;break}return e.next=24,b(l);case 24:if("number"!=typeof(J=e.sent)||!isFinite(J)){e.next=29;break}if(H=J,!(J>k)){e.next=29;break}throw z();case 29:if(X=C&&(Si.isReadableStream(l)||Si.isStream(l)),Z=function(e,t,n){return Xa(e,65536,(function(e){if(C&&e>k)throw j=z();t&&t(e)}),n)},!v||"get"===u||"head"===u||!w&&!X){e.next=43;break}if(null!=H){e.next=38;break}return e.next=35,E(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"}),Si.isFormData(l)&&($=Q.headers.get("content-type"))&&A.setContentType($),Q.body&&(ee=w&&Na(H,Oa(ka(w)))||[],te=d(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||v||"get"===u||"head"===u){e.next=49;break}throw new ji("Stream request bodies are not supported by the current fetch implementation",ji.ERR_NOT_SUPPORT,t,U);case 49:return Si.isString(R)||(R=R?"include":"omit"),oe=c&&"credentials"in a.prototype,Si.isFormData(l)&&(ie=A.getContentType())&&/^multipart\/form-data/i.test(ie)&&!/boundary=/i.test(ie)&&A.delete("content-type"),A.set("User-Agent","axios/"+is,!1),(ae=null==O?O:Object.assign(Object.create(null),O))&&(delete ae.body,delete ae.headers,delete ae.method,delete ae.signal,delete ae.duplex,delete ae.credentials),se=Object.assign(Object.create(null),ae,{signal:x,method:u.toUpperCase(),headers:Ri(A.normalize()),body:l,duplex:"half",credentials:oe?R:void 0}),c&&(Si.forEach(as,(function(e,t){void 0===se[t]&&(se[t]=e)})),void 0===se.signal&&(se.signal=null),void 0===se.body&&(se.body=null)),0===L&&(se.redirect="manual",ae&&(ae.redirect="manual")),U=c&&new a(o,se),e.next=61,c?D(U,ae):D(o,se);case 61:if(ue=e.sent,ce=Di.from(ue.headers),!I){e.next=67;break}if(!(null!=(le=Si.toFiniteNumber(ce.getContentLength()))&&le>N)){e.next=67;break}throw new ji("maxContentLength size of "+N+" exceeded",ji.ERR_BAD_RESPONSE,t,U);case 67:return he=y&&("stream"===T||"response"===T),y&&ue.body&&(S||I||he&&B)&&(fe={},["status","statusText","headers"].forEach((function(e){fe[e]=ue[e]})),de=Si.toFiniteNumber(ce.getContentLength()),pe=S&&Na(de,Oa(ka(S),!0))||[],ge=d(pe,2),me=ge[0],ve=ge[1],0,ye=function(e){if(I&&e>N)throw new ji("maxContentLength size of "+N+" exceeded",ji.ERR_BAD_RESPONSE,t,U);me&&me(e)},ue=new s(Xa(ue.body,65536,ye,(function(){ve&&ve(),B&&B()})),fe)),T=T||"text",e.next=72,_[Si.findKey(_,T)||"text"](ue,t);case 72:if(_e=e.sent,!I||y||he){e.next=77;break}if(null!=_e&&("number"==typeof _e.byteLength?be=_e.byteLength:"number"==typeof _e.size?be=_e.size:"string"==typeof _e&&(be="function"==typeof r?(new r).encode(_e).byteLength:_e.length)),!("number"==typeof be&&be>N)){e.next=77;break}throw new ji("maxContentLength size of "+N+" exceeded",ji.ERR_BAD_RESPONSE,t,U);case 77:return!he&&B&&B(),e.next=80,new Promise((function(e,n){Sa(e,n,{data:_e,headers:Di.from(ue.headers),status:ue.status,statusText:ue.statusText,config:t,request:U})}));case 80:return e.abrupt("return",e.sent);case 83:if(e.prev=83,e.t1=e.catch(11),B&&B(),!(x&&x.aborted&&x.reason instanceof ji)){e.next=92;break}throw(Ee=x.reason).config=t,U&&(Ee.request=U),e.t1!==Ee&&Object.defineProperty(Ee,"cause",{__proto__:null,value:e.t1,writable:!0,enumerable:!1,configurable:!0}),Ee;case 92:if(!j){e.next=95;break}throw U&&!j.request&&(j.request=U),j;case 95:if(!(e.t1 instanceof ji)){e.next=98;break}throw U&&!e.t1.request&&(e.t1.request=U),e.t1;case 98:if(!e.t1||"TypeError"!==e.t1.name||!/Load failed|fetch/i.test(e.t1.message)){e.next=102;break}throw Se=new ji("Network Error",ji.ERR_NETWORK,t,U,e.t1&&e.t1.response),Object.defineProperty(Se,"cause",{__proto__:null,value:e.t1.cause||e.t1,writable:!0,enumerable:!1,configurable:!0}),Se;case 102:throw ji.from(e.t1,e.t1&&e.t1.code,t,U,e.t1&&e.t1.response);case 103:case"end":return e.stop()}var p}),e,null,[[11,83]])})));return function(t){return e.apply(this,arguments)}}()},fs=new Map,ds=function(e){for(var t,n,r=e&&e.env||{},o=r.fetch,i=[r.Request,r.Response,o],a=i.length,s=fs;a--;)t=i[a],void 0===(n=s.get(t))&&s.set(t,n=a?new Map:hs(r)),s=n;return n},ps=(ds(),{http:null,xhr:za,fetch:{get:ds}});Si.forEach(ps,(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 gs=function(e){return"- ".concat(e)},ms=function(e){return Si.isFunction(e)||null===e||!1===e};var vs={getAdapter:function(e,t){for(var n,r,o=(e=Si.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var s=void 0;if(r=n=e[a],!ms(n)&&void 0===(r=ps[(s=String(n)).toLowerCase()]))throw new ji("Unknown adapter '".concat(s,"'"));if(r&&(Si.isFunction(r)||(r=r.get(t))))break;i[s||"#"+a]=r}if(!r){var u=Object.entries(i).map((function(e){var t=d(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(gs).join("\n"):" "+gs(u[0]):"as no adapter specified";throw new ji("There is no suitable adapter to dispatch the request "+c,ji.ERR_NOT_SUPPORT)}return r},adapters:ps};function ys(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ea(null,e)}function _s(e){var t=Si.toSafeFlatObject(e);return ys(t),t.headers=Di.from(Si.getSafeProp(t,"headers")),t.data=ya.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),vs.getAdapter(t.adapter||va.adapter,t)(t).then((function(e){ys(t),t.response=e;try{e.data=ya.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Di.from(e.headers),e}),(function(e){if(!_a(e)&&(ys(t),e&&e.response)){t.response=e.response;try{e.response.data=ya.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Di.from(e.response.headers)}return Promise.reject(e)}))}var bs={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){bs[e]=function(n){return k(n)===e||"a"+(t<1?"n ":" ")+e}}));var Es={};bs.transitional=function(e,t,n){function r(e,t){return"[Axios v"+is+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new ji(r(o," has been removed"+(t?" in "+t:"")),ji.ERR_DEPRECATED);return t&&!Es[o]&&(Es[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)}},bs.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var Ss={assertOptions:function(e,t,n){if("object"!==k(e)||null===e)throw new ji("options must be an object",ji.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 ji("option "+i+" must be "+u,ji.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ji("Unknown option "+i,ji.ERR_BAD_OPTION)}},validators:bs},ws=Ss.validators,Ts=function(){function e(t){b(this,e),this.defaults=t||{},this.interceptors={request:new ra,response:new ra}}var t;return y(e,[{key:"request",value:(t=m(p().mark((function e(t,n){var r,o,i,a,s,u,c;return p().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)try{r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,o=r.stack,i="","string"==typeof o&&(a=o.indexOf("\n"),i=-1===a?"":o.slice(a+1)),e.t0.stack?i&&(s=i.indexOf("\n"),u=-1===s?-1:i.indexOf("\n",s+1),c=-1===u?"":i.slice(u+1),String(e.t0.stack).endsWith(c)||(e.t0.stack+="\n"+i)):e.t0.stack=i}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){var n=this;"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=t=Ba(this.defaults,t),o=r.transitional,i=r.paramsSerializer,a=r.headers;void 0!==o&&Ss.assertOptions(o,{silentJSONParsing:ws.transitional(ws.boolean),forcedJSONParsing:ws.transitional(ws.boolean),clarifyTimeoutError:ws.transitional(ws.boolean),legacyInterceptorReqResOrdering:ws.transitional(ws.boolean),advertiseZstdAcceptEncoding:ws.transitional(ws.boolean),validateStatusUndefinedResolves:ws.transitional(ws.boolean)},!1),null!=i&&(Si.isFunction(i)?t.paramsSerializer={serialize:i}:Ss.assertOptions(i,{encode:ws.function,serialize:ws.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ss.assertOptions(t,{baseUrl:ws.spelling("baseURL"),withXsrfToken:ws.spelling("withXSRFToken")},!0),t.method=(Si.getSafeProp(t,"method")||Si.getSafeProp(this.defaults,"method")||"get").toLowerCase();var s=a&&Si.merge(a.common,a[t.method]);a&&Si.forEach(pa.concat("common"),(function(e){delete a[e]})),t.headers=Di.concat(s,a);var u=[],c=!0;this.interceptors.request.forEach((function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){c=c&&e.synchronous;var n=t.transitional||oa;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)}}));var l,h=[];this.interceptors.response.forEach((function(e){h.push(e.fulfilled,e.rejected)}));var f,d=0;if(!c){var p=[_s.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,h),f=p.length,l=Promise.resolve(t);d<f;)l=l.then(p[d++],p[d++]);return l}f=u.length;for(var g=t;d<f;){var m=u[d++],v=u[d++];try{g=m?m(g):g}catch(e){if(!v){l=Promise.reject(e);break}try{var y=v.call(this,e);Si.isThenable(y)&&(l=Promise.resolve(y).then((function(){return _s.call(n,g)})))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=_s.call(this,g)}catch(e){l=Promise.reject(e)}for(d=0,f=h.length;d<f;)l=l.then(h[d++],h[d++]);return l}},{key:"getUri",value:function(e){return Zi(xa((e=Ba(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}]),e}();Si.forEach(["delete","get","head","options"],(function(e){Ts.prototype[e]=function(t,n){return this.request(Ba(n||{},{method:e,url:t,data:n&&Si.hasOwnProp(n,"data")?n.data:void 0}))}})),Si.forEach(["post","put","patch","query"],(function(e){function t(t){return function(n,r,o){return this.request(Ba(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ts.prototype[e]=t(),"query"!==e&&(Ts.prototype[e+"Form"]=t(!0))}));var As=Ts,Ps=function(){function e(t){if(b(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 Ea(e,t,o),n(r.reason))}))}return y(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}(),Rs=Ps;var Os={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Os).forEach((function(e){var t=d(e,2),n=t[0],r=t[1];void 0===Os[r]&&(Os[r]=n)}));var Ns=Os;var ks=function e(t){var n=new As(t),r=bo(As.prototype.request,n);return Si.extend(r,As.prototype,n,{allOwnKeys:!0}),Si.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ba(t,n))},r}(va);ks.Axios=As,ks.CanceledError=Ea,ks.CancelToken=Rs,ks.isCancel=_a,ks.VERSION=is,ks.toFormData=Yi,ks.AxiosError=ji,ks.Cancel=ks.CanceledError,ks.all=function(e){return Promise.all(e)},ks.spread=function(e){return function(t){return e.apply(null,t)}},ks.isAxiosError=function(e){return Si.isObject(e)&&!0===e.isAxiosError},ks.mergeConfig=Ba,ks.AxiosHeaders=Di,ks.formToJSON=function(e){return da(Si.isHTMLForm(e)?new FormData(e):e)},ks.getAdapter=vs.getAdapter,ks.HttpStatusCode=Ns,ks.default=ks;var Ls=ks,Is=n(34),Cs=function(){try{var e;return(null===(e=navigator)||void 0===e?void 0:e.javaEnabled())||!1}catch(e){}return!1},Ms={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"},Ds="ANTOM_PAYMENT_WEB",xs=(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 Us(){return new Promise((function(e){window&&window.AlipayJSBridge?e():document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)}))}var Bs=function(){function e(t){b(this,e),O(this,"baseUrl",void 0),O(this,"headers",void 0),O(this,"method",void 0),O(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 y(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:u(u({},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"===k(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){Us().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",u({instanceId:xs},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:mo(t.data),headers:Hs(t.headers)};n(o)}))}))}}]),e}();function Hs(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 js=function(e){var t=Is(e,"Result-Status")||Is(e,"result-status","");if(!t)return null;if(2e3==+t)return{success:!1,errorCode:$r.API_NOT_LOGIN,errorMessage:Xr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(4001==+t)return{success:!1,errorCode:$r.API_GATEWAY_TIMEOUT,errorMessage:Xr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(1e3!=+t){var n=Is(e,"Tips")||Is(e,"tips","");return{success:!1,errorCode:$r.API_GATEWAY_ERROR,errorMessage:n?decodeURIComponent(n):Xr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t}}return null},zs={};function Fs(e,t,n){return Gs.apply(this,arguments)}function Gs(){return(Gs=m(p().mark((function e(t,n,r){var o,i,a,s,c,l,h,f,d,g,m,v,y,_,b,E,S,w,T,A,P,R,O;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=u(u(u({},zs),r),{},{envInfo:u(u({},zs.envInfo),null==r?void 0:r.envInfo),headers:u(u({},zs.headers),null==r?void 0:r.headers)}),a=ro(i.tracker,i.scope),s=oo(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"===(c=u(u({terminalType:po?"WAP":"WEB",browserInfo:{browserJavaScriptEnabled:!0,browserJavaEnabled:Cs(),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:Zr((null==i?void 0:i.locale)||(null==i||null===(o=i.envInfo)||void 0===o?void 0:o.locale))})).terminalType&&(c.osType=ho?"IOS":"ANDROID"),l=[u(u({},n),{},{envInfo:c,extParams:u(u({},null==n?void 0:n.extParams),{},{refUrl:window.location.href})})],h=performance.now(),e.prev=14,f=Ks(t,i),e.next=18,f({data:l});case 18:if(d=e.sent,g=d.data,m=d.headers,v=g||{},y=Is(m,"Mgw-TraceId")||Is(m,"mgw-traceid",""),v.traceId=y,!(_=js(m))){e.next=29;break}throw b=_.errorMessage,E=_.errorCode,new no(b,E,"SERVER_API","".concat(y," (").concat(t,")"));case 29:if(v.success){e.next=36;break}throw T=v.errorMessage||v.resultMessage||Xr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),A=v.errorCode||(null===(S=v.errorContext)||void 0===S||null===(S=S.errorStack)||void 0===S||null===(S=S[0])||void 0===S?void 0:S.errorName)||"API_SYSTEM_ERROR","true"!==(null===(w=v.extendInfo)||void 0===w?void 0:w.mulityLanguageMapping)&&(T=Xr.get({id:"server.".concat(A),defaultMessage:Xr.get({id:"event.callback.code.${errorCode}",defaultMessage:Xr.get({id:"ckp.paymentError.${errorCode}",defaultMessage:Xr.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})})})})),(P=new to(T,A,"SERVER_API","".concat(y," (").concat(t,")"))).response=v,P;case 36:return a.success(t,performance.now()-h,y),e.abrupt("return",v);case 40:if(e.prev=40,e.t0=e.catch(14),!no.isError(e.t0)){e.next=45;break}return a.error(t,performance.now()-h,e.t0.message,e.t0.code,e.t0.traceId),e.abrupt("return",Promise.reject(e.t0));case 45:return O=e.t0,s(O),e.abrupt("return",Promise.reject(new no(O.message,null!==(R=O.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 Ks(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)||Ms[i],c=u(O(O(O(O(O(O(O(O({appId:(null==t?void 0:t.appId)||(null==a?void 0:a.appId)||Ds,workspaceId:"pre"===(null==t?void 0:t.env)?"pre":"default"},"x-cors-".concat(Ds.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)||"2.0.28"),null==t?void 0:t.headers);"dev"!==i&&delete c["sofa-group-name"],"sandbox"===i&&(c["load-test"]=!0,c.sofaPenAttrs="instMock=O&loadMode=2");var l,h=null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:15e3,f=Object.entries(c).filter((function(e){return void 0!==e[1]&&null!==e[1]&&"object"!==k(e[1])})).reduce((function(e,t){var n=d(t,2),r=n[0],o=n[1];return e[r]=String(o),e}),{}),p={baseURL:s,timeout:h,headers:c},g=null;"app"===zs.appType?g=new Bs({baseURL:s,method:"POST",timeout:h,headers:f}):g=Ls.create(u(u({},p),{},{withCredentials:null===(l=null==t?void 0:t.withCredentials)||void 0===l||l,method:(null==t?void 0:t.method)||"POST"}));return g.request}Fs.setGlobalOptions=function(e){Object.assign(zs,e)};"".concat(window.location.origin,"/elements/src/pages");var Ys=vo,Ws="elementV3",Vs=function(){try{return"undefined"!=typeof window&&"true"===window.localStorage.getItem("antom-web-checkout-v2_modern_web")}catch(e){return!1}},qs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ws;if(!e)return{modernWeb:!1};var n=Ys(e),r="string"==typeof(null==n?void 0:n.flowSwitchTags)&&n.flowSwitchTags.split(",").some((function(e){return e.trim()===t}));return{modernWeb:r||Vs()}};function Js(e){return e}var Xs=function(e){return qs(e).modernWeb},Zs=(c()(c()(c()({},eo),{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",AMOUNT_CURRENCY_MISMATCH:"AMOUNT_CURRENCY_MISMATCH",AMOUNT_CURRENCY_UNSUPPORTED:"AMOUNT_CURRENCY_UNSUPPORTED",AMOUNT_PRECISION_UNSUPPORTED:"AMOUNT_PRECISION_UNSUPPORTED",AMOUNT_RESOLVE_TIMEOUT:"AMOUNT_RESOLVE_TIMEOUT",AMOUNT_RESOLVE_FAILED:"AMOUNT_RESOLVE_FAILED"}),function(e){A()(n,e);var t=R()(n);function n(){var e;E()(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)),N()(w()(e),"name","AntomSDKError"),e}return _()(n)}(to)),Qs={default:{theme:"light",backgroundColor:"#ffffff"},light:{theme:"light",backgroundColor:"#ffffff"},night:{theme:"dark",backgroundColor:"#000000"},agateGreen:{theme:"dark",backgroundColor:"#344343"},nostalgicGray:{theme:"light",backgroundColor:"#e8e8e8"},gamingPurple:{theme:"dark",backgroundColor:"#1A1F2E"},cherryBlossomPink:{theme:"light",backgroundColor:"#FCF8FA"}};function $s(e,t){var n;if(!e)throw new Zs("sessionData is required","SESSION_DATA_INVALID","SDK_USAGE");Ae("INFO","SDK_USAGE","Setup called with sessionData:",{sessionData:e});var r=Ys(e);if(!r)throw new Zs("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 Zs("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 eu="ams-popup",tu=300,nu="ams-component-popup-loading",ru="\n .".concat(eu,"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(eu,"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(eu,"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(eu,"fadeIn {\n /* 添加淡入动画 */\n animation: fadeIn ").concat(tu,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(eu,"fadeOut {\n /* 添加淡出动画 */\n animation: fadeOut ").concat(tu,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(eu,"-drawer-enter {\n animation: slideIn ").concat(tu,"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(eu,"-drawer-exit {\n animation: slideOut ").concat(tu,'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'),ou=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(nu),n.id=nu,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=go?t:100*n/e;return Math.min(r,t)}(),"px"),n};var iu=function(e){var t=e.mode,n=e.url,r=e.loadingConfig,o=e.showClose,i=void 0===o||o,a=e.onClose,s=e.textDirection,u=void 0===s?"ltr":s,c=e.showLoading,l=void 0===c||c,h=document.createElement("div");h.classList.add("".concat(eu,"overlay"),"".concat(eu,"fadeIn"));var f=document.createElement("div");"desktop"===t?(f.classList.add("".concat(eu,"modal"),"".concat(eu,"fadeIn")),f.style.width="656px",f.style.height="620px",f.style.borderRadius="12px"):(f.classList.add("".concat(eu,"modal-mobile"),"".concat(eu,"-drawer-enter")),f.style.width="100%",f.style.height="80vh",f.style.borderRadius="12px 12px 0 0"),f.setAttribute("dir",u);var d=function(e,t,n){return function(){t&&(t.classList.remove("".concat(eu,"fadeIn")),t.classList.add("".concat(eu,"fadeOut")),"desktop"===e?(n.classList.remove("".concat(eu,"fadeIn")),n.classList.add("".concat(eu,"fadeOut"))):(n.classList.remove("".concat(eu,"-drawer-enter")),n.classList.add("".concat(eu,"-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)}),tu))}}(t,h,f),p=document.createElement("iframe");p.src=n,p.style.border="none",p.style.width="100%",p.style.height="100%";var m,y=r||{},_=y.theme,b=void 0===_?"light":_,E=y.backgroundColor,S=void 0===E?"#ffffff":E,w=ou(b);if(p.addEventListener("load",(function e(){f.removeChild(w),p.removeEventListener("load",e)})),i){var T=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,v()(g()().mark((function e(){var t,n;return g()().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=w.parentNode)||void 0===t||t.removeChild(w),f.removeChild(p),n=ou(b,Xr.get({defaultMessage:"closing",id:"antom.common.closing"})),f.appendChild(n),m=!0,e.prev=7,e.next=10,null==a?void 0:a();case 10:return e.prev=10,m=!1,e.finish(10);case 13:d();case 14:case"end":return e.stop()}}),e,null,[[7,,10,13]])})))),textDirection:u});p.addEventListener("load",(function e(){f.removeChild(T),p.removeEventListener("load",e)})),f.appendChild(T)}if(l){f.style.backgroundColor=S,p.style.backgroundColor=S;p.addEventListener("load",(function e(){var t;null===(t=w.parentNode)||void 0===t||t.removeChild(w),p.removeEventListener("load",e)})),f.appendChild(w)}f.appendChild(p);var A,P=document.getElementsByTagName("body")[0];return(A=document.createElement("style")).innerHTML=ru,document.head.appendChild(A),P.appendChild(h),P.appendChild(f),{iframe:p,destroy:d}};var au={position:"bottom-right",backgroundColor:"rgba(0, 0, 0, 0.80)",color:"#ffffff",padding:"20px 16px",borderRadius:"8px",fontSize:"14px",zIndex:9999,width:"148px",duration:2e3},su={"top-left":{top:"20px",left:"20px"},"top-right":{top:"20px",right:"20px"},"bottom-left":{bottom:"20px",left:"20px"},"bottom-right":{top:"0",right:"0",bottom:"0",left:"0"},center:{top:"0",right:"0",bottom:"0",left:"0"}},uu={SUCCESS:"https://cdn.marmot-cloud.com/storage/2024/07/10/10b191d6-0b0a-4bd9-96cc-310b7f2a8530.svg",FAIL:"https://cdn.marmot-cloud.com/storage/2024/11/08/4ae27343-61d2-4a07-b323-c951c7711b40.svg"},cu="antom_toast-container";function lu(e){if(null!=e&&e.message){var t=c()(c()({},au),e),n=document.getElementById(cu);n?n.innerHTML="":((n=document.createElement("div")).id=cu,Object.assign(n.style,{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",pointerEvents:"none"}),document.body.appendChild(n)),n.style.top="",n.style.right="",n.style.bottom="",n.style.left="",n.style.zIndex=String(t.zIndex),Object.assign(n.style,su[t.position]);var r=document.createElement("div");if(Object.assign(r.style,{backgroundColor:t.backgroundColor,color:t.color,padding:t.padding,borderRadius:t.borderRadius,fontSize:t.fontSize,opacity:"0",transition:"opacity ".concat(300,"ms ease-in-out"),display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",width:t.width,boxSizing:"border-box"}),t.icon){var o=document.createElement("img");Object.assign(o.style,{width:"40px",height:"40px"}),o.src=uu[t.icon],r.appendChild(o)}var i=document.createElement("span");Object.assign(i.style,{textAlign:"center",marginTop:"12px",lineHeight:"20px",fontFamily:"Noto Sans",fontWeight:"400",fontSize:"14px"}),i.textContent=t.message,r.appendChild(i),n.appendChild(r),setTimeout((function(){r.style.opacity="1"}),10),setTimeout((function(){r.style.opacity="0",setTimeout((function(){n.remove()}),300)}),t.duration)}}function hu(e){return fu.apply(this,arguments)}function fu(){return(fu=v()(g()().mark((function e(t){var n;return g()().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:Zs.unificationError(e.t0).toJSON(),data:void 0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function du(e,t){return pu.apply(this,arguments)}function pu(){return(pu=v()(g()().mark((function e(t,n){return g()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Fs("com.ipay.iexpfront.one.account.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gu(e,t){return mu.apply(this,arguments)}function mu(){return(mu=v()(g()().mark((function e(t,n){return g()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Fs("com.ipay.iexpcashier.sdkAction.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vu="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",yu=null;var _u=function(){function e(t){E()(this,e),N()(this,"opts",void 0),N()(this,"session",null),N()(this,"settled",!1),N()(this,"phase","idle"),N()(this,"cancelReason",null),N()(this,"modalCloseHandler",null),N()(this,"_activePay",null),this.opts=t}var t,n;return _()(e,[{key:"startPay",value:(n=v()(g()().mark((function e(){var t=this;return g()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._activePay){e.next=2;break}return e.abrupt("return",this._activePay);case 2:return this._activePay=this._startPayInternal().finally((function(){t._activePay=null})),e.abrupt("return",this._activePay);case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"_startPayInternal",value:(t=v()(g()().mark((function e(){var t,n,r,o,i,a,s,u=this;return g()().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,yu||(yu=new Promise((function(e){if(fo)return e(!1);if(window.ApplePaySession)return e(!0);var t=function(t){clearTimeout(n),t||(yu=null),e(t)},n=setTimeout((function(){console.warn("[ApplePay] Apple Pay SDK load timed out, will retry on next call"),t(!1)}),1e4),r=document.querySelector('script[src="'.concat(vu,'"]'));if(r)return window.ApplePaySession?void t(!0):(r.addEventListener("load",(function(){return t(!0)})),void r.addEventListener("error",(function(){return t(!1)})));var o=document.createElement("script");o.src=vu,o.onload=function(){return t(!0)},o.onerror=function(){return t(!1)},document.head.appendChild(o)})),yu);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=v()(g()().mark((function e(t){var r,o;return g()().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=v()(g()().mark((function e(t){var r,o,i,a,c,l,h;return g()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.settled){e.next=2;break}return e.abrupt("return");case 2:if(u.phase="authorizing",r=(null==t?void 0:t.payment)||{},o=r.token,i=r.billingContact,a=r.shippingContact,o){e.next=9;break}return u.safeComplete(s.STATUS_FAILURE),n({errorCode:"APPLE_PAY_TOKEN_ERROR"}),e.abrupt("return");case 9:return e.prev=9,e.next=12,u.opts.callbacks.onAuthorized({token:o,billingContact:i,shippingContact:a});case 12:(c=e.sent).success?(u.safeComplete(s.STATUS_SUCCESS),n()):("MERCHANT_CONFIRM_ABORT"===c.errorCode?u.cancelReason="MERCHANT_ABORT":"MERCHANT_CONFIRM_TIMEOUT"===c.errorCode&&(u.cancelReason="MERCHANT_TIMEOUT"),u.safeComplete(s.STATUS_FAILURE),"MERCHANT_CONFIRM_ABORT"!==c.errorCode&&"MERCHANT_CONFIRM_TIMEOUT"!==c.errorCode||u.safeAbort(),l=c.errorCode||"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED",c.errorMessage&&console.warn("[ApplePay] onAuthorized returned failure:",c.errorMessage),n({errorCode:l})),e.next=22;break;case 16:e.prev=16,e.t0=e.catch(9),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 22:case"end":return e.stop()}}),e,null,[[9,16]])})));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"})):"MERCHANT_TIMEOUT"===u.cancelReason?(u.phase="idle",void n({errorCode:"MERCHANT_CONFIRM_TIMEOUT"})):"validating"===u.phase?(u.phase="idle",void n({errorCode:"APPLE_PAY_PAYMENT_SESSION_REQUEST_FAILED"})):(u.phase,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}();function bu(e,t,n){if(!e)return null;try{var r,o,i,a,s,u,l=Ys(e),h=null==l?void 0:l.paymentSessionFactor,f=null==h?void 0:h.recurringInfo;if(!f)return null;var d=null==h||null===(r=h.order)||void 0===r?void 0:r.orderDescription;if(!d||!f.managementURL)return null;var p=c()(c()(c()({type:"final",label:null!==(o=f.title)&&void 0!==o?o:null==t?void 0:t.merchantName,amount:null==n?void 0:n.value,paymentTiming:"recurring"},f.startDate?{recurringPaymentStartDate:new Date(1e3*f.startDate)}:{}),f.endDate?{recurringPaymentEndDate:new Date(1e3*f.endDate)}:{}),{},{recurringPaymentIntervalUnit:null!==(i=f.intervalUnit)&&void 0!==i?i:"month",recurringPaymentIntervalCount:null!==(a=f.intervalCount)&&void 0!==a?a:1});return{paymentDescription:d,billingAgreement:null!==(s=f.agreementDescription)&&void 0!==s?s:void 0,regularBilling:p,managementURL:f.managementURL,tokenNotificationURL:null!==(u=f.tokenNotificationURL)&&void 0!==u?u:void 0}}catch(e){return null}}}(),r}()}));