PageSourceSearch

https://app.honeybook.com/router.81253de5b744171a.js

js honeybook.com collected 2026-10-01 08:34:04 UTC 512,742 bytes, 8 lines download raw bytes

vendor: 4,560 bytes, line 1
1(()=>{var __webpack_modules__={5485(r,n,o){r.exports=o(3251)},4380(r,n,o){"use strict";var i=o(9152),s=o(8670),d=o(624),g=o(7886),_=o(9515),v=o(2624),b=o(4782),E=o(6964),k=o(8353),O=o(47),R=o(644);r.exports=function(r){return new Promise(function(n,o){var C,I=r.data,A=r.headers,T=r.responseType;function done(){r.cancelToken&&r.cancelToken.unsubscribe(C),r.signal&&r.signal.removeEventListener("abort",C)}i.isFormData(I)&&i.isStandardBrowserEnv()&&delete A["Content-Type"];var j=new XMLHttpRequest;r.auth&&(A.Authorization="Basic "+btoa((r.auth.username||"")+":"+(r.auth.password?unescape(encodeURIComponent(r.auth.password)):"")));var P=_(r.baseURL,r.url);function onloadend(){if(j){var i="getAllResponseHeaders"in j?v(j.getAllResponseHeaders()):null,d=T&&"text"!==T&&"json"!==T?j.response:j.responseText,g={data:d,status:j.status,statusText:j.statusText,headers:i,config:r,request:j};s(function(r){n(r),done()},function(r){o(r),done()},g),j=null}}if(j.open(r.method.toUpperCase(),g(P,r.params,r.paramsSerializer),!0),j.timeout=r.timeout,"onloadend"in j?j.onloadend=onloadend:j.onreadystatechange=function(){!j||4!==j.readyState||(0!==j.status||j.responseURL&&0===j.responseURL.indexOf("file:"))&&setTimeout(onloadend)},j.onabort=function(){j&&(o(new k("Request aborted",k.ECONNABORTED,r,j)),j=null)},j.onerror=function(){o(new k("Network Error",k.ERR_NETWORK,r,j,j)),j=null},j.ontimeout=function(){var n=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",i=r.transitional||E;r.timeoutErrorMessage&&(n=r.timeoutErrorMessage),o(new k(n,i.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,r,j)),j=null},i.isStandardBrowserEnv()){var N=(r.withCredentials||b(P))&&r.xsrfCookieName?d.read(r.xsrfCookieName):void 0;N&&(A[r.xsrfHeaderName]=N)}"setRequestHeader"in j&&i.forEach(A,function(r,n){void 0===I&&"content-type"===n.toLowerCase()?delete A[n]:j.setRequestHeader(n,r)}),i.isUndefined(r.withCredentials)||(j.withCredentials=!!r.withCredentials),T&&"json"!==T&&(j.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&j.addEventListener("progress",r.onDownloadProgress),"function"==typeof r.onUploadProgress&&j.upload&&j.upload.addEventListener("progress",r.onUploadProgress),(r.cancelToken||r.signal)&&(C=function(r){j&&(o(!r||r&&r.type?new O:r),j.abort(),j=null)},r.cancelToken&&r.cancelToken.subscribe(C),r.signal&&(r.signal.aborted?C():r.signal.addEventListener("abort",C))),I||(I=null);var D=R(P);D&&-1===["http","https","file"].indexOf(D)?o(new k("Unsupported protocol "+D+":",k.ERR_BAD_REQUEST,r)):j.send(I)})}},3251(r,n,o){"use strict";var i=o(9152),s=o(8728),d=o(3303),g=o(6139);function createInstance(r){var n=new d(r),o=s(d.prototype.request,n);return i.extend(o,d.prototype,n),i.extend(o,n),o.create=function(n){return createInstance(g(r,n))},o}var _=createInstance(o(232));_.Axios=d,_.CanceledError=o(47),_.CancelToken=o(387),_.isCancel=o(4844),_.VERSION=o(1869).version,_.toFormData=o(6100),_.AxiosError=o(8353),_.Cancel=_.CanceledError,_.all=function(r){return Promise.all(r)},_.spread=o(7344),_.isAxiosError=o(8615),r.exports=_,r.exports.default=_},387(r,n,o){"use strict";var i=o(47);function CancelToken(r){if("function"!=typeof r)throw TypeError("executor must be a function.");this.promise=new Promise(function(r){n=r});var n,o=this;this.promise.then(function(r){if(o._listeners){var n,i=o._listeners.length;for(n=0;n<i;n++)o._listeners[n](r);o._listeners=null}}),this.promise.then=function(r){var n,i=new Promise(function(r){o.subscribe(r),n=r}).then(r);return i.cancel=function(){o.unsubscribe(n)},i},r(function(r){o.reason||(o.reason=new i(r),n(o.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.prototype.subscribe=function(r){this.reason?r(this.reason):this._listeners?this._listeners.push(r):this._listeners=[r]},CancelToken.prototype.unsubscribe=function(r){if(this._listeners){var n=this._listeners.indexOf(r);-1!==n&&this._listeners.splice(n,1)}},CancelToken.source=function(){var r;return{token:new CancelToken(function(n){r=n}),cancel:r}},r.exports=CancelToken},47(r,n,o){"use strict";var i=o(8353);function CanceledError(r){i.call(this,null==r?"canceled":r,i.ERR_CANCELED),this.name="CanceledError"}o(9152).inherits(CanceledError,i,{__CANCEL__:!0}),r.exports=CanceledError},4844(r){"use strict";r.exports=function(r){return!!(r&&r.__CANCEL__)}},3303(r,n,o){"use strict";var i=o(9152),s=o(7886),d=o(1379),g=o(758),_=o(6139),v=o(9515),b=o(5437),E=b.validators;function Axios(r){this.defaults=r,this.interceptors={request:new d,response:new d}}
1Axios.prototype.request=function(r,n){"string"==typeof r?(n=n||{}).url=r:n=r||{},(n=_(this.defaults,n)).method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var o,i=n.transitional;void 0!==i&&b.assertOptions(i,{silentJSONParsing:E.transitional(E.boolean),forcedJSONParsing:E.transitional(E.boolean),clarifyTimeoutError:E.transitional(E.boolean)},!1);var s=[],d=!0;this.interceptors.request.forEach(function(r){("function"!=typeof r.runWhen||!1!==r.runWhen(n))&&(d=d&&r.synchronous,s.unshift(r.fulfilled,r.rejected))});var v=[];if(this.interceptors.response.forEach(function(r){v.push(r.fulfilled,r.rejected)}),!d){var k=[g,void 0];for(Array.prototype.unshift.apply(k,s),k=k.concat(v),o=Promise.resolve(n);k.length;)o=o.then(k.shift(),k.shift());return o}for(var O=n;s.length;){var R=s.shift(),C=s.shift();try{O=R(O)}catch(r){C(r);break}}try{o=g(O)}catch(r){return Promise.reject(r)}for(;v.length;)o=o.then(v.shift(),v.shift());return o},Axios.prototype.getUri=function(r){return s(v((r=_(this.defaults,r)).baseURL,r.url),r.params,r.paramsSerializer)}
vendor: 4,517 bytes, line 1
1,i.forEach(["delete","get","head","options"],function(r){Axios.prototype[r]=function(n,o){return this.request(_(o||{},{method:r,url:n,data:(o||{}).data}))}}),i.forEach(["post","put","patch"],function(r){function generateHTTPMethod(n){return function(o,i,s){return this.request(_(s||{},{method:r,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Axios.prototype[r]=generateHTTPMethod(),Axios.prototype[r+"Form"]=generateHTTPMethod(!0)}),r.exports=Axios},8353(r,n,o){"use strict";var i=o(9152);function AxiosError(r,n,o,i,s){Error.call(this),this.message=r,this.name="AxiosError",n&&(this.code=n),o&&(this.config=o),i&&(this.request=i),s&&(this.response=s)}i.inherits(AxiosError,Error,{toJSON:function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=AxiosError.prototype,d={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(r){d[r]={value:r}}),Object.defineProperties(AxiosError,d),Object.defineProperty(s,"isAxiosError",{value:!0}),AxiosError.from=function(r,n,o,d,g,_){var v=Object.create(s);return i.toFlatObject(r,v,function(r){return r!==Error.prototype}),AxiosError.call(v,r.message,n,o,d,g),v.name=r.name,_&&Object.assign(v,_),v},r.exports=AxiosError},1379(r,n,o){"use strict";var i=o(9152);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function(r,n,o){return this.handlers.push({fulfilled:r,rejected:n,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1},InterceptorManager.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},InterceptorManager.prototype.forEach=function(r){i.forEach(this.handlers,function(n){null!==n&&r(n)})},r.exports=InterceptorManager},9515(r,n,o){"use strict";var i=o(9237),s=o(36);r.exports=function(r,n){return r&&!i(n)?s(r,n):n}},758(r,n,o){"use strict";var i=o(9152),s=o(8629),d=o(4844),g=o(232),_=o(47);function throwIfCancellationRequested(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new _}r.exports=function(r){return throwIfCancellationRequested(r),r.headers=r.headers||{},r.data=s.call(r,r.data,r.headers,r.transformRequest),r.headers=i.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(n){delete r.headers[n]}),(r.adapter||g.adapter)(r).then(function(n){return throwIfCancellationRequested(r),n.data=s.call(r,n.data,n.headers,r.transformResponse),n},function(n){return!d(n)&&(throwIfCancellationRequested(r),n&&n.response&&(n.response.data=s.call(r,n.response.data,n.response.headers,r.transformResponse))),Promise.reject(n)})}},6139(r,n,o){"use strict";var i=o(9152);r.exports=function(r,n){n=n||{};var o={};function getMergedValue(r,n){return i.isPlainObject(r)&&i.isPlainObject(n)?i.merge(r,n):i.isPlainObject(n)?i.merge({},n):i.isArray(n)?n.slice():n}function mergeDeepProperties(o){return i.isUndefined(n[o])?i.isUndefined(r[o])?void 0:getMergedValue(void 0,r[o]):getMergedValue(r[o],n[o])}function valueFromConfig2(r){if(!i.isUndefined(n[r]))return getMergedValue(void 0,n[r])}function defaultToConfig2(o){return i.isUndefined(n[o])?i.isUndefined(r[o])?void 0:getMergedValue(void 0,r[o]):getMergedValue(void 0,n[o])}function mergeDirectKeys(o){return o in n?getMergedValue(r[o],n[o]):o in r?getMergedValue(void 0,r[o]):void 0}var s={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};
1return i.forEach(Object.keys(r).concat(Object.keys(n)),function(r){var n=s[r]||mergeDeepProperties,d=n(r);i.isUndefined(d)&&n!==mergeDirectKeys||(o[r]=d)}),o}},8670(r,n,o){"use strict";var i=o(8353);r.exports=function(r,n,o){var s=o.config.validateStatus;!o.status||!s||s(o.status)?r(o):n(new i("Request failed with status code "+o.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}},8629(r,n,o){"use strict";var i=o(9152),s=o(232);r.exports=function(r,n,o){var d=this||s;return i.forEach(o,function(o){r=o.call(d,r,n)}),r}},232(r,n,o){"use strict";var i=o(9152),s=o(7470),d=o(8353),g=o(6964),_=o(6100),v={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(r,n){!i.isUndefined(r)&&i.isUndefined(r["Content-Type"])&&(r["Content-Type"]=n)}function stringifySafely(r,n,o){if(i.isString(r))try{return(n||JSON.parse)(r),i.trim(r)}catch(r){if("SyntaxError"!==r.name)throw r}return(o||JSON.stringify)(r)}var b={transitional:g,adapter:function(){var r;return"undefined"!=typeof XMLHttpRequest?r=o(4380):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(r=o(4380)),r}(),transformRequest:[function(r,n){if(s(n,"Accept"),s(n,"Content-Type"),i.isFormData(r)||i.isArrayBuffer(r)||i.isBuffer(r)||i.isStream(r)||i.isFile(r)||i.isBlob(r))return r;if(i.isArrayBufferView(r))return r.buffer;if(i.isURLSearchParams(r))return setContentTypeIfUnset(n,"application/x-www-form-urlencoded;charset=utf-8"),r.toString();var o,d=i.isObject(r),g=n&&n["Content-Type"];if((o=i.isFileList(r))||d&&"multipart/form-data"===g){var v=this.env&&this.env.FormData;return _(o?{"files[]":r}:r,v&&new v)}return d||"application/json"===g?(setContentTypeIfUnset(n,"application/json"),stringifySafely(r)):r}],transformResponse:[function(r){var n=this.transitional||b.transitional,o=n&&n.silentJSONParsing,s=n&&n.forcedJSONParsing,g=!o&&"json"===this.responseType;if(g||s&&i.isString(r)&&r.length)try{return JSON.parse(r)}catch(r){if(g){if("SyntaxError"===r.name)throw d.from(r,d.ERR_BAD_RESPONSE,this,null,this.response);throw r}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:o(1970)},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(r){b.headers[r]={}}),i.forEach(["post","put","patch"],function(r){b.headers[r]=i.merge(v)}),r.exports=b},6964(r){"use strict";r.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},1869(r){r.exports={version:"0.27.2"}},8728(r){"use strict";r.exports=function(r,n){return function(){for(var o=Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return r.apply(n,o)}}},7886(r,n,o){"use strict";var i=o(9152);function encode(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}r.exports=function(r,n,o){if(!n)return r;if(o)s=o(n);else if(i.isURLSearchParams(n))s=n.toString();else{var s,d=[];i.forEach(n,function(r,n){null!=r&&(i.isArray(r)?n+="[]":r=[r],i.forEach(r,function(r){i.isDate(r)?r=r.toISOString():i.isObject(r)&&(r=JSON.stringify(r)),d.push(encode(n)+"="+encode(r))}))}),s=d.join("&")}if(s){var g=r.indexOf("#");-1!==g&&(r=r.slice(0,g)),r+=(-1===r.indexOf("?")?"?":"&")+s}return r}},36(r){"use strict";r.exports=function(r,n){return n?r.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):r}},624(r,n,o){"use strict";var i=o(9152);r.exports=i.isStandardBrowserEnv()?function(){return{write:function(r,n,o,s,d,g){var _=[];_.push(r+"="+encodeURIComponent(n)),i.isNumber(o)&&_.push("expires="+new Date(o).toGMTString()),i.isString(s)&&_.push("path="+s),i.isString(d)&&_.push("domain="+d),!0===g&&_.push("secure"),document.cookie=_.join("; ")},read:function(r){var n=document.cookie.match(RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},9237(r){"use strict";r.exports=function(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}},8615(r,n,o){"use strict";var i=o(9152);r.exports=function(r){return i.isObject(r)&&!0===r.isAxiosError}},4782(r,n,o){"use strict";var i=o(9152);r.exports=i.isStandardBrowserEnv()?function(){var r,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");function resolveURL(r){var i=r;return n&&(o.setAttribute("href",i),i=o.href),o.setAttribute("href",i),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}return r=resolveURL(window.location.href),function(n){var o=i.isString(n)?resolveURL(n):n;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}()},7470(r,n,o){"use strict";var i=o(9152);
1r.exports=function(r,n){i.forEach(r,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(r[n]=o,delete r[i])})}},1970(r){r.exports=null},2624(r,n,o){"use strict";var i=o(9152),s=["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"];r.exports=function(r){var n,o,d,g={};return r&&i.forEach(r.split("\n"),function(r){d=r.indexOf(":"),n=i.trim(r.substr(0,d)).toLowerCase(),o=i.trim(r.substr(d+1)),n&&(g[n]&&s.indexOf(n)>=0||("set-cookie"===n?g[n]=(g[n]?g[n]:[]).concat([o]):g[n]=g[n]?g[n]+", "+o:o))}),g}},644(r){"use strict";r.exports=function(r){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return n&&n[1]||""}},7344(r){"use strict";r.exports=function(r){return function(n){return r.apply(null,n)}}},6100(r,n,o){"use strict";var i=o(9152);r.exports=function(r,n){n=n||new FormData;var o=[];function convertValue(r){return null===r?"":i.isDate(r)?r.toISOString():i.isArrayBuffer(r)||i.isTypedArray(r)?"function"==typeof Blob?new Blob([r]):Buffer.from(r):r}function build(r,s){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==o.indexOf(r))throw Error("Circular reference detected in "+s);o.push(r),i.forEach(r,function(r,o){if(!i.isUndefined(r)){var d,g=s?s+"."+o:o;if(r&&!s&&"object"==typeof r){if(i.endsWith(o,"{}"))r=JSON.stringify(r);else if(i.endsWith(o,"[]")&&(d=i.toArray(r)))return void d.forEach(function(r){i.isUndefined(r)||n.append(g,convertValue(r))})}build(r,g)}}),o.pop()}else n.append(s,convertValue(r))}return build(r),n}},5437(r,n,o){"use strict";var i=o(1869).version,s=o(8353),d={};["object","boolean","number","function","string","symbol"].forEach(function(r,n){d[r]=function(o){return typeof o===r||"a"+(n<1?"n ":" ")+r}});var g={};d.transitional=function(r,n,o){function formatMessage(r,n){return"[Axios v"+i+"] Transitional option '"+r+"'"+n+(o?". "+o:"")}return function(o,i,d){if(!1===r)throw new s(formatMessage(i," has been removed"+(n?" in "+n:"")),s.ERR_DEPRECATED);return n&&!g[i]&&(g[i]=!0,console.warn(formatMessage(i," has been deprecated since v"+n+" and will be removed in the near future"))),!r||r(o,i,d)}},r.exports={assertOptions:function(r,n,o){if("object"!=typeof r)throw new s("options must be an object",s.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(r),d=i.length;d-- >0;){var g=i[d],_=n[g];if(_){var v=r[g],b=void 0===v||_(v,g,r);if(!0!==b)throw new s("option "+g+" must be "+b,s.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new s("Unknown option "+g,s.ERR_BAD_OPTION)}},validators:d}},9152(r,n,o){"use strict";var i=o(8728),s=Object.prototype.toString,d=function(r){return function(n){var o=s.call(n);return r[o]||(r[o]=o.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(r){return r=r.toLowerCase(),function(n){return d(n)===r}}function isArray(r){return Array.isArray(r)}function isUndefined(r){return void 0===r}function isBuffer(r){return null!==r&&!isUndefined(r)&&null!==r.constructor&&!isUndefined(r.constructor)&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)}var g=kindOfTest("ArrayBuffer");function isArrayBufferView(r){var n;return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer&&g(r.buffer)}function isString(r){return"string"==typeof r}function isNumber(r){return"number"==typeof r}function isObject(r){return null!==r&&"object"==typeof r}function isPlainObject(r){if("object"!==d(r))return!1;var n=Object.getPrototypeOf(r);return null===n||n===Object.prototype}var _=kindOfTest("Date"),v=kindOfTest("File"),b=kindOfTest("Blob"),E=kindOfTest("FileList");function isFunction(r){return"[object Function]"===s.call(r)}function isStream(r){return isObject(r)&&isFunction(r.pipe)}function trim(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function forEach(r,n){if(null!=r)if("object"!=typeof r&&(r=[r]),isArray(r))for(var o=0,i=r.length;o<i;o++)n.call(null,r[o],o,r);else for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&n.call(null,r[s],s,r)}function merge(){var r={};function assignValue(n,o){isPlainObject(r[o])&&isPlainObject(n)?r[o]=merge(r[o],n):isPlainObject(n)?r[o]=merge({},n):isArray(n)?r[o]=n.slice():r[o]=n}for(var n=0,o=arguments.length;n<o;n++)forEach(arguments[n],assignValue);return r}function extend(r,n,o){return forEach(n,function(n,s){o&&"function"==typeof n?r[s]=i(n,o):r[s]=n}),r}function stripBOM(r){return 65279===r.charCodeAt(0)&&(r=r.slice(1)),r}function inherits(r,n,o,i){r.prototype=Object.create(n.prototype,i
vendor: 7,693 bytes, line 1
1),r.prototype.constructor=r,o&&Object.assign(r.prototype,o)}function toFlatObject(r,n,o){var i,s,d,g={};n=n||{};do{for(s=(i=Object.getOwnPropertyNames(r)).length;s-- >0;)g[d=i[s]]||(n[d]=r[d],g[d]=!0);r=Object.getPrototypeOf(r)}while(r&&(!o||o(r,n))&&r!==Object.prototype);return n}function endsWith(r,n,o){r=String(r),(void 0===o||o>r.length)&&(o=r.length),o-=n.length;var i=r.indexOf(n,o);return -1!==i&&i===o}function toArray(r){if(!r)return null;var n=r.length;if(isUndefined(n))return null;for(var o=Array(n);n-- >0;)o[n]=r[n];return o}r.exports={isArray:isArray,isArrayBuffer:g,isBuffer:isBuffer,isFormData:function(r){var n="[object FormData]";return r&&("function"==typeof FormData&&r instanceof FormData||s.call(r)===n||isFunction(r.toString)&&r.toString()===n)},isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:_,isFile:v,isBlob:b,isFunction:isFunction,isStream:isStream,isURLSearchParams:kindOfTest("URLSearchParams"),isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:d,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,isTypedArray:function(r){return function(n){return r&&n instanceof r}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),isFileList:E}},8431(r){!function(n,o){r.exports=o()}(0,function(){"use strict";var r=1e3,n=6e4,o=36e5,i="millisecond",s="second",d="minute",g="hour",_="day",v="week",b="month",E="quarter",k="year",O="date",R="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(r){var n=["th","st","nd","rd"],o=r%100;return"["+r+(n[(o-20)%10]||n[o]||n[0])+"]"}},m=function(r,n,o){var i=String(r);return!i||i.length>=n?r:""+Array(n+1-i.length).join(o)+r},T={s:m,z:function(r){var n=-r.utcOffset(),o=Math.abs(n),i=Math.floor(o/60),s=o%60;return(n<=0?"+":"-")+m(i,2,"0")+":"+m(s,2,"0")},m:function t(r,n){if(r.date()<n.date())return-t(n,r);var o=12*(n.year()-r.year())+(n.month()-r.month()),i=r.clone().add(o,b),s=n-i<0,d=r.clone().add(o+(s?-1:1),b);return+(-(o+(n-i)/(s?i-d:d-i))||0)},a:function(r){return r<0?Math.ceil(r)||0:Math.floor(r)},p:function(r){return({M:b,y:k,w:v,d:_,D:O,h:g,m:d,s:s,ms:i,Q:E})[r]||String(r||"").toLowerCase().replace(/s$/,"")},u:function(r){return void 0===r}},j="en",P={};P[j]=A;var p=function(r){return r instanceof D},S=function t(r,n,o){var i;if(!r)return j;if("string"==typeof r){var s=r.toLowerCase();P[s]&&(i=s),n&&(P[s]=n,i=s);var d=r.split("-");if(!i&&d.length>1)return t(d[0])}else{var g=r.name;P[g]=r,i=g}return!o&&i&&(j=i),i||!o&&j},w=function(r,n){if(p(r))return r.clone();var o="object"==typeof n?n:{};return o.date=r,o.args=arguments,new D(o)},N=T;N.l=S,N.i=p,N.w=function(r,n){return w(r,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var D=function(){function M(r){this.$L=S(r.locale,null,!0),this.parse(r)}var A=M.prototype;return A.parse=function(r){this.$d=function(r){var n=r.date,o=r.utc;if(null===n)return new Date(NaN);if(N.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var i=n.match(C);if(i){var s=i[2]-1||0,d=(i[7]||"0").substring(0,3);return o?new Date(Date.UTC(i[1],s,i[3]||1,i[4]||0,i[5]||0,i[6]||0,d)):new Date(i[1],s,i[3]||1,i[4]||0,i[5]||0,i[6]||0,d)}}return new Date(n)}(r),this.$x=r.x||{},this.init()},A.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},A.$utils=function(){return N},A.isValid=function(){return this.$d.toString()!==R},A.isSame=function(r,n){var o=w(r);return this.startOf(n)<=o&&o<=this.endOf(n)},A.isAfter=function(r,n){return w(r)<this.startOf(n)},A.isBefore=function(r,n){return this.endOf(n)<w(r)},A.$g=function(r,n,o){return N.u(r)?this[n]:this.set(o,r)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(r,n){var o=this,i=!!N.u(n)||n,E=N.p(r),l=function(r,n){var s=N.w(o.$u?Date.UTC(o.$y,n,r):new Date(o.$y,n,r),o);return i?s:s.endOf(_)},$=function(r,n){return N.w(o.toDate()[r].apply(o.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(n)),o)},R=this.$W,C=this.$M,I=this.$D,A="set"+(this.$u?"UTC":"");switch(E){case k:return i?l(1,0):l(31,11);case b:return i?l(1,C):l(0,C+1);case v:var T=this.$locale().weekStart||0,j=(R<T?R+7:R)-T;return l(i?I-j:I+(6-j),C);case _:case O:return $(A+"Hours",0);case g:return $(A+"Minutes",1);case d:return $(A+"Seconds",2);case s:return $(A+"Milliseconds",3);default:return this.clone()}},A.endOf=function(r){return this.startOf(r,!1)},A.$set=function(r,n){var o,v=N.p(r),E="set"+(this.$u?"UTC":""),R=((o={})[_]=E+"Date",o[O]=E+"Date",o[b]=E+"Month",o[k]=E+"FullYear",o[g]=E+"Hours",o[d]=E+"Minutes",o[s]=E+"Seconds",o[i]=E+"Milliseconds",o)[v],C=v===_?this.$D+(n-this.$W):n;if(v===b||v===k){var I=this.clone().set(O,1);I.$d[R](C),I.init(),this.$d=I.set(O,Math.min(this.$D,I.daysInMonth())).$d}else R&&this.$d[R](C);return this.init(),this},A.set=function(r,n){return this.clone().$set(r,n)},A.get=function(r){return this[N.p(r)]()},A.add=function(i,E){var O,R=this;i=Number(i);var C=N.p(E),y=function(r){var n=w(R);return N.w(n.date(n.date()+Math.round(r*i)),R)};if(C===b)return this.set(b,this.$M+i);if(C===k)return this.set(k,this.$y+i);if(C===_)return y(1);if(C===v)return y(7);var I=((O={})[d]=n,O[g]=o,O[s]=r,O)[C]||1,A=this.$d.getTime()+i*I;return N.w(A,this)},A.subtract=function(r,n){return this.add(-1*r,n)},A.format=function(r){var n=this,o=this.$locale();if(!this.isValid())return o.invalidDate||R;var i=r||"YYYY-MM-DDTHH:mm:ssZ",s=N.z(this),d=this.$H,g=this.$m,_=this.$M,v=o.weekdays,b=o.months,h=function(r,o,s,d){return r&&(r[o]||r(n,i))||s[o].slice(0,d)},c=function(r){return N.s(d%12||12,r,"0")},E=o.meridiem||function(r,n,o){var i=r<12?"AM":"PM";return o?i.toLowerCase():i},k={YY:String(this.$y).slice(-2),YYYY:this.$y,M:_+1,MM:N.s(_+1,2,"0"),MMM:h(o.monthsShort,_,b,3),MMMM:h(b,_),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:h(o.weekdaysMin,this.$W,v,2),ddd:h(o.weekdaysShort,this.$W,v,3),dddd:v[this.$W],H:String(d),HH:N.s(d,2,"0"),h:c(1),hh:c(2),a:E(d,g,!0),A:E(d,g,!1),m:String(g),mm:N.s(g,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:s};return i.replace(I,function(r,n){return n||k[r]||s.replace(":","")})},A.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},A.diff=function(i,O,R){var C,I=N.p(O),A=w(i),T=(A.utcOffset()-this.utcOffset())*n,j=this-A,P=N.m(this,A);return P=((C={})[k]=P/12,C[b]=P,C[E]=P/3,C[v]=(j-T)/6048e5,C[_]=(j-T)/864e5,C[g]=j/o,C[d]=j/n,C[s]=j/r,C)[I]||j,R?P:N.a(P)},A.daysInMonth=function(){return this.endOf(b).$D},A.$locale=function(){return P[this.$L]},A.locale=function(r,n){if(!r)return this.$L;var o=this.clone(),i=S(r,n,!0);return i&&(o.$L=i),o},A.clone=function(){return N.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},M}(),F=D.prototype;return w.prototype=F,[["$ms",i],["$s",s],["$m",d],["$H",g],["$W",_],["$M",b],["$y",k],["$D",O]].forEac
1h(function(r){F[r[1]]=function(n){return this.$g(n,r[0],r[1])}}),w.extend=function(r,n){return r.$i||(r(n,D,w),r.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(r){return w(1e3*r)},w.en=P[j],w.Ls=P,w.p={},w})},2255(r){!function(n,o){r.exports=o()}(0,function(){"use strict";var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(o,i,s){var d,a=function(r,o,i){void 0===i&&(i={});var s=new Date(r);return(function(r,o){void 0===o&&(o={});var i=o.timeZoneName||"short",s=r+"|"+i,d=n[s];return d||(d=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),n[s]=d),d})(o,i).formatToParts(s)},u=function(n,o){for(var i=a(n,o),d=[],g=0;g<i.length;g+=1){var _=i[g],v=_.type,b=_.value,E=r[v];E>=0&&(d[E]=parseInt(b,10))}var k=d[3],O=24===k?0:k,R=d[0]+"-"+d[1]+"-"+d[2]+" "+O+":"+d[4]+":"+d[5]+":000",C=+n;return(s.utc(R).valueOf()-(C-=C%1e3))/6e4},g=i.prototype;g.tz=function(r,n){void 0===r&&(r=d);var o=this.utcOffset(),i=this.toDate(),g=i.toLocaleString("en-US",{timeZone:r}),_=Math.round((i-new Date(g))/1e3/60),v=s(g).$set("millisecond",this.$ms).utcOffset(-(15*Math.round(i.getTimezoneOffset()/15))-_,!0);if(n){var b=v.utcOffset();v=v.add(o-b,"minute")}return v.$x.$timezone=r,v},g.offsetName=function(r){var n=this.$x.$timezone||s.tz.guess(),o=a(this.valueOf(),n,{timeZoneName:r}).find(function(r){return"timezonename"===r.type.toLowerCase()});return o&&o.value};var _=g.startOf;g.startOf=function(r,n){if(!this.$x||!this.$x.$timezone)return _.call(this,r,n);var o=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return _.call(o,r,n).tz(this.$x.$timezone,!0)},s.tz=function(r,n,o){var i=o&&n,g=o||n||d,_=u(+s(),g);if("string"!=typeof r)return s(r).tz(g);var v=function(r,n,o){var i=r-60*n*1e3,s=u(i,o);if(n===s)return[i,n];var d=u(i-=60*(s-n)*1e3,o);return s===d?[i,s]:[r-60*Math.min(s,d)*1e3,Math.max(s,d)]}(s.utc(r,i).valueOf(),_,g),b=v[0],E=v[1],k=s(b).utcOffset(E);return k.$x.$timezone=g,k},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(r){d=r}}})},2858(r){"use strict";var n="%[a-f0-9]{2}",o=RegExp("("+n+")|([^%]+?)","gi"),i=RegExp("("+n+")+","gi");function decodeComponents(r,n){try{return[decodeURIComponent(r.join(""))]}catch(r){}if(1===r.length)return r;n=n||1;var o=r.slice(0,n),i=r.slice(n);return Array.prototype.concat.call([],decodeComponents(o),decodeComponents(i))}function decode(r){try{return decodeURIComponent(r)}catch(s){for(var n=r.match(o)||[],i=1;i<n.length;i++)n=(r=decodeComponents(n,i).join("")).match(o)||[];return r}}function customDecodeURIComponent(r){for(var n={"%FE%FF":"��","%FF%FE":"��"},o=i.exec(r);o;){try{n[o[0]]=decodeURIComponent(o[0])}catch(r){var s=decode(o[0]);s!==o[0]&&(n[o[0]]=s)}o=i.exec(r)}n["%C2"]="�";for(var d=Object.keys(n),g=0;g<d.length;g++){var _=d[g];r=r.replace(RegExp(_,"g"),n[_])}return r}r.exports=function(r){if("string"!=typeof r)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch(n){return customDecodeURIComponent(r)}}},1702(r){"use strict";r.exports=function(r,n){for(var o={},i=Object.keys(r),s=Array.isArray(n),d=0;d<i.length;d++){var g=i[d],_=r[g];(s?-1!==n.indexOf(g):n(g,_,r))&&(o[g]=_)}return o}},607(r,n,o){var i=o(2839),s=o(7186);r.exports=i,r.exports.murmur3=i,r.exports.murmur2=s},7186(r){r.exports=function murmurhash2_32_gc(r,n){for(var o,i=r.length,s=n^i,d=0;i>=4;)o=(65535&(o=255&r.charCodeAt(d)|(255&r.charCodeAt(++d))<<8|(255&r.charCodeAt(++d))<<16|(255&r.charCodeAt(++d))<<24))*0x5bd1e995+(((o>>>16)*0x5bd1e995&65535)<<16),o^=o>>>24,s=(65535&s)*0x5bd1e995+(((s>>>16)*0x5bd1e995&65535)<<16)^(o=(65535&o)*0x5bd1e995+(((o>>>16)*0x5bd1e995&65535)<<16)),i-=4,++d;switch(i){case 3:s^=(255&r.charCodeAt(d+2))<<16;case 2:s^=(255&r.charCodeAt(d+1))<<8;case 1:s^=255&r.charCodeAt(d),s=(65535&s)*0x5bd1e995+(((s>>>16)*0x5bd1e995&65535)<<16)}return s^=s>>>13,s=(65535&s)*0x5bd1e995+(((s>>>16)*0x5bd1e995&65535)<<16),(s^=s>>>15)>>>0}}
1,2839(r){r.exports=function murmurhash3_32_gc(r,n){var o,i,s,d,g,_,v,b;for(o=3&r.length,i=r.length-o,s=n,g=0xcc9e2d51,_=0x1b873593,b=0;b<i;)v=255&r.charCodeAt(b)|(255&r.charCodeAt(++b))<<8|(255&r.charCodeAt(++b))<<16|(255&r.charCodeAt(++b))<<24,++b,s^=v=(65535&(v=(v=(65535&v)*g+(((v>>>16)*g&65535)<<16)|0)<<15|v>>>17))*_+(((v>>>16)*_&65535)<<16)|0,s=(65535&(d=(65535&(s=s<<13|s>>>19))*5+(((s>>>16)*5&65535)<<16)|0))+27492+(((d>>>16)+58964&65535)<<16);switch(v=0,o){case 3:v^=(255&r.charCodeAt(b+2))<<16;case 2:v^=(255&r.charCodeAt(b+1))<<8;case 1:v^=255&r.charCodeAt(b),s^=v=(65535&(v=(v=(65535&v)*g+(((v>>>16)*g&65535)<<16)|0)<<15|v>>>17))*_+(((v>>>16)*_&65535)<<16)|0}return s^=r.length,s^=s>>>16,s=(65535&s)*0x85ebca6b+(((s>>>16)*0x85ebca6b&65535)<<16)|0,s^=s>>>13,s=(65535&s)*0xc2b2ae35+(((s>>>16)*0xc2b2ae35&65535)<<16)|0,(s^=s>>>16)>>>0}},2504(r,n,o){!function(){"use strict";"object"==typeof self&&self.self===self&&self||"object"==typeof o.g&&o.g.global===o.g&&o.g;var i=0x1fffffffffffff;function f(r){return"number"==typeof r&&r==r&&r!==1/0&&r!==-1/0}function l(r){return"number"==typeof r&&Math.abs(r)<=i}var s=/(hundred|thousand|(m|b|tr|quadr)illion)$/,d=/teen$/,g=/y$/,_=/(zero|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve)$/,v={zero:"zeroth",one:"first",two:"second",three:"third",four:"fourth",five:"fifth",six:"sixth",seven:"seventh",eight:"eighth",nine:"ninth",ten:"tenth",eleven:"eleventh",twelve:"twelfth"};function h(r){return s.test(r)||d.test(r)?r+"th":g.test(r)?r.replace(g,"ieth"):_.test(r)?r.replace(_,a):r}function a(r,n){return v[n]}var b=10,E=100,k=1e3,O=1e6,R=1e9,C=1e12,I=1e15,A=0x20000000000000,T=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],j=["zero","ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function x(r,n){var o,i=parseInt(r,10);if(!f(i))throw TypeError("Not a finite number: "+r+" ("+typeof r+")");if(!l(i))throw RangeError("Input is not a safe number, it’s either too large or too small.");return o=function e(r){var n,o,i=arguments[1];return 0===r?i?i.join(" ").replace(/,$/,""):"zero":(i||(i=[]),r<0&&(i.push("minus"),r=Math.abs(r)),r<20?(n=0,o=T[r]):r<E?(n=r%b,o=j[Math.floor(r/b)],n&&(o+="-"+T[n],n=0)):r<k?(n=r%E,o=e(Math.floor(r/E))+" hundred"):r<O?(n=r%k,o=e(Math.floor(r/k))+" thousand,"):r<R?(n=r%O,o=e(Math.floor(r/O))+" million,"):r<C?(n=r%R,o=e(Math.floor(r/R))+" billion,"):r<I?(n=r%C,o=e(Math.floor(r/C))+" trillion,"):r<=A&&(n=r%I,o=e(Math.floor(r/I))+" quadrillion,"),i.push(o),e(n,i))}(i),n?h(o):o}var P={toOrdinal:function(r){var n=parseInt(r,10);if(!f(n))throw TypeError("Not a finite number: "+r+" ("+typeof r+")");if(!l(n))throw RangeError("Input is not a safe number, it’s either too large or too small.");var o=String(n),i=Math.abs(n%100),s=11<=i&&i<=13,d=o.charAt(o.length-1);return o+(s?"th":"1"===d?"st":"2"===d?"nd":"3"===d?"rd":"th")},toWords:x,toWordsOrdinal:function(r){return h(x(r))}};r.exports&&(n=r.exports=P),n.numberToWords=P}()},6084(r){"use strict";var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function toObject(r){if(null==r)throw TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=!function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var n={},o=0;o<10;o++)n["_"+String.fromCharCode(o)]=o;var i=Object.getOwnPropertyNames(n).map(function(r){return n[r]});if("0123456789"!==i.join(""))return!1;var s={};if("abcdefghijklmnopqrst".split("").forEach(function(r){s[r]=r}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},s)).join(""))return!1;return!0}catch(r){return!1}}()?function(r,s){for(var d,g,_=toObject(r),v=1;v<arguments.length;v++){for(var b in d=Object(arguments[v]))o.call(d,b)&&(_[b]=d[b]);if(n){g=n(d);for(var E=0;E<g.length;
1E++)i.call(d,g[E])&&(_[g[E]]=d[g[E]])}}return _}:Object.assign},940(r){"use strict";function Cache(r){this._maxSize=r,this.clear()}Cache.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Cache.prototype.get=function(r){return this._values[r]},Cache.prototype.set=function(r,n){return this._size>=this._maxSize&&this.clear(),!(r in this._values)&&this._size++,this._values[r]=n};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,i=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,d=/^\s*(['"]?)(.*?)(\1)\s*$/,g=512,_=new Cache(512),v=new Cache(g),b=new Cache(g);function normalizePath(r){return _.get(r)||_.set(r,split(r).map(function(r){return r.replace(d,"$2")}))}function split(r){return r.match(n)||[""]}function forEach(r,n,o){var i,s,d,g,_=r.length;for(s=0;s<_;s++)(i=r[s])&&(shouldBeQuoted(i)&&(i='"'+i+'"'),d=!(g=isQuoted(i))&&/^\d+$/.test(i),n.call(o,i,g,d,s,r))}function isQuoted(r){return"string"==typeof r&&r&&-1!==["'",'"'].indexOf(r.charAt(0))}function hasLeadingNumber(r){return r.match(i)&&!r.match(o)}function hasSpecialChars(r){return s.test(r)}function shouldBeQuoted(r){return!isQuoted(r)&&(hasLeadingNumber(r)||hasSpecialChars(r))}r.exports={Cache:Cache,split:split,normalizePath:normalizePath,setter:function(r){var n=normalizePath(r);return v.get(r)||v.set(r,function(r,o){for(var i=0,s=n.length,d=r;i<s-1;){var g=n[i];if("__proto__"===g||"constructor"===g||"prototype"===g)return r;d=d[n[i++]]}d[n[i]]=o})},getter:function(r,n){var o=normalizePath(r);return b.get(r)||b.set(r,function(r){for(var i=0,s=o.length;i<s;)if(null==r&&n)return;else r=r[o[i++]];return r})},join:function(r){return r.reduce(function(r,n){return r+(isQuoted(n)||o.test(n)?"["+n+"]":(r?".":"")+n)},"")},forEach:function(r,n,o){forEach(Array.isArray(r)?r:split(r),n,o)}}},8605(r,n,o){"use strict";let i=o(5006),s=o(2858),d=o(6797),g=o(1702),isNullOrUndefined=r=>null==r,_=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(r){switch(r.arrayFormat){case"index":return n=>(o,i)=>{let s=o.length;return void 0===i||r.skipNull&&null===i||r.skipEmptyString&&""===i?o:null===i?[...o,encode(n,r)+"["+s+"]"]:[...o,encode(n,r)+"["+encode(s,r)+"]="+encode(i,r)]};case"bracket":return n=>(o,i)=>void 0===i||r.skipNull&&null===i||r.skipEmptyString&&""===i?o:null===i?[...o,encode(n,r)+"[]"]:[...o,encode(n,r)+"[]="+encode(i,r)];case"colon-list-separator":return n=>(o,i)=>void 0===i||r.skipNull&&null===i||r.skipEmptyString&&""===i?o:null===i?[...o,encode(n,r)+":list="]:[...o,encode(n,r)+":list="+encode(i,r)];case"comma":case"separator":case"bracket-separator":{let n="bracket-separator"===r.arrayFormat?"[]=":"=";return o=>(i,s)=>void 0===s||r.skipNull&&null===s||r.skipEmptyString&&""===s?i:(s=null===s?"":s,0===i.length)?[[encode(o,r),n,encode(s,r)].join("")]:[[i,encode(s,r)].join(r.arrayFormatSeparator)]}default:return n=>(o,i)=>void 0===i||r.skipNull&&null===i||r.skipEmptyString&&""===i?o:null===i?[...o,encode(n,r)]:[...o,encode(n,r)+"="+encode(i,r)]}}function parserForArrayFormat(r){let n;switch(r.arrayFormat){case"index":return(r,o,i)=>{if(n=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!n){i[r]=o;return}void 0===i[r]&&(i[r]={}),i[r][n[1]]=o};case"bracket":return(r,o,i)=>{if(n=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!n){i[r]=o;return}if(void 0===i[r]){i[r]=[o];return}i[r]=[].concat(i[r],o)};case"colon-list-separator":return(r,o,i)=>{if(n=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!n){i[r]=o;return}if(void 0===i[r]){i[r]=[o];return}i[r]=[].concat(i[r],o)};case"comma":case"separator":return(n,o,i)=>{let s="string"==typeof o&&o.includes(r.arrayFormatSeparator),d="string"==typeof o&&!s&&decode(o,r).includes(r.arrayFormatSeparator);o=d?decode(o,r):o;let g=s||d?o.split(r.arrayFormatSeparator).map(n=>decode(n,r)):null===o?o:decode(o,r);i[n]=g};case"bracket-separator":return(n,o,i)=>{let s=/(\[\])$/.test(n);if(n=n.replace(/\[\]$/,""),!s){i[n]=o?decode(o,r):o;return}let d=null===o?[]:o.split(r.arrayFormatSeparator).map(n=>decode(n,r));if(void 0===i[n]){i[n]=d;return}i[n]=[].concat(i[n],d)};default:return(r,n,o)=>{if(void 0===o[r]){o[r]=n;return}o[r]=[].concat(o[r],n)}}}function validateArrayFormatSeparator(r){if("string"!=typeof r||1!==r.length)throw TypeError("arrayFormatSeparator must be single character string")}function encode(r,n){return n.encode?n.strict?i(r):encodeURIComponent(r):r}function decode(r,n){return n.decode?s(r):r}function keysSorter(r){return Array.isArray(r)?r.sort():"object"==typeof r?keysSorter(Object.keys(r)).sort((r,n)=>Number(r)-Number(n)).map(n=>r[n]):r}function removeHash(r){let n=r.indexOf("#");return -1!==n&&(r=r.slice(0,n)),r}function getHash(r){let n="",o=r.indexOf("#");return -1!==o&&(n=r.slice(o)),n}function extract(r){let n=(r=removeHash(r)).indexOf("?");return -1===n?"":r.slice(n+1)}function parseValue(r,n){return n.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):n.parseBooleans&&null!==r&&("true"===r.toLowerCase()||"false"===r.toLowerCase())&&(r="true"===r.toLowerCase()),r}function parse(r,n){validateArrayFormatSeparator((n=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},n)).arrayFormatSeparator);let o=parserForArrayFormat(n),i=Object.create(null);if("string"!=typeof r||!(r=r.trim().replace(/^[?#&]/,"")))return i;for(let s of r.split("&")){if(""===s)continue;let[r,g]=d(n.decode?s.replace(/\+/g," "):s,"=");g=void 0===g?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?g:decode(g,n),o(decode(r,n),g,i)}for(let r of Object.keys(i)){let o=i[r];if("object"==typeof o&&null!==o)for(let r of Object.keys(o))o[r]=parseValue(o[r],n);else i[r]=parseValue(o,n)}return!1===n.sort?i:(!0===n.sort?Object.keys(i).sort():Object.keys(i).sort(n.sort)).reduce((r,n)=>{let o=i[n];return o&&"object"==typeof o&&!Array.isArray(o)?r[n]=keysSorter(o):r[n]=o,r},Object.create(null))}n.extract=extract,n.parse=parse,n.stringify=(r,n)=>{if(!r)return"";validateArrayFormatSeparator((n=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},n)).arrayFormatSeparator);let shouldFilter=o=>n.skipNull&&isNullOrUndefined(r[o])||n.skipEmptyString&&""===r[o],o=encoderForArrayFormat(n),i={};for(let n of Object.keys(r))shouldFilter(n)||(i[n]=r[n]);let s=Object.keys(i);return!1!==n.sort&&s.sort(n.sort),s.map(i=>{let s=r[i];return void 0===s?"":null===s?encode(i,n):Array.isArray(s)?0===s.length&&"bracket-separator"===n.arrayFormat?encode(i,n)+"[]":s.reduce(o(i),[]).join("&"):encode(i,n)+"="+encode(s,n)}).filter(r=>r.length>0).join("&")},n.parseUrl=(r,n)=>{n=Object.assign({decode:!0},n);let[o,i]=d(r,"#");
1return Object.assign({url:o.split("?")[0]||"",query:parse(extract(r),n)},n&&n.parseFragmentIdentifier&&i?{fragmentIdentifier:decode(i,n)}:{})},n.stringifyUrl=(r,o)=>{o=Object.assign({encode:!0,strict:!0,[_]:!0},o);let i=removeHash(r.url).split("?")[0]||"",s=n.extract(r.url),d=Object.assign(n.parse(s,{sort:!1}),r.query),g=n.stringify(d,o);g&&(g=`?${g}`);let v=getHash(r.url);return r.fragmentIdentifier&&(v=`#${o[_]?encode(r.fragmentIdentifier,o):r.fragmentIdentifier}`),`${i}${g}${v}`},n.pick=(r,o,i)=>{i=Object.assign({parseFragmentIdentifier:!0,[_]:!1},i);let{url:s,query:d,fragmentIdentifier:v}=n.parseUrl(r,i);return n.stringifyUrl({url:s,query:g(d,o),fragmentIdentifier:v},i)},n.exclude=(r,o,i)=>{let s=Array.isArray(o)?r=>!o.includes(r):(r,n)=>!o(r,n);return n.pick(r,s,i)}},2584(r,n,o){"use strict";o.r(n),o.d(n,{withSSR:()=>withSSR,getDefaults:()=>getDefaults,initReactI18next:()=>F,withTranslation:()=>withTranslation,getI18n:()=>getI18n,useTranslation:()=>useTranslation,date:()=>es_date,selectOrdinal:()=>es_selectOrdinal,composeInitialProps:()=>composeInitialProps,select:()=>es_select,Translation:()=>Translation,setI18n:()=>setI18n,I18nContext:()=>N,time:()=>es_time,number:()=>es_number,I18nextProvider:()=>I18nextProvider,plural:()=>es_plural,Trans:()=>Trans,getInitialProps:()=>getInitialProps,setDefaults:()=>setDefaults,useSSR:()=>useSSR});var i,s=o(2975);function _objectWithoutProperties(r,n){if(null==r)return{};var o,i,d=(0,s.A)(r,n);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(r);for(i=0;i<g.length;i++)o=g[i],-1===n.indexOf(o)&&({}).propertyIsEnumerable.call(r,o)&&(d[o]=r[o])}return d}var d=o(7408),g=o(663),_=o(1594),v=o(3752),b=o.n(v),E=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function html_parse_stringify_module_n(r){var n={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},o=r.match(/<\/?([^\s]+?)[/\s>]/);if(o&&(n.name=o[1],(b()[o[1]]||"/"===r.charAt(r.length-2))&&(n.voidElement=!0),n.name.startsWith("!--"))){var i=r.indexOf("--\x3e");return{type:"comment",comment:-1!==i?r.slice(4,i):""}}for(var s=new RegExp(E),d=null;null!==(d=s.exec(r));)if(d[0].trim())if(d[1]){var g=d[1].trim(),_=[g,""];g.indexOf("=")>-1&&(_=g.split("=")),n.attrs[_[0]]=_[1],s.lastIndex--}else d[2]&&(n.attrs[d[2]]=d[3].trim().substring(1,d[3].length-1));return n}var k=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,O=/^\s*$/,R=Object.create(null);function html_parse_stringify_module_a(r,n){switch(n.type){case"text":return r+n.content;case"tag":return r+="<"+n.name+(n.attrs?function(r){var n=[];for(var o in r)n.push(o+'="'+r[o]+'"');return n.length?" "+n.join(" "):""}(n.attrs):"")+(n.voidElement?"/>":">"),n.voidElement?r:r+n.children.reduce(html_parse_stringify_module_a,"")+"</"+n.name+">";
1case"comment":return r+"\x3c!--"+n.comment+"--\x3e"}}let C=function(r,n){n||(n={}),n.components||(n.components=R);var o,i=[],s=[],d=-1,g=!1;if(0!==r.indexOf("<")){var _=r.indexOf("<");i.push({type:"text",content:-1===_?r:r.substring(0,_)})}return r.replace(k,function(_,v){if(g){if(_!=="</"+o.name+">")return;g=!1}var b,E="/"!==_.charAt(1),k=_.startsWith("\x3c!--"),R=v+_.length,C=r.charAt(R);if(k){var I=html_parse_stringify_module_n(_);return d<0?i.push(I):(b=s[d]).children.push(I),i}if(E&&(d++,"tag"===(o=html_parse_stringify_module_n(_)).type&&n.components[o.name]&&(o.type="component",g=!0),o.voidElement||g||!C||"<"===C||o.children.push({type:"text",content:r.slice(R,r.indexOf("<",R))}),0===d&&i.push(o),(b=s[d-1])&&b.children.push(o),s[d]=o),(!E||o.voidElement)&&(d>-1&&(o.voidElement||o.name===_.slice(2,-1))&&(o=-1==--d?i:s[d]),!g&&"<"!==C&&C)){b=-1===d?i:s[d].children;var A=r.indexOf("<",R),T=r.slice(R,-1===A?void 0:A);O.test(T)&&(T=" "),(A>-1&&d+b.length>=0||" "!==T)&&b.push({type:"text",content:T})}}),i};var I=o(7401),A=o(8209),T=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,j={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},unescape_unescapeHtmlEntity=function(r){return j[r]};function ownKeys(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function _objectSpread(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(o),!0).forEach(function(n){(0,g.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}var P={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(r){return r.replace(T,unescape_unescapeHtmlEntity)}},N=(0,_.createContext)();function setDefaults(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P=_objectSpread(_objectSpread({},P),r)}function getDefaults(){return P}var D=function(){function ReportNamespaces(){(0,I.A)(this,ReportNamespaces),this.usedNamespaces={}}return(0,A.A)(ReportNamespaces,[{key:"addUsedNamespaces",value:function(r){var n=this;r.forEach(function(r){n.usedNamespaces[r]||(n.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),ReportNamespaces}();function setI18n(r){i=r}function getI18n(){return i}var F={type:"3rdParty",init:function(r){setDefaults(r.options.react),setI18n(r)}};function composeInitialProps(r){return function(n){return new Promise(function(o){var i=getInitialProps();r.getInitialProps?r.getInitialProps(n).then(function(r){o(_objectSpread(_objectSpread({},r),i))}):o(i)})}}function getInitialProps(){var r=getI18n(),n=r.reportNamespaces?r.reportNamespaces.getUsedNamespaces():[],o={},i={};
1return r.languages.forEach(function(o){i[o]={},n.forEach(function(n){i[o][n]=r.getResourceBundle(o,n)||{}})}),o.initialI18nStore=i,o.initialLanguage=r.language,o}function warn(){if(console&&console.warn){for(var r,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];"string"==typeof o[0]&&(o[0]="react-i18next:: ".concat(o[0])),(r=console).warn.apply(r,o)}}var L={};function warnOnce(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];"string"==typeof n[0]&&L[n[0]]||("string"==typeof n[0]&&(L[n[0]]=new Date),warn.apply(void 0,n))}function loadNamespaces(r,n,o){r.loadNamespaces(n,function(){if(r.isInitialized)o();else{var initialized=function initialized(){setTimeout(function(){r.off("initialized",initialized)},0),o()};r.on("initialized",initialized)}})}function oldI18nextHasLoadedNamespace(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.languages[0],s=!!n.options&&n.options.fallbackLng,d=n.languages[n.languages.length-1];if("cimode"===i.toLowerCase())return!0;var loadNotPending=function(r,o){var i=n.services.backendConnector.state["".concat(r,"|").concat(o)];return -1===i||2===i};return(!(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1)||!n.services.backendConnector.backend||!n.isLanguageChangingTo||!!loadNotPending(n.isLanguageChangingTo,r))&&!!(n.hasResourceBundle(i,r)||!n.services.backendConnector.backend||n.options.resources&&!n.options.partialBundledLanguages||loadNotPending(i,r)&&(!s||loadNotPending(d,r)))}function hasLoadedNamespace(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.languages&&n.languages.length?void 0===n.options.ignoreJSONStructure?oldI18nextHasLoadedNamespace(r,n,o):n.hasLoadedNamespace(r,{precheck:function(n,i){if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,r))return!1}}):(warnOnce("i18n.languages were undefined or empty",n.languages),!0)}function getDisplayName(r){return r.displayName||r.name||("string"==typeof r&&r.length>0?r:"Unknown")}var U=["format"],B=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function Trans_ownKeys(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function Trans_objectSpread(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?Trans_ownKeys(Object(o),!0).forEach(function(n){(0,g.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Trans_ownKeys(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function hasChildren(r,n){if(!r)return!1;var o=r.props?r.props.children:r.children;return n?o.length>0:!!o}function getChildren(r){return r?r.props?r.props.children:r.children:[]}function hasValidReactChildren(r){return"[object Array]"===Object.prototype.toString.call(r)&&r.every(function(r){return(0,_.isValidElement)(r)})}function getAsArray(r){return Array.isArray(r)?r:[r]}function mergeProps(r,n){var o=Trans_objectSpread({},n);return o.props=Object.assign(r.props,n.props),o}function nodesToString(r,n){if(!r)return"";var o="",i=getAsArray(r),s=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach(function(r,i){if("string"==typeof r)o+="".concat(r);else if((0,_.isValidElement)(r)){var g=Object.keys(r.props).length,v=s.indexOf(r.type)>-1,b=r.props.children;if(!b&&v&&0===g)o+="<".concat(r.type,"/>");else if(b||v&&0===g)if(r.props.i18nIsDynamicList)o+="<".concat(i,"></").concat(i,">");else if(v&&1===g&&"string"==typeof b)o+="<".concat(r.type,">").concat(b,"</").concat(r.type,">");else{var E=nodesToString(b,n);o+="<".concat(i,">").concat(E,"</").concat(i,">")}else o+="<".concat(i,"></").concat(i,">")}else if(null===r)warn("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,d.A)(r)){var k=r.format,O=Object.keys(_objectWithoutProperties(r,U));if(1===O.length){var R=k?"".concat(O[0],", ").concat(k):O[0];o+="{{".concat(R,"}}")}
1else warn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",r)}else warn("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",r)}),o}function renderNodes(r,n,o,i,s,g){if(""===n)return[];var v=i.transKeepBasicHtmlNodesFor||[],b=n&&new RegExp(v.join("|")).test(n);if(!r&&!b)return[n];var E={};function getData(r){getAsArray(r).forEach(function(r){"string"!=typeof r&&(hasChildren(r)?getData(getChildren(r)):"object"!==(0,d.A)(r)||(0,_.isValidElement)(r)||Object.assign(E,r))})}getData(r);var k=C("<0>".concat(n,"</0>")),O=Trans_objectSpread(Trans_objectSpread({},E),s);function renderInner(r,n,o){var i=getChildren(r),s=mapAST(i,n.children,o);return hasValidReactChildren(i)&&0===s.length?i:s}function pushTranslatedJSX(r,n,o,i,s){r.dummy&&(r.children=n),o.push((0,_.cloneElement)(r,Trans_objectSpread(Trans_objectSpread({},r.props),{},{key:i}),s?void 0:n))}function mapAST(n,s,E){var k=getAsArray(n);return getAsArray(s).reduce(function(n,s,R){var C=s.children&&s.children[0]&&s.children[0].content&&o.services.interpolator.interpolate(s.children[0].content,O,o.language);if("tag"===s.type){var I=k[parseInt(s.name,10)];!I&&1===E.length&&E[0][s.name]&&(I=E[0][s.name]),I||(I={});var A=0!==Object.keys(s.attrs).length?mergeProps({props:s.attrs},I):I,T=(0,_.isValidElement)(A),j=T&&hasChildren(s,!0)&&!s.voidElement,P=b&&"object"===(0,d.A)(A)&&A.dummy&&!T,N="object"===(0,d.A)(r)&&null!==r&&Object.hasOwnProperty.call(r,s.name);if("string"==typeof A){var D=o.services.interpolator.interpolate(A,O,o.language);n.push(D)}else if(hasChildren(A)||j){var F=renderInner(A,s,E);pushTranslatedJSX(A,F,n,R)}else if(P){var L=mapAST(k,s.children,E);n.push((0,_.cloneElement)(A,Trans_objectSpread(Trans_objectSpread({},A.props),{},{key:R}),L))}else if(Number.isNaN(parseFloat(s.name)))if(N){var U=renderInner(A,s,E);pushTranslatedJSX(A,U,n,R,s.voidElement)}else if(i.transSupportBasicHtmlNodes&&v.indexOf(s.name)>-1)if(s.voidElement)n.push((0,_.createElement)(s.name,{key:"".concat(s.name,"-").concat(R)}));else{var B=mapAST(k,s.children,E);n.push((0,_.createElement)(s.name,{key:"".concat(s.name,"-").concat(R)},B))}else if(s.voidElement)n.push("<".concat(s.name," />"));else{var V=mapAST(k,s.children,E);n.push("<".concat(s.name,">").concat(V,"</").concat(s.name,">"))}else if("object"!==(0,d.A)(A)||T)1===s.children.length&&C?n.push((0,_.cloneElement)(A,Trans_objectSpread(Trans_objectSpread({},A.props),{},{key:R}),C)):n.push((0,_.cloneElement)(A,Trans_objectSpread(Trans_objectSpread({},A.props),{},{key:R})));else{var K=s.children[0]?C:null;K&&n.push(K)}}else if("text"===s.type){var H=i.transWrapTextNodes,G=g?i.unescape(o.services.interpolator.interpolate(s.content,O,o.language)):o.services.interpolator.interpolate(s.content,O,o.language);H?n.push((0,_.createElement)(H,{key:"".concat(s.name,"-").concat(R)},G)):n.push(G)}return n},[])}return getChildren(mapAST([{dummy:!0,children:r||[]}],k,getAsArray(r||[]))[0])}function Trans(r){var n=r.children,o=r.count,i=r.parent,s=r.i18nKey,d=r.context,g=r.tOptions,v=void 0===g?{}:g,b=r.values,E=r.defaults,k=r.components,O=r.ns,R=r.i18n,C=r.t,I=r.shouldUnescape,A=_objectWithoutProperties(r,B),T=(0,_.useContext)(N)||{},j=T.i18n,P=T.defaultNS,D=R||j||getI18n();if(!D)return warnOnce("You will need to pass in an i18next instance by using i18nextReactModule"),n;var F=C||D.t.bind(D)||function(r){return r};d&&(v.context=d);var L=Trans_objectSpread(Trans_objectSpread({},getDefaults()),D.options&&D.options.react),U=O||F.ns||P||D.options&&D.options.defaultNS;U="string"==typeof U?[U]:U||["translation"];var V=E||nodesToString(n,L)||L.transEmptyNodeValue||s,K=L.hashTransKey,H=s||(K?K(V):V),G=b?v.interpolation:{interpolation:Trans_objectSpread(Trans_objectSpread({},v.interpolation),{},{prefix:"#$?",suffix:"?$#"})},z=Trans_objectSpread(Trans_objectSpread(Trans_objectSpread(Trans_objectSpread({},v),{},{count:o},b),G),{},{defaultValue:V,ns:U}),W=renderNodes(k||n,H?F(H,z):V,D,L,z,I),J=void 0!==i?i:L.defaultTransParent;return J?(0,_.createElement)(J,A,W):W}var V=o(6701);function _iterableToArrayLimit(r,n){var o=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=o){var i,s,d,g,_=[],v=!0,b=!1;try{if(d=(o=o.call(r)).next,0===n){if(Object(o)!==o)return;v=!1}else for(;!(v=(i=d.call(o)).done)&&(_.push(i.value),_.length!==n);v=!0);}catch(r){b=!0,s=r}
1finally{try{if(!v&&null!=o.return&&(g=o.return(),Object(g)!==g))return}finally{if(b)throw s}}return _}}var K=o(9876),H=o(5222);function _slicedToArray(r,n){return(0,V.A)(r)||_iterableToArrayLimit(r,n)||(0,K.A)(r,n)||(0,H.A)()}function useTranslation_ownKeys(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function useTranslation_objectSpread(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?useTranslation_ownKeys(Object(o),!0).forEach(function(n){(0,g.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):useTranslation_ownKeys(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}var useTranslation_usePrevious=function(r,n){var o=(0,_.useRef)();return(0,_.useEffect)(function(){o.current=n?o.current:r},[r,n]),o.current};function useTranslation(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.i18n,i=(0,_.useContext)(N)||{},s=i.i18n,d=i.defaultNS,g=o||s||getI18n();if(g&&!g.reportNamespaces&&(g.reportNamespaces=new D),!g){warnOnce("You will need to pass in an i18next instance by using initReactI18next");var notReadyT=function(r){return Array.isArray(r)?r[r.length-1]:r},v=[notReadyT,{},!1];return v.t=notReadyT,v.i18n={},v.ready=!1,v}g.options.react&&void 0!==g.options.react.wait&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var b=useTranslation_objectSpread(useTranslation_objectSpread(useTranslation_objectSpread({},getDefaults()),g.options.react),n),E=b.useSuspense,k=b.keyPrefix,O=r||d||g.options&&g.options.defaultNS;O="string"==typeof O?[O]:O||["translation"],g.reportNamespaces.addUsedNamespaces&&g.reportNamespaces.addUsedNamespaces(O);var R=(g.isInitialized||g.initializedStoreOnce)&&O.every(function(r){return hasLoadedNamespace(r,g,b)});function getT(){return g.getFixedT(null,"fallback"===b.nsMode?O:O[0],k)}var C=_slicedToArray((0,_.useState)(getT),2),I=C[0],A=C[1],T=O.join(),j=useTranslation_usePrevious(T),P=(0,_.useRef)(!0);(0,_.useEffect)(function(){var r=b.bindI18n,n=b.bindI18nStore;function boundReset(){P.current&&A(getT)}return P.current=!0,R||E||loadNamespaces(g,O,function(){P.current&&A(getT)}),R&&j&&j!==T&&P.current&&A(getT),r&&g&&g.on(r,boundReset),n&&g&&g.store.on(n,boundReset),function(){P.current=!1,r&&g&&r.split(" ").forEach(function(r){return g.off(r,boundReset)}),n&&g&&n.split(" ").forEach(function(r){return g.store.off(r,boundReset)})}},[g,T]);var F=(0,_.useRef)(!0);(0,_.useEffect)(function(){P.current&&!F.current&&A(getT),F.current=!1},[g,k]);var L=[I,g,R];if(L.t=I,L.i18n=g,L.ready=R,R||!R&&!E)return L;throw new Promise(function(r){loadNamespaces(g,O,function(){r()})})}var G=["forwardedRef"];function withTranslation_ownKeys(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function withTranslation_objectSpread(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?withTranslation_ownKeys(Object(o),!0).forEach(function(n){(0,g.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):withTranslation_ownKeys(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function withTranslation(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(o){function I18nextWithTranslation(i){var s=i.forwardedRef,d=_objectWithoutProperties(i,G),g=_slicedToArray(useTranslation(r,withTranslation_objectSpread(withTranslation_objectSpread({},d),{},{keyPrefix:n.keyPrefix})),3),v=g[0],b=g[1],E=g[2],k=withTranslation_objectSpread(withTranslation_objectSpread({},d),{},{t:v,i18n:b,tReady:E});return n.withRef&&s?k.ref=s:!n.withRef&&s&&(k.forwardedRef=s),(0,_.createElement)(o,k)}I18nextWithTranslation.displayName="withI18nextTranslation(".concat(getDisplayName(o),")"),I18nextWithTranslation.WrappedComponent=o;var forwardRef=function(r,n){return(0,_.createElement)(I18nextWithTranslation,Object.assign({},r,{forwardedRef:n}
1))};return n.withRef?(0,_.forwardRef)(forwardRef):I18nextWithTranslation}}var z=["ns","children"];function Translation(r){var n=r.ns,o=r.children,i=_slicedToArray(useTranslation(n,_objectWithoutProperties(r,z)),3),s=i[0],d=i[1],g=i[2];return o(s,{i18n:d,lng:d.language},g)}function I18nextProvider(r){var n=r.i18n,o=r.defaultNS,i=r.children,s=(0,_.useMemo)(function(){return{i18n:n,defaultNS:o}},[n,o]);return(0,_.createElement)(N.Provider,{value:s},i)}function useSSR(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.i18n,s=((0,_.useContext)(N)||{}).i18n,d=i||s||getI18n();d.options&&d.options.isClone||(r&&!d.initializedStoreOnce&&(d.services.resourceStore.data=r,d.options.ns=Object.values(r).reduce(function(r,n){return Object.keys(n).forEach(function(n){0>r.indexOf(n)&&r.push(n)}),r},d.options.ns),d.initializedStoreOnce=!0,d.isInitialized=!0),n&&!d.initializedLanguageOnce&&(d.changeLanguage(n),d.initializedLanguageOnce=!0))}var W=["initialI18nStore","initialLanguage"];function withSSR_ownKeys(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function withSSR_objectSpread(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?withSSR_ownKeys(Object(o),!0).forEach(function(n){(0,g.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):withSSR_ownKeys(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function withSSR(){return function(r){function I18nextWithSSR(n){var o=n.initialI18nStore,i=n.initialLanguage,s=_objectWithoutProperties(n,W);return useSSR(o,i),(0,_.createElement)(r,withSSR_objectSpread({},s))}return I18nextWithSSR.getInitialProps=composeInitialProps(r),I18nextWithSSR.displayName="withI18nextSSR(".concat(getDisplayName(r),")"),I18nextWithSSR.WrappedComponent=r,I18nextWithSSR}}var es_date=function(){return""},es_time=function(){return""},es_number=function(){return""},es_select=function(){return""},es_plural=function(){return""},es_selectOrdinal=function(){return""}},4332(r,n,o){"use strict";o(6084);var i=o(1594),s=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var d=Symbol.for;s=d("react.element"),n.Fragment=d("react.fragment")}var g=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_=Object.prototype.hasOwnProperty,v={key:!0,ref:!0,__self:!0,__source:!0};function q(r,n,o){var i,d={},b=null,E=null;for(i in void 0!==o&&(b=""+o),void 0!==n.key&&(b=""+n.key),void 0!==n.ref&&(E=n.ref),n)_.call(n,i)&&!v.hasOwnProperty(i)&&(d[i]=n[i]);if(r&&r.defaultProps)for(i in n=r.defaultProps)void 0===d[i]&&(d[i]=n[i]);return{$$typeof:s,type:r,key:b,ref:E,props:d,_owner:g.current}}n.jsx=q,n.jsxs=q},8e3(r,n,o){"use strict";r.exports=o(4332)},6797(r){"use strict";r.exports=(r,n)=>{if("string"!=typeof r||"string"!=typeof n)throw TypeError("Expected the arguments to be of type `string`");if(""===n)return[r];let o=r.indexOf(n);return -1===o?[r]:[r.slice(0,o),r.slice(o+n.length)]}},5006(r){"use strict";r.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)},456(r){"use strict";function makeArrayFrom(r){return Array.prototype.slice.apply(r)}var n="pending",o="resolved",i="rejected";function SynchronousPromise(r){this.status=n,this._continuations=[],this._parent=null,this._paused=!1,r&&r.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function looksLikeAPromise(r){return r&&"function"==typeof r.then}function passThrough(r){return r}function createAggregateErrorFrom(r){return"undefined"!=typeof window&&"AggregateError"in window?new window.AggregateError(r):{errors:r}}if(SynchronousPromise.prototype={then:function(r,n){var o=SynchronousPromise.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:o,nextFn:r,catchFn:n}),o;if(n)try{var i=n(this._error);
1if(looksLikeAPromise(i))return this._chainPromiseData(i,o),o;return SynchronousPromise.resolve(i)._setParent(this)}catch(r){return SynchronousPromise.reject(r)._setParent(this)}return SynchronousPromise.reject(this._error)._setParent(this)}return this._continuations.push({promise:o,nextFn:r,catchFn:n}),this._runResolutions(),o},catch:function(r){if(this._isResolved())return SynchronousPromise.resolve(this._data)._setParent(this);var n=SynchronousPromise.unresolved()._setParent(this);return this._continuations.push({promise:n,catchFn:r}),this._runRejections(),n},finally:function(r){var n=!1;function runFinally(o,i){if(!n){n=!0,r||(r=passThrough);var s=r(o);return looksLikeAPromise(s)?s.then(function(){if(i)throw i;return o}):o}}return this.then(function(r){return runFinally(r)}).catch(function(r){return runFinally(null,r)})},pause:function(){return this._paused=!0,this},resume:function(){var r=this._findFirstPaused();return r&&(r._paused=!1,r._runResolutions(),r._runRejections()),this},_findAncestry:function(){return this._continuations.reduce(function(r,n){if(n.promise){var o={promise:n.promise,children:n.promise._findAncestry()};r.push(o)}return r},[])},_setParent:function(r){if(this._parent)throw Error("parent already set");return this._parent=r,this},_continueWith:function(r){var n=this._findFirstPending();n&&(n._data=r,n._setResolved())},_findFirstPending:function(){return this._findFirstAncestor(function(r){return r._isPending&&r._isPending()})},_findFirstPaused:function(){return this._findFirstAncestor(function(r){return r._paused})},_findFirstAncestor:function(r){for(var n,o=this;o;)r(o)&&(n=o),o=o._parent;return n},_failWith:function(r){var n=this._findFirstPending();n&&(n._error=r,n._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!this._paused&&this._isRejected()){var r=this._error,n=this._takeContinuations(),o=this;n.forEach(function(n){if(n.catchFn)try{var i=n.catchFn(r);o._handleUserFunctionResult(i,n.promise)}catch(r){n.promise.reject(r)}else n.promise.reject(r)})}},_runResolutions:function(){if(!(this._paused||!this._isResolved()||this._isPending())){var r=this._takeContinuations(),n=this._data,o=this;if(r.forEach(function(r){if(r.nextFn)try{var i=r.nextFn(n);o._handleUserFunctionResult(i,r.promise)}catch(n){o._handleResolutionError(n,r)}else r.promise&&r.promise.resolve(n)}),looksLikeAPromise(this._data))return this._handleWhenResolvedDataIsPromise(this._data)}},_handleResolutionError:function(r,n){if(this._setRejected(),n.catchFn)try{n.catchFn(r);return}catch(n){r=n}n.promise&&n.promise.reject(r)},_handleWhenResolvedDataIsPromise:function(r){var n=this;return r.then(function(r){n._data=r,n._runResolutions()}).catch(function(r){n._error=r,n._setRejected(),n._runRejections()})},_handleUserFunctionResult:function(r,n){looksLikeAPromise(r)?this._chainPromiseData(r,n):n.resolve(r)},_chainPromiseData:function(r,n){r.then(function(r){n.resolve(r)}).catch(function(r){n.reject(r)})},_setResolved:function(){this.status=o,this._paused||this._runResolutions()},_setRejected:function(){this.status=i,this._paused||this._runRejections()},_isPending:function(){return this.status===n},_isResolved:function(){return this.status===o},_isRejected:function(){return this.status===i}},SynchronousPromise.resolve=function(r){return new SynchronousPromise(function(n,o){looksLikeAPromise(r)?r.then(function(r){n(r)}).catch(function(r){o(r)}):n(r)})},SynchronousPromise.reject=function(r){return new SynchronousPromise(function(n,o){o(r)})},SynchronousPromise.unresolved=function(){return new SynchronousPromise(function(r,n){this.resolve=r,this.reject=n})},SynchronousPromise.all=function(){var r=makeArrayFrom(arguments);return(Array.isArray(r[0])&&(r=r[0]),r.length)?new SynchronousPromise(function(n,o){var i=[],s=0,doResolve=function(){s===r.length&&n(i)},d=!1,doReject=function(r){d||(d=!0,o(r))};r.forEach(function(r,n){SynchronousPromise.resolve(r).then(function(r){i[n]=r,s+=1,doResolve()}).catch(function(r){doReject(r)})})}):SynchronousPromise.resolve([])},SynchronousPromise.any=function(){var r=makeArrayFrom(arguments);return(Array.isArray(r[0])&&(r=r[0]),r.length)?new SynchronousPromise(function(n,o){var i=[],s=0,doReject=function(){s===r.length&&o(createAggregateErrorFrom(i))},d=!1,doResolve=function(r){d||(d=!0,n(r))};r.forEach(function(r,n){SynchronousPromise.resolve(r).then(function(r){doResolve(r)}
1).catch(function(r){i[n]=r,s+=1,doReject()})})}):SynchronousPromise.reject(createAggregateErrorFrom([]))},SynchronousPromise.allSettled=function(){var r=makeArrayFrom(arguments);return(Array.isArray(r[0])&&(r=r[0]),r.length)?new SynchronousPromise(function(n){var o=[],i=0,doSettled=function(){(i+=1)===r.length&&n(o)};r.forEach(function(r,n){SynchronousPromise.resolve(r).then(function(r){o[n]={status:"fulfilled",value:r},doSettled()}).catch(function(r){o[n]={status:"rejected",reason:r},doSettled()})})}):SynchronousPromise.resolve([])},Promise===SynchronousPromise)throw Error("Please use SynchronousPromise.installGlobally() to install globally");var s=Promise;function patchAwaiterIfRequired(r){if(void 0===r||r.__patched)return r;var n=r;return(r=function(){n.apply(this,makeArrayFrom(arguments))}).__patched=!0,r}SynchronousPromise.installGlobally=function(r){if(Promise===SynchronousPromise)return r;var n=patchAwaiterIfRequired(r);return Promise=SynchronousPromise,n},SynchronousPromise.uninstallGlobally=function(){Promise===SynchronousPromise&&(Promise=s)},r.exports={SynchronousPromise:SynchronousPromise}},4774(r,n,o){"use strict";o.d(n,{A:()=>src_RemoteComponentLoader});var i=o(1594),s=o.n(i),d=o(7642),g=o(941),_=o(6608);function initRemoteApp(r){r.segment&&window.isProduction&&(0,_.k0)({id:"segment",type:"text/javascript",charset:"utf-8",textContent:"\n                !(function () {\n                    var segmentKey = '".concat(r.segment.key,"';\n                    var analytics = (window.analytics =\n                        window.analytics || []);\n                    if (!analytics.initialize)\n                        if (analytics.invoked)\n                            window.console &&\n                                console.error &&\n                                console.error(\n                                    'Segment snippet included twice.'\n                                );\n                        else {\n                            analytics.invoked = !0;\n                            analytics.methods = [\n                                'trackSubmit',\n                                'trackClick',\n                                'trackLink',\n                                'trackForm',\n                                'pageview',\n                                'identify',\n                                'reset',\n                                'group',\n                                'track',\n                                'ready',\n                                'alias',\n                                'debug',\n                                'page',\n                                'once',\n                                'off',\n                                'on',\n                                'addSourceMiddleware',\n                                'addIntegrationMiddleware',\n                                'setAnonymousId',\n                                'addDestinationMiddleware'\n                            ];\n                            analytics.factory = function (e) {\n                                return function () {\n                                    var t =\n                                        Array.prototype.slice.call(\n                                            arguments\n                                        );\n                                    t.unshift(e);\n                                    analytics.push(t);\n                                    return analytics;\n                                };\n                            };\n                            for (\n                                var e = 0;\n                                e < analytics.methods.length;\n                                e++\n                            ) {\n                                var key = analytics.methods[e];\n                                analytics[key] =\n                                    analytics.factory(key);\n                            }\n                            analytics.load = function (key, e) {\n                                var t =\n                                    document.createElement(\n                                        'script'\n                                    );\n                                t.type = 'text/javascript';\n                                t.async = !0;\n                                t.src =\n                                    'https://hscm.honeybook.com/analytics.js/v1/' +\n                                    key +\n                                    '/analytics.min.js';\n                                var n =\n                                    document.getElementsByTagName(\n                                        'script'\n                                    )[0];\n                                n.parentNode.insertBefore(t, n);\n                                analytics._loadOptions = e;\n                            };\n                            analytics._writeKey = segmentKey;\n                            analytics.SNIPPET_VERSION = '4.15.3';\n                            analytics.load(segmentKey, {\n                                integrations: {\n                                    'Segment.io': {\
1n                                        deliveryStrategy: {\n                                            config: {\n                                                keepalive: true\n                                            }\n                                        },\n                                        apiHost: \"hsam.honeybook.com/v1\"\n                                    }\n                                }\n                            });\n                            analytics.page();\n                        }\n                })();\n            ")})}function initRemoteAppWithManifestData(r){var n,o,i,s=r.appData,d=r.buildVersion;s.datadog&&(0,_.k0)({id:"datadog",type:"text/javascript",charset:"utf-8",textContent:"\n                if (window.isProduction) {\n                    (function (h, o, u, n, d) {\n                        h = h[d] = h[d] || { q: [], onReady: function (c) { h.q.push(c) } };\n                        d = o.createElement(u); d.async = 1; d.src = n;\n                        n = o.getElementsByTagName(u)[0]; n.parentNode.insertBefore(d, n);\n                    })(window, document, 'script', 'https://www.datadoghq-browser-agent.com/us1/v5/datadog-rum.js', 'DD_RUM');\n\n                    function getSessionReplaySampleRate() {\n                        if (".concat(!(null!=(n=s.datadog.rum.logicConfig)&&n.sessionReplaySampleRate),") {\n                            return undefined;\n                        } else if (hb_isMobileApp()) {\n                            return ").concat(null==(o=s.datadog.rum.logicConfig)?void 0:o.sessionReplaySampleRate.mobileApp,";\n                        } else {\n                            return ").concat(null==(i=s.datadog.rum.logicConfig)?void 0:i.sessionReplaySampleRate.web,";\n                        }\n                    }\n                    var sessionReplaySampleRate = getSessionReplaySampleRate();\n\n                    var defaultRumConfig = {\n                        site: 'datadoghq.com',\n                        env: 'prod',\n                        trackUserInteractions: true,\n                        defaultPrivacyLevel: 'mask-user-input',\n                        allowedTracingUrls: ['https://api.honeybook.com'],\n                        beforeSend: window.ddBeforeSend\n                    }\n                    var rumConfig = Object.assign(\n                        defaultRumConfig,\n                        ").concat(JSON.stringify(s.datadog.rum.rawConfig),",\n                        {\n                            version: '").concat(d,"'\n                        },\n                        {\n                            ...(sessionReplaySampleRate !== undefined ? { sessionReplaySampleRate } : {}),\n                        }\n                    );\n                    window.DD_RUM.onReady(function() {\n                        window.DD_RUM.init(rumConfig);\n                    });\n\n                    (function (h, o, u, n, d) {\n                        h = h[d] = h[d] || { q: [], onReady: function (c) { h.q.push(c) } };\n                        d = o.createElement(u); d.async = 1; d.src = n;\n                        n = o.getElementsByTagName(u)[0]; n.parentNode.insertBefore(d, n);\n                    })(window, document, 'script', 'https://www.datadoghq-browser-agent.com/us1/v5/datadog-logs.js', 'DD_LOGS');\n\n                    var defaultLogsConfig = {\n                        site: 'datadoghq.com',\n                        env: 'prod',\n                        silentMultipleInit: true,\n                        useCrossSiteSessionCookie: true\n                    }\n                    var logsConfig = Object.assign(\n                        defaultLogsConfig,\n                        ").concat(JSON.stringify(s.datadog.logs),"\n                    );\n                    DD_LOGS.onReady(function() {\n                        DD_LOGS.init(logsConfig);\n                    });\n                } else {\n                    window.DD_RUM = new Proxy({},{get:()=>()=>{}})\n                }\n            ")})}let src_RemoteComponentLoader=function(r){var n=r.appData,o=r.fallback;return s().createElement(d.b,{appData:n,fallback:o,loadingIndicator:s().createElement(g.A,null),onInit:function(){return initRemoteApp(n)},onLoaded:function(r){return initRemoteAppWithManifestData({appData:n,buildVersion:r.buildVersion})}})}},941(r,n,o){"use strict";o.d(n,{A:()=>RouterLoader});
1var i=o(1594),s=o.n(i);function RouterLoader(){return s().createElement("div",{style:d},s().createElement("style",null,_),s().createElement("div",{style:g}))}var d={position:"fixed",inset:0,display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e4},g={boxSizing:"border-box",height:40,width:40,padding:0,border:"4px solid #d8dade",borderRight:"4px solid #232529",borderBottom:"4px solid #232529",borderLeft:"4px solid #232529",borderRadius:"100%",animation:"router-loader-spin 0.5s infinite linear"},_="\n@keyframes router-loader-spin {\n    from { transform: rotate(0deg); }\n    to { transform: rotate(360deg); }\n}"},3072(r,n,o){"use strict";var i=o(1594),s=o.n(i);let d=ReactDOM;var g=o.n(d);o(8532),o(8235);var _=o(663),v=o(5737),b=o.n(v),E=o(8811),k=o(6608);let O="https://app.honeybook.com/__ctry",R=127462,C=null,I="en-US",A={EN_GB:"en-GB",EN_US:"en-US",EN_AU:"en-AU",EN_CA:"en-CA"},T=Object.values(A);A.EN_US,A.EN_CA,A.EN_GB,A.EN_AU;let j=new Set(["CAD","AUD","NZD","SGD","MXN","CLP"]);function buildCurrencyFormatOptions(r,n,o,i,s){return{style:"currency",currency:r,currencyDisplay:n,maximumFractionDigits:i,minimumFractionDigits:s??2*!Number.isInteger(o)}}let P=new Set(["integer","decimal","fraction","group"]);function abbreviateAmount(r){let n=Math.abs(r);return n>=1e9?{value:r/1e9,suffix:"B"}:n>=1e6?{value:r/1e6,suffix:"M"}:n>=1e3?{value:r/1e3,suffix:"K"}:{value:r,suffix:""}}function applyDollarOverride(r,n){return r.map(r=>"currency"===r.type&&j.has(n)?"$":r.value)}function formatCurrency(r,n){let o=n?.currency??"USD",i=n?.locale??"en-US",s=n?.maxFractionDigits??2,d=n?.minFractionDigits;if(n?.short){let{value:d,suffix:g}=abbreviateAmount(r),_=n.maxFractionDigits??(g?1:s),v=new Intl.NumberFormat(i,buildCurrencyFormatOptions(o,"narrowSymbol",d,_,0)).formatToParts(d),b=-1;for(let r=v.length-1;r>=0;r--)if(P.has(v[r].type)){b=r;break}return applyDollarOverride(v,o).map((r,n)=>n===b?r+g:r).join("")}return applyDollarOverride(new Intl.NumberFormat(i,buildCurrencyFormatOptions(o,"narrowSymbol",r,s,d)).formatToParts(r),o).join("")}function formatCurrencyCode(r,n){let o=n?.currency??"USD",i=n?.locale??"en-US",s=n?.maxFractionDigits??2,d=n?.minFractionDigits;return new Intl.NumberFormat(i,buildCurrencyFormatOptions(o,"code",r,s,d)).format(r)}function getDefaultCurrency(){return b().options.defaultCurrency??"USD"}function truncateString(r,n={}){let{length:o=30,omission:i="..."}=n;if(r.length<=o)return r;let s=o-i.length;return s<0?i:r.slice(0,s)+i}function registerFormatters(){b().services.formatter.add("truncate",(r,n,o)=>truncateString(r,o)),b().services.formatter.add("currency",(r,n,o)=>formatCurrency(r,{currency:o?.currency??getDefaultCurrency(),locale:n??"en-US"})),b().services.formatter.add("currencyCode",(r,n,o)=>formatCurrencyCode(r,{currency:o?.currency??getDefaultCurrency(),locale:n??"en-US"}))}let N=new Date(2013,4,1),D=null,F=null;function formatDateParts(r,n){return new Intl.DateTimeFormat(r,F[n]).formatToParts(N).map(r=>D[n][r.type]??r.value).join("")}let L=/^\d{4}-\d{2}-\d{2}$/;function isISODateOnly(r){return L.test(r)}let U=null;function formatNationalPhoneNumber(r,n){try{let o=parsePhoneNumber(r,n);return o.isValid()?o.formatNational():null}catch{return null}}function parseLegacyPhoneNumber(r,n){let o=r.trim(),i=o.replace(/\D/g,"");if(!i)return null;if(o.startsWith("+"))return toParsedPhone(parsePhoneNumberFromString(o));if(i.startsWith("00")){let r=toParsedPhone(parsePhoneNumberFromString("+"+i.slice(2)));if(r)return r}if(10===i.length){let r=toParsedPhone(parsePhoneNumberFromString(i,n??"US"));if(r)return r}let s=toParsedPhone(parsePhoneNumberFromString("+"+i));if(s)return s;if(n){let r=toParsedPhone(parsePhoneNumberFromString(i,n));if(r)return r}return null}function toParsedPhone(r){return r&&r.country&&r.isValid()?{international:r.number,countryCode:r.country,nationalNumber:r.nationalNumber,dialCode:`+${U[r.country]}`}:null}let B=4,V="*";b().use(E.initReactI18next).init({lng:I,fallbackLng:{default:[I]},ns:[],resources:(0,_.A)({},I,{}),debug:!(0,k.KV)()&&!(0,k.zS)(),interpolation:{escapeValue:!1}}),registerFormatters();var K=o(301);function _arrayWithoutHoles(r){if(Array.isArray(r))return(0,K.A)(r)}var H=o(8753),G=o(9876);function _nonIterableSpread(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(r){return _arrayWithoutHoles(r)||(0,H.A)(r)||(0,G.A)(r)||_nonIterableSpread()}var z=o(9665),W=o(4910),J=o(7642),Y=o(4774),X=o(941),Q=o(1655);
1function isMXStaging(){try{return window.location.hostname.includes("hb-mx-staging-")||"app.hbqa.dev"===window.location.hostname||window.location.hostname.includes("hb-app-staging-")}catch(r){return!1}}function isMXProduction(){try{return"app.honeybook.com"===window.location.hostname}catch(r){return!1}}function isMXDevelopment(){try{return window.location.host===k.Jj||window.location.host===k.zn}catch(r){return!1}}function isMXEnvironment(){return isMXDevelopment()||isMXStaging()||isMXProduction()}function getCurrentAppScope(){return isMXEnvironment()?"mx":"cx"}let Z={defaultOptions:{queries:{staleTime:3e5,cacheTime:6e5,refetchOnWindowFocus:!1,retry:2}}},ee=function(r=Z){return new W.QueryClient(r)}();var et=s().lazy(function(){return Promise.all([o.e("10"),o.e("808")]).then(o.bind(o,3899))}),er=Q,en=getCurrentAppScope(),eo=er.filter(function(r){return!r.scopes.some(function(r){return r.includes(".hosted")})&&r.scopes.includes(en)}),ei=er.filter(function(r){return!!r.path&&r.scopes.some(function(r){return r.startsWith("cx")&&r.includes(".hosted")})}),ea=ei.map(function(r){return r.path}),es=eo.find(function(r){return r.defaultFallbackRoute}),el=[].concat(_toConsumableArray(eo.filter(function(r){return!r.defaultFallbackRoute})),[es]);function App(){return s().createElement(J.K,null,s().createElement(z.BrowserRouter,null,s().createElement(W.QueryClientProvider,{client:ee},s().createElement(z.Switch,null,"cx"===en&&ei.length>0&&s().createElement(z.Route,{path:ea},s().createElement(i.Suspense,{fallback:s().createElement(X.A,null)},s().createElement(et,null))),el.map(function(r){return s().createElement(z.Route,{key:r.name,path:r.path,render:function(){return s().createElement(Y.A,{appData:r})}})}),s().createElement(z.Redirect,{to:es.path})))))}window._isRouterAppLoaded=!0,g().render(s().createElement(App,null),document.getElementById("root"))}
1,6918(r){function toposort(r,n){var o=r.length,i=Array(o),s={},d=o,g=makeOutgoingEdges(n),_=makeNodesHash(r);for(n.forEach(function(r){if(!_.has(r[0])||!_.has(r[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)s[d]||visit(r[d],d,new Set);return i;function visit(r,n,d){if(d.has(r)){var v;try{v=", node was:"+JSON.stringify(r)}catch(r){v=""}throw Error("Cyclic dependency"+v)}if(!_.has(r))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(r));if(!s[n]){s[n]=!0;var b=g.get(r)||new Set;if(b=Array.from(b),n=b.length){d.add(r);do{var E=b[--n];visit(E,_.get(E),d)}while(n);d.delete(r)}i[--o]=r}}}function uniqueNodes(r){for(var n=new Set,o=0,i=r.length;o<i;o++){var s=r[o];n.add(s[0]),n.add(s[1])}return Array.from(n)}function makeOutgoingEdges(r){for(var n=new Map,o=0,i=r.length;o<i;o++){var s=r[o];n.has(s[0])||n.set(s[0],new Set),n.has(s[1])||n.set(s[1],new Set),n.get(s[0]).add(s[1])}return n}function makeNodesHash(r){for(var n=new Map,o=0,i=r.length;o<i;o++)n.set(r[o],o);return n}r.exports=function(r){return toposort(uniqueNodes(r),r)},r.exports.array=toposort},590(r,n,o){"use strict";o.d(n,{A:()=>esm_browser_v4});var i,s=new Uint8Array(16);function rng(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}let d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,esm_browser_validate=function(r){return"string"==typeof r&&d.test(r)};for(var g=[],_=0;_<256;++_)g.push((_+256).toString(16).substr(1));let esm_browser_stringify=function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(g[r[n+0]]+g[r[n+1]]+g[r[n+2]]+g[r[n+3]]+"-"+g[r[n+4]]+g[r[n+5]]+"-"+g[r[n+6]]+g[r[n+7]]+"-"+g[r[n+8]]+g[r[n+9]]+"-"+g[r[n+10]]+g[r[n+11]]+g[r[n+12]]+g[r[n+13]]+g[r[n+14]]+g[r[n+15]]).toLowerCase();if(!esm_browser_validate(o))throw TypeError("Stringified UUID is invalid");return o},esm_browser_v4=function(r,n,o){var i=(r=r||{}).random||(r.rng||rng)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){o=o||0;for(var s=0;s<16;++s)n[o+s]=i[s];return n}return esm_browser_stringify(i)}},3752(r){r.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5870(r,n,o){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r}).apply(null,arguments)}o.d(n,{Yj:()=>StringSchema});var i=Object.prototype.hasOwnProperty;let _baseHas=function(r,n){return null!=r&&i.call(r,n)},s=Array.isArray,d="object"==typeof global&&global&&global.Object===Object&&global;var g="object"==typeof self&&self&&self.Object===Object&&self;let _=d||g||Function("return this")(),v=_.Symbol;var b=Object.prototype,E=b.hasOwnProperty,k=b.toString,O=v?v.toStringTag:void 0;let _getRawTag=function(r){var n=E.call(r,O),o=r[O];try{r[O]=void 0;var i=!0}catch(r){}var s=k.call(r);return i&&(n?r[O]=o:delete r[O]),s};var R=Object.prototype.toString;let _objectToString=function(r){return R.call(r)};var C="[object Null]",I="[object Undefined]",A=v?v.toStringTag:void 0;let _baseGetTag=function(r){return null==r?void 0===r?I:C:A&&A in Object(r)?_getRawTag(r):_objectToString(r)},lodash_es_isObjectLike=function(r){return null!=r&&"object"==typeof r};var T="[object Symbol]";let lodash_es_isSymbol=function(r){return"symbol"==typeof r||lodash_es_isObjectLike(r)&&_baseGetTag(r)==T};var j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;let _isKey=function(r,n){if(s(r))return!1;var o=typeof r;return!!("number"==o||"symbol"==o||"boolean"==o||null==r||lodash_es_isSymbol(r))||P.test(r)||!j.test(r)||null!=n&&r in Object(n)},lodash_es_isObject=function(r){var n=typeof r;return null!=r&&("object"==n||"function"==n)};var N="[object AsyncFunction]",D="[object Function]",F="[object GeneratorFunction]",L="[object Proxy]";let lodash_es_isFunction=function(r){if(!lodash_es_isObject(r))return!1;var n=_baseGetTag(r);return n==D||n==F||n==N||n==L},U=_["__core-js_shared__"];
1var B=function(){var r=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();let _isMasked=function(r){return!!B&&B in r};var V=Function.prototype.toString;let _toSource=function(r){if(null!=r){try{return V.call(r)}catch(r){}try{return r+""}catch(r){}}return""};var K=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,G=Object.prototype,z=Function.prototype.toString,W=G.hasOwnProperty,J=RegExp("^"+z.call(W).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let _baseIsNative=function(r){return!(!lodash_es_isObject(r)||_isMasked(r))&&(lodash_es_isFunction(r)?J:H).test(_toSource(r))},_getValue=function(r,n){return null==r?void 0:r[n]},_getNative=function(r,n){var o=_getValue(r,n);return _baseIsNative(o)?o:void 0},Y=_getNative(Object,"create"),_hashClear=function(){this.__data__=Y?Y(null):{},this.size=0},_hashDelete=function(r){var n=this.has(r)&&delete this.__data__[r];return this.size-=!!n,n};var X="__lodash_hash_undefined__",Q=Object.prototype.hasOwnProperty;let _hashGet=function(r){var n=this.__data__;if(Y){var o=n[r];return o===X?void 0:o}return Q.call(n,r)?n[r]:void 0};var Z=Object.prototype.hasOwnProperty;let _hashHas=function(r){var n=this.__data__;return Y?void 0!==n[r]:Z.call(n,r)};var ee="__lodash_hash_undefined__";let _hashSet=function(r,n){var o=this.__data__;return this.size+=+!this.has(r),o[r]=Y&&void 0===n?ee:n,this};function Hash(r){var n=-1,o=null==r?0:r.length;for(this.clear();++n<o;){var i=r[n];this.set(i[0],i[1])}}Hash.prototype.clear=_hashClear,Hash.prototype.delete=_hashDelete,Hash.prototype.get=_hashGet,Hash.prototype.has=_hashHas,Hash.prototype.set=_hashSet;let et=Hash,_listCacheClear=function(){this.__data__=[],this.size=0},lodash_es_eq=function(r,n){return r===n||r!=r&&n!=n},_assocIndexOf=function(r,n){for(var o=r.length;o--;)if(lodash_es_eq(r[o][0],n))return o;return -1};var er=Array.prototype.splice;let _listCacheDelete=function(r){var n=this.__data__,o=_assocIndexOf(n,r);return!(o<0)&&(o==n.length-1?n.pop():er.call(n,o,1),--this.size,!0)},_listCacheGet=function(r){var n=this.__data__,o=_assocIndexOf(n,r);return o<0?void 0:n[o][1]},_listCacheHas=function(r){return _assocIndexOf(this.__data__,r)>-1},_listCacheSet=function(r,n){var o=this.__data__,i=_assocIndexOf(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this};function ListCache(r){var n=-1,o=null==r?0:r.length;for(this.clear();++n<o;){var i=r[n];this.set(i[0],i[1])}}ListCache.prototype.clear=_listCacheClear,ListCache.prototype.delete=_listCacheDelete,ListCache.prototype.get=_listCacheGet,ListCache.prototype.has=_listCacheHas,ListCache.prototype.set=_listCacheSet;let en=ListCache,eo=_getNative(_,"Map"),_mapCacheClear=function(){this.size=0,this.__data__={hash:new et,map:new(eo||en),string:new et}},_isKeyable=function(r){var n=typeof r;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r},_getMapData=function(r,n){var o=r.__data__;return _isKeyable(n)?o["string"==typeof n?"string":"hash"]:o.map},_mapCacheDelete=function(r){var n=_getMapData(this,r).delete(r);return this.size-=!!n,n},_mapCacheGet=function(r){return _getMapData(this,r).get(r)},_mapCacheHas=function(r){return _getMapData(this,r).has(r)},_mapCacheSet=function(r,n){var o=_getMapData(this,r),i=o.size;return o.set(r,n),this.size+=+(o.size!=i),this};function MapCache(r){var n=-1,o=null==r?0:r.length;for(this.clear();++n<o;){var i=r[n];this.set(i[0],i[1])}}MapCache.prototype.clear=_mapCacheClear,MapCache.prototype.delete=_mapCacheDelete,MapCache.prototype.get=_mapCacheGet,MapCache.prototype.has=_mapCacheHas,MapCache.prototype.set=_mapCacheSet;let ei=MapCache;var ea="Expected a function";function memoize(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw TypeError(ea);var memoized=function(){var o=arguments,i=n?n.apply(this,o):o[0],s=memoized.cache;if(s.has(i))return s.get(i);var d=r.apply(this,o);return memoized.cache=s.set(i,d)||s,d};return memoized.cache=new(memoize.Cache||ei),memoized}memoize.Cache=ei;let es=memoize;var el=500,eu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ec=/\\(\\)?/g;let ed=function(r){var n=es(r,function(r){return o.size===el&&o.clear(),r}),o=n.cache;return n}(function(r){var n=[];return 46===r.charCodeAt(0)&&n.push(""),r.replace(eu,function(r,o,i,s){n.push(i?s.replace(ec,"$1"):o||r)}),n}),_arrayMap=function(r,n){for(var o=-1,i=null==r?0:r.length,s=Array(i);++o<i;)s[o]=n(r[o],o,r);return s};var ef=1/0,eh=v?v.prototype:void 0,ep=eh?eh.toString:void 0;function baseToString(r){if("string"==typeof r)return r;if(s(r))return _arrayMap(r,baseToString)+"";if(lodash_es_isSymbol(r))return ep?ep.call(r):"";var n=r+"";return"0"==n&&1/r==-ef?"-0":n}let eg=baseToString,lodash_es_toString=function(r){return null==r?"":eg(r)},_castPath=function(r,n){return s(r)?r:_isKey(r,n)?[r]:ed(lodash_es_toString(r))};var em="[object Arguments]";let _baseIsArguments=function(r){return lodash_es_isObjectLike(r)&&_baseGetTag(r)==em};var e_=Object.prototype,ey=e_.hasOwnProperty,ev=e_.propertyIsEnumerable;let eb=_baseIsArguments(function(){return arguments}())?_baseIsArguments:function(r){return lodash_es_isObjectLike(r)&&ey.call(r,"callee")&&!ev.call(r,"callee")};var eS=0x1fffffffffffff,eE=/^(?:0|[1-9]\d*)$/;let _isIndex=function(r,n){var o=typeof r;return!!(n=null==n?eS:n)&&("number"==o||"symbol"!=o&&eE.test(r))&&r>-1&&r%1==0&&r<n};var ew=0x1fffffffffffff;let lodash_es_isLength=function(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=ew};var ek=1/0;let _toKey=function(r){if("string"==typeof r||lodash_es_isSymbol(r))return r;var n=r+"";return"0"==n&&1/r==-ek?"-0":n},_hasPath=function(r,n,o){n=_castPath(n,r);for(var i=-1,d=n.length,g=!1;++i<d;){var _=_toKey(n[i]);if(!(g=null!=r&&o(r,_)))break;r=r[_]}return g||++i!=d?g:!!(d=null==r?0:r.length)&&lodash_es_isLength(d)&&_isIndex(_,d)&&(s(r)||eb(r))},lodash_es_has=function(r,n){return null!=r&&_hasPath(r,n,_baseHas)},_stackClear=function(){this.__data__=new en,this.size=0},_stackDelete=function(r){var n=this.__data__,o=n.delete(r);return this.size=n.size,o},_stackGet=function(r){return this.__data__.get(r)},_stackHas=function(r){return this.__data__.has(r)};var eO=200;let _stackSet=function(r,n){var o=this.__data__;if(o instanceof en){var i=o.__data__;if(!eo||i.length<eO-1)return i.push([r,n]),this.size=++o.size,this;o=this.__data__=new ei(i)}return o.set(r,n),this.size=o.size,this};function Stack(r){var n=this.__data__=new en(r);this.size=n.size}Stack.prototype.clear=_stackClear,Stack.prototype.delete=_stackDelete,Stack.prototype.get=_stackGet,Stack.prototype.has=_stackHas,Stack.prototype.set=_stackSet;let eR=Stack,_arrayEach=function(r,n){for(var o=-1,i=null==r?0:r.length;++o<i&&!1!==n(r[o],o,r););return r},ex=function(){try{var r=_getNative(Object,"defineProperty");return r({},"",{}),r}catch(r){}}(),_baseAssignValue=function(r,n,o){"__proto__"==n&&ex?ex(r,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):r[n]=o};var eC=Object.prototype.hasOwnProperty;let _assignValue=function(r,n,o){var i=r[n];eC.call(r,n)&&lodash_es_eq(i,o)&&(void 0!==o||n in r)||_baseAssignValue(r,n,o)},_copyObject=function(r,n,o,i){var s=!o;o||(o={});for(var d=-1,g=n.length;++d<g;){var _=n[d],v=i?i(o[_],r[_],_,o,r):void 0;void 0===v&&(v=r[_]),s?_baseAssignValue(o,_,v):_assignValue(o,_,v)}return o},_baseTimes=function(r,n){for(var o=-1,i=Array(r);++o<r;)i[o]=n(o);return i},lodash_es_stubFalse=function(){return!1};var eI="object"==typeof exports&&exports&&!exports.nodeType&&exports,eA=eI&&"object"==typeof module&&module&&!module.nodeType&&module,eT=eA&&eA.exports===eI?_.Buffer:void 0;let ej=(eT?eT.isBuffer:void 0)||lodash_es_stubFalse;var eP="[object Arguments]",eN="[object Array]",eD="[object Boolean]",eF="[object Date]",eM="[object Error]",eL="[object Function]",e$="[object Map]",eU="[object Number]",eB="[object Object]",e
1V="[object RegExp]",eK="[object Set]",eH="[object String]",eG="[object WeakMap]",ez="[object ArrayBuffer]",eW="[object DataView]",eJ="[object Float64Array]",eY="[object Int8Array]",eX="[object Int16Array]",eQ="[object Int32Array]",eZ="[object Uint8Array]",e0="[object Uint8ClampedArray]",e1="[object Uint16Array]",e2="[object Uint32Array]",e5={};e5["[object Float32Array]"]=e5[eJ]=e5[eY]=e5[eX]=e5[eQ]=e5[eZ]=e5[e0]=e5[e1]=e5[e2]=!0,e5[eP]=e5[eN]=e5[ez]=e5[eD]=e5[eW]=e5[eF]=e5[eM]=e5[eL]=e5[e$]=e5[eU]=e5[eB]=e5[eV]=e5[eK]=e5[eH]=e5[eG]=!1;let _baseIsTypedArray=function(r){return lodash_es_isObjectLike(r)&&lodash_es_isLength(r.length)&&!!e5[_baseGetTag(r)]},_baseUnary=function(r){return function(n){return r(n)}};var e3="object"==typeof exports&&exports&&!exports.nodeType&&exports,e8=e3&&"object"==typeof module&&module&&!module.nodeType&&module,e6=e8&&e8.exports===e3&&d.process;let e7=function(){try{var r=e8&&e8.require&&e8.require("util").types;if(r)return r;return e6&&e6.binding&&e6.binding("util")}catch(r){}}();var e4=e7&&e7.isTypedArray;let e9=e4?_baseUnary(e4):_baseIsTypedArray;var te=Object.prototype.hasOwnProperty;let _arrayLikeKeys=function(r,n){var o=s(r),i=!o&&eb(r),d=!o&&!i&&ej(r),g=!o&&!i&&!d&&e9(r),_=o||i||d||g,v=_?_baseTimes(r.length,String):[],b=v.length;for(var E in r)(n||te.call(r,E))&&!(_&&("length"==E||d&&("offset"==E||"parent"==E)||g&&("buffer"==E||"byteLength"==E||"byteOffset"==E)||_isIndex(E,b)))&&v.push(E);return v};var tt=Object.prototype;let _isPrototype=function(r){var n=r&&r.constructor;return r===("function"==typeof n&&n.prototype||tt)},_overArg=function(r,n){return function(o){return r(n(o))}},tr=_overArg(Object.keys,Object);var tn=Object.prototype.hasOwnProperty;let _baseKeys=function(r){if(!_isPrototype(r))return tr(r);var n=[];for(var o in Object(r))tn.call(r,o)&&"constructor"!=o&&n.push(o);return n},lodash_es_isArrayLike=function(r){return null!=r&&lodash_es_isLength(r.length)&&!lodash_es_isFunction(r)},lodash_es_keys=function(r){return lodash_es_isArrayLike(r)?_arrayLikeKeys(r):_baseKeys(r)},_baseAssign=function(r,n){return r&&_copyObject(n,lodash_es_keys(n),r)},_nativeKeysIn=function(r){var n=[];if(null!=r)for(var o in Object(r))n.push(o);return n};var to=Object.prototype.hasOwnProperty;let _baseKeysIn=function(r){if(!lodash_es_isObject(r))return _nativeKeysIn(r);var n=_isPrototype(r),o=[];for(var i in r)"constructor"==i&&(n||!to.call(r,i))||o.push(i);return o},lodash_es_keysIn=function(r){return lodash_es_isArrayLike(r)?_arrayLikeKeys(r,!0):_baseKeysIn(r)},_baseAssignIn=function(r,n){return r&&_copyObject(n,lodash_es_keysIn(n),r)};var ti="object"==typeof exports&&exports&&!exports.nodeType&&exports,ta=ti&&"object"==typeof module&&module&&!module.nodeType&&module,ts=ta&&ta.exports===ti?_.Buffer:void 0,tl=ts?ts.allocUnsafe:void 0;let _cloneBuffer=function(r,n){if(n)return r.slice();var o=r.length,i=tl?tl(o):new r.constructor(o);return r.copy(i),i},_copyArray=function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n},_arrayFilter=function(r,n){for(var o=-1,i=null==r?0:r.length,s=0,d=[];++o<i;){var g=r[o];n(g,o,r)&&(d[s++]=g)}return d},lodash_es_stubArray=function(){return[]};var tu=Object.prototype.propertyIsEnumerable,tc=Object.getOwnPropertySymbols;let td=tc?function(r){return null==r?[]:_arrayFilter(tc(r=Object(r)),function(n){return tu.call(r,n)})}:lodash_es_stubArray,_copySymbols=function(r,n){return _copyObject(r,td(r),n)},_arrayPush=function(r,n){for(var o=-1,i=n.length,s=r.length;++o<i;)r[s+o]=n[o];return r},tf=_overArg(Object.getPrototypeOf,Object),th=Object.getOwnPropertySymbols?function(r){for(var n=[];r;)_arrayPush(n,td(r)),r=tf(r);return n}:lodash_es_stubArray,_copySymbolsIn=function(r,n){return _copyObject(r,th(r),n)},_baseGetAllKeys=function(r,n,o){var i=n(r);return s(r)?i:_arrayPush(i,o(r))},_getAllKeys=function(r){return _baseGetAllKeys(r,lodash_es_keys,td)},_getAllKeysIn=function(r){return _baseGetAllKeys(r,lodash_es_keysIn,th)},tp=_getNative(_,"DataView"),tg=_getNative(_,"Promise"),tm=_getNative(_,"Set"),t_=_getNative(_,"WeakMap");var ty="[object Map]",tv="[object Object]",tb="[object Promise]",tS="[object Set]",tE="[object WeakMap]",tw="[object DataView]",tk=_toSource(tp),tO=_toSource(eo),tR=_toSource(tg),tx=_toSource(tm),tC=_toSource(t_),tI=_baseGetTag;(tp&&tI(new tp(new ArrayBuffer(1)))!=tw||eo&&tI(new eo)!=ty||tg&&tI(tg.resolve())!=tb||tm&&tI(new tm)!=tS||t_&&tI(new t_)!=tE)&&(tI=function(r){var n=_baseGetTag(r),o=n==tv?r.constructor:void 0,i=o?_toSource(o):"";if(i)switch(i){case tk:return tw;case tO:return ty;case tR:return tb;case tx:return tS;case tC:return tE}return n});let tA=tI;var tT=Object.prototype.hasOwnProperty;let _initCloneArray=function(r){var n=r.length,o=new r.constructor(n);return n&&"string"==typeof r[0]&&tT.call(r,"index")&&(o.index=r.index,o.input=r.input),o},tj=_.Uint8Array,_cloneArrayBuffer=function(r){var n=new r.constructor(r.byteLength);return new tj(n).set(new tj(r)),n},_cloneDataView=function(r,n){var o=n?_cloneArrayBuffer(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.byteLength)};var tP=/\w*$/;let _cloneRegExp=function(r){var n=new r.constructor(r.source,tP.exec(r));return n.lastIndex=r.lastIndex,n};
1var tN=v?v.prototype:void 0,tD=tN?tN.valueOf:void 0;let _cloneSymbol=function(r){return tD?Object(tD.call(r)):{}},_cloneTypedArray=function(r,n){var o=n?_cloneArrayBuffer(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.length)};var tF="[object Boolean]",tM="[object Date]",tL="[object Map]",t$="[object Number]",tU="[object RegExp]",tB="[object Set]",tV="[object String]",tq="[object Symbol]",tK="[object ArrayBuffer]",tH="[object DataView]",tG="[object Float32Array]",tz="[object Float64Array]",tW="[object Int8Array]",tJ="[object Int16Array]",tY="[object Int32Array]",tX="[object Uint8Array]",tQ="[object Uint8ClampedArray]",tZ="[object Uint16Array]",t0="[object Uint32Array]";let _initCloneByTag=function(r,n,o){var i=r.constructor;switch(n){case tK:return _cloneArrayBuffer(r);case tF:case tM:return new i(+r);case tH:return _cloneDataView(r,o);case tG:case tz:case tW:case tJ:case tY:case tX:case tQ:case tZ:case t0:return _cloneTypedArray(r,o);case tL:return new i;case t$:case tV:return new i(r);case tU:return _cloneRegExp(r);case tB:return new i;case tq:return _cloneSymbol(r)}};var t1=Object.create;let t2=function(){function object(){}return function(r){if(!lodash_es_isObject(r))return{};if(t1)return t1(r);object.prototype=r;var n=new object;return object.prototype=void 0,n}}(),_initCloneObject=function(r){return"function"!=typeof r.constructor||_isPrototype(r)?{}:t2(tf(r))};var t5="[object Map]";let _baseIsMap=function(r){return lodash_es_isObjectLike(r)&&tA(r)==t5};var t3=e7&&e7.isMap;let t8=t3?_baseUnary(t3):_baseIsMap;var t6="[object Set]";let _baseIsSet=function(r){return lodash_es_isObjectLike(r)&&tA(r)==t6};var t7=e7&&e7.isSet;let t4=t7?_baseUnary(t7):_baseIsSet;var t9=1,re=2,rt=4,rr="[object Arguments]",rn="[object Array]",ro="[object Boolean]",ri="[object Date]",ra="[object Error]",rs="[object Function]",rl="[object GeneratorFunction]",ru="[object Map]",rc="[object Number]",rd="[object Object]",rf="[object RegExp]",rh="[object Set]",rp="[object String]",rg="[object Symbol]",rm="[object WeakMap]",r_="[object ArrayBuffer]",ry="[object DataView]",rv="[object Float32Array]",rb="[object Float64Array]",rS="[object Int8Array]",rE="[object Int16Array]",rw="[object Int32Array]",rk="[object Uint8Array]",rO="[object Uint8ClampedArray]",rR="[object Uint16Array]",rx="[object Uint32Array]",rC={};function baseClone(r,n,o,i,d,g){var _,v=n&t9,b=n&re,E=n&rt;if(o&&(_=d?o(r,i,d,g):o(r)),void 0!==_)return _;if(!lodash_es_isObject(r))return r;var k=s(r);if(k){if(_=_initCloneArray(r),!v)return _copyArray(r,_)}else{var O=tA(r),R=O==rs||O==rl;if(ej(r))return _cloneBuffer(r,v);if(O==rd||O==rr||R&&!d){if(_=b||R?{}:_initCloneObject(r),!v)return b?_copySymbolsIn(r,_baseAssignIn(_,r)):_copySymbols(r,_baseAssign(_,r))}else{if(!rC[O])return d?r:{};_=_initCloneByTag(r,O,v)}}g||(g=new eR);var C=g.get(r);if(C)return C;g.set(r,_),t4(r)?r.forEach(function(i){_.add(baseClone(i,n,o,i,r,g))}):t8(r)&&r.forEach(function(i,s){_.set(s,baseClone(i,n,o,s,r,g))});var I=E?b?_getAllKeysIn:_getAllKeys:b?lodash_es_keysIn:lodash_es_keys,A=k?void 0:I(r);return _arrayEach(A||r,function(i,s){A&&(i=r[s=i]),_assignValue(_,s,baseClone(i,n,o,s,r,g))}),_}rC[rr]=rC[rn]=rC[r_]=rC[ry]=rC[ro]=rC[ri]=rC[rv]=rC[rb]=rC[rS]=rC[rE]=rC[rw]=rC[ru]=rC[rc]=rC[rd]=rC[rf]=rC[rh]=rC[rp]=rC[rg]=rC[rk]=rC[rO]=rC[rR]=rC[rx]=!0,rC[ra]=rC[rs]=rC[rm]=!1;let rI=baseClone;var rA=1,rT=4;let lodash_es_cloneDeepWith=function(r,n){return rI(r,rA|rT,n="function"==typeof n?n:void 0)};var rj="[object String]";let lodash_es_isString=function(r){return"string"==typeof r||!s(r)&&lodash_es_isObjectLike(r)&&_baseGetTag(r)==rj},_iteratorToArray=function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o},_mapToArray=function(r){var n=-1,o=Array(r.size);return r.forEach(function(r,i){o[++n]=[i,r]}),o},_setToArray=function(r){var n=-1,o=Array(r.size);return r.forEach(function(r){o[++n]=r}),o},_asciiToArray=function(r){return r.split("")};var rP=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let _hasUnicode=function(r){return rP.test(r)};var rN="\\ud800-\\udfff",rD="["+rN+"]",rF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rM="\\ud83c[\\udffb-\\udfff]",rL="[^"+rN+"]",r$="(?:\\ud83c[\\udde6-\\uddff]){2}",rU="[\\ud800-\\udbff][\\udc00-\\udfff]",rB="(?:"+rF+"|"+rM+")?",rV="[\\ufe0e\\ufe0f]?",rq="(?:\\u200d(?:"+[rL,r$,rU].join("|")+")"+rV+rB+")*",rK=rV+rB+rq,rH=RegExp(rM+"(?="+rM+")|"+("(?:"+[rL+rF+"?",rF,r$,rU,rD].join("|"))+")"+rK,"g");let _unicodeToArray=function(r){return r.match(rH)||[]},_stringToArray=function(r){return _hasUnicode(r)?_unicodeToArray(r):_asciiToArray(r)},_baseValues=function(r,n){return _arrayMap(n,function(n){return r[n]})},lodash_es_values=function(r){return null==r?[]:_baseValues(r,lodash_es_keys(r))};var rG="[object Map]",rz="[object Set]",rW=v?v.iterator:void 0;let lodash_es_toArray=function(r){if(!r)return[];if(lodash_es_isArrayLike(r))return lodash_es_isString(r)?_stringToArray(r):_copyArray(r);if(rW&&r[rW])return _iteratorToArray(r[rW]());var n=tA(r);return(n==rG?_mapToArray:n==rz?_setToArray:lodash_es_values)(r)};var rJ=Object.prototype.toString,rY=Error.prototype.toString,rX=RegExp.prototype.toString,rQ="undefined"!=typeof Symbol?Symbol.prototype.toString:function(){return""},rZ=/^Symbol\((.*)\)(.*)$/;function printNumber(r){return r!=+r?"NaN":0===r&&1/r<0?"-0":""+r}function printSimpleValue(r,n){if(void 0===n&&(n=!1),null==r||!0===r||!1===r)return""+r;var o=typeof r;if("number"===o)return printNumber(r);
1if("string"===o)return n?'"'+r+'"':r;if("function"===o)return"[Function "+(r.name||"anonymous")+"]";if("symbol"===o)return rQ.call(r).replace(rZ,"Symbol($1)");var i=rJ.call(r).slice(8,-1);return"Date"===i?isNaN(r.getTime())?""+r:r.toISOString(r):"Error"===i||r instanceof Error?"["+rY.call(r)+"]":"RegExp"===i?rX.call(r):null}function printValue(r,n){var o=printSimpleValue(r,n);return null!==o?o:JSON.stringify(r,function(r,o){var i=printSimpleValue(this[r],n);return null!==i?i:o},2)}var r0="${path} is invalid",r1="${path} is a required field",r2="${path} must be one of the following values: ${values}",r5="${path} must not be one of the following values: ${values}",r3=function(r){var n=r.path,o=r.type,i=r.value,s=r.originalValue,d=null!=s&&s!==i,g=n+" must be a `"+o+"` type, but the final value was: `"+printValue(i,!0)+"`"+(d?" (cast from the value `"+printValue(s,!0)+"`).":".");return null===i&&(g+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),g},r8="${path} must be defined",r6="${path} must be exactly ${length} characters",r7="${path} must be at least ${min} characters",r4="${path} must be at most ${max} characters",r9='${path} must match the following: "${regex}"',ne="${path} must be a valid email",nt="${path} must be a valid URL",nr="${path} must be a trimmed string",nn="${path} must be a lowercase string",no="${path} must be a upper case string",ni="${path} must be greater than or equal to ${min}",na="${path} must be less than or equal to ${max}",ns="${path} must be less than ${less}",nl="${path} must be greater than ${more}",nu="${path} must be a positive number",nc="${path} must be a negative number",nd="${path} must be an integer",nf="${path} field must be later than ${min}",nh="${path} field must be at earlier than ${max}",np="${path} field cannot have keys not specified in the object shape",ng="${path} field must have at least ${min} items",nm="${path} field must have less than or equal to ${max} items";let util_isSchema=function(r){return r&&r.__isYupSchema__},n_=function(){function Condition(r,n){if(this.refs=r,"function"==typeof n){this.fn=n;return}if(!lodash_es_has(n,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!n.then&&!n.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var o=n.is,i=n.then,s=n.otherwise,d="function"==typeof o?o:function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return n.every(function(r){return r===o})};this.fn=function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];var g=n.pop(),_=n.pop(),v=d.apply(void 0,n)?i:s;if(v)return"function"==typeof v?v(_):_.concat(v.resolve(g))}}return Condition.prototype.resolve=function(r,n){var o=this.refs.map(function(r){return r.getValue(n)}),i=this.fn.apply(r,o.concat(r,n));if(void 0===i||i===r)return r;if(!util_isSchema(i))throw TypeError("conditions must return a schema object");return i.resolve(n)},Condition}();var ny=o(2975),nv=o(456),nb=/\$\{\s*(\w+)\s*\}/g,ValidationError_replace=function(r){return function(n){return r.replace(nb,function(r,o){return printValue(n[o])})}};function ValidationError(r,n,o,i){var s=this;this.name="ValidationError",this.value=n,this.path=o,this.type=i,this.errors=[],this.inner=[],r&&[].concat(r).forEach(function(r){s.errors=s.errors.concat(r.errors||r),r.inner&&(s.inner=s.inner.concat(r.inner.length?r.inner:r))}),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}ValidationError.prototype=Object.create(Error.prototype),ValidationError.prototype.constructor=ValidationError,ValidationError.isError=function(r){return r&&"ValidationError"===r.name},ValidationError.formatError=function(r,n){"string"==typeof r&&(r=ValidationError_replace(r));var fn=function(n){return n.path=n.label||n.path||"this","function"==typeof r?r(n):r};return 1==arguments.length?fn:fn(n)};var runValidations_promise=function(r){return r?nv.SynchronousPromise:Promise},runValidations_unwrapError=function(r){return void 0===r&&(r=[]),r.inner&&r.inner.length?r.inner:[].concat(r)};function scopeToValue(r,n,o){return runValidations_promise(o).all(r).cat
1ch(function(r){throw"ValidationError"===r.name&&(r.value=n),r}).then(function(){return n})}function propagateErrors(r,n){return r?null:function(r){return n.push(r),r.value}}function settled(r,n){var o=runValidations_promise(n);return o.all(r.map(function(r){return o.resolve(r).then(function(r){return{fulfilled:!0,value:r}},function(r){return{fulfilled:!1,value:r}})}))}function collectErrors(r){var n=r.validations,o=r.value,i=r.path,s=r.sync,d=r.errors,g=r.sort;return d=runValidations_unwrapError(d),settled(n,s).then(function(r){var n=r.filter(function(r){return!r.fulfilled}).reduce(function(r,n){var o=n.value;if(!ValidationError.isError(o))throw o;return r.concat(o)},[]);if(g&&n.sort(g),(d=n.concat(d)).length)throw new ValidationError(d,o,i);return o})}function runValidations(r){var n=r.endEarly,o=(0,ny.A)(r,["endEarly"]);return n?scopeToValue(o.validations,o.value,o.sync):collectErrors(o)}var prependDeep_isObject=function(r){return"[object Object]"===Object.prototype.toString.call(r)};function prependDeep(r,n){for(var o in n)if(lodash_es_has(n,o)){var i=n[o],s=r[o];if(void 0===s)r[o]=i;else{if(s===i)continue;util_isSchema(s)?util_isSchema(i)&&(r[o]=i.concat(s)):prependDeep_isObject(s)?prependDeep_isObject(i)&&(r[o]=prependDeep(s,i)):Array.isArray(s)&&Array.isArray(i)&&(r[o]=i.concat(s))}}return r}let nS=function(r){return function(r,n,o){for(var i=-1,s=Object(r),d=o(r),g=d.length;g--;){var _=d[++i];if(!1===n(s[_],_,s))break}return r}}(),_baseForOwn=function(r,n){return r&&nS(r,n,lodash_es_keys)};var nE="__lodash_hash_undefined__";let _setCacheAdd=function(r){return this.__data__.set(r,nE),this},_setCacheHas=function(r){return this.__data__.has(r)};function SetCache(r){var n=-1,o=null==r?0:r.length;for(this.__data__=new ei;++n<o;)this.add(r[n])}SetCache.prototype.add=SetCache.prototype.push=_setCacheAdd,SetCache.prototype.has=_setCac
1heHas;let nw=SetCache,_arraySome=function(r,n){for(var o=-1,i=null==r?0:r.length;++o<i;)if(n(r[o],o,r))return!0;return!1},_cacheHas=function(r,n){return r.has(n)};var nk=1,nO=2;let _equalArrays=function(r,n,o,i,s,d){var g=o&nk,_=r.length,v=n.length;if(_!=v&&!(g&&v>_))return!1;var b=d.get(r),E=d.get(n);if(b&&E)return b==n&&E==r;var k=-1,O=!0,R=o&nO?new nw:void 0;for(d.set(r,n),d.set(n,r);++k<_;){var C=r[k],I=n[k];if(i)var A=g?i(I,C,k,n,r,d):i(C,I,k,r,n,d);if(void 0!==A){if(A)continue;O=!1;break}if(R){if(!_arraySome(n,function(r,n){if(!_cacheHas(R,n)&&(C===r||s(C,r,o,i,d)))return R.push(n)})){O=!1;break}}else if(!(C===I||s(C,I,o,i,d))){O=!1;break}}return d.delete(r),d.delete(n),O};var nR=1,nx=2,nC="[object Boolean]",nI="[object Date]",nA="[object Error]",nT="[object Map]",nj="[object Number]",nP="[object RegExp]",nN="[object Set]",nD="[object String]",nF="[object Symbol]",nM="[object ArrayBuffer]",nL="[object DataView]",n$=v?v.prototype:void 0,nU=n$?n$.valueOf:void 0;let _equalByTag=function(r,n,o,i,s,d,g){switch(o){case nL:if(r.byteLength!=n.byteLength||r.byteOffset!=n.byteOffset)break;r=r.buffer,n=n.buffer;case nM:if(r.byteLength!=n.byteLength||!d(new tj(r),new tj(n)))break;return!0;case nC:case nI:case nj:return lodash_es_eq(+r,+n);case nA:return r.name==n.name&&r.message==n.message;case nP:case nD:return r==n+"";case nT:var _=_mapToArray;case nN:var v=i&nR;if(_||(_=_setToArray),r.size!=n.size&&!v)break;var b=g.get(r);if(b)return b==n;i|=nx,g.set(r,n);var E=_equalArrays(_(r),_(n),i,s,d,g);return g.delete(r),E;case nF:if(nU)return nU.call(r)==nU.call(n)}return!1};var nB=1,nV=Object.prototype.hasOwnProperty;let _equalObjects=function(r,n,o,i,s,d){var g=o&nB,_=_getAllKeys(r),v=_.length;if(v!=_getAllKeys(n).length&&!g)return!1;for(var b=v;b--;){var E=_[b];if(!(g?E in n:nV.call(n,E)))return!1}var k=d.get(r),O=d.get(n);if(k&&O)return k==n&&O==r;var R=!0;d.set(r,n),d.set(n,r);for(var C=g;++b<v;){var I=r[E=_[b]],A=n[E];if(i)var T=g?i(A,I,E,n,r,d):i(I,A,E,r,n,d);if(!(void 0===T?I===A||s(I,A,o,i,d):T)){R=!1;break}C||(C="constructor"==E)}if(R&&!C){var j=r.constructor,P=n.constructor;j!=P&&"constructor"in r&&"constructor"in n&&!("function"==typeof j&&j instanceof j&&"function"==typeof P&&P instanceof P)&&(R=!1)}return d.delete(r),d.delete(n),R};var nq=1,nK="[object Arguments]",nH="[object Array]",nG="[object Object]",nz=Object.prototype.hasOwnProperty;let _baseIsEqualDeep=function(r,n,o,i,d,g){var _=s(r),v=s(n),b=_?nH:tA(r),E=v?nH:tA(n);b=b==nK?nG:b,E=E==nK?nG:E;var k=b==nG,O=E==nG,R=b==E;if(R&&ej(r)){if(!ej(n))return!1;_=!0,k=!1}if(R&&!k)return g||(g=new eR),_||e9(r)?_equalArrays(r,n,o,i,d,g):_equalByTag(r,n,b,o,i,d,g);if(!(o&nq)){var C=k&&nz.call(r,"__wrapped__"),I=O&&nz.call(n,"__wrapped__");
1if(C||I){var A=C?r.value():r,T=I?n.value():n;return g||(g=new eR),d(A,T,o,i,g)}}return!!R&&(g||(g=new eR),_equalObjects(r,n,o,i,d,g))};function baseIsEqual(r,n,o,i,s){return r===n||(null!=r&&null!=n&&(lodash_es_isObjectLike(r)||lodash_es_isObjectLike(n))?_baseIsEqualDeep(r,n,o,i,baseIsEqual,s):r!=r&&n!=n)}let nW=baseIsEqual;var nJ=1,nY=2;let _baseIsMatch=function(r,n,o,i){var s=o.length,d=s,g=!i;if(null==r)return!d;for(r=Object(r);s--;){var _=o[s];if(g&&_[2]?_[1]!==r[_[0]]:!(_[0]in r))return!1}for(;++s<d;){var v=(_=o[s])[0],b=r[v],E=_[1];if(g&&_[2]){if(void 0===b&&!(v in r))return!1}else{var k=new eR;if(i)var O=i(b,E,v,r,n,k);if(!(void 0===O?nW(E,b,nJ|nY,i,k):O))return!1}}return!0},_isStrictComparable=function(r){return r==r&&!lodash_es_isObject(r)},_getMatchData=function(r){for(var n=lodash_es_keys(r),o=n.length;o--;){var i=n[o],s=r[i];n[o]=[i,s,_isStrictComparable(s)]}return n},_matchesStrictComparable=function(r,n){return function(o){return null!=o&&o[r]===n&&(void 0!==n||r in Object(o))}},_baseMatches=function(r){var n=_getMatchData(r);return 1==n.length&&n[0][2]?_matchesStrictComparable(n[0][0],n[0][1]):function(o){return o===r||_baseIsMatch(o,r,n)}},_baseGet=function(r,n){n=_castPath(n,r);for(var o=0,i=n.length;null!=r&&o<i;)r=r[_toKey(n[o++])];return o&&o==i?r:void 0},lodash_es_get=function(r,n,o){var i=null==r?void 0:_baseGet(r,n);return void 0===i?o:i},_baseHasIn=function(r,n){return null!=r&&n in Object(r)},lodash_es_hasIn=function(r,n){return null!=r&&_hasPath(r,n,_baseHasIn)};var nX=1,nQ=2;let _baseMatchesProperty=function(r,n){return _isKey(r)&&_isStrictComparable(n)?_matchesStrictComparable(_toKey(r),n):function(o){var i=lodash_es_get(o,r);return void 0===i&&i===n?lodash_es_hasIn(o,r):nW(n,i,nX|nQ)}},lodash_es_identity=function(r){return r},_baseProperty=function(r){return function(n){return null==n?void 0:n[r]}},_basePropertyDeep=function(r){return function(n){return _baseGet(n,r)}},lodash_es_property=function(r){return _isKey(r)?_baseProperty(_toKey(r)):_basePropertyDeep(r)},_baseIteratee=function(r){return"function"==typeof r?r:null==r?lodash_es_identity:"object"==typeof r?s(r)?_baseMatchesProperty(r[0],r[1]):_baseMatches(r):lodash_es_property(r)},lodash_es_mapValues=function(r,n){var o={};return n=_baseIteratee(n,3),_baseForOwn(r,function(r,i,s){_baseAssignValue(o,i,n(r,i,s))}),o};var nZ=o(940),n0="$",n1=".",n2=function(){function Reference(r,n){if(void 0===n&&(n={}),"string"!=typeof r)throw TypeError("ref must be a string, got: "+r);if(this.key=r.trim(),""===r)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===n0,this.isValue=this.key[0]===n1,this.isSibling=!this.isContext&&!this.isValue;var o=this.isContext?n0:this.isValue?n1:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,nZ.getter)(this.path,!0),this.map=n.map}var r=Reference.prototype;return r.getValue=function(r){var n=this.isContext?r.context:this.isValue?r.value:r.parent;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n},r.cast=function(r,n){return this.getValue(_extends({},n,{value:r}))},r.resolve=function(){return this},r.describe=function(){return{type:"ref",key:this.key}},r.toString=function(){return"Ref("+this.key+")"},Reference.isRef=function(r){return r&&r.__isYupRef},Reference}();n2.prototype.__isYupRef=!0;var n5=ValidationError.formatError,createValidation_thenable=function(r){return r&&"function"==typeof r.then&&"function"==typeof r.catch};function runTest(r,n,o,i){var s=r.call(n,o);if(!i)return Promise.resolve(s);if(createValidation_thenable(s))throw Error('Validation test of type: "'+n.type+'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned');return nv.SynchronousPromise.resolve(s)}function resolveParams(r,n,o){return lodash_es_mapValues(_extends({},r,{},n),o)}function createErrorFactory(r){var n=r.value,o=r.label,i=r.resolve,s=r.originalValue,d=(0,ny.A)(r,["value","label","resolve","originalValue"]);return function(r){var g=void 0===r?{}:r,_=g.path,v=void 0===_?d.path:_,b=g.message,E=void 0===b?d.message:b,k=g.type,O=void 0===k?d.name:k,R=g.params;return R=_extends({path:v,value:n,originalValue:s,label:o},resolveParams(d.params,R,i)),_extends(new ValidationError(n5(E,R),n,v,O),{params:R})}}function createValidation(r){var n=r.name,o=r.message,i=r.test,s=r.params;function validate(r){var d=r.value,g=r.path,_=r.label,v=r.options,b=r.originalValue,E=r.sync,k=(0,ny.A)(r,["value","path","label","options","originalValue","sync"]),O=v.parent,resolve=function(r){return n2.isRef(r)?r.getValue({value:d,parent:O,context:v.context}):r},R=createErrorFactory({message:o,path:g,value:d,originalValue:b,params:s,label:_,resolve:resolve,name:n});return runTest(i,_extends({path:g,parent:O,type:n,createError:R,resolve:resolve,options:v},k),d,E).then(function(r){if(ValidationError.isError(r))throw r;if(!r)throw R()})}return validate.OPTIONS=r,validate}var reach_trim=function(r){return r.substr(0,r.length-1).substr(1)};function getIn(r,n,o,i){var s,d,g;
1return(i=i||o,n)?((0,nZ.forEach)(n,function(_,v,b){var E=v?reach_trim(_):_;if(b||lodash_es_has(r,"_subType")){var k=b?parseInt(E,10):0;if(r=r.resolve({context:i,parent:s,value:o})._subType,o){if(b&&k>=o.length)throw Error("Yup.reach cannot resolve an array item at index: "+_+", in the path: "+n+". because there is no value at that index. ");o=o[k]}}if(!b){if(!lodash_es_has(r=r.resolve({context:i,parent:s,value:o}),"fields")||!lodash_es_has(r.fields,E))throw Error("The schema does not contain the path: "+n+". "+("(failed at: "+g+' which is a type: "')+r._type+'") ');r=r.fields[E],s=o,o=o&&o[E],d=E,g=v?"["+_+"]":"."+_}}),{schema:r,parent:s,parentPath:d}):{parent:s,parentPath:n,schema:r}}var n3=function(){function RefSet(){this.list=new Set,this.refs=new Map}var r=RefSet.prototype;return r.toArray=function(){return lodash_es_toArray(this.list).concat(lodash_es_toArray(this.refs.values()))},r.add=function(r){n2.isRef(r)?this.refs.set(r.key,r):this.list.add(r)},r.delete=function(r){n2.isRef(r)?this.refs.delete(r.key):this.list.delete(r)},r.has=function(r,n){if(this.list.has(r))return!0;for(var o,i=this.refs.values();!(o=i.next()).done;)if(n(o.value)===r)return!0;return!1},r.clone=function(){var r=new RefSet;return r.list=new Set(this.list),r.refs=new Map(this.refs),r},r.merge=function(r,n){var o=this.clone();return r.list.forEach(function(r){return o.add(r)}),r.refs.forEach(function(r){return o.add(r)}),n.list.forEach(function(r){return o.delete(r)}),n.refs.forEach(function(r){return o.delete(r)}),o},RefSet}();function SchemaType(r){var n=this;if(void 0===r&&(r={}),!(this instanceof SchemaType))return new SchemaType;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new n3,this._blacklist=new n3,this.tests=[],this.transforms=[],this.withMutation(function(){n.typeError(r3)}),lodash_es_has(r,"default")&&(this._defaultDefault=r.default),this._type=r.type||"mixed"}for(var n8=SchemaType.prototype={__isYupSchema__:!0,constructor:SchemaType,clone:function(){var r=this;return this._mutate?this:lodash_es_cloneDeepWith(this,function(n){if(util_isSchema(n)&&n!==r)return n})},label:function(r){var n=this.clone();return n._label=r,n},meta:function(r){if(0==arguments.length)return this._meta;var n=this.clone();return n._meta=_extends(n._meta||{},r),n},withMutation:function(r){var n=this._mutate;this._mutate=!0;var o=r(this);return this._mutate=n,o},concat:function(r){if(!r||r===this)return this;if(r._type!==this._type&&"mixed"!==this._type)throw TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+r._type);var n=prependDeep(r.clone(),this);return lodash_es_has(r,"_default")&&(n._default=r._default),n.tests=this.tests,n._exclusive=this._exclusive,n._whitelist=this._whitelist.merge(r._whitelist,r._blacklist),n._blacklist=this._blacklist.merge(r._blacklist,r._whitelist),n.withMutation(function(n){r.tests.forEach(function(r){n.test(r.OPTIONS)})}),n},isType:function(r){return!!this._nullable&&null===r||!this._typeCheck||this._typeCheck(r)},resolve:function(r){var n=this;if(n._conditions.length){var o=n._conditions;(n=n.clone())._conditions=[],n=(n=o.reduce(function(n,o){return o.resolve(n,r)},n)).resolve(r)}return n},cast:function(r,n){void 0===n&&(n={});var o=this.resolve(_extends({},n,{value:r})),i=o._cast(r,n);if(void 0!==r&&!1!==n.assert&&!0!==o.isType(i)){var s=printValue(r),d=printValue(i);throw TypeError("The value of "+(n.path||"field")+' could not be cast to a value that satisfies the schema type: "'+o._type+'". \n\nattempted value: '+s+" \n"+(d!==s?"result of cast: "+d:""))}return i},_cast:function(r){var n=this,o=void 0===r?r:this.transforms.reduce(function(o,i){return i.call(n,o,r)},r);return void 0===o&&lodash_es_has(this,"_default")&&(o=this.default()),o},_validate:function(r,n){var o=this;void 0===n&&(n={});var i=r,s=null!=n.originalValue?n.originalValue:r,d=this._option("strict",n),g=this._option("abortEarly",n),_=n.sync,v=n.path,b=this._label;d||(i=this._cast(i,_extends({assert:!1},n)));var E={value:i,path:v,schema:this,options:n,label:b,originalValue:s,sync:_},k=[];return this._typeError&&k.push(this._typeError(E)),this._whitelistError&&k.push(this._whitelistError(E)),this._blacklistError&&k.push(this._blacklistError(E)),runValidations({validations:k,endEarly:g,value:i,path:v,sync:_}).then(function(r){return runValidations({path:v,sync:_,value:r,endEarly:g,validations:o.tests.map(function(r){return r(E)})})})},validate:function(r,n){return void 0===n&&(n={}),this.resolve(_extends({},n,{value:r}))._validate(r,n)},validateSync:function(r,n){var o,i;if(void 0===n&&(n={}),this.resolve(_extends({},n,{value:r}))._validate(r,_extends({},n,{sync:!0})).then(function(r){return o=r}).catch(function(r){return i=r}),i)throw i;return o},isValid:function(r,n){return this.validate(r,n).then(function(){return!0}).catch(function(r){if("ValidationError"===r.name)return!1;throw r})},isValidSync:function(r,n){try{return this.validateSync(r,n),!0}catch(r){if("ValidationError"===r.name)return!1;throw r}},getDefault:function(r){return void 0===r&&(r={}),this.resolve(r).default()},default:function(r){if(0==arguments.length){var n=lodash_es_has(this,"_default")?this._default:this._defaultDefault;return"function"==typeof n?n.call(this):lodash_es_cloneDeepWith(n)}var o=this.clone();return o._default=r,o},strict:function(r){void 0===r&&(r=!0);var n=this.clone();return n._options.strict=r,n},_isPresent:function(r){return null!=r},required:function(r){return void 0===r&&(r=r1),this.test({message:r,name:"required",exclusive:!0,test:function(r){return this.schema._isPresent(r)}})},notRequired:function(){var r=this.clone();return r.tests=r.tests.filter(function(r){return"required"!==r.OPTIONS.name}),r},nullable:function(r){void 0===r&&(r=!0);var n=this.clone();return n._nullable=r,n},transform:function(r){var n=this.clone();return n.transforms.push(r),n},test:function(){if(r=1==arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2==arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}
1:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===r.message&&(r.message=r0),"function"!=typeof r.test)throw TypeError("`test` is a required parameters");var r,n=this.clone(),o=createValidation(r),i=r.exclusive||r.name&&!0===n._exclusive[r.name];if(r.exclusive&&!r.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return n._exclusive[r.name]=!!r.exclusive,n.tests=n.tests.filter(function(n){return(n.OPTIONS.name!==r.name||!i&&n.OPTIONS.test!==o.OPTIONS.test)&&!0}),n.tests.push(o),n},when:function(r,n){1==arguments.length&&(n=r,r=".");var o=this.clone(),i=[].concat(r).map(function(r){return new n2(r)});return i.forEach(function(r){r.isSibling&&o._deps.push(r.key)}),o._conditions.push(new n_(i,n)),o},typeError:function(r){var n=this.clone();return n._typeError=createValidation({message:r,name:"typeError",test:function(r){return void 0===r||!!this.schema.isType(r)||this.createError({params:{type:this.schema._type}})}}),n},oneOf:function(r,n){void 0===n&&(n=r2);var o=this.clone();return r.forEach(function(r){o._whitelist.add(r),o._blacklist.delete(r)}),o._whitelistError=createValidation({message:n,name:"oneOf",test:function(r){if(void 0===r)return!0;var n=this.schema._whitelist;return!!n.has(r,this.resolve)||this.createError({params:{values:n.toArray().join(", ")}})}}),o},notOneOf:function(r,n){void 0===n&&(n=r5);var o=this.clone();return r.forEach(function(r){o._blacklist.add(r),o._whitelist.delete(r)}),o._blacklistError=createValidation({message:n,name:"notOneOf",test:function(r){var n=this.schema._blacklist;return!n.has(r,this.resolve)||this.createError({params:{values:n.toArray().join(", ")}})}}),o},strip:function(r){void 0===r&&(r=!0);var n=this.clone();return n._strip=r,n},_option:function(r,n){return lodash_es_has(n,r)?n[r]:this._options[r]},describe:function(){var r=this.clone();return{type:r._type,meta:r._meta,label:r._label,tests:r.tests.map(function(r){return{name:r.OPTIONS.name,params:r.OPTIONS.params}}).filter(function(r,n,o){return o.findIndex(function(n){return n.name===r.name})===n})}},defined:function(r){return void 0===r&&(r=r8),this.nullable().test({message:r,name:"defined",exclusive:!0,test:function(r){return void 0!==r}})}},mixed_loop=function(){var r=n7[n6];n8[r+"At"]=function(n,o,i){void 0===i&&(i={});var s=getIn(this,n,o,i.context),d=s.parent,g=s.parentPath;return s.schema[r](d&&d[g],_extends({},i,{parent:d,path:n}))}},n6=0,n7=["validate","validateSync"];n6<n7.length;n6++)mixed_loop();for(var n4=0,n9=["equals","is"];n4<n9.length;n4++)n8[n9[n4]]=n8.oneOf;for(var oe=0,ot=["not","nope"];oe<ot.length;oe++)n8[ot[oe]]=n8.notOneOf;function inherits(r,n,o){r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_extends(r.prototype,o)}function BooleanSchema(){var r=this;if(!(this instanceof BooleanSchema))return new BooleanSchema;SchemaType.call(this,{type:"boolean"}),this.withMutation(function(){r.transform(function(r){if(!this.isType(r)){if(/^(true|1)$/i.test(r))return!0;if(/^(false|0)$/i.test(r))return!1}return r})})}n8.optional=n8.notRequired,inherits(BooleanSchema,SchemaType,{_typeCheck:function(r){return r instanceof Boolean&&(r=r.valueOf()),"boolean"==typeof r}});let isAbsent=function(r){return null==r};var or=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,oo=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,string_isTrimmed=function(r){return isAbsent(r)||r===r.trim()};function StringSchema(){var r=this;if(!(this instanceof StringSchema))return new StringSchema;SchemaType.call(this,{type:"string"}),this.withMutation(function(){r.transform(function(r){return this.isType(r)?r:null!=r&&r.toString?r.toString():r})})}inherits(StringSchema,SchemaType,{_typeCheck:function(r){return r instanceof String&&(r=r.valueOf()),"string"==typeof r},_isPresent:function(r){return SchemaType.prototype._cast.call(this,r)&&r.length>0},length:function(r,n){return void 0===n&&(n=r6),this.test({message:n,name:"length",exclusive:!0,params:{length:r},test:function(n){return isAbsent(n)||n.length===this.resolve(r)}})},min:function(r,n){return void 0===n&&(n=r7),this.test({message:n,name:"min",exclusive:!0,params:{min:r},test:function(n){return isAbsent(n)||n.length>=this.resolve(r)}})},max:function(r,n){return void 0===n&&(n=r4),this.test({name:"max",exclusive:!0,message:n,params:{max:r},test:function(n){return isAbsent(n)||n.length<=this.resolve(r)}})},matches:function(r,n){var o,i,s=!1;return n&&("string"==typeof n&&(o=n),"object"==typeof n&&(s=n.excludeEmptyString,o=n.message,i=n.name)),this.test({name:i||"matches",message:o||r9,params:{regex:r},test:function(n){return isAbsent(n)||""===n&&s||-1!==n.search(r)}})},email:function(r){return void 0===r&&(r=ne),this.matches(or,{name:"email",message:r,excludeEmptyString:!0})},url:function(r){return void 0===r&&(r=nt),this.matches(oo,{name:"url",message:r,excludeEmptyString:!0})},ensure:function(){return this.default("").transform(function(r){return null===r?"":r})},trim:function(r){return void 0===r&&(r=nr),this.transform(function(r){return null!=r?r.trim():r}).test({message:r,name:"trim",test:string_isTrimmed})},lowercase:function(r){return void 0===r&&(r=nn),this.transform(function(r){return isAbsent(r)?r:r.toLowerCase()}).test({message:r,name:"string_case",exclusive:!0,test:function(r){return isAbsent(r)||r===r.toLowerCase()}})},uppercase:function(r){return void 0===r&&(r=no),this.transform(function(r){return isAbsent(r)?r:r.toUpperCase()}).test({message:r,name:"string_case",exclusive:!0,test:function(r){return isAbsent(r)||r===r.toUpperCase()}})}});var number_isNaN=function(r){return r!=+r};function NumberSchema(){var r=this;if(!(this instanceof NumberSchema))return new NumberSchema;SchemaType.call(this,{type:"number"}),this.withMutation(function(){r.transform(function(r){var n=r;if("string"==typeof n){if(""===(n=n.replace(/\s/g,"")))return NaN;n*=1}return this.isType(n)?n:parseFloat(n)})})}inherits(NumberSchema,SchemaType,{_typeCheck:function(r){return r instanceof Number&&(r=r.valueOf()),"number"==typeof r&&!number_isNaN(r)},min:function(r,n){return void 0===n&&(n=ni),this.test({message:n,name:"min",exclusive:!0,params:{min:r},test:function(n){return isAbsent(n)||n>=this.resolve(r)}})},max:function(r,n){return void 0===n&&(n=na),this.test({message:n,name:"max",exclusive:!0,params:{max:r},test:function(n){return isAbsent(n)||n<=this.resolve(r)}})},lessThan:function(r,n){return void 0===n&&(n=ns),this.test({message:n,name:"max",exclusive:!0,params:{less:r},test:function(n){return isAbsent(n)||n<this.resolve(r)}})},moreThan:function(r,n){return void 0===n&&(n=nl),this.test({message:n,name:"min",exclusive:!0,params:{more:r},test:function(n){return isAbsent(n)||n>this.resolve(r)}})},positive:function(r){return void 0===r&&(r=nu),this.moreThan(0,r)},negative:function(r){return void 0===r&&(r=nc),this.lessThan(0,r)},integer:function(r){return void 0===r&&(r=nd),this.test({name:"integer",message:r,test:function(r){return isAbsent(r)||Number.isInteger(r)}})},truncate:function(){return this.transform(function(r){return isAbsent(r)?r:0|r})},round:function(r){var n=["ceil","floor","round","trunc"];if("trunc"===(r=r&&r.toLowerCase()||"round"))return this.truncate();if(-1===n.indexOf(r.toLowerCase()))throw TypeError("Only valid options for roun
1d() are: "+n.join(", "));return this.transform(function(n){return isAbsent(n)?n:Math[r](n)})}});var oi=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function parseIsoDate(r){var n,o,i=[1,4,5,6,7,10,11],s=0;if(o=oi.exec(r)){for(var d,g=0;d=i[g];++g)o[d]=+o[d]||0;o[2]=(+o[2]||1)-1,o[3]=+o[3]||1,o[7]=o[7]?String(o[7]).substr(0,3):0,(void 0===o[8]||""===o[8])&&(void 0===o[9]||""===o[9])?n=+new Date(o[1],o[2],o[3],o[4],o[5],o[6],o[7]):("Z"!==o[8]&&void 0!==o[9]&&(s=60*o[10]+o[11],"+"===o[9]&&(s=0-s)),n=Date.UTC(o[1],o[2],o[3],o[4],o[5]+s,o[6],o[7]))}else n=Date.parse?Date.parse(r):NaN;return n}var oa=new Date(""),date_isDate=function(r){return"[object Date]"===Object.prototype.toString.call(r)};function DateSchema(){var r=this;if(!(this instanceof DateSchema))return new DateSchema;SchemaType.call(this,{type:"date"}),this.withMutation(function(){r.transform(function(r){return this.isType(r)?r:isNaN(r=parseIsoDate(r))?oa:new Date(r)})})}function _taggedTemplateLiteralLoose(r,n){return n||(n=r.slice(0)),r.raw=n,r}inherits(DateSchema,SchemaType,{_typeCheck:function(r){return date_isDate(r)&&!isNaN(r.getTime())},min:function(r,n){void 0===n&&(n=nf);var o=r;if(!n2.isRef(o)&&(o=this.cast(r),!this._typeCheck(o)))throw TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:n,name:"min",exclusive:!0,params:{min:r},test:function(r){return isAbsent(r)||r>=this.resolve(o)}})},max:function(r,n){void 0===n&&(n=nh);var o=r;if(!n2.isRef(o)&&(o=this.cast(r),!this._typeCheck(o)))throw TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:n,name:"max",exclusive:!0,params:{max:r},test:function(r){return isAbsent(r)||r<=this.resolve(o)}})}});let _arrayReduce=function(r,n,o,i){var s=-1,d=null==r?0:r.length;for(i&&d&&(o=r[++s]);++s<d;)o=n(o,r[s],s,r);return o},os=function(r){return function(n){return null==r?void 0:r[n]}}({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});
1var ol=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ou=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");let lodash_es_deburr=function(r){return(r=lodash_es_toString(r))&&r.replace(ol,os).replace(ou,"")};var oc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;let _asciiWords=function(r){return r.match(oc)||[]};var od=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;let _hasUnicodeWord=function(r){return od.test(r)};var of="\\ud800-\\udfff",oh="\\u2700-\\u27bf",op="a-z\\xdf-\\xf6\\xf8-\\xff",og="A-Z\\xc0-\\xd6\\xd8-\\xde",om="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o_="['’]",oy="["+om+"]",ov="\\d+",ob="["+oh+"]",oS="["+op+"]",oE="[^"+of+om+ov+oh+op+og+"]",ow="(?:\\ud83c[\\udde6-\\uddff]){2}",ok="[\\ud800-\\udbff][\\udc00-\\udfff]",oO="["+og+"]",oR="(?:"+oS+"|"+oE+")",ox="(?:"+oO+"|"+oE+")",oC="(?:"+o_+"(?:d|ll|m|re|s|t|ve))?",oI="(?:"+o_+"(?:D|LL|M|RE|S|T|VE))?",oA="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",oT="[\\ufe0e\\ufe0f]?",oj="(?:\\u200d(?:"+["[^"+of+"]",ow,ok].join("|")+")"+oT+oA+")*",oP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oD=oT+oA+oj,oF="(?:"+[ob,ow,ok].join("|")+")"+oD,oM=RegExp([oO+"?"+oS+"+"+oC+"(?="+[oy,oO,"$"].join("|")+")",ox+"+"+oI+"(?="+[oy,oO+oR,"$"].join("|")+")",oO+"?"+oR+"+"+oC,oO+"+"+oI,oN,oP,ov,oF].join("|"),"g");let _unicodeWords=function(r){return r.match(oM)||[]},lodash_es_words=function(r,n,o){return(r=lodash_es_toString(r),void 0===(n=o?void 0:n))?_hasUnicodeWord(r)?_unicodeWords(r):_asciiWords(r):r.match(n)||[]};var oL=RegExp("['’]","g");let _createCompounder=function(r){return function(n){return _arrayReduce(lodash_es_words(lodash_es_deburr(n).replace(oL,"")),r,"")}},o$=_createCompounder(function(r,n,o){return r+(o?"_":"")+n.toLowerCase()}),_baseSlice=function(r,n,o){var i=-1,s=r.length;n<0&&(n=-n>s?0:s+n),(o=o>s?s:o)<0&&(o+=s),s=n>o?0:o-n>>>0,n>>>=0;for(var d=Array(s);++i<s;)d[i]=r[i+n];return d},_castSlice=function(r,n,o){var i=r.length;return o=void 0===o?i:o,!n&&o>=i?r:_baseSlice(r,n,o)},oU=function(r){return function(n){var o=_hasUnicode(n=lodash_es_toString(n))?_stringToArray(n):void 0,i=o?o[0]:n.charAt(0),s=o?_castSlice(o,1).join(""):n.slice(1);return i[r]()+s}}("toUpperCase"),lodash_es_capitalize=function(r){return oU(lodash_es_toString(r).toLowerCase())},oB=_createCompounder(function(r,n,o){return n=n.toLowerCase(),r+(o?lodash_es_capitalize(n):n)}),lodash_es_mapKeys=function(r,n){var o={};return n=_baseIteratee(n,3),_baseForOwn(r,function(r,i,s){_baseAssignValue(o,n(r,i,s),r)}),o};var oV=o(6918),oq=o.n(oV);function sortFields(r,n){void 0===n&&(n=[]);var o=[],i=[];function addNode(r,s){var d=(0,nZ.split)(r)[0];~i.indexOf(d)||i.push(d),~n.indexOf(s+"-"+d)||o.push([s,d])}for(var s in r)if(lodash_es_has(r,s)){var d=r[s];~i.indexOf(s)||i.push(s),n2.isRef(d)&&d.isSibling?addNode(d.path,s):util_isSchema(d)&&d._deps&&d._deps.forEach(function(r){return addNode(r,s)})}return oq().array(i,o).reverse()}function findIndex(r,n){var o=1/0;return r.some(function(r,i){if(-1!==n.path.indexOf(r))return o=i,!0}),o}function sortByKeyOrder(r){var n=Object.keys(r);return function(r,o){return findIndex(n,r)-findIndex(n,o)}}function makePath(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.reduce(function(r,n){var i=o.shift();return r+(null==i?"":i)+n}).replace(/^\./,"")}function object_templateObject3(){var r=_taggedTemplateLiteralLoose(["",'["','"]']);return object_templateObject3=function(){return r},r}function object_templateObject2(){var r=_taggedTemplateLiteralLoose(["",".",""]);return object_templateObject2=function(){return r},r}function object_templateObject(){var r=_taggedTemplateLiteralLoose(["",".",""]);return object_templateObject=function(){return r},r}var object_isObject=function(r){return"[object Object]"===Object.prototype.toString.call(r)},object_promise=function(r){return r?nv.SynchronousPromise:Promise};function object_unknown(r,n){var o=Object.keys(r.fields);return Object.keys(n).filter(function(r){return -1===o.indexOf(r)})}function ObjectSchema(r){var n=this;if(!(this instanceof ObjectSchema))return new ObjectSchema(r);SchemaType.call(this,{type:"object",default:function(){var r=this;if(this._nodes.length){var n={};
1return this._nodes.forEach(function(o){n[o]=r.fields[o].default?r.fields[o].default():void 0}),n}}}),this.fields=Object.create(null),this._nodes=[],this._excludedEdges=[],this.withMutation(function(){n.transform(function(r){if("string"==typeof r)try{r=JSON.parse(r)}catch(n){r=null}return this.isType(r)?r:null}),r&&n.shape(r)})}function array_templateObject2(){var r=_taggedTemplateLiteralLoose(["","[","]"]);return array_templateObject2=function(){return r},r}function array_templateObject(){var r=_taggedTemplateLiteralLoose(["","[","]"]);return array_templateObject=function(){return r},r}function ArraySchema(r){var n=this;if(!(this instanceof ArraySchema))return new ArraySchema(r);SchemaType.call(this,{type:"array"}),this._subType=void 0,this.withMutation(function(){n.transform(function(r){if("string"==typeof r)try{r=JSON.parse(r)}catch(n){r=null}return this.isType(r)?r:null}),r&&n.of(r)})}inherits(ObjectSchema,SchemaType,{_typeCheck:function(r){return object_isObject(r)||"function"==typeof r},_cast:function(r,n){var o=this;void 0===n&&(n={});var i=SchemaType.prototype._cast.call(this,r,n);if(void 0===i)return this.default();if(!this._typeCheck(i))return i;var s=this.fields,d=!0===this._option("stripUnknown",n),g=this._nodes.concat(Object.keys(i).filter(function(r){return -1===o._nodes.indexOf(r)})),_={},v=_extends({},n,{parent:_,__validating:!1}),b=!1;return g.forEach(function(r){var o=s[r],g=lodash_es_has(i,r);if(o){var E,k=o._options&&o._options.strict;if(v.path=makePath(object_templateObject(),n.path,r),v.value=i[r],!0===(o=o.resolve(v))._strip){b=b||r in i;return}void 0!==(E=n.__validating&&k?i[r]:o.cast(i[r],v))&&(_[r]=E)}else g&&!d&&(_[r]=i[r]);_[r]!==i[r]&&(b=!0)}),b?_:i},_validate:function(r,n){var o,i,s=this;void 0===n&&(n={});var d=n.sync,g=[],_=null!=n.originalValue?n.originalValue:r;return o=this._option("abortEarly",n),i=this._option("recursive",n),n=_extends({},n,{__validating:!0,originalValue:_}),SchemaType.prototype._validate.call(this,r,n).catch(propagateErrors(o,g)).then(function(r){if(!i||!object_isObject(r)){if(g.length)throw g[0];return r}_=_||r;var v=s._nodes.map(function(o){var i=-1===o.indexOf(".")?makePath(object_templateObject2(),n.path,o):makePath(object_templateObject3(),n.path,o),g=s.fields[o],v=_extends({},n,{path:i,parent:r,originalValue:_[o]});return g&&g.validate?(v.strict=!0,g.validate(r[o],v)):object_promise(d).resolve(!0)});return runValidations({sync:d,validations:v,value:r,errors:g,endEarly:o,path:n.path,sort:sortByKeyOrder(s.fields)})})},concat:function(r){var n=SchemaType.prototype.concat.call(this,r);return n._nodes=sortFields(n.fields,n._excludedEdges),n},shape:function(r,n){void 0===n&&(n=[]);var o=this.clone(),i=_extends(o.fields,r);if(o.fields=i,n.length){Array.isArray(n[0])||(n=[n]);var s=n.map(function(r){return r[0]+"-"+r[1]});o._excludedEdges=o._excludedEdges.concat(s)}return o._nodes=sortFields(i,o._excludedEdges),o},from:function(r,n,o){var i=(0,nZ.getter)(r,!0);return this.transform(function(s){if(null==s)return s;var d=s;return lodash_es_has(s,r)&&(d=_extends({},s),o||delete d[r],d[n]=i(s)),d})},noUnknown:function(r,n){void 0===r&&(r=!0),void 0===n&&(n=np),"string"==typeof r&&(n=r,r=!0);var o=this.test({name:"noUnknown",exclusive:!0,message:n,test:function(n){return null==n||!r||0===object_unknown(this.schema,n).length}});return o._options.stripUnknown=r,o},unknown:function(r,n){return void 0===r&&(r=!0),void 0===n&&(n=np),this.noUnknown(!r,n)},transformKeys:function(r){return this.transform(function(n){return n&&lodash_es_mapKeys(n,function(n,o){return r(o)})})},camelCase:function(){return this.transformKeys(oB)},snakeCase:function(){return this.transformKeys(o$)},constantCase:function(){return this.transformKeys(function(r){return o$(r).toUpperCase()})},describe:function(){var r=SchemaType.prototype.describe.call(this);return r.fields=lodash_es_mapValues(this.fields,function(r){return r.describe()}),r}}),inherits(ArraySchema,SchemaType,{_typeCheck:function(r){return Array.isArray(r)},_cast:function(r,n){var o=this,i=SchemaType.prototype._cast.call(this,r,n);if(!this._typeCheck(i)||!this._subType)return i;var s=!1,d=i.map(function(r,i){var d=o._subType.cast(r,_extends({}
1,n,{path:makePath(array_templateObject(),n.path,i)}));return d!==r&&(s=!0),d});return s?d:i},_validate:function(r,n){var o=this;void 0===n&&(n={});var i=[],s=n.sync,d=n.path,g=this._subType,_=this._option("abortEarly",n),v=this._option("recursive",n),b=null!=n.originalValue?n.originalValue:r;return SchemaType.prototype._validate.call(this,r,n).catch(propagateErrors(_,i)).then(function(r){if(!v||!g||!o._typeCheck(r)){if(i.length)throw i[0];return r}b=b||r;var E=r.map(function(o,i){var s=makePath(array_templateObject2(),n.path,i),d=_extends({},n,{path:s,strict:!0,parent:r,originalValue:b[i]});return!g.validate||g.validate(o,d)});return runValidations({sync:s,path:d,value:r,errors:i,endEarly:_,validations:E})})},_isPresent:function(r){return SchemaType.prototype._cast.call(this,r)&&r.length>0},of:function(r){var n=this.clone();if(!1!==r&&!util_isSchema(r))throw TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+printValue(r));return n._subType=r,n},min:function(r,n){return n=n||ng,this.test({message:n,name:"min",exclusive:!0,params:{min:r},test:function(n){return isAbsent(n)||n.length>=this.resolve(r)}})},max:function(r,n){return n=n||nm,this.test({message:n,name:"max",exclusive:!0,params:{max:r},test:function(n){return isAbsent(n)||n.length<=this.resolve(r)}})},ensure:function(){var r=this;return this.default(function(){return[]}).transform(function(n,o){return r._typeCheck(n)?n:null==o?[]:[].concat(o)})},compact:function(r){var n=r?function(n,o,i){return!r(n,o,i)}:function(r){return!!r};return this.transform(function(r){return null!=r?r.filter(n):r})},describe:function(){var r=SchemaType.prototype.describe.call(this);return this._subType&&(r.innerType=this._subType.describe()),r}}),function(){function Lazy(r){this._resolve=function(n,o){var i=r(n,o);if(!util_isSchema(i))throw TypeError("lazy() functions must return a valid schema");return i.resolve(o)}}var r=Lazy.prototype;return r.resolve=function(r){return this._resolve(r.value,r)},r.cast=function(r,n){return this._resolve(r,n).cast(r,n)},r.validate=function(r,n){return this._resolve(r,n).validate(r,n)},r.validateSync=function(r,n){return this._resolve(r,n).validateSync(r,n)},r.validateAt=function(r,n,o){return this._resolve(n,o).validateAt(r,n,o)},r.validateSyncAt=function(r,n,o){return this._resolve(n,o).validateSyncAt(r,n,o)},Lazy}().prototype.__isYupSchema__=!0},9045(r,n,o){"use strict";function esm_typeof(r){return(esm_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function boundMethod(r,n,o){var i=o.value;if("function"!=typeof i)throw TypeError("@boundMethod decorator can only be applied to methods not: ".concat(esm_typeof(i)));var s=!1;return{configurable:!0,get:function(){if(s||this===r.prototype||this.hasOwnProperty(n)||"function"!=typeof i)return i;var o=i.bind(this);return s=!0,Object.defineProperty(this,n,{configurable:!0,get:function(){return o},set:function(r){i=r,delete this[n]}}),s=!1,o},set:function(r){i=r}}}o.d(n,{sj:()=>_,vV:()=>logError,gP:()=>k,m$:()=>P});var i=o(590);class s extends Error{constructor(){super("Transport has already been started")}}class d extends Error{constructor(){super("Invalid response received")}}var __decorate=function(r,n,o,i){var s,d=arguments.length,g=d<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(r,n,o,i);else for(var _=r.length-1;_>=0;_--)(s=r[_])&&(g=(d<3?s(g):d>3?s(n,o,g):s(n,o))||g);return d>3&&g&&Object.defineProperty(n,o,g),g};class g{constructor({webSocketsService:r,roomId:n,userId:o}){this.awaitingResponsesBuffer=[],this.signalOnNewResponses=null,this.webSocketsService=r,this.roomId=n,this.userId=o}onResponse(r){if(!r)throw new d;this.awaitingResponsesBuffer=[...this.awaitingResponsesBuffer,r],this.signalOnNewResponses&&(this.signalOnNewResponses(),this.signalOnNewResponses=null)}async start(){if(this.websocketCallbackId)throw new s;this.websocketCallbackId=(0,i.A)();try{let r={userId:this.userId},n=await this.webSocketsService.getNamespaceToken(r,"streaming");
1this.leaveRoomCB=this.webSocketsService.joinRoom({callback:this.onResponse,callbackId:this.websocketCallbackId,roomName:this.roomId,namespace:r,namespaceToken:n})}catch(r){this.clean()}}async stop(){this.websocketCallbackId&&(this.leaveRoomCB&&this.leaveRoomCB(),this.clean())}clean(){this.websocketCallbackId=null,this.leaveRoomCB=null}async *stream(){for(;;){if(0===this.awaitingResponsesBuffer.length){await new Promise(r=>{this.signalOnNewResponses=r});continue}yield this.awaitingResponsesBuffer.shift()}}}__decorate([boundMethod],g.prototype,"onResponse",null);class _{async get(r){try{return localStorage.getItem(r)}catch(r){return console.warn("localStorage.getItem failed:",r),null}}async getObject(r){try{let n=await this.get(r);if(null===n)return null;return JSON.parse(n)}catch(r){return console.warn("localStorage.getObject failed:",r),null}}async set(r,n){try{localStorage.setItem(r,n)}catch(r){console.warn("localStorage.setItem failed:",r)}}async setObject(r,n){try{let o=JSON.stringify(n);await this.set(r,o)}catch(r){console.warn("localStorage.setObject failed:",r)}}async remove(r){try{localStorage.removeItem(r)}catch(r){console.warn("localStorage.removeItem failed:",r)}}}var v=o(7138),b=o(6608);function logToConsole(r,n,o){let i,s=new Date,d=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}.${s.getMilliseconds()}`,g=r.toUpperCase().padEnd(5," ");try{i=(0,v.ny)(o)}catch{i=String(o)}console.debug(`${d} | ${g} | ${n}`,i)}function logToDataDog({type:r,message:n,context:o={},sampleRate:i,enrichContext:s}){(0,b.KV)()||logToConsole(r,n,o);let d=window?.DD_LOGS;if(!d||!d.logger)return;let g=s?s(o):o;i?Math.random()<=i&&d.logger[r](n,g):d.logger[r](n,g)}function logDebug(r,n={},o){logToDataDog({type:"debug",message:r,context:n,enrichContext:o})}function logInfo(r,n={},o,i){logToDataDog({type:"info",message:r,context:n,sampleRate:o,enrichContext:i})}function logWarn(r,n={},o,i){logToDataDog({type:"warn",message:r,context:n,sampleRate:o,enrichContext:i})}function logError(r,n={},o,i){logToDataDog({type:"error",message:r,context:n,sampleRate:o,enrichContext:i})}function isThirdPartyFetchError(r){let n="string"==typeof r?r:r?.message||"",o="string"==typeof r?"":r?.stack||"",i=["px.ads.linkedin.com","siteperformancetest.net","hsm.honeybook.com","ads.linkedin.com"],s=`${n} ${o}`.toLowerCase();return!!n.includes("Fetch error")&&i.some(r=>s.includes(r.toLowerCase()))}function reportToDataDog(r,n){if(isThirdPartyFetchError(r))return;(0,b.KV)()||logToConsole("error","string"==typeof r?r:r.message,n);let o=window.DD_RUM;o&&o.addError&&o.addError(r,n)}let E={debug:console.debug,info:console.info,warn:console.warn,error:function(){let r=new Map;return(n,o)=>{let i;if(n&&("string"==typeof n?i=n:"object"==typeof n&&"string"==typeof n.message&&(i=n.message)),i){if(r.has(i)){let{timeoutId:n}=r.get(i);clearTimeout(n)}else reportToDataDog(n,o);r.set(i,{timeoutId:setTimeout(()=>r.delete(i),1e3)})}else reportToDataDog(n,o)}}()};function trackError({error:r,message:n,context:o={},enrichContext:i}){let s=i?i(o):o;(0,v.Oz)({error:r,message:n,logger:E,context:s})}function action_utils_reportToDataDog(r,n){let o=window.DD_RUM;if(!o||!o.addAction){((0,b.yz)()||(0,b.zS)())&&console.error("Could not report action to logger",r,n);return}o.addAction(r,n)}function reportAction(r,n){let{name:o,context:i={}}=r;if(!o){((0,b.yz)()||(0,b.zS)())&&console.error("name is required and was not provided");return}let s=n?n(i):i;action_utils_reportToDataDog(o,s),((0,b.yz)()||(0,b.zS)())&&console.log("Report action to logger: ",o,s)}class k{constructor({featureName:r,featureVersion:n=1,commonContext:o={},messagePrefix:i,sampleRate:s=1,enrichContext:d}){this.featureName=r,this.featureVersion=n,this.commonContext=o,this.messagePrefix=i,this.sampleRate=s,this.enrichContext=d}debug(r,n){this.logDebug(r,n)}info(r,n){this.logInfo(r,n)}warn(r,n){this.logWarn(r,n)}error(r,n){let o="string"==typeof r?r:r.message;this.logError(o,n)}getContext(r={}){let n={...this.commonContext,...r};return this.featureName&&(n[this.featureName]=this.featureVersion),0===Object.keys(n).length?void 0:n}getMessage(r){if(r)return this.messagePrefix?`${this.messagePrefix} ${r}`:r}extend({featureName:r,featureVersion:n=1,commonContext:o={},messagePrefix:i,enrichContext:s}){return new k({featureName:r,featureVersion:n,commonContext:{...this.getContext(o)},messagePrefix:this.messagePrefix?`${this.messagePrefix} ${i}`:i,enrichContext:s||this.enrichContext})}trackError(r){let n=this.getMessage(r.message);trackError({error:r.error,...n&&{message:n},context:this.getContext(r.context),enrichContext:this.enrichContext})}logDebug(r,n={}){logDebug(this.getMessage(r),this.getContext(n),this.enrichContext)}logInfo(r,n={},o){logInfo(this.getMessage(r),this.getContext(n),o||this.sampleRate,this.enrichContext)}logWarn(r,n={},o){logWarn(this.getMessage(r),this.getContext(n),o||this.sampleRate,this.enrichContext)}logError(r,n={},o){logError(this.getMessage(r),this.getContext(n),o||this.sampleRate,this.enrichContext)}trackUserAction(r){let{name:n,context:o={}}=r;reportAction({name:n,context:this.getContext(o)},this.enrichContext)}}var O=o(5485),R=o.n(O);function index_module_r(r){return(r=r||R()).interceptors.response.use(index_module_n,index_module_s)}function index_module_n(r){return r}function index_module_o(r){var n=[];if(r)return Array.isArray(r)?r:("object"==typeof r&&Object.keys(r).forEach(function(o){"number"==typeof o&&(n[o]=r[o])}),n)}function index_module_s(r){if(R().isCancel(r))return Promise.reject(r);var n=index_module_i(r)||{};if(n.currentRetryAttempt=n.currentRetryAttempt||0,n.retry="number"==typeof n.retry?n.retry:3,n.retryDelay="number"==typeof n.retryDelay?n.retryDelay:100,n.instance=n.instance||R(),n.backoffType=n.backoffType||"exponential",n.httpMethodsToRetry=index_module_o(n.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],n.noResponseRetries="number"==typeof n.noResponseRetries?n.noResponseRetries:2,n.checkRetryAfter="boolean"!=typeof n.checkRetryAfter||n.checkRetryAfter,n.maxRetryAfter="number"==typeof n.maxRetryAfter?n.maxRetryAfter:3e5,n.statusCodesToRetry=index_module_o(n.statusCodesToRetry)||[[100,199],[429,429],[500,599]],r.config=r.config||{},r.config.raxConfig=Object.assign({},n),!(n.shouldRetry||index_module_f)(r))return Promise.reject(r);var o=new Promise(function(o,i){var s=0;if(n.checkRetryAfter&&r.response&&r.response.headers["retry-after"]){var d=function(r){var n=Number(r);
1if(!Number.isNaN(n))return 1e3*n;var o=Date.parse(r);return Number.isNaN(o)?void 0:o-Date.now()}(r.response.headers["retry-after"]);if(!(d&&d>0&&d<=n.maxRetryAfter))return i(r);s=d}r.config.raxConfig.currentRetryAttempt+=1;var g=r.config.raxConfig.currentRetryAttempt;0===s&&(s="linear"===n.backoffType?1e3*g:"static"===n.backoffType?n.retryDelay:(Math.pow(2,g)-1)/2*1e3,"number"==typeof n.maxRetryDelay&&(s=Math.min(s,n.maxRetryDelay))),setTimeout(o,s)}),i=n.onRetryAttempt?Promise.resolve(n.onRetryAttempt(r)):Promise.resolve();return Promise.resolve().then(function(){return o}).then(function(){return i}).then(function(){return n.instance.request(r.config)})}function index_module_f(r){var n=r.config.raxConfig;if(!n||0===n.retry||!r.response&&(n.currentRetryAttempt||0)>=n.noResponseRetries||!r.config.method||0>n.httpMethodsToRetry.indexOf(r.config.method.toUpperCase()))return!1;if(r.response&&r.response.status){for(var o=!1,i=0,s=n.statusCodesToRetry;i<s.length;i+=1){var d=s[i],g=r.response.status;if(g>=d[0]&&g<=d[1]){o=!0;break}}if(!o)return!1}return n.currentRetryAttempt=n.currentRetryAttempt||0,!(n.currentRetryAttempt>=n.retry)}function index_module_i(r){if(r&&r.config)return r.config.raxConfig}var C=o(2742);let I={"Content-Type":"application/json"},A=3e4,T={retry:0,noResponseRetries:3,backoffType:"exponential",retryDelay:100,checkRetryAfter:!1};class j{constructor(r,n=R().create()){this.logger=r,this.config={},this.requestMiddlewares=[],this.responseMiddlewares=[],this.axiosInstance=n,this.axiosInstance.defaults.raxConfig={...T},index_module_r(this.axiosInstance),this.setupInterceptors()}setupInterceptors(){this.axiosInstance.interceptors.request.use(async r=>{let n=r;for(let r of this.requestMiddlewares)n=await r(n);return n}),this.axiosInstance.interceptors.response.use(async r=>{let n=r;for(let{onFulfilled:r}of this.responseMiddlewares)r&&(n=await r(n));return n}),this.axiosInstance.interceptors.response.use(void 0,async r=>{for(let{onRejected:n}of this.responseMiddlewares)try{await n?.(r)}catch(r){this.logger.error(r)}return Promise.reject(r)})}addRequestMiddleware(r){return this.requestMiddlewares.push(r),()=>{this.requestMiddlewares=this.requestMiddlewares.filter(n=>n!==r)}}addResponseMiddleware(r,n){let o={onFulfilled:r,onRejected:n};return this.responseMiddlewares.push(o),()=>{this.responseMiddlewares=this.responseMiddlewares.filter(r=>r!==o)}}init({config:r}){this.config=r}async request({method:r="get",url:n,params:o={},data:i={},headers:s}){try{let d=this.requestInterceptor({method:r,url:n,params:o,data:i,headers:{...I,...s}});return(await this.axiosInstance({baseURL:this.getBaseUrl(),timeout:A,withCredentials:this.shouldUseCredentials(),...d})).data}catch(r){return await this.handleRoutineError(r)}}handleRoutineError(r){if(!r?.response?.data)return Promise.reject(r);let{error_type:n}=r.response.data;if(!n)return Promise.reject(r.response);let{hb_base_error_codes:o}=this.config;o||(0,v.Oz)({logger:this.logger,error:r,message:"hb_base_error_codes is not defined",context:{url:r.response.config?.url,method:r.response.config?.method}});let i=o||v.he;return n===i.unauthorized_error?((0,v.Oz)({logger:this.logger,error:Error(`${i.unauthorized_error}`),message:"Token expired"}),this.onUnauthorizedError(),Promise.reject(new C.BX)):(n===i.wrong_api_version_error&&((0,v.Oz)({logger:this.logger,error:Error(`${i.wrong_api_version_error}`),message:"Wrong server api version, reloading..."}),this.onWrongApiVersion()),Promise.reject(r.response))}requestInterceptor(r){let n=this.getHeaders();return{...r,headers:{...n,...r.headers}}}getBaseUrl(){return(0,b.hY)()}shouldUseCredentials(){return!1}onWrongApiVersion(){window.location.reload()}getHeaders(){let{hb_api_headers:r,api_version:n}=this.config;return r&&n?{[r.api_client_version||""]:n+""}:{}}}let getErrorCode=r=>r?.code;class P extends j{onUnauthorizedError(){localStorage.removeItem(b.lu),window.location.reload()}}},2742(r,n,o){"use strict";let i,s;o.d(n,{BX:()=>v,sb:()=>getNamespaceParts,zM:()=>_});var d,g={};o.r(g),o.d(g,{Decoder:()=>e_,Encoder:()=>em,PacketType:()=>d,isPacketValid:()=>isPacketValid,protocol:()=>eg});class _{constructor(r){this.httpClient=r}}
1class v extends Error{}let b=Object.create(null);b.open="0",b.close="1",b.ping="2",b.pong="3",b.message="4",b.upgrade="5",b.noop="6";let E=Object.create(null);Object.keys(b).forEach(r=>{E[b[r]]=r});let k={type:"error",data:"parser error"},O="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),R="function"==typeof ArrayBuffer,isView=r=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,encodePacket=({type:r,data:n},o,i)=>{if(O&&n instanceof Blob)if(o)return i(n);else return encodeBlobAsBase64(n,i);if(R&&(n instanceof ArrayBuffer||isView(n)))if(o)return i(n);else return encodeBlobAsBase64(new Blob([n]),i);return i(b[r]+(n||""))},encodeBlobAsBase64=(r,n)=>{let o=new FileReader;return o.onload=function(){n("b"+(o.result.split(",")[1]||""))},o.readAsDataURL(r)};function toArray(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}function encodePacketToBinary(r,n){return O&&r.data instanceof Blob?r.data.arrayBuffer().then(toArray).then(n):R&&(r.data instanceof ArrayBuffer||isView(r.data))?n(toArray(r.data)):void encodePacket(r,!1,r=>{i||(i=new TextEncoder),n(i.encode(r))})}let C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let r=0;r<C.length;r++)I[C.charCodeAt(r)]=r;let decode=r=>{let n=.75*r.length,o=r.length,i,s=0,d,g,_,v;"="===r[r.length-1]&&(n--,"="===r[r.length-2]&&n--);let b=new ArrayBuffer(n),E=new Uint8Array(b);for(i=0;i<o;i+=4)d=I[r.charCodeAt(i)],g=I[r.charCodeAt(i+1)],_=I[r.charCodeAt(i+2)],v=I[r.charCodeAt(i+3)],E[s++]=d<<2|g>>4,E[s++]=(15&g)<<4|_>>2,E[s++]=(3&_)<<6|63&v;return b},A="function"==typeof ArrayBuffer,decodePacket=(r,n)=>{if("string"!=typeof r)return{type:"message",data:mapBinary(r,n)};let o=r.charAt(0);return"b"===o?{type:"message",data:decodeBase64Packet(r.substring(1),n)}:E[o]?r.length>1?{type:E[o],data:r.substring(1)}:{type:E[o]}:k},decodeBase64Packet=(r,n)=>A?mapBinary(decode(r),n):{base64:!0,data:r},mapBinary=(r,n)=>"blob"===n?r instanceof Blob?r:new Blob([r]):r instanceof ArrayBuffer?r:r.buffer,T="\x1e",encodePayload=(r,n)=>{let o=r.length,i=Array(o),s=0;r.forEach((r,d)=>{encodePacket(r,!1,r=>{i[d]=r,++s===o&&n(i.join(T))})})},decodePayload=(r,n)=>{let o=r.split(T),i=[];for(let r=0;r<o.length;r++){let s=decodePacket(o[r],n);if(i.push(s),"error"===s.type)break}return i};function createPacketEncoderStream(){return new TransformStream({transform(r,n){encodePacketToBinary(r,o=>{let i,s=o.length;if(s<126)new DataView((i=new Uint8Array(1)).buffer).setUint8(0,s);else if(s<65536){let r=new DataView((i=new Uint8Array(3)).buffer);r.setUint8(0,126),r.setUint16(1,s)}else{let r=new DataView((i=new Uint8Array(9)).buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}r.data&&"string"!=typeof r.data&&(i[0]|=128),n.enqueue(i),n.enqueue(o)})}})}function totalLength(r){return r.reduce((r,n)=>r+n.length,0)}function concatChunks(r,n){if(r[0].length===n)return r.shift();let o=new Uint8Array(n),i=0;for(let s=0;s<n;s++)o[s]=r[0][i++],i===r[0].length&&(r.shift(),i=0);return r.length&&i<r[0].length&&(r[0]=r[0].slice(i)),o}function createPacketDecoderStream(r,n){s||(s=new TextDecoder);let o=[],i=0,d=-1,g=!1;return new TransformStream({transform(_,v){for(o.push(_);;){if(0===i){if(1>totalLength(o))break;let r=concatChunks(o,1);g=(128&r[0])==128,i=(d=127&r[0])<126?3:126===d?1:2}else if(1===i){if(2>totalLength(o))break;let r=concatChunks(o,2);d=new DataView(r.buffer,r.byteOffset,r.length).getUint16(0),i=3}else if(2===i){if(8>totalLength(o))break;let r=concatChunks(o,8),n=new DataView(r.buffer,r.byteOffset,r.length),s=n.getUint32(0);if(s>2097151){v.enqueue(k);break}d=0x100000000*s+n.getUint32(4),i=3}else{if(totalLength(o)<d)break;let r=concatChunks(o,d);v.enqueue(decodePacket(g?r:s.decode(r),n)),i=0}if(0===d||d>r){v.enqueue(k);break}}}})}let j=4;function Emitter(r){if(r)return mixin(r)}function mixin(r){for(var n in Emitter.prototype)r[n]=Emitter.prototype[n];return r}Emitter.prototype.on=Emitter.prototype.addEventListener=function(r,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(n),this},Emitter.prototype.once=function(r,n){function on(){this.off(r,on),n.apply(this,arguments)}return on.fn=n,this.on(r,on),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(r,n){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,i=this._callbacks["$"+r];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+r],this;for(var s=0;s<i.length;s++)if((o=i[s])===n||o.fn===n){i.splice(s,1);break}return 0===i.length&&delete this._callbacks["$"+r],this},Emitter.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var n=Array(arguments.length-1),o=this._callbacks["$"+r],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(o){o=o.slice(0);for(var i=0,s=o.length;i<s;++i)o[i].apply(this,n)}return this},Emitter.prototype.emitReserved=Emitter.prototype.emit,Emitter.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},Emitter.prototype.hasListeners=function(r){return!!this.listeners(r).length};let P="function"==typeof Promise&&"function"==typeof Promise.resolve?r=>Promise.resolve().then(r):(r,n)=>n(r,0),N="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")(),D="arraybuffer";function createCookieJar(){}function pick(r,...n){return n.reduce((n,o)=>(r.hasOwnProperty(o)&&(n[o]=r[o]),n),{})}let F=N.setTimeout,L=N.clearTimeout;function installTimerFunctions(r,n){n.useNativeTimers?(r.setTimeoutFn=F.bind(N),r.clearTimeoutFn=L.bind(N)):(r.setTimeoutFn=N.setTimeout.bind(N),r.clearTimeoutFn=N.clearTimeout.bind(N))}let U=1.33;function byteLength(r){return"string"==typeof r?utf8Length(r):Math.ceil((r.byteLength||r.size)*U)}function utf8Length(r){let n=0,o=0;for(let i=0,s=r.length;i<s;i++)(n=r.charCodeAt(i))<128?o+=1:n<2048?o+=2:n<55296||n>=57344?o+=3:(i++,o+=4);return o}function randomString(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function parseqs_encode(r){let n="";for(let o in r)r.hasOwnProperty(o)&&(n.length&&(n+="&"),n+=encodeURIComponent(o)+"="+encodeURIComponent(r[o]));return n}function parseqs_decode(r){let n={},o=r.split("&");for(let r=0,i=o.length;r<i;r++){let i=o[r].split("=");n[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return n}
1class B extends Error{constructor(r,n,o){super(r),this.description=n,this.context=o,this.type="TransportError"}}class V extends Emitter{constructor(r){super(),this.writable=!1,installTimerFunctions(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,n,o){return super.emitReserved("error",new B(r,n,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(r){"open"===this.readyState&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){let n=decodePacket(r,this.socket.binaryType);this.onPacket(n)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,n={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){let r=this.opts.hostname;return -1===r.indexOf(":")?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(r){let n=parseqs_encode(r);return n.length?"?"+n:""}}class K extends V{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";let pause=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||pause()})),this.writable||(r++,this.once("drain",function(){--r||pause()}))}else pause()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){let callback=r=>{if("opening"===this.readyState&&"open"===r.type&&this.onOpen(),"close"===r.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};decodePayload(r,this.socket.binaryType).forEach(callback),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let close=()=>{this.write([{type:"close"}])};"open"===this.readyState?close():this.once("open",close)}write(r){this.writable=!1,encodePayload(r,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let r=this.opts.secure?"https":"http",n=this.query||{};return!1!==this.opts.timestampRequests&&(n[this.opts.timestampParam]=randomString()),this.supportsBinary||n.sid||(n.b64=1),this.createUri(r,n)}}let H=!1;try{H="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(r){}let G=H;function empty(){}class z extends K{constructor(r){if(super(r),"undefined"!=typeof location){const n="https:"===location.protocol;let o=location.port;o||(o=n?"443":"80"),this.xd="undefined"!=typeof location&&r.hostname!==location.hostname||o!==r.port}}doWrite(r,n){let o=this.request({method:"POST",data:r});o.on("success",n),o.on("error",(r,n)=>{this.onError("xhr post error",r,n)})}doPoll(){let r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=r}}class W extends Emitter{constructor(r,n,o){super(),this.createRequest=r,installTimerFunctions(this,o),this._opts=o,this._method=o.method||"GET",this._uri=n,this._data=void 0!==o.data?o.data:null,this._create()}_create(){var r;let n=pick(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(n);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let r in o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&o.setRequestHeader(r,this._opts.extraHeaders[r])}catch(r){}if("POST"===this._method)try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{o.setRequestHeader("Accept","*/*")}catch(r){}null==(r=this._opts.cookieJar)||r.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var r;3===o.readyState&&(null==(r=this._opts.cookieJar)||r.parseCookies(o.getResponseHeader("set-cookie"))),4===o.readyState&&(200===o.status||1223===o.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof o.status?o.status:0)},0))},o.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}"undefined"!=typeof document&&(this._index=W.requestsCount++,W.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=empty,r)try{this._xhr.abort()}catch(r){}"undefined"!=typeof document&&delete W.requests[this._index],this._xhr=null}}_onLoad(){let r=this._xhr.responseText;null!==r&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function unloadHandler(){for(let r in W.requests)W.requests.hasOwnProperty(r)&&W.requests[r].abort()}W.requestsCount=0,W.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",unloadHandler):"function"==typeof addEventListener&&addEventListener("onpagehide"in N?"pagehide":"unload",unloadHandler,!1));let J=function(){let r=newRequest({xdomain:!1});return r&&null!==r.responseType}();class Y extends z{constructor(r){super(r);const n=r&&r.forceBase64;this.supportsBinary=J&&!n}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new W(newRequest,this.uri(),r)}}function newRequest(r){let n=r.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!n||G))return new XMLHttpRequest}catch(r){}if(!n)try{return new N[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(r){}}let X="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Q extends V{get name(){return"websocket"}doOpen(){let r=this.uri(),n=this.opts.protocols,o=X?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,n,o)}catch(r){return this.emitReserved("error",r)}
1this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let n=0;n<r.length;n++){let o=r[n],i=n===r.length-1;encodePacket(o,this.supportsBinary,r=>{try{this.doWrite(o,r)}catch(r){}i&&P(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let r=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=randomString()),this.supportsBinary||(n.b64=1),this.createUri(r,n)}}let Z=N.WebSocket||N.MozWebSocket;class ee extends Q{createSocket(r,n,o){return X?new Z(r,n,o):n?new Z(r,n):new Z(r)}doWrite(r,n){this.ws.send(n)}}class et extends V{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{let n=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=r.readable.pipeThrough(n).getReader(),i=createPacketEncoderStream();i.readable.pipeTo(r.writable),this._writer=i.writable.getWriter();let read=()=>{o.read().then(({done:r,value:n})=>{r||(this.onPacket(n),read())}).catch(r=>{})};read();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let n=0;n<r.length;n++){let o=r[n],i=n===r.length-1;this._writer.write(o).then(()=>{i&&P(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;null==(r=this._transport)||r.close()}}let er={websocket:ee,webtransport:et,polling:Y},en=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,eo=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(r){if(r.length>8e3)throw"URI too long";let n=r,o=r.indexOf("["),i=r.indexOf("]");-1!=o&&-1!=i&&(r=r.substring(0,o)+r.substring(o,i).replace(/:/g,";")+r.substring(i,r.length));let s=en.exec(r||""),d={},g=14;for(;g--;)d[eo[g]]=s[g]||"";return -1!=o&&-1!=i&&(d.source=n,d.host=d.host.substring(1,d.host.length-1).replace(/;/g,":"),d.authority=d.authority.replace("[","").replace("]","").replace(/;/g,":"),d.ipv6uri=!0),d.pathNames=pathNames(d,d.path),d.queryKey=queryKey(d,d.query),d}function pathNames(r,n){let o=/\/{2,9}/g,i=n.replace(o,"/").split("/");return("/"==n.slice(0,1)||0===n.length)&&i.splice(0,1),"/"==n.slice(-1)&&i.splice(i.length-1,1),i}function queryKey(r,n){let o={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,n,i){n&&(o[n]=i)}),o}let ei="function"==typeof addEventListener&&"function"==typeof removeEventListener,ea=[];ei&&addEventListener("offline",()=>{ea.forEach(r=>r())},!1);class es extends Emitter{constructor(r,n){if(super(),this.binaryType=D,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&"object"==typeof r&&(n=r,r=null),r){const o=parse(r);n.hostname=o.host,n.secure="https"===o.protocol||"wss"===o.protocol,n.port=o.port,o.query&&(n.query=o.query)}else n.host&&(n.hostname=parse(n.host).host);installTimerFunctions(this,n),this.secure=null!=n.secure?n.secure:"undefined"!=typeof location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=n.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={}
vendor: 6,326 bytes, line 1
1,n.transports.forEach(r=>{let n=r.prototype.name;this.transports.push(n),this._transportsByName[n]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=parseqs_decode(this.opts.query)),ei&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ea.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=createCookieJar()),this._open()}createTransport(r){let n=Object.assign({},this.opts.query);n.EIO=j,n.transport=r,this.id&&(n.sid=this.id);let o=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](o)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let r=this.opts.rememberUpgrade&&es.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let n=this.createTransport(r);n.open(),this.setTransport(n)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",es.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(r){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let n=Error("server error");n.code=r.data,this._onError(n);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data)}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=byteLength(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,P(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,n,o){return this._sendPacket("message",r,n,o),this}send(r,n,o){return this._sendPacket("message",r,n,o),this}_sendPacket(r,n,o,i){if("function"==typeof n&&(i=n,n=void 0),"function"==typeof o&&(i=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;let s={type:r,data:n,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){let close=()=>{this._onClose("forced close"),this.transport.close()},cleanupAndClose=()=>{this.off("upgrade",cleanupAndClose),this.off("upgradeError",cleanupAndClose),close()},waitForUpgrade=()=>{this.once("upgrade",cleanupAndClose),this.once("upgradeError",cleanupAndClose)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?waitForUpgrade():close()}):this.upgrading?waitForUpgrade():close()),this}_onError(r){if(es.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,n){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ei&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=ea.indexOf(this._offlineEventListener);-1!==r&&ea.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,n),this.writeBuffer=[],this._prevBufferLen=0}}}es.protocol=j;class el extends es{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let n=this.createTransport(r),o=!1;es.priorWebsocketSuccess=!1;let onTransportOpen=()=>{o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",r=>{if(!o)if("pong"===r.type&&"probe"===r.data){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;es.priorWebsocketSuccess="websocket"===n.name,this.transport.pause(()=>{o||"closed"!==this.readyState&&(cleanup(),this.setTransport(n),n.send([{type:"upgrade"}
1]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let r=Error("probe error");r.transport=n.name,this.emitReserved("upgradeError",r)}}))};function freezeTransport(){o||(o=!0,cleanup(),n.close(),n=null)}let onerror=r=>{let o=Error("probe error: "+r);o.transport=n.name,freezeTransport(),this.emitReserved("upgradeError",o)};function onTransportClose(){onerror("transport closed")}function onclose(){onerror("socket closed")}function onupgrade(r){n&&r.name!==n.name&&freezeTransport()}let cleanup=()=>{n.removeListener("open",onTransportOpen),n.removeListener("error",onerror),n.removeListener("close",onTransportClose),this.off("close",onclose),this.off("upgrading",onupgrade)};n.once("open",onTransportOpen),n.once("error",onerror),n.once("close",onTransportClose),this.once("close",onclose),this.once("upgrading",onupgrade),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==r?this.setTimeoutFn(()=>{o||n.open()},200):n.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){let n=[];for(let o=0;o<r.length;o++)~this.transports.indexOf(r[o])&&n.push(r[o]);return n}}class eu extends el{constructor(r,n={}){const o="object"==typeof r?r:n;(!o.transports||o.transports&&"string"==typeof o.transports[0])&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(r=>er[r]).filter(r=>!!r)),super(r,o)}}function url(r,n="",o){let i=r;o=o||"undefined"!=typeof location&&location,null==r&&(r=o.protocol+"//"+o.host),"string"==typeof r&&("/"===r.charAt(0)&&(r="/"===r.charAt(1)?o.protocol+r:o.host+r),/^(https?|wss?):\/\//.test(r)||(r=void 0!==o?o.protocol+"//"+r:"https://"+r),i=parse(r)),!i.port&&(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";let s=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+n,i.href=i.protocol+"://"+s+(o&&o.port===i.port?"":":"+i.port),i}eu.protocol;let ec="function"==typeof ArrayBuffer,is_binary_isView=r=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,ed=Object.prototype.toString,ef="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ed.call(Blob),eh="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ed.call(File);function is_binary_isBinary(r){return ec&&(r instanceof ArrayBuffer||is_binary_isView(r))||ef&&r instanceof Blob||eh&&r instanceof File}function hasBinary(r,n){if(!r||"object"!=typeof r)return!1;if(Array.isArray(r)){for(let n=0,o=r.length;n<o;n++)if(hasBinary(r[n]))return!0;return!1}if(is_binary_isBinary(r))return!0;if(r.toJSON&&"function"==typeof r.toJSON&&1==arguments.length)return hasBinary(r.toJSON(),!0);for(let n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&hasBinary(r[n]))return!0;return!1}function deconstructPacket(r){let n=[],o=r.data,i=r;return i.data=_deconstructPacket(o,n),i.attachments=n.length,{packet:i,buffers:n}}function _deconstructPacket(r,n){if(!r)return r;if(is_binary_isBinary(r)){let o={_placeholder:!0,num:n.length};return n.push(r),o}if(Array.isArray(r)){let o=Array(r.length);for(let i=0;i<r.length;i++)o[i]=_deconstructPacket(r[i],n);return o}if("object"==typeof r&&!(r instanceof Date)){let o={};for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=_deconstructPacket(r[i],n));return o}return r}function reconstructPacket(r,n){return r.data=_reconstructPacket(r.data,n),delete r.attachments,r}function _reconstructPacket(r,n){if(!r)return r;if(r&&!0===r._placeholder){if("number"==typeof r.num&&r.num>=0&&r.num<n.length)return n[r.num];throw Error("illegal attachments")}if(Array.isArray(r))for(let o=0;o<r.length;o++)r[o]=_reconstructPacket(r[o],n);else if("object"==typeof r)for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(r[o]=_reconstructPacket(r[o],n));return r}let ep=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eg=5;!function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"}(d||(d={}));class em{constructor(r){this.replacer=r}encode(r){return(r.type===d.EVENT||r.type===d.ACK)&&hasBinary(r)?this.encodeAsBinary({type:r.type===d.EVENT?d.BINARY_EVENT:d.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let n=""+r.type;return(r.type===d.BINARY_EVENT||r.type===d.BINARY_ACK)&&(n+=r.attachments+"-"),r.nsp&&"/"!==r.nsp&&(n+=r.nsp+","),null!=r.id&&(n+=r.id),null!=r.data&&(n+=JSON.stringify(r.data,this.replacer)),n}encodeAsBinary(r){let n=deconstructPacket(r),o=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(o),i}}
1class e_ extends Emitter{constructor(r){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof r?{reviver:r}:r)}add(r){let n;if("string"==typeof r){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let o=(n=this.decodeString(r)).type===d.BINARY_EVENT;o||n.type===d.BINARY_ACK?(n.type=o?d.EVENT:d.ACK,this.reconstructor=new ey(n),0===n.attachments&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(is_binary_isBinary(r)||r.base64)if(this.reconstructor)(n=this.reconstructor.takeBinaryData(r))&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+r)}decodeString(r){let n=0,o={type:Number(r.charAt(0))};if(void 0===d[o.type])throw Error("unknown packet type "+o.type);if(o.type===d.BINARY_EVENT||o.type===d.BINARY_ACK){let i=n+1;for(;"-"!==r.charAt(++n)&&n!=r.length;);let s=r.substring(i,n);if(s!=Number(s)||"-"!==r.charAt(n))throw Error("Illegal attachments");let d=Number(s);if(!ev(d)||d<0)throw Error("Illegal attachments");if(d>this.opts.maxAttachments)throw Error("too many attachments");o.attachments=d}if("/"===r.charAt(n+1)){let i=n+1;for(;++n&&","!==r.charAt(n)&&n!==r.length;);o.nsp=r.substring(i,n)}else o.nsp="/";let i=r.charAt(n+1);if(""!==i&&Number(i)==i){let i=n+1;for(;++n;){let o=r.charAt(n);if(null==o||Number(o)!=o){--n;break}if(n===r.length)break}o.id=Number(r.substring(i,n+1))}if(r.charAt(++n)){let i=this.tryParse(r.substr(n));if(e_.isPayloadValid(o.type,i))o.data=i;else throw Error("invalid payload")}return o}tryParse(r){try{return JSON.parse(r,this.opts.reviver)}catch(r){return!1}}static isPayloadValid(r,n){switch(r){case d.CONNECT:return isObject(n);case d.DISCONNECT:return void 0===n;case d.CONNECT_ERROR:return"string"==typeof n||isObject(n);case d.EVENT:case d.BINARY_EVENT:return Array.isArray(n)&&("number"==typeof n[0]||"string"==typeof n[0]&&-1===ep.indexOf(n[0]));case d.ACK:case d.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ey{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){let r=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function isNamespaceValid(r){return"string"==typeof r}let ev=Number.isInteger||function(r){return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r};function isAckIdValid(r){return void 0===r||ev(r)}function isObject(r){return"[object Object]"===Object.prototype.toString.call(r)}function isDataValid(r,n){switch(r){case d.CONNECT:return void 0===n||isObject(n);case d.DISCONNECT:return void 0===n;case d.EVENT:return Array.isArray(n)&&("number"==typeof n[0]||"string"==typeof n[0]&&-1===ep.indexOf(n[0]));case d.ACK:return Array.isArray(n);case d.CONNECT_ERROR:return"string"==typeof n||isObject(n);default:return!1}}function isPacketValid(r){return isNamespaceValid(r.nsp)&&isAckIdValid(r.id)&&isDataValid(r.type,r.data)}function on_on(r,n,o){return r.on(n,o),function(){r.off(n,o)}}let eb=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eS extends Emitter{constructor(r,n,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=n,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let r=this.io;this.subs=[on_on(r,"open",this.onopen.bind(this)),on_on(r,"packet",this.onpacket.bind(this)),on_on(r,"error",this.onerror.bind(this)),on_on(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...n){var o,i,s;if(eb.hasOwnProperty(r))throw Error('"'+r.toString()+'" is a reserved event name');if(n.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let g={type:d.EVENT,data:n};if(g.options={},g.options.compress=!1!==this.flags.compress,"function"==typeof n[n.length-1]){let r=this.ids++,o=n.pop();this._registerAckCallback(r,o),g.id=r}let _=null==(i=null==(o=this.io.engine)?void 0:o.transport)?void 0:i.writable,v=this.connected&&!(null==(s=this.io.engine)?void 0:s._hasPingExpired());return this.flags.volatile&&!_||(v?(this.notifyOutgoingListeners(g),this.packet(g)):this.sendBuffer.push(g)),this.flags={},this}_registerAckCallback(r,n){var o;let i=null!=(o=this.flags.timeout)?o:this._opts.ackTimeout;if(void 0===i){this.acks[r]=n;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let n=0;n<this.sendBuffer.length;n++)this.sendBuffer[n].id===r&&this.sendBuffer.splice(n,1);n.call(this,Error("operation has timed out"))},i),fn=(...r)=>{this.io.clearTimeoutFn(s),n.apply(this,r)};fn.withError=!0,this.acks[r]=fn}emitWithAck(r,...n){return new Promise((o,i)=>{let fn=(r,n)=>r?i(r):o(n);
1fn.withError=!0,n.push(fn),this.emit(r,...n)})}_addToQueue(r){let n;"function"==typeof r[r.length-1]&&(n=r.pop());let o={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((r,...i)=>{if(o===this._queue[0])return null!==r?o.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(r)):(this._queue.shift(),n&&n(null,...i)),o.pending=!1,this._drainQueue()}),this._queue.push(o),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||0===this._queue.length)return;let n=this._queue[0];(!n.pending||r)&&(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){"function"==typeof this.auth?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:d.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,n),this._clearAcks()}
1_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(n=>String(n.id)===r)){let n=this.acks[r];delete this.acks[r],n.withError&&n.call(this,Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case d.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case d.EVENT:case d.BINARY_EVENT:this.onevent(r);break;case d.ACK:case d.BINARY_ACK:this.onack(r);break;case d.DISCONNECT:this.ondisconnect();break;case d.CONNECT_ERROR:this.destroy();let n=Error(r.data.message);n.data=r.data.data,this.emitReserved("connect_error",n)}}onevent(r){let n=r.data||[];null!=r.id&&n.push(this.ack(r.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length)for(let n of this._anyListeners.slice())n.apply(this,r);super.emit.apply(this,r),this._pid&&r.length&&"string"==typeof r[r.length-1]&&(this._lastOffset=r[r.length-1])}ack(r){let n=this,o=!1;return function(...i){o||(o=!0,n.packet({type:d.ACK,id:r,data:i}))}}onack(r){let n=this.acks[r.id];"function"==typeof n&&(delete this.acks[r.id],n.withError&&r.data.unshift(null),n.apply(this,r.data))}onconnect(r,n){this.id=r,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:d.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){let n=this._anyListeners;for(let o=0;o<n.length;o++)if(r===n[o]){n.splice(o,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){let n=this._anyOutgoingListeners;for(let o=0;o<n.length;o++)if(r===n[o]){n.splice(o,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let n of this._anyOutgoingListeners.slice())n.apply(this,r.data)}}function Backoff(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),o=Math.floor(n*this.jitter*r);r=(1&Math.floor(10*n))==0?r-o:r+o}return 0|Math.min(r,this.max)},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function(r){this.ms=r},Backoff.prototype.setMax=function(r){this.max=r},Backoff.prototype.setJitter=function(r){this.jitter=r};class eE extends Emitter{constructor(r,n){var o;super(),this.nsps={},this.subs=[],r&&"object"==typeof r&&(n=r,r=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,installTimerFunctions(this,n),this.reconnection(!1!==n.reconnection),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(o=n.randomizationFactor)?o:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this._readyState="closed",this.uri=r;const i=n.parser||g;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==n.autoConnect,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return void 0===r?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var n;return void 0===r?this._reconnectionDelay:(this._reconnectionDelay=r,null==(n=this.backoff)||n.setMin(r),this)}randomizationFactor(r){var n;return void 0===r?this._randomizationFactor:(this._randomizationFactor=r,null==(n=this.backoff)||n.setJitter(r),this)}reconnectionDelayMax(r){var n;return void 0===r?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,null==(n=this.backoff)||n.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new eu(this.uri,this.opts);let n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let i=on_on(n,"open",function(){o.onopen(),r&&r()}),onError=n=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",n),r?r(n):this.maybeReconnectOnOpen()},s=on_on(n,"error",onError);if(!1!==this._timeout){let r=this._timeout,o=this.setTimeoutFn(()=>{i(),onError(Error("timeout")),n.close()},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}return this.subs.push(i),this.subs.push(s),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let r=this.engine;this.subs.push(on_on(r,"ping",this.onping.bind(this)),on_on(r,"data",this.ondata.bind(this)),on_on(r,"error",this.onerror.bind(this)),on_on(r,"close",this.onclose.bind(this)),on_on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(r){this.onclose("parse error",r)}}ondecoded(r){P(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,n){let o=this.nsps[r];return o?this._autoConnect&&!o.active&&o.connect():(o=new eS(this,r,n),this.nsps[r]=o),o}_destroy(r){for(let r of Object.keys(this.nsps))if(this.nsps[r].active)return;this._close()}_packet(r){let n=this.encoder.encode(r);for(let o=0;o<n.length;o++)this.engine.write(n[o],r.options)}
1cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,n){var o;this.cleanup(),null==(o=this.engine)||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let o=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),r.skipReconnect||r.open(n=>{n?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",n)):r.onreconnect()}))},n);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){let r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}let ew={};function esm_lookup(r,n){let o;"object"==typeof r&&(n=r,r=void 0);let i=url(r,(n=n||{}).path||"/socket.io"),s=i.source,d=i.id,g=i.path,_=ew[d]&&g in ew[d].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||_?o=new eE(s,n):(ew[d]||(ew[d]=new eE(s,n)),o=ew[d]),i.query&&!n.query&&(n.query=i.queryKey),o.socket(i.path,n)}Object.assign(esm_lookup,{Manager:eE,Socket:eS,io:esm_lookup,connect:esm_lookup});let ek={companyId:"company",userId:"user",workspaceId:"workspace",broadcast:"broadcast"},getNamespaceParts=r=>{let n=Object.keys(r)[0];return{namespaceName:ek[n],namespaceId:r[n]}};class eO extends Error{}function b64DecodeUnicode(r){return decodeURIComponent(atob(r).replace(/(.)/g,(r,n)=>{let o=n.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}eO.prototype.name="InvalidTokenError"},7642(r,n,o){"use strict";o.d(n,{K:()=>E,b:()=>dist_RemoteComponentLoader});var i=o(1594),s=o.n(i),d=o(6608);let dist_MfeErrorFallback=function({appData:r}){return(0,d.KV)()?null:s().createElement("div",{style:{padding:20,color:"red"}},s().createElement("h2",null,"Failed to load remote MFE: ",r.name),s().createElement("p",null,"Make sure the dev server is running (port"," ",r.devServer?.port,")."))};var g=o(8488);async function registerAndLoadRemote(r,n){(0,g.registerRemotes)([{name:r.name,entry:`${n.publicPath}${n.entryFileName}`}]);let o=await (0,g.loadRemote)(`${r.name}/${r.rootModule.name}`);if(o?.default)return Object.assign((0,i.lazy)(o.default),{displayName:r.rootModule.name})}let _="/manifests/";function withCacheBuster(r){return`${r}?t=${Date.now()}`}async function fetchRemoteManifestData(r){let n,o,{manifestFileName:i,devServer:s}=r,g="undefined"!=typeof window&&"https:"===window.location.protocol?"https":"http",v=`${g}://localhost`,b=`${g}://${d.zn}`,E=`${v}:${s.port+(0,d.yR)()}/`;(0,d.hE)()?(n=`${b}/`,o=`${b}/`):(0,d.KV)()?(n=_,o=null):(n=E,o=E);try{let r=await fetch(withCacheBuster(`${n}${i}`),{cache:"no-store"});if(!r.ok)throw Error(`Failed to fetch manifest: ${r.statusText}`);let s=await r.json(),g=(0,d.KV)()?s.metaData.publicPath:o;return{entryFileName:s.metaData.remoteEntry.name,buildVersion:s.metaData.buildInfo.buildVersion,publicPath:g}}catch(r){return console.error("Error fetching remote manifest:",r),null}}function useRemoteComponent({appData:r,onInit:n,onLoaded:o}){let{name:s,manifestFileName:d,rootModule:g,devServer:_}=r,[v,b]=(0,i.useState)(null),[E,k]=(0,i.useState)(!0),[O,R]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{n?.(r)},[]),(0,i.useEffect)(()=>{let n=!1;return async function(){try{let i=await fetchRemoteManifestData(r);if(n)return;if(!i){console.error("Failed to load remote component"),R(!0),k(!1);return}let s=await registerAndLoadRemote(r,i);if(n)return;if(!s){console.error("Failed to load remote component"),R(!0),k(!1);return}o?.({appData:r,buildVersion:i.buildVersion}),b(()=>s),k(!1)}catch(r){if(n)return;console.error("Error loading remote component:",r),R(!0),k(!1)}}(),()=>{n=!0}},[_,d,s,g]),{Component:v,loading:E,hasError:O}}var v=o(9045);class b extends s().Component{constructor(){super(...arguments),this.logger=new v.gP({messagePrefix:"[MfeLoader]"}),this.state={error:null}}static{this.SKEW_MESSAGE_PATTERN=/\[ Federation Runtime \][\s\S]*does not satisfy the requirement/}static{this.LAST_RELOAD_KEY="hb:mf-stale-reload"}static{this.RELOAD_GUARD_WINDOW_MS=15e3}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r){this.canRecover(r)&&(this.logger.error("stale shared-singleton version skew detected — reloading once to recover",{mf_error_message:r.message}),this.markReloaded(),window.location.reload())}render(){let{error:r}=this.state;if(r){if(this.canRecover(r))return null;throw r}return this.props.children}canRecover(r){return this.isStaleSharedSingletonError(r)&&!this.reloadedRecently()&&!this.isReloadedNavigation()}isReloadedNavigation(){try{let[r]=window.performance?.getEntriesByType?.("navigation")??[];return r?.type==="reload"}catch{return!1}}isStaleSharedSingletonError(r){return r instanceof Error&&b.SKEW_MESSAGE_PATTERN.test(r.message)}reloadedRecently(){try{let r=Number(window.sessionStorage.getItem(b.
1LAST_RELOAD_KEY));return Number.isFinite(r)&&Date.now()-r<b.RELOAD_GUARD_WINDOW_MS}catch{return!0}}markReloaded(){try{window.sessionStorage.setItem(b.LAST_RELOAD_KEY,String(Date.now()))}catch{}}}let E=b,dist_RemoteComponentLoader=function({appData:r,fallback:n,loadingIndicator:o,onInit:d,onLoaded:g,componentProps:_}){let{Component:v,hasError:b}=useRemoteComponent({appData:r,onInit:d,onLoaded:g}),k=o?s().createElement(s().Fragment,null,o):s().createElement("div",null,"Loading...");return v?s().createElement(E,null,s().createElement(i.Suspense,{fallback:k},s().createElement(v,{..._}))):b?n?s().createElement(s().Fragment,null,n):s().createElement(dist_MfeErrorFallback,{appData:r}):k}},6608(r,n,o){"use strict";o.d(n,{Ky:()=>amendConfigUrlsForDevCluster,zn:()=>I,zx:()=>getScreenResolution,KV:()=>environment_utils_isProduction,Ri:()=>getCookie,bM:()=>getViewportResolution,nS:()=>getMobileDevice,fC:()=>isInAppBrowser,yz:()=>environment_utils_isDevelopment,hY:()=>getApiBaseUrl,yR:()=>getDevPortOffset,DK:()=>getViewportWidth,Jl:()=>isExtensionEnabled,er:()=>D,ew:()=>getIsInIframe,hE:()=>isHbDevServer,zS:()=>isTesting,k0:()=>loadScript,aX:()=>extractDomain,TV:()=>setCookie,Jj:()=>C,Bn:()=>getMobileOs,lu:()=>P,mJ:()=>getViewportHeight}),function(r){r.Production="production",r.Staging="staging",r.Development="development"}(i||(i={})),function(r){r.Production="production",r.Staging="staging",r.Development="development"}(s||(s={}));var i,s,d,g=o(8605);let _=/cx-staging-.+hbdev.io/,v=/hb-mx-staging-.+.(web.preview.stg-us-east-1-v7|web.e2e.stg-us-east-1-v7).hbdev.io/,b=/hb-app-staging-.+.(web.preview.stg-us-east-1-v7|web.e2e.stg-us-east-1-v7).hbdev.io/,E="cx-staging",k="app-staging",O="https://api.hbqa.dev";function extractDomain(r){if(r)try{return new URL(r).hostname}catch{return}}function getStagingApiBaseUrl(){return v.test(window.location.href)?"https://"+window.location.hostname.replace("hb-mx-staging-","hb-app-staging-").replace(".web.",".api."):b.test(window.location.href)?"https://"+window.location.hostname.replace(".web.",".api."):_.test(window.location.href)?getStagingCXApiBaseUrl():getStagingQAApiBaseUrl()}function getStagingCXApiBaseUrl(){return`${window.location.protocol}//${window.location.host.replace(E,k)}/`.replace(".web.",".api.")}function getStagingQAApiBaseUrl(){return O}function getDevPortOffset(){try{let r=Number("0");return Number.isFinite(r)?r:0}catch(r){return 0}}let R=7100,C=`localhost:${R+getDevPortOffset()}`,I="localhost:3030",A=/^(https?:\/\/)localhost:71\d{2}(?=[/?#]|$)/;function amendConfigUrlsForDevCluster(r){let n=`$1${C}`,o=r.url?.replace(A,n),i=r.app_url?.replace(A,n);return o===r.url&&i===r.app_url?r:{...r,url:o,app_url:i}}function environment_utils_isProduction(){return!0}function environment_utils_isDevelopment(){return!1}function isTesting(){return!1}function getEnvironment(){let r,n,{hostname:o}=new URL(window.location.href),i=o.split(".");return i.length>1?(r=i.shift(),n=i.join(".")):n=i.shift(),calculateEnvironment(n,r)}function getApiBaseUrl(){let r=getEnvironment();if(!r)return"";switch(r.environment){case i.Production:return"https://api.honeybook.com";case i.Development:return"";case i.Staging:return getStagingApiBaseUrl();default:return""}}function calculateEnvironment(r,n){let o=getEnvironmentByDomain(r,n);return{domain:r,prefix:n,environment:o}}function getEnvironmentByDomain(r,n){if("app"===n&&"hbqa.dev"===r||/^hb-app-staging-.+$/.test(r)||/^hb-mx-staging-.+$/.test(r)||/^hb-cx-staging-.+$/.test(r))return i.Staging;switch(r){case"hbportal.co":return i.Production;case"web.e2e.stg-us-east-1-v7.hbdev.io":case"web.preview.stg-us-east-1-v7.hbdev.io":case"api.e2e.stg-us-east-1-v7.hbdev.io":case"api.preview.stg-us-east-1-v7.hbdev.io":case"ws.e2e.stg-us-east-1-v7.hbdev.io":case"ws.preview.stg-us-east-1-v7.hbdev.io":case"e2e.hbdev.io":case"stg.hbdev.io":case"hb-site-dev.com":return i.Staging;case"localhost":case"localhost:3000":case"lvh.me":case"ngrok-free.app":case"ngrok.app":return i.Development;default:return getEnvironmentFromUrl()}}function getEnvironmentFromUrl(){let{env:r}=g.parse(window.location.search);return r===i.Staging?i.Staging:i.Production}!function(r){r.Staging="staging",r.Production="production",r.Local="local",r.RemoteDev="remoteDev"}(d||(d={}));let getIsInIframe=()=>window.self!==window.top;function isHbDevServer(){try{return!1}catch(r){return!1}}function getStgEnvFromEnvVar(){}let T="e2e_nonce";function getCXConfigDomain(r,n){return n!==CXEnvironments.Development||r.indexOf("ngrok")>-1?r:C}function getCXEnvironmentByDomain(r,n){if("app"===n&&"hbqa.dev"===r||/^hb-app-staging-.+$/.test(r)||/^hb-mx-staging-.+$/.test(r)||/^hb-cx-staging-.+$/.test(r))return CXEnvironments.Staging;switch(r){case"hbportal.co":return CXEnvironments.Production;case"web.e2e.stg-us-east-1-v7.hbdev.io":case"web.preview.stg-us-east-1-v7.hbdev.io":case"api.e2e.stg-us-east-1-v7.hbdev.io":case"api.preview.stg-us-east-1-v7.hbdev.io":case"ws.e2e.stg-us-east-1-v7.hbdev.io":case"ws.preview.stg-us-east-1-v7.hbdev.io":case"e2e.hbdev.io":case"stg.hbdev.io":case"hb-site-dev.com":return CXEnvironments.Staging;case"localhost":case"localhost:3000":case C:case"lvh.me":case"ngrok-free.app":case"ngrok.app":return CXEnvironments.Development;default:return getCXEnvironmentFromUrl()}}function getCXEnvironmentFromUrl(){let{env:r}=queryString.parse(window.location.search);return r===CXEnvironments.Staging?CXEnvironments.Staging:CXEnvironments.Production}let isBrowserEnvironment=()=>"undefined"!=typeof window,setCookie=({cookieName:r,cookieValue:n,expirationDays:o=365,domain:i})=>{if(isBrowserEnvironment())try{let s=new Date;s.setTime(s.getTime()+24*o*36e5);let d=`expires=${s.toUTCString()}`,g=`${r}=${encodeURIComponent(n)};${d};path=/;`;i&&(g+=`domain=${i};`),g+="SameSite=Lax;",document.cookie=g}
1catch(n){console.error("Failed to set cookie",{cookieName:r,domain:i,error:n})}},getCookie=r=>{if("undefined"==typeof document||!r)return null;let n=document.cookie?.split(";").map(r=>r.trim()).find(n=>n.startsWith(`${r}=`));if(!n)return null;let o=n.substring(r.length+1);try{return decodeURIComponent(o)}catch{return o}};location.pathname.includes("/template/view")||location.pathname.includes("/template-preview");async function loadScript(r){return new Promise(n=>{let o="data-loaded",i=document.querySelector(`script#${r.id}`);if(i)return void(i.hasAttribute(o)?n():addLoadListener(i));let s=document.createElement("script");for(let[n,o]of Object.entries(r))"textContent"===n?s.textContent=String(o):"boolean"==typeof o?o?s.setAttribute(n,""):s.removeAttribute(n):s.setAttribute(n,String(o));function addLoadListener(r){r.addEventListener("load",()=>{r.setAttribute(o,""),n()},{once:!0})}addLoadListener(s),document.head.appendChild(s)})}function isInAppBrowser(){return!!window&&!!window.isHBInAppBrowser}function getMobileDevice(){let r={Android:/Android/i,BlackBerry:/BlackBerry/i,iPhone:/iPhone/i,iPad:/iPad/i,iPod:/iPod/i,Opera:/Opera Mini/i,Windows:/IEMobile/i};for(let n in r)if(navigator.userAgent.match(r[n]))return n}function getMobileOs(){let r=navigator.userAgent;if(/iPad|iPhone|iPod/.test(r)){let n=r.indexOf("OS ");return{mobileOs:"iOS",iosVersion:n>-1?r.substring(n+3,r.indexOf(" ",n+3)).replace(/_/g,"."):void 0}}if(/Android/.test(r)){let n=r.indexOf("Android ");return{mobileOs:"Android",androidVersion:n>-1?r.substring(n+8,r.indexOf(";",n+8)):void 0}}return{}}function isExtensionEnabled(r){return"poper-blocker"===r&&("BetterJsPop"in window||"pbExternalCommand"in window)}let j=null,isInBrowserContext=()=>"undefined"!=typeof window;function getScreenResolution(){if(isInBrowserContext()){let r=window.screen.width,n=window.screen.height;j=`${Math.min(r,n)}x${Math.max(r,n)}`}else j="N/A";return j}function getViewportResolution(){if(isInBrowserContext()){let r=window.innerWidth,n=window.innerHeight;return`${Math.min(r,n)}x${Math.max(r,n)}`}return"N/A"}function getViewportWidth(){return isInBrowserContext()?window.innerWidth:null}function getViewportHeight(){return isInBrowserContext()?window.innerHeight:null}o(607);let P="HONEYBOOK_REACT_CURR_USER";function js_cookie_assign(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)r[i]=o[i]}return r}function init(r,n){function set(o,i,s){if("undefined"!=typeof document){s=js_cookie_assign({},n,s),"number"==typeof s.expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var g in s)s[g]&&(d+="; "+g,!0!==s[g]&&(d+="="+s[g].split(";")[0]));return document.cookie=o+"="+r.write(i,o)+d}}return Object.create({set,get:function(n){if("undefined"!=typeof document&&(!arguments.length||n)){for(var o=document.cookie?document.cookie.split("; "):[],i={},s=0;s<o.length;s++){var d=o[s].split("="),g=d.slice(1).join("=");try{var _=decodeURIComponent(d[0]);if(i[_]=r.read(g,_),n===_)break}catch(r){}}return n?i[n]:i}}
1,remove:function(r,n){set(r,"",js_cookie_assign({},n,{expires:-1}))},withAttributes:function(r){return init(this.converter,js_cookie_assign({},this.attributes,r))},withConverter:function(r){return init(js_cookie_assign({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}init({read:function(r){return'"'===r[0]&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let N="hb_marketing_storage_";function transformJsonData(r){try{return JSON.parse(r)}catch{return r}}let getCookiesByPrefix=(r,n)=>{let o={};if("undefined"==typeof document)return o;try{let n=Cookies.get();Object.entries(n).forEach(([n,i])=>{n&&i&&n.startsWith(r)&&(o[n]=i)})}catch(r){n?.error(r,{message:"Failed to read cookies"})}return o};class D{constructor(r={}){this.inflightRequests={},this.concurrentRequestCounts={},this.onConcurrentRequests=r.onConcurrentRequests,this.concurrentThreshold=r.concurrentThreshold??2}deduplicate(r,n){if(!r)return n();if(this.inflightRequests[r])return this.concurrentRequestCounts[r]=(this.concurrentRequestCounts[r]||1)+1,this.inflightRequests[r];this.concurrentRequestCounts[r]=1;let o=this.inflightRequests,i=this.concurrentRequestCounts;return this.inflightRequests[r]=(async()=>{try{return await n()}finally{i[r]>this.concurrentThreshold&&this.onConcurrentRequests&&this.onConcurrentRequests(r,i[r]),delete o[r],delete i[r]}})(),this.inflightRequests[r]}isInflight(r){return!!this.inflightRequests[r]}clear(){this.inflightRequests={},this.concurrentRequestCounts={}}}},7138(r,n,o){"use strict";o.d(n,{M9:()=>A,$k:()=>tryParseToJsonString,ny:()=>safeJsonClone,Oz:()=>error_utils_trackError,he:()=>R});var i,s,d,g,_,v,b,E=o(8431),k=o.n(E);o(2504);var O=o(5485);let isDevelopment=()=>!1,isTesting=()=>!1;function error_utils_trackError({error:r,message:n,logger:o,context:i={}}){let s,d;if(r instanceof Error)r instanceof O.AxiosError&&(Object.assign(i,{url:r.config?.url,method:r.config?.method}),r.response&&Object.assign(i,{status:r.response.status,statusText:r.response.statusText,errorType:r.response.data?.error_type,errorMessage:r.response.data?.error_message,errorData:r.response.data?.error_data,errorNote:r.response.data?.note,isTimeout:r.response.data?.is_timeout,msgToUserOnlyOnNonProd:r.response.data?.msg_to_user_only_on_non_prod,baseURL:r.config?.baseURL,fullRequestUrl:r.config?.baseURL&&r.config?.url?`${r.config.baseURL}${r.config.url}`:r.config?.url}),r.code&&Object.assign(i,{errorCode:r.code,errorMessage:r.message}),cleanAxiosError(r)),s=n?Error(n,{cause:r}):r,d=i;else if(n)s=Error(n),d={...i,cause:stringify(r)};else if(isAxiosResponseAsError(r)){let n=r.data?.error_message,o=r.config?.method?.toUpperCase()||"Unknown",g=r.config?.url||"Unknown URL",_=r.status||0;s=Error(n&&"string"==typeof n&&n.trim().length>0?n:`API request failed: ${o} ${g}${_?` (${_})`:""}`),d={...i,url:r.config?.url,method:r.config?.method,baseURL:r.config?.baseURL,fullRequestUrl:r.config?.baseURL&&r.config?.url?`${r.config.baseURL}${r.config.url}`:r.config?.url,status:r.status,statusText:r.statusText,errorType:r.data?.error_type,errorMessage:r.data?.error_message,errorData:r.data?.error_data,errorNote:r.data?.note,isTimeout:r.data?.is_timeout,msgToUserOnlyOnNonProd:r.data?.msg_to_user_only_on_non_prod,originalErrorMessage:n,timestamp:new Date().toISOString()}}else s=r,d=i;o.error(s,d),(isDevelopment()||isTesting())&&console.error(n,{error:r,errorToPass:s,contextToPass:d})}function cleanAxiosError(r){delete r.config,delete r.request,delete r.response}function isAxiosResponseAsError(r){return r&&"object"==typeof r&&["data","status","headers","config"].every(n=>n in r)}let R={unauthorized_error:"HBUnauthorizedError",wrong_tos_version_error:"HBWrongTOSVersionError",wrong_api_version_error:"HBWrongAPIVersionError",under_construction_error:"HBUnderConstructionError",object_authorized_error:"HBObjectUnauthorizedError"};function stringify(r){try{return JSON.stringify(r)}catch(r){return`unable to stringify: '${r.message}'`}}var C=o(2255),I=o.n(C);function getAbsoluteDate(r,n,o){if(!r)return null;let i=formatDateWithLeadingZero(r,n);if(o?.includes("hh:mm"))return new Date(i);let s=i;
1if(!isIsoString(s)){if(Number.isNaN((s=new Date(s)).getTime())&&(s=new Date(i.replace("T"," "))),Number.isNaN(s.getTime()))return null;s=s.toISOString()}let[d]=s.split("T"),[g,_,v]=d.split("-");return new Date(Number(g),Number(_)-1,Number(v))}function tryToFixDate(r){if(8===r.length||9===r.length||7===r.length){let[n,o,i]=r.split("-").map(r=>r.padStart(2,"0"));return`${n}-${o}-${i}`}return r}function isValidDateType(r){return dayjs(r).isValid()}k().extend(I());function formatDateWithLeadingZero(r,n){if(!r||"string"!=typeof r||!["/","-"].some(n=>r.includes(n)))return r;let o=r.includes("/")?"/":"-",i=r.includes("T")?"T":",",[s,d]=r.split(i),g=s.split(o).map(r=>(10>Number(r)?"0":"")+ +r).join(o),_=d?[g,d].join(i):g;return Number.isNaN(new Date(_).getTime())&&trackError({error:Error("[formatDateWithLeadingZero] Invalid date conversion"),context:{dateInput:r,formatttedOutput:_,ticketId:"formatDateWithLeadingZero"},logger:n}),_}function isIsoString(r){return!!/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(r)&&new Date(r).toISOString()===r}!function(r){r.TODAY="today",r.TOMORROW="tomorrow",r.NEXT_MONDAY="next-monday",r.YESTERDAY="yesterday"}(i||(i={}));let padTo2Digits=r=>r.toString().padStart(2,"0");!function(r){r.Production="production",r.Staging="staging",r.Development="development"}(s||(s={}));let safeJsonClone=r=>{let n=new WeakSet;return JSON.parse(JSON.stringify(r,(r,o)=>{if(null==o)return null;switch(typeof o){case"bigint":return o.toString();case"number":return Number.isFinite(o)?o:null;case"object":if(n.has(o))return"[Circular]";return n.add(o),o;default:return o}}))};function tryParseToJsonString(r){try{return{json:JSON.stringify(r)}}catch{return{json:String(r)}}}let A="hb_anonymous_id";o(5870);!function(r){r.All_flows="All_flows",r.Starred="Starred",r.My_flows="My_flows",r.Shared="Shared",r.Lead_forms="Lead_forms"}(d||(d={})),function(r){r.Emails="Emails",r.Packages="Packages",r.Contact_forms="Contact_forms",r.Gift_cards="Gift_cards",r.Email_signature="Email_signature",r.Brochures="Brochures",r.Invoices="Invoices",r.Proposals="Proposals",r.Questionnaires="Questionnaires",r.Agreements="Agreements",r.Blocks="Blocks",r.All="All"}(g||(g={})),!function(r){r.Brochures="Brochures",r.Contact_forms="Contact_forms",r.ContentApproval="ContentApproval",r.Contract="Contract",r.Custom="Custom",r.Emails="Emails",r.Gift_cards="Gift_cards",r.Invoice="Invoice",r.RecurringInvoice="RecurringInvoice",r.MoodBoard="MoodBoard",r.Packages="Packages",r.Proposal="Proposal",r.Questionnaire="Questionnaire",r.Scheduler="Scheduler",r.Lead_form="Lead_form",r.TestimonialRequest="Testimonial",r.LegacyInvoice="LegacyInvoice",r.LegacyContract="LegacyContract",r.LegacyProposal="LegacyProposal",r.LegacyQuestionnaire="LegacyQuestionnaire",r.LegacyBrochure="LegacyBrochure",r.Blocks="Blocks"}(_||(_={})),function(r){r.Contract="60e6efe95366840059b4867c",r.Invoice="60eadfc9657fff00817abed2",r.BlankInvoice="6396060c49d9ab002fe2c909",r.RecurringInvoice="62e0f30427f7bd00339285b3",r.Proposal="60eae1f7657fff00b7b2d63d",r.ProposalRecurringInvoice="62e0f30b35259b002c328064",r.Questionnaire="60eae3f4657fff00eaf6f914",r.Brochures="615c5f6f77cb540073404faf",r.SessionSelection="65bf79f3177f6e00254948fd",r.MoodBoard="62f8b439d31353002de2e09a",r.Testimonial="62f8b4410ad51a00fcceffd2",r.ContentApproval="62f8b448fc097a002d554eda",r.Custom="62f8b42e60297f01094cd2e2",r.Scheduler="6371ff42fff9a5002ccc1035"}(v||(v={})),function(r){r.Services="6476176ac48b39002dff9130",r.Scheduler="64761748a63b3d002d27b425",r.Invoice="6476178115704504e17b82d1",r.Contract="6a301297502c2e990a5e8c94"}(b||(b={})),g.Invoices},7107(r,n,o){"use strict";var i,s,d,g,_,v,b,E,k,O,R,C,I=o(9938),A=o.n(I);let T=[],j={},P="router",N="version-first";if((o.initializeSharingData||o.initializeExposesData)&&o.federation){let override=(r,n,o)=>{r&&r[n]&&(r[n]=o)},merge=(r,n,o)=>{var i,s,d,g,_,v;let b=o();Array.isArray(b)?(null!=(d=(i=r)[s=n])||(i[s]=[]),r[n].push(...b)):"object"==typeof b&&null!==b&&(null!=(v=(g=r)[_=n])||(g[_]={}),Object.assign(r[n],b))},early=(r,n,o)=>{var i,s,d;null!=(d=(i=r)[s=n])||(i[s]=o())},r=null!=(E=null==(i=o.remotesLoadingData)?void 0:i.chunkMapping)?E:{},n=null!=(k=null==(s=o.remotesLoadingData)?void 0:s.moduleIdToRemoteDataMapping)?k:{},I=null!=(O=null==(d=o.initializeSharingData)?void 0:d.scopeToSharingDataMapping)?O:{},D=null!=(R=null==(g=o.consumesLoadingData)?void 0:g.chunkMapping)?R:{},F=null!=(C=null==(_=o.consumesLoadingData)?void 0:_.moduleIdToConsumeDataMapping)?C:{},L={},U=[],B={},V=null==(v=o.initializeExposesData)?void 0:v.shareScope;for(let r in A())o.federation[r]=A()[r];early(o.federation,"consumesLoadingModuleToHandlerMapping",()=>{let r={};for(let[n,o]of Object.entries(F))r[n]={getter:o.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:o.requiredVersion,strictVersion:o.strictVersion,singleton:o.singleton,eager:o.eager},scope:[o.shareScope]},shareKey:o.shareKey};return r}),early(o.federation,"initOptions",()=>({})),early(o.federation.initOptions,"name",()=>P),early(o.federation.initOptions,"shareStrategy",()=>N),early(o.federation.initOptions,"shared",()=>{let r={};for(let[n,o]of Object.entries(I))for(let i of o)if("object"==typeof i&&null!==i){let{name:o,version:s,factory:d,eager:g,singleton:_,requiredVersion:v,strictVersion:b}=i,E={},isValidValue=function(r){return void 0!==r};isValidValue(_)&&(E.singleton=_),isValidValue(v)&&(E.requiredVersion=v),isValidValue(g)&&(E.eager=g),isValidValue(b)&&(E.strictVersion=b);let k={version:s,scope:[n],shareConfig:E,get:d};r[o]?r[o].push(k):r[o]=[k]}return r}),merge(o.federation.initOptions,"remotes",()=>Object.values(j).flat().filter(r=>"script"===r.externalType)),merge(o.federation.initOptions,"plugins",()=>T),early(o.federation,"bundlerRuntimeOptions",()=>({})),early(o.federation.bundlerRuntimeOptions,"remotes",()=>({})),early(o.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>r),early(o.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>j),early(o.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let r={};for(let[o,i]of Object.entries(n))r[o]=[i.shareScope,i.name,i.externalModuleId,i.remoteName];return r}),early(o.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>o),merge(o.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let r={};for(let[o,i]of Object.entries(n)){let n=j[i.remoteName];n&&(r[o]=n)}return r}),override(o,"S",o.federation.bundlerRuntime.S),o.federation.attachShareScopeMap&&o.federation.attachShareScopeMap(o),override(o.f,"remotes",(n,i)=>o.federation.bundlerRuntime.remotes({chunkId:n,promises:i,chunkMapping:r,idToExternalAndNameMapping:o.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:o.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:o})),override(o.f,"consumes",(r,n)=>o.federation.bundlerRuntime.consumes({chunkId:r,promises:n,chunkMapping:D,moduleToHandlerMapping:o.federation.consumesLoadingModuleToHandlerMapping,installedModules:L,webpackRequire:o})),override(o,"I",(r,n)=>o.federation.bundlerRuntime.I({shareScopeName:r,initScope:n,initPromises:U,initTokens:B,webpackRequire:o})),override(o,"initContainer",(r,n,i)=>o.federation.bundlerRuntime.initContainerEntry({shareScope:r,initScope:n,remoteEntryInitOptions:i,shareScopeKey:V,webpackRequire:o})),override(o,"getContainer",(r,n)=>{var i=o.initializeExposesData.moduleMap;return o.R=n,n=Object.prototype.hasOwnProperty.call(i,r)?i[r]():Promise.resolve().then(()=>{throw Error('Module "'+r+'" does not exist in container.')}),o.R=void 0,n}),o.federation.instance=o.federation.runtime.init(o.federation.initOptions),(null==(b=o.consumesLoadingData)?void 0:b.initialConsumes)&&o.federation.bundlerRuntime.installInitialConsumes({webpackRequire:o,installedModules:L,initialConsumes:o.consumesLoadingData.initialConsumes,moduleToHandlerMapping:o.federation.consumesLoadingModuleToHandlerMapping})}},1594(r){"use strict";r.exports=React},4910(r){"use strict";r.exports=ReactQuery},9665(r){"use strict";r.exports=ReactRouterDOM},99(r,n,o){Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let i=o(4938);
1n.logAndReport=function(r,n,o,s,d,g){return s(i.getShortErrorMsg(r,n,o,d))}},5514(r,n,o){let i=o(3684),s={[i.RUNTIME_001]:"Failed to get remoteEntry exports.",[i.RUNTIME_002]:'The remote entry interface does not contain "init"',[i.RUNTIME_003]:"Failed to get manifest.",[i.RUNTIME_004]:"Failed to locate remote.",[i.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[i.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[i.RUNTIME_007]:"Failed to get remote snapshot.",[i.RUNTIME_008]:"Failed to load script resources.",[i.RUNTIME_009]:"Please call createInstance first.",[i.RUNTIME_010]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[i.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[i.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[i.RUNTIME_013]:"The manifest is not a valid Module Federation manifest.",[i.RUNTIME_014]:"The remote does not expose the requested module.",[i.RUNTIME_015]:"Remote container initialization failed."},d={[i.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},g={[i.BUILD_001]:"Failed to find expose module.",[i.BUILD_002]:"PublicPath is required in prod mode."},_={...s,...d,...g};n.buildDescMap=g,n.errorDescMap=_,n.runtimeDescMap=s,n.typeDescMap=d},3684(r,n){let o="RUNTIME-001",i="RUNTIME-002",s="RUNTIME-003",d="RUNTIME-004",g="RUNTIME-005",_="RUNTIME-006",v="RUNTIME-007",b="RUNTIME-008",E="RUNTIME-009",k="RUNTIME-010",O="RUNTIME-011",R="RUNTIME-012",C="RUNTIME-013",I="RUNTIME-014",A="RUNTIME-015",T="TYPE-001",j="BUILD-002";n.BUILD_001="BUILD-001",n.BUILD_002=j,n.RUNTIME_001=o,n.RUNTIME_002=i,n.RUNTIME_003=s,n.RUNTIME_004=d,n.RUNTIME_005=g,n.RUNTIME_006=_,n.RUNTIME_007=v,n.RUNTIME_008=b,n.RUNTIME_009=E,n.RUNTIME_010=k,n.RUNTIME_011=O,n.RUNTIME_012=R,n.RUNTIME_013=C,n.RUNTIME_014=I,n.RUNTIME_015=A,n.TYPE_001=T},4938(r,n){let getDocsUrl=r=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${r.split("-")[0].toLowerCase()}#${r.toLowerCase()}`;n.getShortErrorMsg=(r,n,o,i)=>{let s=[`${[n[r]]} #${r}`];return o&&s.push(`args: ${JSON.stringify(o)}`),s.push(getDocsUrl(r)),i&&s.push(`Original Error Message:
2 ${i}`),s.join("\n")}},5507(r,n,o){Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let i=o(3684),s=o(4938),d=o(5514);n.BUILD_001=i.BUILD_001,n.BUILD_002=i.BUILD_002,n.RUNTIME_001=i.RUNTIME_001,n.RUNTIME_002=i.RUNTIME_002,n.RUNTIME_003=i.RUNTIME_003,n.RUNTIME_004=i.RUNTIME_004,n.RUNTIME_005=i.RUNTIME_005,n.RUNTIME_006=i.RUNTIME_006,n.RUNTIME_007=i.RUNTIME_007,n.RUNTIME_008=i.RUNTIME_008,n.RUNTIME_009=i.RUNTIME_009,n.RUNTIME_010=i.RUNTIME_010,n.RUNTIME_011=i.RUNTIME_011,n.RUNTIME_012=i.RUNTIME_012,n.RUNTIME_013=i.RUNTIME_013,n.RUNTIME_014=i.RUNTIME_014,n.RUNTIME_015=i.RUNTIME_015,n.TYPE_001=i.TYPE_001,n.buildDescMap=d.buildDescMap,n.errorDescMap=d.errorDescMap,n.getShortErrorMsg=s.getShortErrorMsg,n.runtimeDescMap=d.runtimeDescMap,n.typeDescMap=d.typeDescMap},1958(r,n){var o=Object.defineProperty;n.__exportAll=(r,n)=>{let i={};for(var s in r)o(i,s,{get:r[s],enumerable:!0});return n||o(i,Symbol.toStringTag,{value:"Module"}),i}},6976(r,n){let o="default";n.DEFAULT_REMOTE_TYPE="global",n.DEFAULT_SCOPE=o},1577(r,n,o){let i=o(7778),s=o(6976),d=o(8523),g=o(6263),_=o(2063),v=o(1326);o(9690);let b=o(7045),E=o(9413),k=o(5962),O=o(3731),R=o(2049),C=o(8559);o(1991);let I=o(6802),A=o(8344),T=o(1482),j=o(3930),P=o(7463),N=o(4696),D=o(5507),F=!0;n.ModuleFederation=class{constructor(r){this.hooks=new C.PluginSystem({beforeInit:new O.SyncWaterfallHook("beforeInit"),init:new E.SyncHook,beforeInitContainer:new R.AsyncWaterfallHook("beforeInitContainer"),initContainer:new R.AsyncWaterfallHook("initContainer")}),this.version="2.6.0",this.moduleCache=new Map,this.loaderHook=new C.PluginSystem({getModuleInfo:new E.SyncHook,createScript:new E.SyncHook,createLink:new E.SyncHook,fetch:new k.AsyncHook,loadEntryError:ne
2w k.AsyncHook,afterLoadEntry:new k.AsyncHook("afterLoadEntry"),beforeInitRemote:new k.AsyncHook("beforeInitRemote"),afterInitRemote:new k.AsyncHook("afterInitRemote"),beforeGetExpose:new k.AsyncHook("beforeGetExpose"),afterGetExpose:new k.AsyncHook("afterGetExpose"),beforeExecuteFactory:new k.AsyncHook("beforeExecuteFactory"),afterExecuteFactory:new k.AsyncHook("afterExecuteFactory"),getModuleFactory:new k.AsyncHook}),this.bridgeHook=new C.PluginSystem({beforeBridgeRender:new E.SyncHook,afterBridgeRender:new E.SyncHook,beforeBridgeDestroy:new E.SyncHook,afterBridgeDestroy:new E.SyncHook});const n=F?[I.snapshotPlugin(),A.generatePreloadAssetsPlugin()]:[],o={id:g.getBuilderId(),name:r.name,plugins:n,remotes:[],shared:{},inBrowser:N.isBrowserEnvValue};this.name=r.name,this.options=o,this.snapshotHandler=new T.SnapshotHandler(this),this.sharedHandler=new j.SharedHandler(this),this.remoteHandler=new P.RemoteHandler(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...o.plugins,...r.plugins||[]]),this.options=this.formatOptions(o,r)}initOptions(r){r.name&&r.name!==this.options.name&&i.error((0,D.getShortErrorMsg)(D.RUNTIME_010,D.runtimeDescMap)),this.registerPlugins(r.plugins);let n=this.formatOptions(this.options,r);return this.options=n,n}async loadShare(r,n){return this.sharedHandler.loadShare(r,n)}loadShareSync(r,n){return this.sharedHandler.loadShareSync(r,n)}initializeSharing(r=s.DEFAULT_SCOPE,n){return this.sharedHandler.initializeSharing(r,n)}initRawContainer(r,n,o){let i=v.getRemoteInfo({name:r,entry:n}),s=new b.Module({host:this,remoteInfo:i});return s.remoteEntryExports=o,this.moduleCache.set(r,s),s}async loadRemote(r,n){return this.remoteHandler.loadRemote(r,n)}async preloadRemote(r){return this.remoteHandler.preloadRemote(r)}initShareScopeMap(r,n,o={}){this.sharedHandler.initShareScopeMap(r,n,o)}formatOptions(r,n){let{allShareInfos:o}=d.formatShareConfigs(r,n),{userOptions:i,options:s}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:n,options:r,shareInfo:o}),g=this.remoteHandler.formatAndRegisterRemote(s,i),{allShareInfos:_}=this.sharedHandler.registerShared(s,i),v=[...s.plugins];i.plugins&&i.plugins.forEach(r=>{v.includes(r)||v.push(r)});let b={...r,...n,plugins:v,remotes:g,shared:_,id:i.id||r.id};return this.hooks.lifecycle.init.emit({origin:this,options:b}),b}registerPlugins(r){let n=_.registerPlugins(r,this);this.options.plugins=this.options.plugins.reduce((r,n)=>(n&&r&&!r.find(r=>r.name===n.name)&&r.push(n),r),n||[])}registerRemotes(r,n){return this.remoteHandler.registerRemotes(r,n)}registerShared(r){this.sharedHandler.registerShared(this.options,{...this.options,shared:r})}}},9585(r,n,o){let i=o(7778),s=o(3028),d=o(4696),g="object"==typeof globalThis?globalThis:window,_=(()=>{try{return document.defaultView}catch{return g}})(),v=_;function definePropertyGlobalVal(r,n,o){Object.defineProperty(r,n,{value:o,configurable:!1,writable:!0})}function includeOwnProperty(r,n){return Object.hasOwnProperty.call(r,n)}includeOwnProperty(g,"__GLOBAL_LOADING_REMOTE_ENTRY__")||definePropertyGlobalVal(g,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let b=g.__GLOBAL_LOADING_REMOTE_ENTRY__;function setGlobalDefaultVal(r){includeOwnProperty(r,"__VMOK__")&&!includeOwnProperty(r,"__FEDERATION__")&&definePropertyGlobalVal(r,"__FEDERATION__",r.__VMOK__),includeOwnProperty(r,"__FEDERATION__")||(definePropertyGlobalVal(r,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),definePropertyGlobalVal(r,"__VMOK__",r.__FEDERATION__)),r.__FEDERATION__.__GLOBAL_PLUGIN__??=[],r.__FEDERATION__.__INSTANCES__??=[],r.__FEDERATION__.moduleInfo??={},r.__FEDERATION__.__SHARE__??={},r.__FEDERATION__.__MANIFEST_LOADING__??={},r.__FEDERATION__.__PRELOADED_MAP__??=new Map}function resetFederationGlobalInfo(){g.__FEDERATION__.__GLOBAL_PLUGIN__=[],g.__FEDERATION__.__INSTANCES__=[],g.__FEDERATION__.moduleInfo={},g.__FEDERATION__.__SHARE__={},g.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(b).forEach(r=>{delete b[r]})}function setGlobalFederationInstance(r){g.__FEDERATION__.__INSTANCES__.push(r)}function getGlobalFederationConstructor(){return g.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function setGlobalFederationConstructor(r,n=(0,d.isDebugMode)()){n&&(g.__FEDERATION__.__DEBUG_CONSTRUCTOR__=r,g.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.6.0")}function getInfoWithoutType(r,n){if("string"==typeof n)if(r[n])return{value:r[n],key:n};else{for(let o of Object.keys(r)){let[i,s]=o.split(":"),d=`${i}:${n}`,g=r[d];if(g)return{value:g,key:d}}return{value:void 0,key:n}}i.error(`getInfoWithoutType: "key" must be a string, got ${typeof n} (${JSON.stringify(n)}).`)}setGlobalDefaultVal(g),setGlobalDefaultVal(_);let getGlobalSnapshot=()=>_.__FEDERATION__.moduleInfo,getTargetSnapshotInfoByModuleInfo=(r,n)=>{let o=getInfoWithoutType(n,s.getFMId(r)).value;if(o&&!o.version&&"version"in r&&r.version&&(o.version=r.version),o)return o;if("version"in r&&r.version){let{version:n,...o}=r,i=s.getFMId(o),d=getInfoWithoutType(_.__FEDERATION__.moduleInfo,i).value;if(d?.version===n)return d}},getGlobalSnapshotInfoByModuleInfo=r=>getTargetSnapshotInfoByModuleInfo(r,_.__FEDERATION__.moduleInfo),setGlobalSnapshotInfoByModuleInfo=(r,n)=>{let o=s.getFMId(r);return _.__FEDERATION__.moduleInfo[o]=n,_.__FEDERATION__.moduleInfo},addGlobalSnapshot=r=>(_.__FEDERATION__.moduleInfo={..._.__FEDERATION__.moduleInfo,...r},()=>{for(let n of Object.keys(r))delete _.__FEDERATION__.moduleInfo[n]}),getRemoteEntryExports=(r,n)=>{let o=n||`__FEDERATION_${r}:custom__`;return{remoteEntryKey:o,entryExports:g[o]}},registerGlobalPlugins=r=>{let{__GLOBAL_PLUGIN__:n}=_.__FEDERATION__;r.forEach(r=>{-1===n.findIndex(n=>n.name===r.name)?n.push(r):i.warn(`The plugin ${r.name} has been registered.`)})},getGlobalHostPlugins=()=>_.__FEDERATION__.__GLOBAL_PLUGIN__,getPreloaded=r=>g.__FEDERATION__.__PRELOADED_MAP__.get(r),setPreloaded=r=>g.__FEDERATION__.__PRELOADED_MAP__.set(r,!0);n.CurrentGlobal=g,n.Global=v,n.addGlobalSnapshot=addGlobalSnapshot,n.getGlobalFederationConstructor=getGlobalFederationConstructor,n.getGlobalHostPlugins=getGlobalHostPlugins,n.getGlobalSnapshot=getGlobalSnapshot,n.getGlobalSnapshotInfoByModuleInfo=getGlobalSnapshotInfoByModuleInfo,n.getInfoWithoutType=getInfoWithoutType,n.getPreloaded=getPreloaded,n.getRemoteEntryExports=getRemoteEntryExports,n.getTargetSnapshotInfoByModuleInfo=getTargetSnapshotInfoByModuleInfo,n.globalLoading=b,n.nativeGlobal=_,n.registerGlobalPlugins=registerGlobalPlugins,n.resetFederationGlobalInfo=resetFederationGlobalInfo,n.setGlobalFederationConstructor=setGlobalFederationConstructor,n.setGlobalFederationInstance=setGlobalFederationInstance,n.setGlobalSnapshotInfoByModuleInfo=setGlobalSnapshotInfoByModuleInfo,n.setPreloaded=setPreloaded},4711(r,n,o){let i=o(9585),s=o(8523),d=o(1505),g=o(1326);o(9690);let _=o(3241),v={getRegisteredShare:s.getRegisteredShare,getGlobalShareScope:s.getGlobalShareScope};n.default={global:{Global:i.Global,nativeGlobal:i.nativeGlobal,resetFederationGlobalInfo:i.resetFederationGlobalInfo,setGlobalFederationInstance:i.setGlobalFederationInstance,getGlobalFederationConstructor:i.getGlobalFederationConstructor,setGlobalFederationConstructor:i.setGlobalFederationConstructor,getInfoWithoutType:i.getInfoWithoutType,getGlobalSnapshot:i.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:i.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:i.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:i.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:i.addGlobalSnapshot,getRemoteEntryExports:i.getRemoteEntryExports,registerGlobalPlugins:i.registerGlobalPlugins,getGlobalHostPlugins:i.getGlobalHostPlugins,getPreloaded:i.getPreloaded,setPreloaded:i.setPreloaded},share:v,utils:{matchRemoteWithNameAndExpose:d.matchRemoteWithNameAndExpose,preloadAssets:_.preloadAssets,getRemoteInfo:g.getRemoteInfo}}},320(r,n,o){Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let i=o(7778),s=o(3028),d=o(9585),g=o(9463),_=o(8523),v=o(1505),b=o(1326);o(9690);let E=o(4711),k=o(7045),O=o(1577),R=o(6101),C=o(4696),I=E.default;n.CurrentGlobal=d.CurrentGlobal,n.Global=d.Global,n.Module=k.Module,n.ModuleFederation=O.ModuleFederation,n.addGlobalSnapshot=d.addGlobalSnapshot,n.assert=i.assert,n.error=i.error,n.getGlobalFederationConstructor=d.getGlobalFederationConstructor,n.getGlobalSnapshot=d.getGlobalSnapshot,n.getInfoWithoutType=d.getInfoWithoutType,n.getRegisteredShare=_.getRegisteredShare,n.getRemoteEntry=b.getRemoteEntry,n.getRemoteInfo=b.getRemoteInfo,n.helpers=I,n.isStaticResourcesEqual=s.isStaticResourcesEqual,Object.defineProperty(n,"loadScript",{enumerable:!0,get:function(){return C.loadScript}}),Object.defineProperty(n,"loadScriptNode",{enumerable:!0,get:function(){return C.loadScriptNode}}),n.matchRemoteWithNameAndExpose=v.matchRemoteWithNameAndExpose,n.registerGlobalPlugins=d.registerGlobalPlugins,n.resetFederationGlobalInfo=d.resetFederationGlobalInfo,n.safeWrapper=s.safeWrapper,n.satisfy=g.satisfy,n.setGlobalFederationConstructor=d.setGlobalFederationConstructor,n.setGlobalFederationInstance=d.setGlobalFederationInstance,Object.defineProperty(n,"types",{enumerable:!0,get:function(){return R.type_exports}})},7045(r,n,o){let i=o(7778),s=o(3028),d=o(1505),g=o(1326),_=o(2447);o(9690);let v=o(4696),b=o(5507);function getAvailableExposeNames(r){if(!r||!("modules"in r)||!Array.isArray(r.modules))return;let n=r.modules.map(r=>
2r.moduleName).filter(Boolean);return n.length?n.join(","):void 0}function createRemoteEntryInitOptions(r,n,o){let i=n,s=Array.isArray(r.shareScope)?r.shareScope:[r.shareScope];s.length||s.push("default"),s.forEach(r=>{i[r]||(i[r]={})});let d={version:r.version||"",shareScopeKeys:Array.isArray(r.shareScope)?s:r.shareScope||"default"};return Object.defineProperty(d,"shareScopeMap",{value:i,enumerable:!1}),{remoteEntryInitOptions:d,shareScope:i[s[0]],initScope:o??[]}}n.Module=class{constructor({remoteInfo:r,host:n}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=r,this.host=n}async getEntry(r){if(this.remoteEntryExports)return this.remoteEntryExports;let n=await g.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:"loadRemote",id:d.composeRemoteRequestId(this.remoteInfo.name,r),resourceType:"remoteEntry"}});return i.assert(n,`remoteEntryExports is undefined 
3 ${(0,v.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=n,this.remoteEntryExports}async init(r,n,o,s){let d=await this.getEntry(s);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:r,remoteInfo:this.remoteInfo,remoteSnapshot:n,remoteEntryExports:d,cached:!0,origin:this.host}),d;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:r,remoteInfo:this.remoteInfo,remoteSnapshot:n,remoteEntryExports:d,cached:!0,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:r,remoteInfo:this.remoteInfo,remoteSnapshot:n,remoteEntryExports:d,error:o,cached:!0,origin:this.host}),o}return d}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:r,remoteInfo:this.remoteInfo,remoteSnapshot:n,origin:this.host});let{remoteEntryInitOptions:s,shareScope:g,initScope:v}=createRemoteEntryInitOptions(this.remoteInfo,this.host.shareScopeMap,o),E=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:g,remoteEntryInitOptions:s,initScope:v,remoteInfo:this.remoteInfo,origin:this.host});void 0===d?.init&&i.error(b.RUNTIME_002,b.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,_.optionsToMFContext(this.host.options));try{await d.init(E.shareScope,E.initScope,E.remoteEntryInitOptions)}catch(r){i.error(b.RUNTIME_015,b.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${r}`,_.optionsToMFContext(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...E,id:r,remoteSnapshot:n,remoteEntryExports:d}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:r,remoteInfo:this.remoteInfo,remoteSnapshot:n,remoteEntryExports:d,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:r,remoteInfo:this.remoteInfo,remoteSnapshot:n,remoteEntryExports:d,error:o,origin:this.host}),o}finally{this.initing=!1,this.initPromise=void 0}return d}async get(r,n,o,d){let g,{loadFactory:v=!0}=o||{loadFactory:!0},E=await this.init(r,d,void 0,n);this.lib=E,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:r,expose:n,moduleInfo:this.remoteInfo,remoteEntryExports:E,origin:this.host});try{let o=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:E,expose:n,moduleInfo:this.remoteInfo});(g="function"==typeof o?o:void 0)||(g=await E.get(n)),g||i.error(b.RUNTIME_014,b.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:n,requestId:r,availableExposes:getAvailableExposeNames(d)},void 0,_.optionsToMFContext(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:r,expose:n,moduleInfo:this.remoteInfo,remoteEntryExports:E,moduleFactory:g,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:r,expose:n,moduleInfo:this.remoteInfo,remoteEntryExports:E,error:o,origin:this.host}),o}let k=s.processModuleAlias(this.remoteInfo.name,n),O=this.wraperFactory(g,k);if(!v)return O;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:r,expose:n,moduleInfo:this.remoteInfo,loadFactory:v,origin:this.host});try{let o=await O();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:r,expose:n,moduleInfo:this.remoteInfo,loadFactory:v,exposeModule:o,origin:this.host}),o}catch(o){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:r,expose:n,moduleInfo:this.remoteInfo,loadFactory:v,error:o,origin:this.host}),o}}wraperFactory(r,n){function defineModuleId(r,n){r&&"object"==typeof r&&Object.isExtensible(r)&&!Object.getOwnPropertyDescriptor(r,Symbol.for("mf_module_id"))&&Object.defineProperty(r,Symbol.for("mf_module_id"),{value:n,enumerable:!1})}return()=>
3{let o=r();return o instanceof Promise?o.then(r=>(defineModuleId(r,n),r)):(defineModuleId(o,n),o)}}}},8344(r,n,o){let i=o(3028),s=o(9585),d=o(8523);o(9690);let g=o(3241),_=o(6802),v=o(4696);function splitId(r){let n=r.split(":");return 1===n.length?{name:n[0],version:void 0}:2===n.length?{name:n[0],version:n[1]}:{name:n[1],version:n[2]}}function traverseModuleInfo(r,n,o,d,g={},_){let{value:b}=s.getInfoWithoutType(r,i.getFMId(n)),E=_||b;if(E&&!(0,v.isManifestProvider)(E)&&(o(E,n,d),E.remotesInfo))for(let n of Object.keys(E.remotesInfo)){if(g[n])continue;g[n]=!0;let i=splitId(n),s=E.remotesInfo[n];traverseModuleInfo(r,{name:i.name,version:s.matchedVersion},o,!1,g,void 0)}}let isExisted=(r,n)=>document.querySelector(`${r}[${"link"===r?"href":"src"}="${n}"]`);function generatePreloadAssets(r,n,o,_,b){let E=[],k=[],O=[],R=new Set,C=new Set,{options:I}=r,{preloadConfig:A}=n,{depsRemote:T}=A;if(traverseModuleInfo(_,o,(n,o,d)=>{let _;if(d)_=A;else if(Array.isArray(T)){let r=T.find(r=>r.nameOrAlias===o.name||r.nameOrAlias===o.alias);if(!r)return;_=g.defaultPreloadArgs(r)}else{if(!0!==T)return;_=A}let b=(0,v.getResourceUrl)(n,i.getRemoteEntryInfoFromSnapshot(n).url);b&&O.push({name:o.name,moduleInfo:{name:o.name,entry:b,type:"remoteEntryType"in n?n.remoteEntryType:"global",entryGlobalName:"globalName"in n?n.globalName:o.name,shareScope:"",version:"version"in n?n.version:void 0},url:b});let R="modules"in n?n.modules:[],C=g.normalizePreloadExposes(_.exposes);function handleAssets(r){let o=r.map(r=>(0,v.getResourceUrl)(n,r));return _.filter?o.filter(_.filter):o}if(C.length&&"modules"in n&&(R=n?.modules?.reduce((r,n)=>(C?.indexOf(n.moduleName)!==-1&&r.push(n),r),[])),R){let i=R.length;for(let d=0;d<i;d++){let i=R[d],g=`${o.name}/${i.moduleName}`;r.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===i.moduleName?o.name:g,name:o.name,remoteSnapshot:n,preloadConfig:_,remote:o,origin:r}),s.getPreloaded(g)||("all"===_.resourceCategory?(E.push(...handleAssets(i.assets.css.async)),E.push(...handleAssets(i.assets.css.sync)),k.push(...handleAssets(i.assets.js.async)),k.push(...handleAssets(i.assets.js.sync))):"sync"===_.resourceCategory&&(E.push(...handleAssets(i.assets.css.sync)),k.push(...handleAssets(i.assets.js.sync))),s.setPreloaded(g))}}},!0,{},b),b.shared&&b.shared.length>0){let collectSharedAssets=(n,o)=>{let{shared:i}=d.getRegisteredShare(r.shareScopeMap,o.sharedName,n,r.sharedHandler.hooks.lifecycle.resolveShare)||{};i&&"function"==typeof i.lib&&(o.assets.js.sync.forEach(r=>{R.add(r)}),o.assets.css.sync.forEach(r=>{C.add(r)}))};b.shared.forEach(r=>{let n=I.shared?.[r.sharedName];if(!n)return;let o=r.version?n.find(n=>n.version===r.version):n;o&&i.arrayOptions(o).forEach(n=>{collectSharedAssets(n,r)})})}let j=k.filter(r=>!R.has(r)&&!isExisted("script",r));return{cssAssets:E.filter(r=>!C.has(r)&&!isExisted("link",r)),jsAssetsWithoutEntry:j,entryAssets:O.filter(r=>!isExisted("script",r.url))}}n.generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(r){let{origin:n,preloadOptions:o,remoteInfo:s,remote:d,globalSnapshot:g,remoteSnapshot:b}=r;return v.isBrowserEnvValue?i.isRemoteInfoWithEntry(d)&&i.isPureRemoteEntry(d)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:d.name,url:d.entry,moduleInfo:{name:s.name,entry:d.entry,type:s.type||"global",entryGlobalName:"",shareScope:""}}]}:(_.assignRemoteInfo(s,b),generatePreloadAssets(n,o,s,g,b)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}}},1482(r,n,o){let i=o(7778),s=o(3028),d=o(9585),g=o(1326),_=o(2447);o(9690);let v=o(5962),b=o(2049),E=o(8559);o(1991);let k=o(4696),O=o(5507);function getGlobalRemoteInfo(r,n){let o=d.getGlobalSnapshotInfoByModuleInfo({name:n.name,version:n.options.version}),i=o&&"remotesInfo"in o&&o.remotesInfo&&d.getInfoWithoutType(o.remotesInfo,r.name).value;return i&&i.matchedVersion?{hostGlobalSnapshot:o,globalSnapshot:d.getGlobalSnapshot(),remoteSnapshot:d.getGlobalSnapshotInfoByModuleInfo({name:r.name,version:i.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:d.getGlobalSnapshot(),remoteSnapshot:d.getGlobalSnapshotInfoByModuleInfo({name:r.name,version:"version"in r?r.version:void 0})}}n.SnapshotHandler=class{constructor(r){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new E.PluginSystem({beforeLoadRemoteSnapshot:new v.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapsh
3ot:new b.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new b.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new b.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=d.Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=r,this.loaderHook=r.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:r,id:n,initiator:o="loadRemote"}){let g,v,{options:b}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:b,moduleInfo:r,origin:this.HostInstance});let E=d.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});E||(E={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},d.addGlobalSnapshot({[this.HostInstance.options.name]:E})),E&&"remotesInfo"in E&&!d.getInfoWithoutType(E.remotesInfo,r.name).value&&("version"in r||"entry"in r)&&(E.remotesInfo={...E?.remotesInfo,[r.name]:{matchedVersion:"version"in r?r.version:r.entry}});let{hostGlobalSnapshot:R,remoteSnapshot:C,globalSnapshot:I}=this.getGlobalRemoteInfo(r),{remoteSnapshot:A,globalSnapshot:T}=await this.hooks.lifecycle.loadSnapshot.emit({options:b,moduleInfo:r,hostGlobalSnapshot:R,remoteSnapshot:C,globalSnapshot:I});if(A)if((0,k.isManifestProvider)(A)){let i=k.isBrowserEnvValue?A.remoteEntry:A.ssrRemoteEntry||A.remoteEntry||"",s=await this.loadManifestSnapshot(i,r,{},{initiator:o,id:n||r.name}),_=d.setGlobalSnapshotInfoByModuleInfo({...r,entry:i},s);g=s,v=_}else{let{remoteSnapshot:n}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:r,remoteSnapshot:A,from:"global"});g=n,v=T}else if(s.isRemoteInfoWithEntry(r)){let i=await this.loadManifestSnapshot(r.entry,r,{},{initiator:o,id:n||r.name}),s=d.setGlobalSnapshotInfoByModuleInfo(r,i);g=i,v=s}else i.error(O.RUNTIME_007,O.runtimeDescMap,{remoteName:r.name,remoteVersion:r.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(T)},void 0,_.optionsToMFContext(this.HostInstance.options));
3return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:n,host:this.HostInstance,options:b,moduleInfo:r,remoteSnapshot:g}),{remoteSnapshot:g,globalSnapshot:v}}getGlobalRemoteInfo(r){return getGlobalRemoteInfo(r,this.HostInstance)}async getManifestJson(r,n,o,s){return(async()=>{let o=g.getRemoteInfo(n),d=this.manifestCache.get(r);if(d)return d;try{let n=await this.loaderHook.lifecycle.fetch.emit(r,{},o,s?{...s,url:r,resourceType:"manifest"}:void 0);n&&n instanceof Response||(n=await fetch(r,{})),d=await n.json()}catch(s){(d=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:r,error:s,from:"runtime",lifecycle:"afterResolve",remote:o,origin:this.HostInstance}))||(delete this.manifestLoading[r],i.error(O.RUNTIME_003,O.runtimeDescMap,{manifestUrl:r,moduleName:n.name,hostName:this.HostInstance.options.name},`${s}`,_.optionsToMFContext(this.HostInstance.options)))}let v=[!d.metaData&&"metaData",!d.exposes&&"exposes",!d.shared&&"shared"].filter(Boolean);return v.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:r,error:Error(`"${r}" is not a valid federation manifest for remote "${n.name}". Missing required fields: ${v.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:o,origin:this.HostInstance}),v.length>0&&i.error(O.RUNTIME_013,O.runtimeDescMap,{manifestUrl:r,moduleName:n.name,hostName:this.HostInstance.options.name,missingFields:v.join(",")},void 0,_.optionsToMFContext(this.HostInstance.options)),this.manifestCache.set(r,d),d})()}async loadManifestSnapshot(r,n,o,i){let asyncLoadProcess=async()=>{let s=await this.getManifestJson(r,n,o,i),d=(0,k.generateSnapshotFromManifest)(s,{version:r}),{remoteSnapshot:g}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:n,manifestJson:s,remoteSnapshot:d,manifestUrl:r,from:"manifest"});return g};return this.manifestLoading[r]||(this.manifestLoading[r]=asyncLoadProcess().then(r=>r)),this.manifestLoading[r]}},n.getGlobalRemoteInfo=getGlobalRemoteInfo},6802(r,n,o){let i=o(7778),s=o(3028),d=o(1505);o(9690);let g=o(3241),_=o(4696),v=o(5507);function assignRemoteInfo(r,n){let o=s.getRemoteEntryInfoFromSnapshot(n);o.url||i.error(v.RUNTIME_011,v.runtimeDescMap,{remoteName:r.name});let d=(0,_.getResourceUrl)(n,o.url);_.isBrowserEnvValue||d.startsWith("http")||(d=`https:${d}`),r.type=o.type,r.entryGlobalName=o.globalName,r.entry=d,r.version=n.version,r.buildVersion=n.buildVersion}function snapshotPlugin(){return{name:"snapshot-plugin",async afterResolve(r){let{remote:n,pkgNameOrAlias:o,expose:i,origin:_,remoteInfo:v,id:b}=r;if(!s.isRemoteInfoWithEntry(n)||!s.isPureRemoteEntry(n)){let{remoteSnapshot:s,globalSnapshot:E}=await _.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:n,id:d.composeRemoteRequestId(n.name,i)});assignRemoteInfo(v,s);let k={remote:n,preloadConfig:{nameOrAlias:o,exposes:[i],resourceCategory:"sync",share:!1,depsRemote:!1}},O=await _.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:_,preloadOptions:k,remoteInfo:v,remote:n,remoteSnapshot:s,globalSnapshot:E});return O&&g.preloadAssets(v,_,O,!1,{initiator:"loadRemote",id:b}).catch(()=>void 0),{...r,remoteSnapshot:s}}return r}}}n.assignRemoteInfo=assignRemoteInfo,n.snapshotPlugin=snapshotPlugin},7463(r,n,o){let i=o(7778),s=o(3028),d=o(9585),g=o(6976),_=o(8523),v=o(1505),b=o(1326),E=o(2447);o(9690);let k=o(3241),O=o(7045),R=o(9413),C=o(5962),I=o(3731),A=o(2049),T=o(8559);o(1991);let j=o(1482),P=o(4696),N=o(5507);n.RemoteHandler=class{constructor(r){this.hooks=new T.PluginSystem({beforeRegisterRemote:new I.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new I.SyncWaterfallHook("registerRemote"),beforeRequest:new A.AsyncWaterfallHook("beforeRequest"),afterMatchRemote:new C.AsyncHook("afterMatchRemote"),onLoad:new C.AsyncHook("onLoad"),afterLoadRemote:new C.AsyncHook("afterLoadRemote"),handlePreloadModule:new R.SyncHook("handlePreloadModule"),errorLoadRemote:new C.AsyncHook("errorLoadRemote"),beforePreloadRemote:new C.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new C.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new C.AsyncHook("afterPreloadRemote"),loadEntry:new C.AsyncHook}),this.host=r,this.idToRemoteMap={}}formatAndRegisterRemote(r,n){return(n.remotes||[]).reduce((r,n)=>(this.registerRemote(n,r,{force:!1}),r),r.remotes)}setIdToRemoteMap(r,n){let{remote:o,expose:i}=n,{name:s,alias:d}=o;if(this.idToRemoteMap[r]={name:o.name,expose:i},d&&r.startsWith(s)){let n=r.replace(s,d);this.idToRemoteMap[n]={name:o.name,expose:i};return}if(d&&r.startsWith(d)){let n=r.replace(d,s);this.idToRemoteMap[n]={name:o.name,expose:i}}}async loadRemote(r,n){let o,{host:i}=this,s=v.matchRemoteWithNameAndExpose(i.options.remotes,r),d=r,g=s?.expose,_=s?b.getRemoteInfo(s.remote):void 0;try{let{loadFactory:s=!0}=n||{loadFactory:!0},{module:v,moduleOptions:E,remoteMatchInfo:k}=await this.getRemoteModuleAndOptions({id:r}),{pkgNameOrAlias:O,remote:R,expose:C,id:I,remoteSnapshot:A}=k;d=I,g=C,_=b.getRemoteInfo(R);let T=await v.get(I,C,n,A),j=await this.hooks.lifecycle.onLoad.emit({id:I,pkgNameOrAlias:O,expose:C,exposeModule:s?T:void 0,exposeModuleFactory:s?void 0:T,remote:R,options:E,moduleInstance:v,origin:i});if(this.setIdToRemoteMap(r,k),o={id:d,expose:g,remote:_,options:n,origin:i},"function"==typeof j)return j;return T}catch(b){let s,{from:v="runtime"}=n||{from:"runtime"};
3try{s=await this.hooks.lifecycle.errorLoadRemote.emit({id:r,error:b,from:v,lifecycle:"onLoad",expose:g,remote:_,origin:i})}catch(r){throw o={id:d,expose:g,remote:_,options:n,error:r,origin:i},r}if(!s)throw o={id:d,expose:g,remote:_,options:n,error:b,origin:i},b;return o={id:d,expose:g,remote:_,options:n,error:b,origin:i,recovered:!0},s}finally{o&&await this.hooks.lifecycle.afterLoadRemote.emit(o)}}async preloadRemote(r){let n,{host:o}=this,i=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:r,options:o.options,origin:o});let s=k.formatPreloadArgs(o.options.remotes,r),createPreloadAssetOps=r=>{let{preloadConfig:n,remote:o}=r,i=n.exposes||[];return i.length?i.map(i=>({ops:{...r,preloadConfig:{...n,exposes:[i]}},id:v.composeRemoteRequestId(o.name,i)})):[{ops:r,id:`${o.name}/*`}]};await Promise.all(s.flatMap(createPreloadAssetOps).map(async r=>{let{ops:n,id:s}=r,{remote:d,preloadConfig:g}=n,_=b.getRemoteInfo(d);try{let{globalSnapshot:r,remoteSnapshot:v}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:d,id:s,initiator:"preloadRemote"}),b=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:n,remote:d,remoteInfo:_,globalSnapshot:r,remoteSnapshot:v});if(!b)return;let E=await k.preloadAssets(_,o,b,!0,{initiator:"preloadRemote",id:s});i.push({remote:d,remoteInfo:_,preloadConfig:g,id:s,results:E})}catch(r){i.push({remote:d,remoteInfo:_,preloadConfig:g,id:s,results:[{url:_.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(_.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:s,error:r}]})}}));let d=i.flatMap(r=>r.results.filter(r=>"error"===r.status||"timeout"===r.status));if(d.length>0&&Object.assign(n=Error(`preloadRemote failed to load ${d.length} resource(s).`),{results:i,failedResults:d}),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:r,options:o.options,origin:o,results:i,error:n}),n)throw n}registerRemotes(r,n){let{host:o}=this;r.forEach(r=>{this.registerRemote(r,o.options.remotes,{force:n?.force})})}async getRemoteModuleAndOptions(r){let n,{host:o}=this,{id:s}=r;try{n=await this.hooks.lifecycle.beforeRequest.emit({id:s,options:o.options,origin:o})}catch(r){if(!(n=await this.hooks.lifecycle.errorLoadRemote.emit({id:s,options:o.options,origin:o,from:"runtime",error:r,lifecycle:"beforeRequest"})))throw r}let{id:d}=n,g=v.matchRemoteWithNameAndExpose(o.options.remotes,d);if(!g)try{i.error(N.RUNTIME_004,N.runtimeDescMap,{hostName:o.options.name,requestId:d},void 0,E.optionsToMFContext(o.options))}catch(r){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:d,options:o.options,error:r,origin:o}),r}let{remote:_}=g,k=b.getRemoteInfo(_);await this.hooks.lifecycle.afterMatchRemote.emit({id:d,...g,options:o.options,remoteInfo:k,origin:o});let R=await o.sharedHandler.hooks.lifecycle.afterResolve.emit({id:d,...g,options:o.options,origin:o,remoteInfo:k}),{remote:C,expose:I}=R;i.assert(C&&I,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${d}.`);let A=o.moduleCache.get(C.name),T={host:o,remoteInfo:k};return A||(A=new O.Module(T),o.moduleCache.set(C.name,A)),{module:A,moduleOptions:T,remoteMatchInfo:R}}registerRemote(r,n,o){let{host:s}=this,normalizeRemote=()=>{if(r.alias){let o=n.find(n=>r.alias&&(n.name.startsWith(r.alias)||n.alias?.startsWith(r.alias)));i.assert(!o,`The alias ${r.alias} of remote ${r.name} is not allowed to be the prefix of ${o&&o.name} name or alias`)}"entry"in r&&P.isBrowserEnvValue&&"undefined"!=typeof window&&!r.entry.startsWith("http")&&(r.entry=new URL(r.entry,window.location.origin).href),r.shareScope||(r.shareScope=g.DEFAULT_SCOPE),r.type||(r.type=g.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:r,origin:s});let d=n.find(n=>n.name===r.name);if(d){let i=[`The remote "${r.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];o?.force&&(this.removeRemote(d),normalizeRemote(),n.push(r),this.hooks.lifecycle.registerRemote.emit({remote:r,origin:s}),(0,P.warn)(i.join(" ")))}else normalizeRemote(),n.push(r),this.hooks.lifecycle.registerRemote.emit({remote:r,origin:s})}removeRemote(r){try{let{host:n}=this,{name:o}=r,i=n.options.remotes.findIndex(r=>r.name===o);-1!==i&&n.options.remotes.splice(i,1);let g=d.getInfoWithoutType(d.CurrentGlobal.__FEDERATION__.moduleInfo,s.getFMId(r)).key;delete d.CurrentGlobal.__FEDERATION__.moduleInfo[g],"entry"in r&&(n.snapshotHandler.manifestCache.delete(r.entry),delete d.Global.__FEDERATION__.__MANIFEST_LOADING__[r.entry]);let{hostGlobalSnapshot:v}=j.getGlobalRemoteInfo(r,n);if(v){let n=v&&"remotesInfo"in v&&v.remotesInfo&&d.getInfoWithoutType(v.remotesInfo,r.name).key;n&&delete v.remotesInfo[n]}let E=n.moduleCache.get(r.name);if(E){let o=E.remoteInfo,i=o.entryGlobalName;d.CurrentGlobal[i]&&(Object.getOwnPropertyDescriptor(d.CurrentGlobal,i)?.configurable?delete d.CurrentGlobal[i]:d.CurrentGlobal[i]=void 0);let s=b.getRemoteEntryUniqueKey(E.remoteInfo);d.globalLoading[s]&&delete d.globalLoading[s];let g=o.buildVersion?(0,P.composeKeyWithSeparator)(o.name,o.buildVersion):o.name,v=d.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(r=>o.buildVersion?r.options.id===g:r.name===g);if(-1!==v){let r=d.CurrentGlobal.__FEDERATION__.__INSTANCES__[v];g=r.options.id||g;let n=_.getGlobalShareScope(),i=!0,s=[];
3Object.keys(n).forEach(r=>{let d=n[r];d&&Object.keys(d).forEach(n=>{let g=d[n];g&&Object.keys(g).forEach(d=>{let _=g[d];_&&Object.keys(_).forEach(g=>{let v=_[g];v&&"object"==typeof v&&v.from===o.name&&(v.loaded||v.loading?(v.useIn=v.useIn.filter(r=>r!==o.name),v.useIn.length?i=!1:s.push([r,n,d,g])):s.push([r,n,d,g]))})})})}),i&&(r.shareScopeMap={},delete n[g]),s.forEach(([r,o,i,s])=>{delete n[r]?.[o]?.[i]?.[s]}),d.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(v,1)}n.moduleCache.delete(r.name)}}catch(r){i.logger.error(`removeRemote failed: ${r instanceof Error?r.message:String(r)}`)}}}},3930(r,n,o){let i=o(7778),s=o(6976),d=o(8523),g=o(2447);o(9690);let _=o(9413),v=o(5962),b=o(3731),E=o(2049),k=o(8559);o(1991);let O=o(5507);n.SharedHandler=class{constructor(r){this.hooks=new k.PluginSystem({beforeRegisterShare:new b.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new E.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new E.AsyncWaterfallHook("beforeLoadShare"),loadShare:new v.AsyncHook,afterLoadShare:new _.SyncHook("afterLoadShare"),errorLoadShare:new _.SyncHook("errorLoadShare"),resolveShare:new b.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new b.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=r,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(r.options)}emitAfterLoadShare({lifecycle:r,pkgName:n,shareInfo:o,selectedShared:s}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:n,shareInfo:o,selectedShared:s,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:r,origin:this.host})}catch(r){i.warn(r)}}emitErrorLoadShare({lifecycle:r,pkgName:n,shareInfo:o,error:s,recovered:d}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:n,shareInfo:o,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:r,origin:this.host,error:s,recovered:d})}catch(r){i.warn(r)}}registerShared(r,n){let{newShareInfos:o,allShareInfos:i}=d.formatShareConfigs(r,n);return Object.keys(o).forEach(r=>{o[r].forEach(o=>{o.scope.forEach(i=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:r,shared:o}),this.shareScopeMap[i]?.[r]||this.setShared({pkgName:r,lib:o.lib,get:o.get,loaded:o.loaded||!!o.lib,shared:o,from:n.name})})})}),{newShareInfos:o,allShareInfos:i}}async loadShare(r,n){let{host:o}=this,s=d.getTargetSharedOptions({pkgName:r,extraOptions:n,shareInfos:o.options.shared}),g=s;try{s?.scope&&await Promise.all(s.scope.map(async r=>{await Promise.all(this.initializeSharing(r,{strategy:s.strategy}))})),g=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:r,shareInfo:s,shared:o.options.shared,origin:o})).shareInfo,i.assert(g,`Cannot find shared "${r}" in host "${o.options.name}". Ensure the shared config for "${r}" is declared in the federation plugin options and the host has been initialized before loading shares.`);let _=g,{shared:v,useTreesShaking:b}=d.getRegisteredShare(this.shareScopeMap,r,g,this.hooks.lifecycle.resolveShare)||{};if(v){let n=d.directShare(v,b);if(n.lib)return d.addUseIn(n,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:r,shareInfo:_,selectedShared:v}),n.lib;if(n.loading&&!n.loaded){let i=await n.loading;return n.loaded=!0,n.lib||(n.lib=i),d.addUseIn(n,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:r,shareInfo:_,selectedShared:v}),i}{let i=(async()=>{let r=await n.get();return d.addUseIn(n,o.options.name),n.loaded=!0,n.lib=r,r})();this.setShared({pkgName:r,loaded:!1,shared:v,from:o.options.name,lib:null,loading:i,treeShaking:b?n:void 0});let s=await i;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:r,shareInfo:_,selectedShared:v}),s}}{if(n?.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:r,shareInfo:_,recovered:!0}),!1;let i=d.shouldUseTreeShaking(_.treeShaking),s=d.directShare(_,i),g=(async()=>{let n=await s.get();s.lib=n,s.loaded=!0,d.addUseIn(s,o.options.name);let{shared:i,useTreesShaking:g}=d.getRegisteredShare(this.shareScopeMap,r,_,this.hooks.lifecycle.resolveShare)||{};if(i){let r=d.directShare(i,g);r.lib=n,r.loaded=!0,i.from=_.from}return n})();this.setShared({pkgName:r,loaded:!1,shared:_,from:o.options.name,lib:null,loading:g,treeShaking:i?s:void 0});let v=await g;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:r,shareInfo:_,selectedShared:_}),v}}catch(n){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:r,shareInfo:g,error:n}),n}}initializeSharing(r=s.DEFAULT_SCOPE,n){let{host:o}=this,i=n?.from,g=n?.strategy,_=n?.initScope,v=[];if("build"!==i){let{initTokens:n}=this;_||(_=[]);let o=n[r];if(o||(o=n[r]={from:this.host.name}),_.indexOf(o)>=0)return v;_.push(o)}let b=this.shareScopeMap,E=o.options.name;b[r]||(b[r]={});let k=b[r],register=(r,n)=>{let{version:o,eager:i}=n;k[r]=k[r]||{};let s=k[r],g=s[o]&&d.directShare(s[o]),_=!!(g&&("eager"in g&&g.eager||"shareConfig"in g&&g.shareConfig?.eager));(!g||"loaded-first"!==g.strategy&&!g.loaded&&(!i!=!_?i:E>s[o].from))&&(s[o]=n)},initRemoteModule=async r=>{let n,{module:i}=await o.remoteHandler.getRemoteModuleAndOptions({id:r});try{n=await i.getEntry()}catch(s){if(!(n=await o.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:r,error:s,from:"runtime",lifecycle:"beforeLoadShare",remote:i.remoteInfo,origin:o})))return}finally{n?.init&&!i.initing&&(i.remoteEntryExports=n,await i.init(void 0,void 0,_))}};
3return Object.keys(o.options.shared).forEach(n=>{o.options.shared[n].forEach(o=>{o.scope.includes(r)&&register(n,o)})}),("version-first"===o.options.shareStrategy||"version-first"===g)&&o.options.remotes.forEach(n=>{n.shareScope===r&&v.push(initRemoteModule(n.name))}),v}loadShareSync(r,n){let{host:o}=this,s=d.getTargetSharedOptions({pkgName:r,extraOptions:n,shareInfos:o.options.shared});try{s?.scope&&s.scope.forEach(r=>{this.initializeSharing(r,{strategy:s.strategy})});let{shared:_}=d.getRegisteredShare(this.shareScopeMap,r,s,this.hooks.lifecycle.resolveShare)||{};if(_){if("function"==typeof _.lib)return d.addUseIn(_,o.options.name),_.loaded||(_.loaded=!0,_.from===o.options.name&&(s.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:r,shareInfo:s,selectedShared:_}),_.lib;if("function"==typeof _.get){let n=_.get();if(!(n instanceof Promise))return d.addUseIn(_,o.options.name),this.setShared({pkgName:r,loaded:!0,from:o.options.name,lib:n,shared:_}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:r,shareInfo:s,selectedShared:_}),n}}if(s.lib)return s.loaded||(s.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:r,shareInfo:s,selectedShared:s}),s.lib;if(s.get){let d=s.get();return d instanceof Promise&&i.error(n?.from==="build"?O.RUNTIME_005:O.RUNTIME_006,O.runtimeDescMap,{hostName:o.options.name,sharedPkgName:r},void 0,g.optionsToMFContext(o.options)),s.lib=d,this.setShared({pkgName:r,loaded:!0,from:o.options.name,lib:s.lib,shared:s}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:r,shareInfo:s,selectedShared:s}),s.lib}i.error(O.RUNTIME_006,O.runtimeDescMap,{hostName:o.options.name,sharedPkgName:r},void 0,g.optionsToMFContext(o.options))}catch(n){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:r,shareInfo:s,error:n}),n}}initShareScopeMap(r,n,o={}){let{host:i}=this;this.shareScopeMap[r]=n,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:n,options:i.options,origin:i,scopeName:r,hostShareScopeMap:o.hostShareScopeMap})}setShared({pkgName:r,shared:n,from:o,lib:i,loading:s,loaded:d,get:g,treeShaking:_}){let{version:v,scope:b="default",...E}=n,k=Array.isArray(b)?b:[b],mergeAttrs=r=>{let merge=(r,n,o)=>{o&&!r[n]&&(r[n]=o)},n=_?r.treeShaking:r;merge(n,"loaded",d),merge(n,"loading",s),merge(n,"get",g)};k.forEach(n=>{this.shareScopeMap[n]||(this.shareScopeMap[n]={}),this.shareScopeMap[n][r]||(this.shareScopeMap[n][r]={}),this.shareScopeMap[n][r][v]||(this.shareScopeMap[n][r][v]={version:v,scope:[n],...E,lib:i});let s=this.shareScopeMap[n][r][v];mergeAttrs(s),o&&s.from!==o&&(s.from=o)})}_setGlobalShareScopeMap(r){let n=d.getGlobalShareScope(),o=r.id||r.name;o&&!n[o]&&(n[o]=this.shareScopeMap)}}},6101(r,n,o){var i=o(1958).__exportAll({});Object.defineProperty(n,"type_exports",{enumerable:!0,get:function(){return i}})},2447(r,n){function remoteToEntry(r){return{name:r.name,alias:r.alias,entry:"entry"in r?r.entry:void 0,version:"version"in r?r.version:void 0,type:r.type,entryGlobalName:r.entryGlobalName,shareScope:r.shareScope}}n.optionsToMFContext=function(r){let n={};for(let[o,i]of Object.entries(r.shared)){let r=i[0];r&&(n[o]={version:r.version,singleton:r.shareConfig?.singleton,requiredVersion:r.shareConfig?.requiredVersion!==!1&&r.shareConfig?.requiredVersion,eager:r.eager,strictVersion:r.shareConfig?.strictVersion})}return{project:{name:r.name,mfRole:r.remotes?.length>0?"host":"unknown"},mfConfig:{name:r.name,remotes:r.remotes?.map(remoteToEntry)??[],shared:n}}}},6263(r,n,o){o(4696),n.getBuilderId=function(){return"router:1.0.0"}},5962(r,n,o){let i=o(9413);n.AsyncHook=class extends i.SyncHook{emit(...r){let n,o=Array.from(this.listeners);if(o.length>0){let i=0,call=n=>!1!==n&&(i<o.length?Promise.resolve(o[i++].apply(null,r)).then(o=>void 0===o||1===r.length&&o===r[0]?call(n):call(o)):n);n=call()}return Promise.resolve(n)}}},2049(r,n,o){let i=o(7778),s=o(3028),d=o(9413),g=o(3731);n.AsyncWaterfallHook=class extends d.SyncHook{constructor(r){super(),this.onerror=i.error,this.type=r}emit(r){s.isObject(r)||i.error(`The response data for the "${this.type}" hook must be an object.`);let n=Array.from(this.listeners);if(n.length>0){let o=0,processError=n=>
3(i.warn(n),this.onerror(n),r),call=i=>{if(void 0!==i&&g.checkReturnData(r,i))r=i;else if(void 0!==i)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),r;if(o<n.length)try{return Promise.resolve(n[o++](r)).then(call,processError)}catch(r){return processError(r)}return r};return Promise.resolve(call(r))}return Promise.resolve(r)}}},1991(r,n,o){o(9413),o(5962),o(3731),o(2049),o(8559)},8559(r,n,o){let i=o(7778),s=o(3028);o(9690),n.PluginSystem=class{constructor(r){this.registerPlugins={},this.lifecycle=r,this.lifecycleKeys=Object.keys(r)}applyPlugin(r,n){i.assert(s.isPlainObject(r),"Plugin configuration is invalid.");let o=r.name;i.assert(o,"A name must be provided by the plugin."),this.registerPlugins[o]||(this.registerPlugins[o]=r,r.apply?.(n),Object.keys(this.lifecycle).forEach(n=>{let o=r[n];o&&this.lifecycle[n].on(o)}))}removePlugin(r){i.assert(r,"A name is required.");let n=this.registerPlugins[r];i.assert(n,`The plugin "${r}" is not registered.`),Object.keys(n).forEach(r=>{"name"!==r&&this.lifecycle[r].remove(n[r])})}}},9413(r,n){n.SyncHook=class{constructor(r){this.type="",this.listeners=new Set,r&&(this.type=r)}on(r){"function"==typeof r&&this.listeners.add(r)}once(r){let n=this;this.on(function wrapper(...o){return n.remove(wrapper),r.apply(null,o)})}emit(...r){let n;return this.listeners.size>0&&this.listeners.forEach(o=>{let i=o(...r);void 0!==i&&(n=i)}),n}remove(r){this.listeners.delete(r)}removeAll(){this.listeners.clear()}}},3731(r,n,o){let i=o(7778),s=o(3028),d=o(9413);function checkReturnData(r,n){if(!s.isObject(n))return!1;if(r!==n){for(let o in r)if(!(o in n))return!1}return!0}n.SyncWaterfallHook=class extends d.SyncHook{constructor(r){super(),this.onerror=i.error,this.type=r}emit(r){for(let n of(s.isObject(r)||i.error(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let o=n(r);if(void 0===o)continue;if(checkReturnData(r,o))r=o;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(r){i.warn(r),this.onerror(r)}return r}},n.checkReturnData=checkReturnData},9690(r,n,o){o(7778),o(3028),o(6263),o(1505),o(2063),o(1326),o(2447),o(4696)},1326(r,n,o){let i=o(7778),s=o(9585),d=o(6976),g=o(4696),_=o(5507),v=".then(callbacks[0]).catch(callbacks[1])";async function loadEsmEntry({entry:r,remoteEntryExports:n}){return new Promise((o,s)=>{try{n?o(n):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${r}")${v}`)([o,s]):import(r).then(o).catch(s)}catch(n){i.error(`Failed to load ESM entry from "${r}". ${n instanceof Error?n.message:String(n)}`)}})}async function loadSystemJsEntry({entry:r,remoteEntryExports:n}){return new Promise((o,s)=>{try{n?o(n):Function("callbacks",`System.import("${r}")${v}`)([o,s])}catch(n){i.error(`Failed to load SystemJS entry from "${r}". ${n instanceof Error?n.message:String(n)}`)}})}function handleRemoteEntryLoaded(r,n,o){let{remoteEntryKey:d,entryExports:g}=s.getRemoteEntryExports(r,n);return g||i.error(_.RUNTIME_001,_.runtimeDescMap,{remoteName:r,remoteEntryUrl:o,remoteEntryKey:d}),g}async function loadEntryScript({name:r,globalName:n,entry:o,remoteInfo:d,loaderHook:v,getEntryUrl:b,resourceContext:E}){let{entryExports:k}=s.getRemoteEntryExports(r,n);if(k)return k;let O=b?b(o):o;return(0,g.loadScript)(O,{attrs:{},createScriptHook:(r,n)=>{let o=v.lifecycle.createScript.emit({url:r,attrs:n,remoteInfo:d,resourceContext:E?{...E,url:r}:void 0});if(o&&(o instanceof HTMLScriptElement||"script"in o||"timeout"in o))return o}}).then(()=>handleRemoteEntryLoaded(r,n,o),n=>{let o=n instanceof Error?n.message:String(n);i.error(_.RUNTIME_008,_.runtimeDescMap,{remoteName:r,resourceUrl:O},o)})}async function loadEntryDom({remoteInfo:r,remoteEntryExports:n,loaderHook:o,getEntryUrl:i,resourceContext:s}){let{entry:d,entryGlobalName:g,name:_,type:v}=r;switch(v){case"esm":case"module":return loadEsmEntry({entry:d,remoteEntryExports:n});case"system":return loadSystemJsEntry({entry:d,remoteEntryExports:n});default:return loadEntryScript({entry:d,globalName:g,name:_,remoteInfo:r,loaderHook:o,getEntryUrl:i,resourceContext:s})}}async function loadEntryNode({remoteInfo:r,loaderHook:n,resourceContext:o}){let{entry:d,entryGlobalName:_,name:v,type:b}=r,{entryExports:E}=s.getRemoteEntryExports(v,_);return E||(0,g.loadScriptNode)(d,{attrs:{name:v,globalName:_,type:b},loaderHook:{createScriptHook:(i,s={})=>{let d=n.lifecycle.createScript.emit({url:i,attrs:s,remoteInfo:r,resourceContext:o?{...o,url:i}:void 0});if(d&&"url"in d)return d}}}).then(()=>handleRemoteEntryLoaded(v,_,d)).catch(r=>{i.error(`Failed to load Node.js entry for remote "${v}" from "${d}". ${r instanceof Error?r.message:String(r)}`)})}function getRemoteEntryUniqueKey(r){let{entry:n,name:o}=r;return(0,g.composeKeyWithSeparator)(o,n)}async function getRemoteEntry(r){let{origin:n,remoteEntryExports:o,remoteInfo:i,getEntryUrl:d,resourceContext:v,_inErrorHandling:b=!1}=r,E=getRemoteEntryUniqueKey(i);if(o)return o;if(!s.globalLoading[E]){let r=n.remoteHandler.hooks.lifecycle.loadEntry,k=n.loaderHook;s.globalLoading[E]=r.emit({origin:n,loaderHook:k,remoteInfo:i,remoteEntryExports:o}).then(r=>r||(("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:g.isBrowserEnvValue)?loadEntryDom({remoteInfo:i,remoteEntryExports:o,loaderHook:k,getEntryUrl:d,resourceContext:v}):loadEntryNode({remoteInfo:i,loaderHook:k,resourceContext:v}))).then(async r=>(await n.loaderHook.lifecycle.afterLoadEntry.emit({origin:n,remoteInfo:i,remoteEntryExports:r}),r)).catch(async r=>{let d=getRemoteEntryUniqueKey(i),g=r instanceof Error&&r.message.includes("ScriptExecutionError");
3if(r instanceof Error&&r.message.includes(_.RUNTIME_008)&&!g&&!b){let wrappedGetRemoteEntry=r=>getRemoteEntry({...r,_inErrorHandling:!0}),r=await n.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:wrappedGetRemoteEntry,origin:n,remoteInfo:i,remoteEntryExports:o,globalLoading:s.globalLoading,uniqueKey:d});if(r)return await n.loaderHook.lifecycle.afterLoadEntry.emit({origin:n,remoteInfo:i,remoteEntryExports:r,recovered:!0}),r}throw await n.loaderHook.lifecycle.afterLoadEntry.emit({origin:n,remoteInfo:i,error:r}),r})}return s.globalLoading[E]}function getRemoteInfo(r){return{...r,entry:"entry"in r?r.entry:"",type:r.type||d.DEFAULT_REMOTE_TYPE,entryGlobalName:r.entryGlobalName||r.name,shareScope:r.shareScope||d.DEFAULT_SCOPE}}n.getRemoteEntry=getRemoteEntry,n.getRemoteEntryUniqueKey=getRemoteEntryUniqueKey,n.getRemoteInfo=getRemoteInfo},7778(r,n,o){let i=o(4696),s=o(99),d="[ Federation Runtime ]",g=(0,i.createLogger)(d);function error(r,n,o,i,g){if(void 0!==n)return(0,s.logAndReport)(r,n,o??{},r=>{throw Error(`${d}: ${r}`)},i,g);let _=r;
3if(_ instanceof Error)throw _.message.startsWith(d)||(_.message=`${d}: ${_.message}`),_;throw Error(`${d}: ${_}`)}function warn(r){r instanceof Error&&(r.message.startsWith(d)||(r.message=`${d}: ${r.message}`)),g.warn(r)}n.assert=function(r,n,o,i,s){r||(void 0!==o?error(n,o,i,void 0,s):error(n))},n.error=error,n.logger=g,n.warn=warn},1505(r,n){function matchRemoteWithNameAndExpose(r,n){for(let o of r){let r=n.startsWith(o.name),i=n.replace(o.name,"");if(r){if(i.startsWith("/"))return{pkgNameOrAlias:o.name,expose:i=`.${i}`,remote:o};else if(""===i)return{pkgNameOrAlias:o.name,expose:".",remote:o}}let s=o.alias&&n.startsWith(o.alias),d=o.alias&&n.replace(o.alias,"");if(o.alias&&s){if(d&&d.startsWith("/"))return{pkgNameOrAlias:o.alias,expose:d=`.${d}`,remote:o};else if(""===d)return{pkgNameOrAlias:o.alias,expose:".",remote:o}}}}function matchRemote(r,n){for(let o of r)if(n===o.name||o.alias&&n===o.alias)return o}n.composeRemoteRequestId=function(r,n){return n&&"."!==n?`${r}/${n.replace(/^\.\//,"")}`:r},n.matchRemote=matchRemote,n.matchRemoteWithNameAndExpose=matchRemoteWithNameAndExpose},2063(r,n,o){let i=o(9585);n.registerPlugins=function(r,n){let o=i.getGlobalHostPlugins(),s=[n.hooks,n.remoteHandler.hooks,n.sharedHandler.hooks,n.snapshotHandler.hooks,n.loaderHook,n.bridgeHook];return o.length>0&&o.forEach(n=>{r?.find(r=>r.name!==n.name)&&r.push(n)}),r&&r.length>0&&r.forEach(r=>{s.forEach(o=>{o.applyPlugin(r,n)})}),r}},3241(r,n,o){let i=o(7778),s=o(1505),d=o(1326),g=o(4696);function defaultPreloadArgs(r){return{resourceCategory:"sync",share:!0,depsRemote:!0,...r}}function formatPreloadArgs(r,n){return n.map(n=>{let o=s.matchRemote(r,n.nameOrAlias);return i.assert(o,`Unable to preload ${n.nameOrAlias} as it is not included in ${!o&&(0,g.safeToString)({remoteInfo:o,remotes:r})}`),{remote:o,preloadConfig:defaultPreloadArgs(n)}})}function normalizePreloadExposes(r){return r?r.map(r=>"."===r?r:r.startsWith("./")?r.replace("./",""):r):[]}function isTimeoutError(r){return r instanceof Error&&(r.message.includes("timed out")||r.name.includes("Timeout"))}function createAssetResult(r,n,o,i){return{url:n,status:o,resourceType:r.resourceType,initiator:r.initiator,id:r.id,error:i}}async function waitForRemoteEntryPreload(r,n,o,i){let s=r.moduleCache.get(o.name),g=o.entry;if(s?.remoteEntryExports)return createAssetResult(i,g,"cached");try{if(!await d.getRemoteEntry({origin:r,remoteInfo:o,remoteEntryExports:s?.remoteEntryExports,resourceContext:{...i,url:g}}))throw Error(`Failed to load remoteEntry "${g}".`);return createAssetResult(i,g,"success")}catch(r){return createAssetResult(i,g,isTimeoutError(r)?"timeout":"error",r)}}function waitForLinkPreload({host:r,remoteInfo:n,url:o,attrs:i,context:s,needDeleteLink:d}){return new Promise(_=>{let{link:v,needAttach:b}=(0,g.createLink)({url:o,cb:()=>{_(createAssetResult(s,o,b?"success":"cached"))},onErrorCallback:r=>{_(createAssetResult(s,o,isTimeoutError(r)?"timeout":"error",r))},attrs:i,createLinkHook:(o,i)=>{let d=r.loaderHook.lifecycle.createLink.emit({url:o,attrs:i,remoteInfo:n,resourceContext:{...s,url:o}});return d instanceof HTMLLinkElement,d},needDeleteLink:d});b&&document.head.appendChild(v)})}function waitForScriptPreload({host:r,remoteInfo:n,url:o,attrs:i,context:s}){return new Promise(d=>{let{script:_,needAttach:v}=(0,g.createScript)({url:o,cb:()=>{d(createAssetResult(s,o,v?"success":"cached"))},onErrorCallback:r=>{d(createAssetResult(s,o,isTimeoutError(r)?"timeout":"error",r))},attrs:i,createScriptHook:(o,i)=>{let d=r.loaderHook.lifecycle.createScript.emit({url:o,attrs:i,remoteInfo:n,resourceContext:{...s,url:o}});return d instanceof HTMLScriptElement,d},needDeleteScript:!0});v&&document.head.appendChild(_)})}function createResourceContext(r,n){return{...r,resourceType:n}}function preloadAssets(r,n,o,i=!0,s={initiator:"preloadRemote",id:r.name}){let{cssAssets:d,jsAssetsWithoutEntry:g,entryAssets:_}=o,v=[];if(n.options.inBrowser){if(_.forEach(o=>{let{moduleInfo:i}=o;v.push(waitForRemoteEntryPreload(n,r,i,createResourceContext(s,"remoteEntry")))}),i){let o={rel:"preload",as:"style"};d.forEach(i=>
3{v.push(waitForLinkPreload({host:n,remoteInfo:r,url:i,attrs:o,context:createResourceContext(s,"css")}))})}else{let o={rel:"stylesheet",type:"text/css"};d.forEach(i=>{v.push(waitForLinkPreload({host:n,remoteInfo:r,url:i,attrs:o,needDeleteLink:!1,context:createResourceContext(s,"css")}))})}if(i){let o={rel:"preload",as:"script"};g.forEach(i=>{v.push(waitForLinkPreload({host:n,remoteInfo:r,url:i,attrs:o,context:createResourceContext(s,"js")}))})}else{let o={fetchpriority:"high",type:r?.type==="module"?"module":"text/javascript"};g.forEach(i=>{v.push(waitForScriptPreload({host:n,remoteInfo:r,url:i,attrs:o,context:createResourceContext(s,"js")}))})}}return Promise.all(v)}n.defaultPreloadArgs=defaultPreloadArgs,n.formatPreloadArgs=formatPreloadArgs,n.normalizePreloadExposes=normalizePreloadExposes,n.preloadAssets=preloadAssets},4338(r,n){function compareAtom(r,n){return(r=Number(r)||r)>(n=Number(n)||n)?1:r===n?0:-1}function comparePreRelease(r,n){let{preRelease:o}=r,{preRelease:i}=n;if(void 0===o&&i)return 1;if(o&&void 0===i)return -1;if(void 0===o&&void 0===i)return 0;for(let r=0,n=o.length;r<=n;r++){let n=o[r],s=i[r];if(n!==s){if(void 0===n&&void 0===s)return 0;if(!n)return 1;if(!s)return -1;return compareAtom(n,s)}}return 0}function compareVersion(r,n){return compareAtom(r.major,n.major)||compareAtom(r.minor,n.minor)||compareAtom(r.patch,n.patch)||comparePreRelease(r,n)}function eq(r,n){return r.version===n.version}
3n.compare=function(r,n){switch(r.operator){case"":case"=":return eq(r,n);case">":return 0>compareVersion(r,n);case">=":return eq(r,n)||0>compareVersion(r,n);case"<":return compareVersion(r,n)>0;case"<=":return eq(r,n)||compareVersion(r,n)>0;case void 0:return!0;default:return!1}}},7824(r,n){let o="[0-9A-Za-z-]+",i=`(?:\\+(${o}(?:\\.${o})*))`,s="0|[1-9]\\d*",d="[0-9]+",g="\\d*[a-zA-Z-][a-zA-Z0-9-]*",_=`(?:${d}|${g})`,v=`(?:-?(${_}(?:\\.${_})*))`,b=`(?:${s}|${g})`,E=`(?:-(${b}(?:\\.${b})*))`,k=`${s}|x|X|\\*`,O=`[v=\\s]*(${k})(?:\\.(${k})(?:\\.(${k})(?:${E})?${i}?)?)?`,R=`^\\s*(${O})\\s+-\\s+(${O})\\s*$`,C=`[v=\\s]*${`(${d})\\.(${d})\\.(${d})`}${v}?${i}?`,I="((?:<|>)?=?)",A=`(\\s*)${I}\\s*(${C}|${O})`,T="(?:~>?)",j=`(\\s*)${T}\\s+`,P="(?:\\^)",N=`(\\s*)${P}\\s+`,D="(<|>)?=?\\s*\\*",F=`^${P}${O}$`,L=`v?${`(${s})\\.(${s})\\.(${s})`}${E}?${i}?`,U=`^${T}${O}$`,B=`^${I}\\s*${O}$`,V=`^${I}\\s*(${L})$|^$`,K="^\\s*>=\\s*0.0.0\\s*$";n.caret=F,n.caretTrim=N,n.comparator=V,n.comparatorTrim=A,n.gte0=K,n.hyphenRange=R,n.star=D,n.tilde=U,n.tildeTrim=j,n.xRange=B},9463(r,n,o){let i=o(4512),s=o(8),d=o(4338);function parseComparatorString(r){return i.pipe(s.parseCarets,s.parseTildes,s.parseXRanges,s.parseStar)(r)}function parseRange(r){return i.pipe(s.parseHyphen,s.parseComparatorTrim,s.parseTildeTrim,s.parseCaretTrim)(r.trim()).split(/\s+/).join(" ")}n.satisfy=function(r,n){if(!r)return!1;let o=i.extractComparator(r);if(!o)return!1;let[,g,,_,v,b,E]=o,k={operator:g,version:i.combineVersion(_,v,b,E),major:_,minor:v,patch:b,preRelease:E?.split(".")};for(let r of n.split("||")){let n=r.trim();if(!n||"*"===n||"x"===n)return!0;try{let r=parseRange(n);if(!r.trim())return!0;let o=r.split(" ").map(r=>parseComparatorString(r)).join(" ");if(!o.trim())return!0;let g=o.split(/\s+/).map(r=>s.parseGTE0(r)).filter(Boolean);if(0===g.length)continue;let _=!0;for(let r of g){let n=i.extractComparator(r);if(!n){_=!1;break}let[,o,,s,g,v,b]=n;if(!d.compare({operator:o,version:i.combineVersion(s,g,v,b),major:s,minor:g,patch:v,preRelease:b?.split(".")},k)){_=!1;break}}if(_)return!0}catch(r){console.error(`[semver] Error processing range part "${n}":`,r);continue}}return!1}},8(r,n,o){let i=o(7824),s=o(4512);function parseHyphen(r){return r.replace(s.parseRegex(i.hyphenRange),(r,n,o,i,d,g,_,v,b,E,k,O)=>(n=s.isXVersion(o)?"":s.isXVersion(i)?`>=${o}.0.0`:s.isXVersion(d)?`>=${o}.${i}.0`:`>=${n}`,v=s.isXVersion(b)?"":s.isXVersion(E)?`<${Number(b)+1}.0.0-0`:s.isXVersion(k)?`<${b}.${Number(E)+1}.0-0`:O?`<=${b}.${E}.${k}-${O}`:`<=${v}`,`${n} ${v}`.trim()))}function parseComparatorTrim(r){return r.replace(s.parseRegex(i.comparatorTrim),"$1$2$3")}function parseTildeTrim(r){return r.replace(s.parseRegex(i.tildeTrim),"$1~")}function parseCarets(r){return r.trim().split(/\s+/).map(r=>r.replace(s.parseRegex(i.caret),(r,n,o,i,d)=>{if(s.isXVersion(n))return"";if(s.isXVersion(o))return`>=${n}.0.0 <${Number(n)+1}.0.0-0`;if(s.isXVersion(i))if("0"===n)return`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`;else return`>=${n}.${o}.0 <${Number(n)+1}.0.0-0`;if(d)if("0"!==n)return`>=${n}.${o}.${i}-${d} <${Number(n)+1}.0.0-0`;else if("0"===o)return`>=${n}.${o}.${i}-${d} <${n}.${o}.${Number(i)+1}-0`;else return`>=${n}.${o}.${i}-${d} <${n}.${Number(o)+1}.0-0`;if("0"===n)if("0"===o)return`>=${n}.${o}.${i} <${n}.${o}.${Number(i)+1}-0`;else return`>=${n}.${o}.${i} <${n}.${Number(o)+1}.0-0`;return`>=${n}.${o}.${i} <${Number(n)+1}.0.0-0`})).join(" ")}function parseTildes(r){return r.trim().split(/\s+/).map(r=>r.replace(s.parseRegex(i.tilde),(r,n,o,i,d)=>s.isXVersion(n)?"":s.isXVersion(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:s.isXVersion(i)?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:d?`>=${n}.${o}.${i}-${d} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${i} <${n}.${Number(o)+1}.0-0`)).join(" ")}function parseXRanges(r){return r.split(/\s+/).map(r=>r.trim().replace(s.parseRegex(i.xRange),(r,n,o,i,d,g)=>{let _=s.isXVersion(o),v=_||s.isXVersion(i),b=v||s.isXVersion(d);if("="===n&&b&&(n=""),g="",_)if(">"===n||"<"===n)return"<0.0.0-0";else return"*";return n&&b?(v&&(i=0),d=0,">"===n?(n=">=",v?(o=Number(o)+1,i=0):i=Number(i)+1,d=0):"<="===n&&(n="<",v?o=Number(o)+1:i=Number(i)+1),"<"===n&&(g="-0"),`${n+o}.${i}.${d}${g}`):v?`>=${o}.0.0${g} <${Number(o)+1}.0.0-0`:b?`>=${o}.${i}.0${g} <${o}.${Number(i)+1}.0-0`:r})).join(" ")}function parseStar(r){return r.trim().replace(s.parseRegex(i.star),"")}function parseGTE0(r){return r.trim().replace(s.parseRegex(i.gte0),"")}n.parseCaretTrim=function(r){return r.replace(s.parseRegex(i.caretTrim),"$1^")},n.parseCarets=parseCarets,n.parseComparatorTrim=parseComparatorTrim,n.parseGTE0=parseGTE0,n.parseHyphen=parseHyphen,n.parseStar=parseStar,n.parseTildeTrim=parseTildeTrim,n.parseTildes=parseTildes,n.parseXRanges=parseXRanges},4512(r,n,o){let i=o(7824);function parseRegex(r){return new RegExp(r)}function isXVersion(r){return!r||"x"===r.toLowerCase()||"*"===r}function pipe(...r){return n=>r.reduce((r,n)=>n(r),n)}function extractComparator(r){return r.match(parseRegex(i.comparator))}n.combineVersion=function(r,n,o,i){let s=`${r}.${n}.${o}`;return i?`${s}-${i}`:s},n.extractComparator=extractComparator,n.isXVersion=isXVersion,n.parseRegex=parseRegex,n.pipe=pipe},8523(r,n,o){let i=o(7778),s=o(3028),d=o(9585),g=o(6976),_=o(9463),v=o(4696);function formatShare(r,n,o,s){let d;return d="get"in r?r.get:"lib"in r?()=>Promise.resolve(r.lib):()=>Promise.resolve(()=>{i.error(`Cannot get shared "${o}" from "${n}": neither "get" nor "lib" is provided in the share config.`)}),r.shareConfig?.eager&&r.treeShaking?.mode&&i.error(`Invalid shared config for "${o}" from "${n}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:n,loading:null,...r,shareConfig:{requiredVersion:`^${r.version}`,singleton:!1,eager:!1,strictVersion:!1,...r.shareConfig},get:d,loaded:!!r?.loaded||"lib"in r||void 0,version:r.version??"0",scope:Array.isArray(r.scope)?r.scope:[r.scope??"default"],strategy:(r.strategy??s)||"version-first",treeShaking:r.treeShaking?{...r.treeShaking,mode:r.treeShaking.mode??"server-calc",status:r.treeShaking.status??v.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}function formatShareConfigs(r,n){let o=n.shared||{},i=n.name,d=Object.keys(o).reduce((r,d)=>{let g=s.arrayOptions(o[d]);
3return r[d]=r[d]||[],g.forEach(o=>{r[d].push(formatShare(o,i,d,n.shareStrategy))}),r},{}),g={...r.shared};return Object.keys(d).forEach(r=>{g[r]?d[r].forEach(n=>{g[r].find(r=>r.version===n.version)||g[r].push(n)}):g[r]=d[r]}),{allShareInfos:g,newShareInfos:d}}function shouldUseTreeShaking(r,n){if(!r)return!1;let{status:o,mode:i}=r;return o!==v.TreeShakingStatus.NO_USE&&(o===v.TreeShakingStatus.CALCULATED||"runtime-infer"===i&&(!n||isMatchUsedExports(r,n)))}function versionLt(r,n){let transformInvalidVersion=r=>{if(!Number.isNaN(Number(r))){let n=r.split("."),o=r;for(let r=0;r<3-n.length;r++)o+=".0";return o}return r};return!!_.satisfy(transformInvalidVersion(r),`<=${transformInvalidVersion(n)}`)}let findVersion=(r,n)=>{let o=n||function(r,n){return versionLt(r,n)};return Object.keys(r).reduce((r,n)=>!r||o(r,n)||"0"===r?n:r,0)},isLoaded=r=>!!r.loaded||"function"==typeof r.lib,isLoading=r=>!!r.loading,isMatchUsedExports=(r,n)=>{if(!r||!n)return!1;let{usedExports:o}=r;return!!o&&!!n.every(r=>o.includes(r))};function findSingletonVersionOrderByVersion(r,n,o,i){let s=r[n][o],d="",g=shouldUseTreeShaking(i),callback=function(r,n){return g?!s[r].treeShaking||!!s[n].treeShaking&&!isLoaded(s[r].treeShaking)&&versionLt(r,n):!isLoaded(s[r])&&versionLt(r,n)};if(g){if(d=findVersion(r[n][o],callback))return{version:d,useTreesShaking:g};g=!1}return{version:findVersion(r[n][o],callback),useTreesShaking:g}}let isLoadingOrLoaded=r=>isLoaded(r)||isLoading(r);function findSingletonVersionOrderByLoaded(r,n,o,i){let s=r[n][o],d="",g=shouldUseTreeShaking(i),callback=function(r,n){if(g){if(!s[r].treeShaking)return!0;if(!s[n].treeShaking)return!1;if(isLoadingOrLoaded(s[n].treeShaking))if(isLoadingOrLoaded(s[r].treeShaking))return!!versionLt(r,n);else return!0;if(isLoadingOrLoaded(s[r].treeShaking))return!1}if(isLoadingOrLoaded(s[n]))if(isLoadingOrLoaded(s[r]))return!!versionLt(r,n);else return!0;return!isLoadingOrLoaded(s[r])&&versionLt(r,n)};if(g){if(d=findVersion(r[n][o],callback))return{version:d,useTreesShaking:g};g=!1}return{version:findVersion(r[n][o],callback),useTreesShaking:g}}function getFindShareFunction(r){return"loaded-first"===r?findSingletonVersionOrderByLoaded:findSingletonVersionOrderByVersion}function getRegisteredShare(r,n,o,s){if(!r)return;let{shareConfig:v,scope:b=g.DEFAULT_SCOPE,strategy:E,treeShaking:k}=o;for(let g of Array.isArray(b)?b:[b])if(v&&r[g]&&r[g][n]){let{requiredVersion:b}=v,{version:O,useTreesShaking:R}=getFindShareFunction(E)(r,g,n,k),defaultResolver=()=>{let s=r[g][n][O];if(v.singleton){if("string"==typeof b&&!_.satisfy(O,b)){let r=`Version ${O} from ${O&&s.from} of shared singleton module ${n} does not satisfy the requirement of ${o.from} which needs ${b})`;v.strictVersion?i.error(r):i.warn(r)}return{shared:s,useTreesShaking:R}}{if(!1===b||"*"===b||_.satisfy(O,b))return{shared:s,useTreesShaking:R};let o=shouldUseTreeShaking(k);if(o){for(let[i,s]of Object.entries(r[g][n]))if(shouldUseTreeShaking(s.treeShaking,k?.usedExports)&&_.satisfy(i,b))return{shared:s,useTreesShaking:o}}for(let[o,i]of Object.entries(r[g][n]))if(_.satisfy(o,b))return{shared:i,useTreesShaking:!1}}},C={shareScopeMap:r,scope:g,pkgName:n,version:O,GlobalFederation:d.Global.__FEDERATION__,shareInfo:o,resolver:defaultResolver};return(s.emit(C)||C).resolver()}}function getGlobalShareScope(){return d.Global.__FEDERATION__.__SHARE__}function getTargetSharedOptions(r){let{pkgName:n,extraOptions:o,shareInfos:i}=r,defaultResolver=r=>{if(!r)return;let n={};r.forEach(r=>{n[r.version]=r});let callback=function(r,o){return!isLoaded(n[r])&&versionLt(r,o)};return n[findVersion(n,callback)]},s=o?.resolver??defaultResolver,isPlainObject=r=>null!==r&&"object"==typeof r&&!Array.isArray(r),merge=(...r)=>{let n={};for(let o of r)if(o)for(let[r,i]of Object.entries(o)){let o=n[r];isPlainObject(o)&&isPlainObject(i)?n[r]=merge(o,i):void 0!==i&&(n[r]=i)}return n};return merge(s(i[n]),o?.customShareInfo)}function directShare(r,n){return n&&r.treeShaking?r.treeShaking:r}n.addUseIn=(r,n)=>{r.useIn||(r.useIn=[]),s.addUniqueItem(r.useIn,n)},n.directShare=directShare,n.formatShareConfigs=formatShareConfigs,n.getGlobalShareScope=getGlobalShareScope,n.getRegisteredShare=getRegisteredShare,n.getTargetSharedOptions=getTargetSharedOptions,n.shouldUseTreeShaking=shouldUseTreeShaking},3028(r,n,o){let i=o(7778),s=o(4696);function addUniqueItem(r,n){return -1===r.findIndex(r=>r===n)&&r.push(n),r}function getFMId(r){return"version"in r&&r.version?`${r.name}:${r.version}`:"entry"in r&&r.entry?`${r.name}:${r.entry}`:`${r.name}`}function isRemoteInfoWithEntry(r){return void 0!==r.entry}function isPureRemoteEntry(r){return!r.entry.includes(".json")}async function safeWrapper(r,n){try{return await r()}catch(r){n||i.warn(r);return}}function isObject(r){return r&&"object"==typeof r}let d=Object.prototype.toString;function isPlainObject(r){return"[object Object]"===d.call(r)}function isStaticResourcesEqual(r,n){let o=/^(https?:)?\/\//i;return r.replace(o,"").replace(/\/$/,"")===n.replace(o,"").replace(/\/$/,"")}function arrayOptions(r){return Array.isArray(r)?r:[r]}function getRemoteEntryInfoFromSnapshot(r){let n={url:"",type:"global",globalName:""};return s.isBrowserEnvValue||(0,s.isReactNativeEnv)()||!("ssrRemoteEntry"in r)?"remoteEntry"in r?{url:r.remoteEntry,type:r.remoteEntryType,globalName:r.globalName}:n:"ssrRemoteEntry"in r?{url:r.ssrRemoteEntry||n.url,type:r.ssrRemoteEntryType||n.type,globalName:r.globalName}:n}let processModuleAlias=(r,n)=>{let o;return o=r.endsWith("/")?r.slice(0,-1):r,n.startsWith(".")&&(n=n.slice(1)),o+=n};n.addUniqueItem=addUniqueItem,n.arrayOptions=arrayOptions,n.getFMId=getFMId,n.getRemoteEntryInfoFromSnapshot=getRemoteEntryInfoFromSnapshot,n.isObject=isObject,n.isPlainObject=isPlainObject,n.isPureRemoteEntry=isPureRemoteEntry,n.isRemoteInfoWithEntry=isRemoteInfoWithEntry,n.isStaticResourcesEqual=isStaticResourcesEqual,n.objectToString=d,n.processModuleAlias=processModuleAlias,n.safeWrapper=safeWrapper},1854(r,n){var o=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,g=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,__copyProps=(r,n,o,g)=>{if(n&&"object"==typeof n||"function"==typeof n)for(var v,b=d(n),E=0,k=b.length;E<k;E++)v=b[E],_.call(r,v)||v===o||i(r,v,{get:(r=>n[r]).bind(null,v),enumerable:!(g=s(n,v))||g.enumerable});return r};n.__toESM=(r,n,s)=>(s=null!=r?o(g(r)):{},__copyProps(!n&&r&&r.__esModule?s:i(s,"default",{value:r,enumerable:!0}),r))},4847(r,n,o){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),o(1854);let i=o(147),s=o(320),d={...s.helpers.global,getGlobalFederationInstance:i.getGlobalFederationInstance},g=s.helpers.share,_=s.helpers.utils;n.default={global:d,share:g,utils:_},n.global=d,n.share=g,n.utils=_},8488(r,n,o){Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),o(1854);let i=o(147),s=o(320),d=o(5507);function createInstance(r){let n=new((0,s.getGlobalFederationConstructor)()||s.ModuleFederation)({id:`${r.name}@${r.version||Date.now()}`,...r});return(0,s.setGlobalFederationInstance)(n),n}let g=null;function init(r){let n=i.getGlobalFederationInstance(r.name,r.version),o={...r,id:r.id||""};return n?(n.initOptions(o),g||(g=n),n):g=createInstance(o)}function loadRemote(...r){return(0,s.assert)(g,d.RUNTIME_009,d.runtimeDescMap),g.loadRemote.apply(g,r)}function loadShare(...r){return(0,s.assert)(g,d.RUNTIME_009,d.runtimeDescMap),g.loadShare.apply(g,r)}function loadShareSync(...r){return(0,s.assert)(g,d.RUNTIME_009,d.runtimeDescMap),g.loadShareSync.apply(g,r)}function preloadRemote(...r){return(0,s.assert)(g,d.RUNTIME_009,d.runtimeDescMap),g.preloadRemote.apply(g,r)}function registerRemotes(...r){return(0,s.assert)(g,d.RUNTIME_009,d.runtimeDescMap),g.registerRemotes.apply(g,r)}function registerPlugins(...r){return(0,s.assert)(g,d.RUNTIME_009,d.runtimeDescMap),g.registerPlugins.apply(g,r)}function getInstance(r){return r?s.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(r)||null:g}function registerShared(...r){return(0,s.assert)(g,d.RUNTIME_009,d.runtimeDescMap),g.registerShared.apply(g,r)}(0,s.setGlobalFederationConstructor)(s.ModuleFederation),Object.defineProperty(n,"Module",{enumerable:!0,get:function(){return s.Module}}),n.ModuleFederation=s.ModuleFederation,n.createInstance=createInstance,n.getInstance=getInstance,Object.defineProperty(n,"getRemoteEntry",{enumerable:!0,get:function(){return s.getRemoteEntry}}),Object.defineProperty(n,"getRemoteInfo",{enumerable:!0,get:function(){return s.getRemoteInfo}}),n.init=init,n.loadRemote=loadRemote,Object.defineProperty(n,"loadScript",{enumerable:!0,get:function(){return s.loadScript}}),Object.defineProperty(n,"loadScriptNode",{enumerable:!0,get:function(){return s.loadScriptNode}}),n.loadShare=loadShare,n.loadShareSync=loadShareSync,n.preloadRemote=preloadRemote,Object.defineProperty(n,"registerGlobalPlugins",{enumerable:!0,get:function(){return s.registerGlobalPlugins}}),n.registerPlugins=registerPlugins,n.registerRemotes=registerRemotes,n.registerShared=registerShared},147(r,n,o){o(1854);let i=o(320);function getBuilderId(){return"router:1.0.0"}n.getGlobalFederationInstance=function(r,n){let o=getBuilderId();return i.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(i=>!!o&&i.options.id===o||i.options.name===r&&!i.options.version&&!n||i.options.name===r&&!!n&&i.options.version===n)}},4158(r,n){var o=Object.defineProperty;n.__exportAll=(r,n)=>{let i={};for(var s in r)o(i,s,{get:r[s],enumerable:!0});return n||o(i,Symbol.toStringTag,{value:"Module"}),i}},7848(r,n){let o="federation-manifest.json",i=".json",s="FEDERATION_DEBUG",d={AT:"@",HYPHEN:"-",SLASH:"/"},g={[d.AT]:"scope_",[d.HYPHEN]:"_",[d.SLASH]:"__"},_={[g[d.AT]]:d.AT,[g[d.HYPHEN]]:d.HYPHEN,[g[d.SLASH]]:d.SLASH},v=":",b="mf-manifest.json",E="mf-stats.json",k={NPM:"npm",APP:"app"},O="__MF_DEVTOOLS_MODULE_INFO__",R="ENCODE_NAME_PREFIX",C=".federation",I=function(r){return r[r.UNKNOWN=1]="UNKNOWN",r[r.CALCULATED=2]="CALCULATED",r[r.NO_USE=0]="NO_USE",r}({});n.BROWSER_LOG_KEY=s,n.ENCODE_NAME_PREFIX=R,n.EncodedNameTransformMap=_,n.FederationModuleManifest=o,n.MANIFEST_EXT=i,n.MFModuleType=k,n.MODULE_DEVTOOL_IDENTIFIER=O,n.ManifestFileName=b,n.NameTransformMap=g,n.NameTransformSymbol=d,n.SEPARATOR=v,n.StatsFileName=E,n.TEMP_DIR=C,n.TreeShakingStatus=I},7029(r,n){n.createModuleFederationConfig=r=>r},1112(r,n,o){let i=o(627);async function safeWrapper(r,n){try{return await r()}catch(r){n||i.warn(r);return}}function isStaticResourcesEqual(r,n){let o=/^(https?:)?\/\//i;return r.replace(o,"").replace(/\/$/,"")===n.replace(o,"").replace(/\/$/,"")}function createScript(r){let n,o=null,i=!0,s=2e4,d=document.getElementsByTagName("script");for(let n=0;n<d.length;n++){let s=d[n],g=s.getAttribute("src");if(g&&isStaticResourcesEqual(g,r.url)){o=s,i=!1;break}}if(!o){let n,i=r.attrs;(o=document.createElement("script")).type=i?.type==="module"?"module":"text/javascript",r.createScriptHook&&((n=r.createScriptHook(r.url,r.attrs))instanceof HTMLScriptElement?o=n:"object"==typeof n&&("script"in n&&n.script&&(o=n.script),"timeout"in n&&n.timeout&&(s=n.timeout))),o.src||(o.src=r.url),i&&!n&&Object.keys(i).forEac
3h(r=>{o&&("async"===r||"defer"===r?o[r]=i[r]:o.getAttribute(r)||o.setAttribute(r,i[r]))})}let g=null,_="undefined"!=typeof window?n=>{if(n.filename&&isStaticResourcesEqual(n.filename,r.url)){let o=Error(`ScriptExecutionError: Script "${r.url}" loaded but threw a runtime error during execution: ${n.message} (${n.filename}:${n.lineno}:${n.colno})`);o.name="ScriptExecutionError",g=o}}:null;_&&window.addEventListener("error",_);let onScriptComplete=async(i,s)=>{clearTimeout(n),_&&window.removeEventListener("error",_);let onScriptCompleteCallback=()=>{if(s?.type==="error"){let n=Error(s?.isTimeout?`ScriptNetworkError: Script "${r.url}" timed out.`:`ScriptNetworkError: Failed to load script "${r.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);n.name="ScriptNetworkError",r?.onErrorCallback&&r?.onErrorCallback(n)}else g?r?.onErrorCallback&&r?.onErrorCallback(g):r?.cb&&r?.cb()};if(o&&(o.onerror=null,o.onload=null,safeWrapper(()=>{let{needDeleteScript:n=!0}=r;n&&o?.parentNode&&o.parentNode.removeChild(o)}),i&&"function"==typeof i)){let r=i(s);if(r instanceof Promise){let n=await r;return onScriptCompleteCallback(),n}return onScriptCompleteCallback(),r}onScriptCompleteCallback()};return o.onerror=onScriptComplete.bind(null,o.onerror),o.onload=onScriptComplete.bind(null,o.onload),n=setTimeout(()=>{onScriptComplete(null,{type:"error",isTimeout:!0})},s),{script:o,needAttach:i}}function loadScript(r,n){let{attrs:o={},createScriptHook:i}=n;return new Promise((n,s)=>{let{script:d,needAttach:g}=createScript({url:r,cb:n,onErrorCallback:s,attrs:{fetchpriority:"high",...o},createScriptHook:i,needDeleteScript:!0});g&&document.head.appendChild(d)})}n.createLink=function(r){let n,o=null,i=!0,s=2e4,d=document.getElementsByTagName("link");for(let n=0;n<d.length;n++){let s=d[n],g=s.getAttribute("href"),_=s.getAttribute("rel");if(g&&isStaticResourcesEqual(g,r.url)&&_===r.attrs.rel){o=s,i=!1;break}}if(!o){let n;(o=document.createElement("link")).setAttribute("href",r.url);let i=!0,d=r.attrs;r.createLinkHook&&((n=r.createLinkHook(r.url,d))instanceof HTMLLinkElement?(o=n,i=!1):"object"==typeof n&&("link"in n&&n.link&&(o=n.link,i=!1),"timeout"in n&&n.timeout&&(s=n.timeout))),d&&i&&Object.keys(d).forEach(r=>{o&&!o.getAttribute(r)&&o.setAttribute(r,d[r])})}if(!i)return Promise.resolve().then(()=>{r?.cb&&r?.cb()}),{link:o,needAttach:i};let onLinkComplete=(i,s)=>{n&&clearTimeout(n);let onLinkCompleteCallback=()=>{if(s?.type==="error"){let n=Error(s?.isTimeout?`LinkNetworkError: Link "${r.url}" timed out.`:`LinkNetworkError: Failed to load link "${r.url}" - the URL is unreachable or the server returned an error.`);n.name="LinkNetworkError",r?.onErrorCallback&&r?.onErrorCallback(n)}else r?.cb&&r?.cb()};if(o&&(o.onerror=null,o.onload=null,safeWrapper(()=>{let{needDeleteLink:n=!0}=r;n&&o?.parentNode&&o.parentNode.removeChild(o)}),i)){let r=i(s);return onLinkCompleteCallback(),r}onLinkCompleteCallback()};return o.onerror=onLinkComplete.bind(null,o.onerror),o.onload=onLinkComplete.bind(null,o.onload),n=setTimeout(()=>{onLinkComplete(null,{type:"error",isTimeout:!0})},s),{link:o,needAttach:i}},n.createScript=createScript,n.isStaticResourcesEqual=isStaticResourcesEqual,n.loadScript=loadScript,n.safeWrapper=safeWrapper},497(r,n,o){let i=o(7848),s="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:"undefined"!=typeof window&&void 0!==window.document;function isBrowserEnv(){return s}function isReactNativeEnv(){return"undefined"!=typeof navigator&&navigator?.product==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(i.BROWSER_LOG_KEY)}catch(r){}return!1}function isDebugMode(){return"undefined"!=typeof process&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:!!("undefined"!=typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||isBrowserDebug()}n.getProcessEnv=function(){return"undefined"!=typeof process&&process.env?process.env:{}},n.isBrowserEnv=isBrowserEnv,n.isBrowserEnvValue=s,n.isDebugMode=isDebugMode,n.isReactNativeEnv=isReactNativeEnv},3006(r,n,o){let i=o(7848),simpleJoinRemoteEntry=(r,n)=>{if(!r)return n;let o=(r=>{if("."===r)return"";if(r.startsWith("./"))return r.replace("./","");if(r.startsWith("/")){let n=r.slice(1);return n.endsWith("/")?n.slice(0,-1):n}return r})(r);return o?o.endsWith("/")?`${o}${n}`:`${o}/${n}`:n};function inferAutoPublicPath(r){return r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function isManifestProvider(r){return!!("remoteEntry"in r&&r.remoteEntry.includes(i.MANIFEST_EXT))}function getManifestFileName(r){if(!r)return{statsFileName:i.StatsFileName,manifestFileName:i.ManifestFileName};let n="boolean"==typeof r?"":r.filePath||"",o="boolean"==typeof r?"":r.fileName||"",s=".json",addExt=r=>r.endsWith(s)?r:`${r}${s}`,insertSuffix=(r,n)=>r.replace(s,`${n}${s}`),d=o?addExt(o):i.ManifestFileName;return{statsFileName:simpleJoinRemoteEntry(n,o?insertSuffix(d,"-stats"):i.StatsFileName),manifestFileName:simpleJoinRemoteEntry(n,d)}}n.generateSnapshotFromManifest=function(r,n={}){let o,{remotes:i={},overrides:s={},version:d}=n,getPublicPath=()=>"publicPath"in r.metaData?("auto"===r.metaData.publicPath||""===r.metaData.publicPath)&&d?inferAutoPublicPath(d):r.metaData.publicPath:r.metaData.getPublicPath,g=Object.keys(s),_={};Object.keys(i).length||(_=r.remotes?.reduce((r,n)=>{let o,i=n.federationContainerName;return o=g.includes(i)?s[i]:"version"in n?n.version:n.entry,r[i]={matchedVersion:o},r},{})||{}
3),Object.keys(i).forEach(r=>_[r]={matchedVersion:g.includes(r)?s[r]:i[r]});let{remoteEntry:{path:v,name:b,type:E},types:k={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:O},globalName:R,ssrRemoteEntry:C}=r.metaData,{exposes:I}=r,A={version:d||"",buildVersion:O,globalName:R,remoteEntry:simpleJoinRemoteEntry(v,b),remoteEntryType:E,remoteTypes:simpleJoinRemoteEntry(k.path,k.name),remoteTypesZip:k.zip||"",remoteTypesAPI:k.api||"",remotesInfo:_,shared:r?.shared.map(r=>({assets:r.assets,sharedName:r.name,version:r.version,usedExports:r.referenceExports||[]})),modules:I?.map(r=>({moduleName:r.name,modulePath:r.path,assets:r.assets}))};if("publicPath"in r.metaData?(o={...A,publicPath:getPublicPath()},"string"==typeof r.metaData.ssrPublicPath&&(o.ssrPublicPath=r.metaData.ssrPublicPath)):o={...A,getPublicPath:getPublicPath()},C){let r=simpleJoinRemoteEntry(C.path,C.name);o.ssrRemoteEntry=r,o.ssrRemoteEntryType=C.type||"commonjs-module"}return o},n.getManifestFileName=getManifestFileName,n.inferAutoPublicPath=inferAutoPublicPath,n.isManifestProvider=isManifestProvider,n.simpleJoinRemoteEntry=simpleJoinRemoteEntry},4696(r,n,o){Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let i=o(7848),s=o(851),d=o(1107),g=o(3163),_=o(7983),v=o(6463),b=o(8546),E=o(497),k=o(627),O=o(3006),R=o(3672),C=o(1112),I=o(7640),A=o(3625),T=o(7029);n.BROWSER_LOG_KEY=i.BROWSER_LOG_KEY,n.ENCODE_NAME_PREFIX=i.ENCODE_NAME_PREFIX,n.EncodedNameTransformMap=i.EncodedNameTransformMap,n.FederationModuleManifest=i.FederationModuleManifest,n.MANIFEST_EXT=i.MANIFEST_EXT,n.MFModuleType=i.MFModuleType,n.MODULE_DEVTOOL_IDENTIFIER=i.MODULE_DEVTOOL_IDENTIFIER,n.ManifestFileName=i.ManifestFileName,n.NameTransformMap=i.NameTransformMap,n.NameTransformSymbol=i.NameTransformSymbol,n.SEPARATOR=i.SEPARATOR,n.StatsFileName=i.StatsFileName,n.TEMP_DIR=i.TEMP_DIR,n.TreeShakingStatus=i.TreeShakingStatus,n.assert=k.assert,n.bindLoggerToCompiler=R.bindLoggerToCompiler,n.composeKeyWithSeparator=k.composeKeyWithSeparator,Object.defineProperty(n,"consumeSharedPlugin",{enumerable:!0,get:function(){return v.ConsumeSharedPlugin_exports}}),Object.defineProperty(n,"containerPlugin",{enumerable:!0,get:function(){return s.ContainerPlugin_exports}}),Object.defineProperty(n,"containerReferencePlugin",{enumerable:!0,get:function(){return d.ContainerReferencePlugin_exports}}),n.createInfrastructureLogger=R.createInfrastructureLogger,n.createLink=C.createLink,n.createLogger=R.createLogger,n.createModuleFederationConfig=T.createModuleFederationConfig,n.createScript=C.createScript,n.createScriptNode=I.createScriptNode,n.decodeName=k.decodeName,n.encodeName=k.encodeName,n.error=k.error,n.generateExposeFilename=k.generateExposeFilename,n.generateShareFilename=k.generateShareFilename,n.generateSnapshotFromManifest=O.generateSnapshotFromManifest,n.getManifestFileName=O.getManifestFileName,n.getProcessEnv=E.getProcessEnv,n.getResourceUrl=k.getResourceUrl,n.inferAutoPublicPath=O.inferAutoPublicPath,n.infrastru
3ctureLogger=R.infrastructureLogger,n.isBrowserEnv=E.isBrowserEnv,n.isBrowserEnvValue=E.isBrowserEnvValue,n.isDebugMode=E.isDebugMode,n.isManifestProvider=O.isManifestProvider,n.isReactNativeEnv=E.isReactNativeEnv,n.isRequiredVersion=k.isRequiredVersion,n.isStaticResourcesEqual=C.isStaticResourcesEqual,n.loadScript=C.loadScript,n.loadScriptNode=I.loadScriptNode,n.logger=R.logger,Object.defineProperty(n,"moduleFederationPlugin",{enumerable:!0,get:function(){return g.ModuleFederationPlugin_exports}}),n.normalizeOptions=A.normalizeOptions,n.parseEntry=k.parseEntry,Object.defineProperty(n,"provideSharedPlugin",{enumerable:!0,get:function(){return b.ProvideSharedPlugin_exports}}),n.safeToString=k.safeToString,n.safeWrapper=C.safeWrapper,Object.defineProperty(n,"sharePlugin",{enumerable:!0,get:function(){return _.SharePlugin_exports}}),n.simpleJoinRemoteEntry=O.simpleJoinRemoteEntry,n.warn=k.warn},3672(r,n,o){let i=o(497),s="[ Module Federation ]",d=console,g=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function captureStackTrace(){try{let r=Error().stack;if(!r)return;let[,...n]=r.split("\n"),o=n.filter(r=>!g.some(n=>r.includes(n)));if(!o.length)return;return`Stack trace:
4${o.slice(0,5).join("\n")}`}catch{return}}var _=class{constructor(r,n=d){this.prefix=r,this.delegate=n??d}setPrefix(r){this.prefix=r}setDelegate(r){this.delegate=r??d}emit(r,n){let o=this.delegate,s=i.isDebugMode()?captureStackTrace():void 0,g=s?[...n,s]:n,_=(()=>{switch(r){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let r of _){let n=o[r];if("function"==typeof n)return void n.call(o,this.prefix,...g)}for(let r of _){let n=d[r];if("function"==typeof n)return void n.call(d,this.prefix,...g)}}log(...r){this.emit("log",r)}warn(...r){this.emit("warn",r)}error(...r){this.emit("error",r)}success(...r){this.emit("info",r)}info(...r){this.emit("info",r)}ready(...r){this.emit("info",r)}debug(...r){i.isDebugMode()&&this.emit("debug",r)}};function createLogger(r){return new _(r)}function createInfrastructureLogger(r){let n=new _(r);return Object.defineProperty(n,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),n}function bindLoggerToCompiler(r,n,o){if(r.__mf_infrastructure_logger__&&n?.getInfrastructureLogger)try{let i=n.getInfrastructureLogger(o);i&&"object"==typeof i&&("function"==typeof i.log||"function"==typeof i.info||"function"==typeof i.warn||"function"==typeof i.error)&&r.setDelegate(i)}catch{r.setDelegate(void 0)}}let v=createLogger(s),b=createInfrastructureLogger(s);n.bindLoggerToCompiler=bindLoggerToCompiler,n.createInfrastructureLogger=createInfrastructureLogger,n.createLogger=createLogger,n.infrastructureLogger=b,n.logger=v},7640(__unused_rspack_module,exports){let sdkImportCache=new Map;function importNodeModule(r){if(!r)throw Error("import specifier is required");if(sdkImportCache.has(r))return sdkImportCache.get(r);let n=Function("name","return import(name)")(r).then(r=>r).catch(n=>{throw console.error(`Error importing module ${r}:`,n),sdkImportCache.delete(r),n});return sdkImportCache.set(r,n),n}let loadNodeFetch=async()=>{let r=await importNodeModule("node-fetch");return r.default||r},lazyLoaderHookFetch=async(r,n,o)=>{let hook=(r,n)=>o.lifecycle.fetch.emit(r,n),i=await hook(r,n||{});return i&&i instanceof Response?i:("undefined"==typeof fetch?await loadNodeFetch():fetch)(r,n||{})},createScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(loaderHook?.createScriptHook){let hookResult=loaderHook.createScriptHook(url);hookResult&&"object"==typeof hookResult&&"url"in hookResult&&(url=hookResult.url)}try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(Error(`Invalid URL: ${e}`));return}let getFetch=async()=>loaderHook?.fetch?(r,n)=>lazyLoaderHookFetch(r,n,loaderHook):"undefined"==typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{let requireFn,res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
5})`,{filename,importModuleDynamically:vm.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??importNodeModule});requireFn=eval("require"),script.runInThisContext()(scriptContext.exports,scriptContext.module,requireFn,urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName)return void cb(void 0,exportedInterface[attrs.globalName]||exportedInterface);cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async r=>{if(attrs?.type==="esm"||attrs?.type==="module")return loadModule(urlObj.href,{fetch:r,vm:await importNodeModule("vm")}).then(async r=>{await r.evaluate(),cb(void 0,r.namespace)}).catch(r=>{cb(r instanceof Error?r:Error(`Script execution error: ${r}`))});handleScriptFetch(r,urlObj)}).catch(r=>{cb(r)})}:(r,n,o,i)=>{n(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(r,n)=>new Promise((o,i)=>{createScriptNode(r,(r,s)=>{if(r)i(r);else{let r=n?.attrs?.globalName||`__FEDERATION_${n?.attrs?.name}:custom__`;o(globalThis[r]=s)}},n.attrs,n.loaderHook)}):(r,n)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(r,n){if(esmModuleCache.has(r))return esmModuleCache.get(r);let{fetch:o,vm:i}=n,s=await (await o(r)).text(),d=new i.SourceTextModule(s,{importModuleDynamically:async(o,i)=>loadModule(new URL(o,r).href,n)});return esmModuleCache.set(r,d),await d.link(async o=>{let i=new URL(o,r).href;
5return await loadModule(i,n)}),d}exports.createScriptNode=createScriptNode,exports.loadScriptNode=loadScriptNode},3625(r,n){n.normalizeOptions=function(r,n,o){return function(i){if(!1===i)return!1;if(void 0===i)if(r)return n;else return!1;if(!0===i)return n;if(i&&"object"==typeof i)return{...n,...i};throw Error(`Unexpected type for \`${o}\`, expect boolean/undefined/object, got: ${typeof i}`)}}},6463(r,n,o){var i=o(4158).__exportAll({});Object.defineProperty(n,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return i}})},851(r,n,o){var i=o(4158).__exportAll({});Object.defineProperty(n,"ContainerPlugin_exports",{enumerable:!0,get:function(){return i}})},1107(r,n,o){var i=o(4158).__exportAll({});Object.defineProperty(n,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return i}})},3163(r,n,o){var i=o(4158).__exportAll({});Object.defineProperty(n,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return i}})},8546(r,n,o){var i=o(4158).__exportAll({});Object.defineProperty(n,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return i}})},7983(r,n,o){var i=o(4158).__exportAll({});Object.defineProperty(n,"SharePlugin_exports",{enumerable:!0,get:function(){return i}})},627(r,n,o){let i=o(7848),s=o(497),d="[ Federation Runtime ]",parseEntry=(r,n,o=i.SEPARATOR)=>{let d=r.split(o),g="development"===s.getProcessEnv().NODE_ENV&&n,_="*",isEntry=r=>r.startsWith("http")||r.includes(i.MANIFEST_EXT);if(d.length>=2){let[n,...i]=d;r.startsWith(o)&&(n=d.slice(0,2).join(o),i=[g||d.slice(2).join(o)]);let s=g||i.join(o);return isEntry(s)?{name:n,entry:s}:{name:n,version:s||_}}if(1===d.length){let[r]=d;return g&&isEntry(g)?{name:r,entry:g}:{name:r,version:g||_}}throw`Invalid entry value: ${r}`},composeKeyWithSeparator=function(...r){return r.length?r.reduce((r,n)=>n?r?`${r}${i.SEPARATOR}${n}`:n:r,""):""},encodeName=function(r,n="",o=!1){try{let s=o?".js":"";return`${n}${r.replace(RegExp(`${i.NameTransformSymbol.AT}`,"g"),i.NameTransformMap[i.NameTransformSymbol.AT]).replace(RegExp(`${i.NameTransformSymbol.HYPHEN}`,"g"),i.NameTransformMap[i.NameTransformSymbol.HYPHEN]).replace(RegExp(`${i.NameTransformSymbol.SLASH}`,"g"),i.NameTransformMap[i.NameTransformSymbol.SLASH])}${s}`}catch(r){throw r}},decodeName=function(r,n,o){try{let s=r;if(n){if(!s.startsWith(n))return s;s=s.replace(RegExp(n,"g"),"")}return s=s.replace(RegExp(`${i.NameTransformMap[i.NameTransformSymbol.AT]}`,"g"),i.EncodedNameTransformMap[i.NameTransformMap[i.NameTransformSymbol.AT]]).replace(RegExp(`${i.NameTransformMap[i.NameTransformSymbol.SLASH]}`,"g"),i.EncodedNameTransformMap[i.NameTransformMap[i.NameTransformSymbol.SLASH]]).replace(RegExp(`${i.NameTransformMap[i.NameTransformSymbol.HYPHEN]}`,"g"),i.EncodedNameTransformMap[i.NameTransformMap[i.NameTransformSymbol.HYPHEN]]),o&&(s=s.replace(".js","")),s}catch(r){throw r}},generateExposeFilename=(r,n)=>{if(!r)return"";let o=r;return"."===o&&(o="default_export"),o.startsWith("./")&&(o=o.replace("./","")),encodeName(o,"__federation_expose_",n)},generateShareFilename=(r,n)=>r?encodeName(r,"__federation_shared_",n):"",getResourceUrl=(r,n)=>{if("getPublicPath"in r){let o;return o=r.getPublicPath.startsWith("function")?Function("return "+r.getPublicPath)()():Function(r.getPublicPath)(),`${o}${n}`}return"publicPath"in r?!s.isBrowserEnv()&&!s.isReactNativeEnv()&&"ssrPublicPath"in r&&"string"==typeof r.ssrPublicPath?`${r.ssrPublicPath}${n}`:`${r.publicPath}${n}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",r,n),"")},error=r=>{throw Error(`${d}: ${r}`)},warn=r=>{console.warn(`${d}: ${r}`)};function safeToString(r){try{return JSON.stringify(r,null,2)}catch(r){return""}}let g=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(r){return g.test(r)}n.assert=(r,n)=>{r||error(n)},n.composeKeyWithSeparator=composeKeyWithSeparator,n.decodeName=decodeName,n.encodeName=encodeName,n.error=error,n.generateExposeFilename=generateExposeFilename,n.generateShareFilename=generateShareFilename,n.getResourceUrl=getResourceUrl,n.isRequiredVersion=isRequiredVersion,n.parseEntry=parseEntry,n.safeToString=safeToString,n.warn=warn},3780(r,n){var o=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,g=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,__copyProps=(r,n,o,g)=>{if(n&&"object"==typeof n||"function"==typeof n)for(var v,b=d(n),E=0,k=b.length;E<k;E++)v=b[E],_.call(r,v)||v===o||i(r,v,{get:(r=>n[r]).bind(null,v),enumerable:!(g=s(n,v))||g.enumerable});return r};n.__toESM=(r,n,s)=>(s=null!=r?o(g(r)):{},__copyProps(!n&&r&&r.__esModule?s:i(s,"default",{value:r,enumerable:!0}),r))},3648(r,n){n.attachShareScopeMap=function(r){r.S&&!r.federation.hasAttachShareScopeMap&&r.federation.instance&&r.federation.instance.shareScopeMap&&(r.S=r.federation.instance.shareScopeMap,r.federation.hasAttachShareScopeMap=!0)}},3086(r,n){Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.FEDERATION_SUPPORTED_TYPES=["script"]},7655(r,n,o){let i=o(3648),s=o(8341),d=o(5134),g=o(6150),_=o(684);n.consumes=function(r){s.updateConsumeOptions(r);let{chunkId:n,promises:o,installedModules:v,webpackRequire:b,chunkMapping:E,moduleToHandlerMapping:k}=r;
5i.attachShareScopeMap(b),b.o(E,n)&&E[n].forEach(r=>{if(b.o(v,r))return o.push(v[r]);let onFactory=n=>{v[r]=0,b.m[r]=o=>{delete b.c[r];let i=n(),{shareInfo:s}=k[r];if(s?.shareConfig?.layer&&i&&"object"==typeof i)try{i.hasOwnProperty("layer")&&void 0!==i.layer||(i.layer=s.shareConfig.layer)}catch(r){}o.exports=i}},onError=n=>{delete v[r],b.m[r]=o=>{throw delete b.c[r],n}};try{let n=b.federation.instance;if(!n)throw Error("Federation instance not found!");let{shareKey:i,getter:s,shareInfo:E,treeShakingGetter:O}=k[r],R=d.getUsedExports(b,i),C={...E};Array.isArray(C.scope)&&Array.isArray(C.scope[0])&&(C.scope=C.scope[0]),R&&(C.treeShaking={usedExports:R,useIn:[n.options.name]});let I=n.loadShare(i,{customShareInfo:C}).then(r=>{if(!1===r){if("function"!=typeof s)throw Error(_.getShortErrorMsg(g.RUNTIME_012,{[g.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:i}));return O?.()||s()}return r});I.then?o.push(v[r]=I.then(onFactory).catch(onError)):onFactory(I)}catch(r){onError(r)}})}},6150(r,n){n.RUNTIME_012="RUNTIME-012"},684(r,n){let getDocsUrl=r=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${r.split("-")[0].toLowerCase()}#${r.toLowerCase()}`;n.getShortErrorMsg=(r,n,o,i)=>{let s=[`${[n[r]]} #${r}`];return o&&s.push(`args: ${JSON.stringify(o)}`),s.push(getDocsUrl(r)),i&&s.push(`Original Error Message:
6 ${i}`),s.join("\n")}},8714(r,n){n.getSharedFallbackGetter=({shareKey:r,factory:n,version:o,webpackRequire:i,libraryType:s="global"})=>{let{runtime:d,instance:g,bundlerRuntime:_,sharedFallback:v}=i.federation;if(!v)return n;let b=v[r];if(!b)return n;let E=o?b.find(r=>r[1]===o):b[0];if(!E)throw Error(`No fallback item found for shareKey: ${r} and version: ${o}`);return()=>d.getRemoteEntry({origin:i.federation.instance,remoteInfo:{name:E[2],entry:`${i.p}${E[0]}`,type:s,entryGlobalName:E[2],shareScope:"default"}}).then(n=>{if(!n)throw Error(`Failed to load fallback entry for shareKey: ${r} and version: ${o}`);return n.init(i.federation.instance,_).then(()=>n.get())})}},5134(r,n){n.getUsedExports=function(r,n){let o=r.federation.usedExports;if(o)return o[n]}},9938(r,n,o){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let i=o(3780),s=o(3648),d=o(3419),g=o(7655),_=o(836),v=o(3652),b=o(9171),E=o(1672),k=o(8714),O=o(8488),R={runtime:O=i.__toESM(O),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:d.remotes,consumes:g.consumes,I:_.initializeSharing,S:{},installInitialConsumes:v.installInitialConsumes,initContainerEntry:b.initContainerEntry,init:E.init,getSharedFallbackGetter:k.getSharedFallbackGetter},attachShareScopeMap:s.attachShareScopeMap,bundlerRuntimeOptions:{}},C=R.instance,I=R.initOptions,A=R.bundlerRuntime,T=R.bundlerRuntimeOptions;n.attachShareScopeMap=s.attachShareScopeMap,n.bundlerRuntime=A,n.bundlerRuntimeOptions=T,n.default=R,n.initOptions=I,n.instance=C,Object.defineProperty(n,"runtime",{enumerable:!0,get:function(){return O}})},1672(r,n,o){let i=o(3780),s=o(8488),d=o(4847);d=i.__toESM(d),n.init=function({webpackRequire:r}){let{initOptions:n,runtime:i,sharedFallback:g,bundlerRuntime:_,libraryType:v}=r.federation;if(!n)throw Error("initOptions is required!");let treeShakingSharePlugin=function(){return{name:"tree-shake-plugin",beforeInit(n){let{userOptions:i,origin:b,options:E}=n,k=i.version||E.version;if(!g)return n;let O=i.shared||{},R=[];Object.keys(O).forEach(n=>{(Array.isArray(O[n])?O[n]:[O[n]]).forEach(o=>{R.push([n,o]),"get"in o&&(o.treeShaking||={},o.treeShaking.get=o.get,o.get=_.getSharedFallbackGetter({shareKey:n,factory:o.get,webpackRequire:r,libraryType:v,version:o.version}))})});let C=d.default.global.getGlobalSnapshotInfoByModuleInfo({name:b.name,version:k});if(!C||!("shared"in C))return n;Object.keys(E.shared||{}).forEach(r=>{E.shared[r].forEach(n=>{R.push([r,n])})});let patchShared=(r,n)=>{let i=C.shared.find(n=>n.sharedName===r);if(!i)return;let{treeShaking:d}=n;if(!d)return;
6let{secondarySharedTreeShakingName:g,secondarySharedTreeShakingEntry:_,treeShakingStatus:E}=i;d.status!==E&&(d.status=E,_&&v&&g&&(d.get=async()=>{let r=await (0,s.getRemoteEntry)({origin:b,remoteInfo:{name:g,entry:_,type:v,entryGlobalName:g,shareScope:"default"}});return await r.init(b,o.federation.bundlerRuntime),r.get()}))};return R.forEach(([r,n])=>{patchShared(r,n)}),n}}};return n.plugins||=[],n.plugins.push(treeShakingSharePlugin()),i.init(n)}},9171(r,n){n.initContainerEntry=function(r){let{webpackRequire:n,shareScope:o,initScope:i,shareScopeKey:s,remoteEntryInitOptions:d}=r;if(!n.S||!n.federation||!n.federation.instance||!n.federation.initOptions)return;let g=n.federation.instance;g.initOptions({name:n.federation.initOptions.name,remotes:[],...d});let _=d?.shareScopeKeys,v=d?.shareScopeMap;if(s&&"string"!=typeof s)s.forEach(r=>{if(!_||!v)return void g.initShareScopeMap(r,o,{hostShareScopeMap:d?.shareScopeMap||{}});v[r]||(v[r]={});let n=v[r];g.initShareScopeMap(r,n,{hostShareScopeMap:d?.shareScopeMap||{}})});else{let r=s||"default";Array.isArray(_)?_.forEach(r=>{v[r]||(v[r]={});let n=v[r];g.initShareScopeMap(r,n,{hostShareScopeMap:d?.shareScopeMap||{}})}):g.initShareScopeMap(r,o,{hostShareScopeMap:d?.shareScopeMap||{}})}return(n.federation.attachShareScopeMap&&n.federation.attachShareScopeMap(n),Array.isArray(s))?n.federation.initOptions.shared?n.I(s,i):Promise.all(s.map(r=>n.I(r,i))).then(()=>!0):n.I(s||"default",i)}},836(r,n,o){let i=o(3648),s=o(3086);n.initializeSharing=function({shareScopeName:r,webpackRequire:n,initPromises:o,initTokens:d,initScope:g}){let _=Array.isArray(r)?r:[r];var v=[],_initializeSharing=function(_){g||(g=[]);let v=n.federation.instance;var b=d[_];if(b||(b=d[_]={from:v.name}),g.indexOf(b)>=0)return;g.push(b);let E=o[_];if(E)return E;var warn=r=>"undefined"!=typeof console&&console.warn&&console.warn(r),initExternal=o=>{var handleError=r=>warn("Initialization of sharing external failed: "+r);try{var i=n(o);if(!i)return;var initFn=o=>o&&o.init&&o.init(n.S[_],g,{shareScopeMap:n.S||{},shareScopeKeys:r});if(i.then)return k.push(i.then(initFn,handleError));var s=initFn(i);if(s&&"boolean"!=typeof s&&s.then)return k.push(s.catch(handleError))}catch(r){handleError(r)}};let k=v.initializeSharing(_,{strategy:v.options.shareStrategy,initScope:g,from:"build"});i.attachShareScopeMap(n);let O=n.federation.bundlerRuntimeOptions.remotes;return(O&&Object.keys(O.idToRemoteMap).forEach(r=>{let n=O.idToRemoteMap[r],o=O.idToExternalAndNameMapping[r][2];if(n.length>1)initExternal(o);else if(1===n.length){let r=n[0];s.FEDERATION_SUPPORTED_TYPES.includes(r.externalType)||initExternal(o)}}),k.length)?o[_]=Promise.all(k).then(()=>o[_]=!0):o[_]=!0};return _.forEach(r=>{v.push(_initializeSharing(r))}),Promise.all(v).then(()=>!0)}},3652(r,n,o){let i=o(8341),s=o(5134);function handleInitialConsumes(r){let{moduleId:n,moduleToHandlerMapping:o,webpackRequire:i,asyncLoad:d}=r,g=i.federation.instance;if(!g)throw Error("Federation instance not found!");let{shareKey:_,shareInfo:v}=o[n];try{let r=s.getUsedExports(i,_),n={...v};if(r&&(n.treeShaking={usedExports:r,useIn:[g.options.name]}),d)return g.loadShare(_,{customShareInfo:n});return g.loadShareSync(_,{customShareInfo:n})}catch(r){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),r}}n.installInitialConsumes=function(r){i.updateConsumeOptions(r);let{moduleToHandlerMapping:n,webpackRequire:o,installedModules:s,initialConsumes:d,asyncLoad:g}=r,_=[];d.forEach(r=>{let factoryGetter=()=>handleInitialConsumes({moduleId:r,moduleToHandlerMapping:n,webpackRequire:o,asyncLoad:g});_.push([r,factoryGetter])});let setModule=(r,i)=>{o.m[r]=d=>{s[r]=0,delete o.c[r];let g=i();if("function"!=typeof g)throw Error(`Shared module is not available for eager consumption: ${r}`);let _=g(),{shareInfo:v}=n[r];if(v?.shareConfig?.layer&&_&&"object"==typeof _)try{_.hasOwnProperty("layer")&&void 0!==_.layer||(_.layer=v.shareConfig.layer)}catch(r){}d.exports=_}};if(g)return Promise.all(_.map(async([r,n])=>{let o=await n();setModule(r,()=>o)}));_.forEach(([r,n])=>{setModule(r,n)})}},3419(r,n,o){o(3780);let i=o(3648),s=o(3086),d=o(8341),g=o(4696);n.remotes=function(r){d.updateRemoteOptions(r);let{chunkId:n,promises:o,webpackRequire:_,chunkMapping:v,idToExternalAndNameMapping:b,idToRemoteMap:E}=r;
6i.attachShareScopeMap(_),_.o(v,n)&&v[n].forEach(r=>{let n=_.R;n||(n=[]);let i=b[r],d=E[r]||[];if(n.indexOf(i)>=0)return;if(n.push(i),i.p)return o.push(i.p);let onError=n=>{n||(n=Error("Container missing")),"string"==typeof n.message&&(n.message+=`
7while loading "${i[1]}" from ${i[2]}`),_.m[r]=()=>{throw n},i.p=0},handleFunction=(r,n,s,d,g,_)=>{try{let v=r(n,s);if(!v||!v.then)return g(v,d,_);{let r=v.then(r=>g(r,d),onError);if(!_)return r;o.push(i.p=r)}}catch(r){onError(r)}},onExternal=(r,n,o)=>r?handleFunction(_.I,i[0],0,r,onInitialized,o):onError();var onInitialized=(r,o,s)=>handleFunction(o.get,i[1],n,0,onFactory,s),onFactory=n=>{i.p=1,_.m[r]=r=>{r.exports=n()}};let onRemoteLoaded=()=>{try{let r=(0,g.decodeName)(d[0].name,g.ENCODE_NAME_PREFIX)+i[1].slice(1),n=_.federation.instance,loadRemote=()=>_.federation.instance.loadRemote(r,{loadFactory:!1,from:"build"});if("version-first"===n.options.shareStrategy){let r=Array.isArray(i[0])?i[0]:[i[0]];return Promise.all(r.map(r=>n.sharedHandler.initializeSharing(r))).then(()=>loadRemote())}return loadRemote()}catch(r){onError(r)}};1===d.length&&s.FEDERATION_SUPPORTED_TYPES.includes(d[0].externalType)&&d[0].name?handleFunction(onRemoteLoaded,i[2],0,0,onFactory,1):handleFunction(_,i[2],0,0,onExternal,1)})}},8341(r,n){function updateRemoteOptions(r){let{webpackRequire:n,idToExternalAndNameMapping:o={},idToRemoteMap:i={},chunkMapping:s={}}=r,{remotesLoadingData:d}=n,g=n.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!d||d._updated||!g)return;let{chunkMapping:_,moduleIdToRemoteDataMapping:v}=d;if(_&&v){for(let[r,n]of Object.entries(v))if(o[r]||(o[r]=[n.shareScope,n.name,n.externalModuleId]),!i[r]&&g[n.remoteName]){let o=g[n.remoteName];i[r]||=[],o.forEach(n=>{i[r].includes(n)||i[r].push(n)})}s&&Object.entries(_).forEach(([r,n])=>
7{s[r]||(s[r]=[]),n.forEach(n=>{s[r].includes(n)||s[r].push(n)})}),d._updated=1}}n.updateConsumeOptions=function(r){let{webpackRequire:n,moduleToHandlerMapping:o}=r,{consumesLoadingData:i,initializeSharingData:s}=n,{sharedFallback:d,bundlerRuntime:g,libraryType:_}=n.federation;if(i&&!i._updated){let{moduleIdToConsumeDataMapping:s={},initialConsumes:v=[],chunkMapping:b={}}=i;if(Object.entries(s).forEach(([r,i])=>{o[r]||(o[r]={getter:d?g?.getSharedFallbackGetter({shareKey:i.shareKey,factory:i.fallback,webpackRequire:n,libraryType:_}):i.fallback,treeShakingGetter:d?i.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:i.requiredVersion,strictVersion:i.strictVersion,singleton:i.singleton,eager:i.eager,layer:i.layer},scope:Array.isArray(i.shareScope)?i.shareScope:[i.shareScope||"default"],treeShaking:d?{get:i.fallback,mode:i.treeShakingMode}:void 0},shareKey:i.shareKey})}),"initialConsumes"in r){let{initialConsumes:n=[]}=r;v.forEach(r=>{n.includes(r)||n.push(r)})}if("chunkMapping"in r){let{chunkMapping:n={}}=r;Object.entries(b).forEach(([r,o])=>{n[r]||(n[r]=[]),o.forEach(o=>{n[r].includes(o)||n[r].push(o)})})}i._updated=1}if(s&&!s._updated){let{federation:r}=n;if(!r.instance||!s.scopeToSharingDataMapping)return;let o={};for(let[r,n]of Object.entries(s.scopeToSharingDataMapping))for(let i of n)if("object"==typeof i&&null!==i){let{name:n,version:s,factory:d,eager:g,singleton:_,requiredVersion:v,strictVersion:b}=i,E={requiredVersion:`^${s}`},isValidValue=function(r){return void 0!==r};isValidValue(_)&&(E.singleton=_),isValidValue(v)&&(E.requiredVersion=v),isValidValue(g)&&(E.eager=g),isValidValue(b)&&(E.strictVersion=b);let k={version:s,scope:[r],shareConfig:E,get:d};o[n]?o[n].push(k):o[n]=[k]}r.instance.registerShared(o),s._updated=1}},n.updateRemoteOptions=updateRemoteOptions},1322(r,n,o){"use strict";var i,s,d;Object.defineProperty(n,"__esModule",{value:!0}),n._getInstance=n._getStatsigGlobalFlag=n._getStatsigGlobal=void 0;let g=o(6171);n._getStatsigGlobal=()=>{try{return"undefined"!=typeof __STATSIG__?__STATSIG__:k}catch(r){return k}};let _getStatsigGlobalFlag=r=>(0,n._getStatsigGlobal)()[r];n._getStatsigGlobalFlag=_getStatsigGlobalFlag;let _getInstance=r=>{let o=(0,n._getStatsigGlobal)();return r?o.instances&&o.instances[r]:(o.instances&&Object.keys(o.instances).length>1&&g.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),o.firstInstance)};n._getInstance=_getInstance;let _="__STATSIG__",v="undefined"!=typeof window?window:{},b=void 0!==o.g?o.g:{},E="undefined"!=typeof globalThis?globalThis:{},k=null!=(d=null!=(s=null!=(i=v[_])?i:b[_])?s:E[_])?d:{instance:n._getInstance};v[_]=k,b[_]=k,E[_]=k},3488(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._getStorageKey=n._getUserStorageKey=void 0;let i=o(7857);function _getUserStorageKey(r,n,o){var s;if(o)return o(r,n);let d=n&&n.customIDs?n.customIDs:{},g=[`uid:${null!=(s=null==n?void 0:n.userID)?s:""}`,`cids:${Object.keys(d).sort((r,n)=>r.localeCompare(n)).map(r=>`${r}-${d[r]}`).join(",")}`,`k:${r}`];return(0,i._DJB2)(g.join("|"))}n._getUserStorageKey=_getUserStorageKey,n._getStorageKey=function(r,n,o){return n?_getUserStorageKey(r,n,o):(0,i._DJB2)(`k:${r}`)}},610(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PrecomputedEvaluationsContextHandle=void 0;let i=o(6171),s=o(7631),d=o(4564),g=o(755);class _{constructor(r,n,o,i,s,d){this._sdkKey=r,this._getOptions=n,this._getErrorBoundary=o,this._getValues=i,this._getUser=s,this._getSdkInstanceID=d}get sdkKey(){return this._sdkKey}get options(){return this._getOptions()}get errorBoundary(){return this._getErrorBoundary()}get values(){return this._getValues()}get user(){let r=(0,s._cloneObject)("StatsigUser",this._getUser());return null==r&&(i.Log.error("Failed to clone user"),r={}),r}getSession(r=!0){return d.StatsigSession.get(this._sdkKey,r)}get stableID(){return g.StableID.get(this._sdkKey)}get sdkInstanceID(){return this._getSdkInstanceID()}toContext(r=!0){return{sdkKey:this.sdkKey,options:this.options,values:this.values,user:this.user,errorBoundary:this.errorBoundary,session:this.getSession(r),stableID:this.stableID,sdkInstanceID:this.sdkInstanceID}}}n.PrecomputedEvaluationsContextHandle=_},305(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n._makeDataAdapterResult=n.DataAdapterCore=void 0;let s=o(6171),d=o(755),g=o(5249),_=o(5877),v=o(6196),b=10,E=8;class k{constructor(r,n){this._adapterName=r,this._cacheSuffix=n,this._options=null,this._sdkKey=null,this._cacheLimit=b,this._lastModifiedStoreKey=`statsig.last_modified_time.${n}`,this._inMemoryCache=new O}attach(r,n,o){this._sdkKey=r,this._options=n}getDataSync(r){let n=r&&(0,g._normalizeUser)(r,this._options),o=this._getCacheKey(n),i=this._inMemoryCache.get(o,n);if(i&&this._getIsCacheValueValid(i))return i;let s=this._loadFromCache(o);return s&&this._getIsCacheValueValid(s)?(this._inMemoryCache.add(o,s,this._cacheLimit),this._inMemoryCache.get(o,n)):null}setData(r,n){let o=n&&(0,g._normalizeUser)(n,this._options),i=this._getCacheKey(o);this._inMemoryCache.add(i,_makeDataAdapterResult("Bootstrap",r,null,o),this._cacheLimit)}_getIsCacheValueValid(r){return null==r.stableID||r.stableID===d.StableID.get(this._getSdkKey())}_getDataAsyncImpl(r,n,o){return i(this,void 0,void 0,function*(){_.Storage.isReady()||(yield _.Storage.isReadyResolver());let i=null!=r?r:this.getDataSync(n),d=[this._fetchAndPrepFromNetwork(i,n,o)];return(null==o?void 0:o.timeoutMs)&&d.push(new Promise(r=>setTimeout(r,o.timeoutMs)).then(()=>(s.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(d)})}_prefetchDataImpl(r,n){return i(this,void 0,void 0,function*(){let o=r&&(0,g._normalizeUser)(r,this._options),i=this._getCacheKey(o),s=yield this._getDataAsyncImpl(null,o,n);s&&this._inMemoryCache.add(i,Object.assign(Object.assign({},s),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(r,n,o){return i(this,void 0,void 0,function*(){var i;let g=null!=(i=null==r?void 0:r.data)?i:null,_=null!=r&&this._isCachedResultValidFor204(r,n),b=yield this._fetchFromNetwork(g,n,o,_);if(!b)return s.Log.debug("No response returned for latest value"),null;let E=(0,v._typedJsonParse)(b,"has_updates","Response"),k=this._getSdkKey(),O=d.StableID.get(k),R=null;if((null==E?void 0:E.has_updates)===!0)R=_makeDataAdapterResult("Network",b,O,n);else{if(!g||(null==E?void 0:E.has_updates)!==!1)return null;R=_makeDataAdapterResult("NetworkNotModified",g,O,n)}let C=this._getCacheKey(n);return this._inMemoryCache.add(C,R,this._cacheLimit),this._writeToCache(C,R),R})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(s.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(r){var n;let o=null==(n=_.Storage.getItem)?void 0:n.call(_.Storage,r);if(null==o)return null;let i=(0,v._typedJsonParse)(o,"source","Cached Result");return i?Object.assign(Object.assign({},i),{source:"Cache"}):null}_writeToCache(r,n){let o=JSON.stringify(n);for(let n=0;n<E;n++)try{_.Storage.setItem(r,o);break}catch(n){if(!(n instanceof Error)||!(n.toString().includes("QuotaExceededError")||n.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw n;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(r,this._cacheLimit-1)}this._runLocalStorageCacheEviction(r)}_runLocalStorageCacheEviction(r,n=this._cacheLimit){var o;let i=null!=(o=(0,_._getObjectFromStorage)(this._lastModifiedStoreKey))?o:{};for(let o of(i[r]=Date.now(),_getEvictableKeys(i,n)))delete i[o],_.Storage.removeItem(o);(0,_._setObjectInStorage)(this._lastModifiedStoreKey,i)}}function _makeDataAdapterResult(r,n,o,i){return{source:r,data:n,receivedAt:Date.now(),stableID:o,fullUserHash:(0,g._getFullUserHash)(i)}}n.DataAdapterCore=k,n._makeDataAdapterResult=_makeDataAdapterResult;class O{constructor(){this._data={}}get(r,n){var o;let i=this._data[r],d=null==i?void 0:i.stableID,g=null==(o=null==n?void 0:n.customIDs)?void 0:o.stableID;return g&&d&&g!==d?(s.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):i}add(r,n,o){for(let r of _getEvictableKeys(this._data,o-1))delete this._data[r];this._data[r]=n}merge(r){this._data=Object.assign(Object.assign({},this._data),r)}}function _getEvictableKeys(r,n){let o=Object.keys(r);return o.length<=n?[]:0===n?o:o.sort((n,o)=>{let i=r[n],s=r[o];return"object"==typeof i&&"object"==typeof s?i.receivedAt-s.receivedAt:i-s}).slice(0,o.length-n)}},7665(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Diagnostics=void 0;let o=new Map,i="start",s="end",d="statsig::diagnostics";function _createMarker(r,n,o,i){return Object.assign({key:o,action:n,step:i,timestamp:Date.now()},r)}function _makeDiagnosticsEvent(r,n){return{eventName:d,user:r,value:null,metadata:n,time:Date.now()}}function _addMarker(r,n){var i;let s=null!=(i=o.get(r))?i:[];s.push(n),o.set(r,s)}function _safeGetField(r,n){if(n in r)return r[n]}n.Diagnostics={_getMarkers:r=>o.get(r),_markInitOverallStart:r=>{_addMarker(r,_createMarker({},i,"overall"))},_markInitOverallEnd:(r,n,o)=>{_addMarker(r,_createMarker({success:n,error:n?void 0:{name:"InitializeError",message:"Failed to initialize"}
7,evaluationDetails:o},s,"overall"))},_markInitNetworkReqStart:(r,n)=>{_addMarker(r,_createMarker(n,i,"initialize","network_request"))},_markInitNetworkReqEnd:(r,n)=>{_addMarker(r,_createMarker(n,s,"initialize","network_request"))},_markInitProcessStart:r=>{_addMarker(r,_createMarker({},i,"initialize","process"))},_markInitProcessEnd:(r,n)=>{_addMarker(r,_createMarker(n,s,"initialize","process"))},_clearMarkers:r=>{o.delete(r)},_formatError(r){if(r&&"object"==typeof r)return{code:_safeGetField(r,"code"),name:_safeGetField(r,"name"),message:_safeGetField(r,"message")}},_getDiagnosticsData(r,o,i,s){var d;return{success:(null==r?void 0:r.ok)===!0,statusCode:null==r?void 0:r.status,sdkRegion:null==(d=null==r?void 0:r.headers)?void 0:d.get("x-statsig-region"),isDelta:!0===i.includes('"is_delta":true')||void 0,attempt:o,error:n.Diagnostics._formatError(s)}},_enqueueDiagnosticsEvent(r,o,i,s){let d=n.Diagnostics._getMarkers(i);if(null==d||d.length<=0)return -1;let g=d[d.length-1].timestamp-d[0].timestamp;n.Diagnostics._clearMarkers(i);let _=_makeDiagnosticsEvent(r,{context:"initialize",markers:d.slice(),statsigOptions:s});return o.enqueue(_),g}}},5306(r,n){"use strict";var o=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n._fetchTxtRecords=void 0;let i=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),s="https://cloudflare-dns.com/dns-query",d=["i","e","d"],g=200;function _parseDnsResponse(r){let n=r.findIndex((n,o)=>o<g&&"="===String.fromCharCode(n)&&d.includes(String.fromCharCode(r[o-1])));if(-1===n){let r=Error("Failed to parse TXT records from DNS");throw r.name="DnsTxtParseError",r}let o="";for(let i=n-1;i<r.length;i++)o+=String.fromCharCode(r[i]);return o.split(",")}n._fetchTxtRecords=function(r){return o(this,void 0,void 0,function*(){let n=yield r(s,{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:i});if(!n.ok){let r=Error("Failed to fetch TXT records from DNS");throw r.name="DnsTxtFetchError",r}return _parseDnsResponse(new Uint8Array((yield n.arrayBuffer())))})}},2108(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},8513(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorBoundary=n.EXCEPTION_ENDPOINT=void 0;let s=o(6171),d=o(417),g=o(7707);n.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";let _="[Statsig] UnknownError";class v{constructor(r,n,o,i){this._sdkKey=r,this._options=n,this._emitter=o,this._lastSeenError=i,this._seen=new Set}wrap(r,n){try{let o=r;_getAllInstanceMethodNames(o).forEach(i=>{let s=o[i];"$EB"in s||(o[i]=(...o)=>this._capture(n?`${n}:${i}`:i,()=>s.apply(r,o)),o[i].$EB=!0)})}catch(r){this._onError("eb:wrap",r)}}logError(r,n){this._onError(r,n)}getLastSeenErrorAndReset(){let r=this._lastSeenError;return this._lastSeenError=void 0,null!=r?r:null}attachErrorIfNoneExists(r){this._lastSeenError||(this._lastSeenError=_resolveError(r))}_capture(r,n){try{let o=n();if(o&&o instanceof Promise)return o.catch(n=>this._onError(r,n));return o}catch(n){return this._onError(r,n),null}}_onError(r,o){try{s.Log.warn(`Caught error in ${r}`,{error:o}),i(this,void 0,void 0,function*(){var i,s,v,b,E,k,O;let R=o||Error(_),C=R instanceof Error,I=C?R.name:"No Name",A=_resolveError(R);if(this._lastSeenError=A,this._seen.has(I))return;if(this._seen.add(I),null==(s=null==(i=this._options)?void 0:i.networkConfig)?void 0:s.preventAllNetworkTraffic){null==(v=this._emitter)||v.call(this,{name:"error",error:o,tag:r});return}let T=d.SDKType._get(this._sdkKey),j=g.StatsigMetadataProvider.get(),P=C?R.stack:_getDescription(R),N=Object.assign({tag:r,exception:I,info:P,statsigOptions:_getStatsigOptionLoggingCopy(this._options)},Object.assign(Object.assign({},j),{sdkType:T})),D=null!=(k=null==(E=null==(b=this._options)?void 0:b.networkConfig)?void 0:E.networkOverrideFunc)?k:fetch;yield D(n.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(T),"STATSIG-SDK-VERSION":String(j.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(N)}),null==(O=this._emitter)||O.call(this,{name:"error",error:o,tag:r})}).then(()=>{}).catch(()=>{})}catch(r){}}}function _resolveError(r){return r instanceof Error?r:"string"==typeof r?Error(r):Error("An unknown error occurred.")}function _getDescription(r){try{return JSON.stringify(r)}catch(r){return _}}function _getAllInstanceMethodNames(r){let n=new Set,o=Object.getPrototypeOf(r);for(;o&&o!==Object.prototype;)Object.getOwnPropertyNames(o).filter(r=>
7"function"==typeof(null==o?void 0:o[r])).forEach(r=>n.add(r)),o=Object.getPrototypeOf(o);return Array.from(n)}function _getStatsigOptionLoggingCopy(r){if(!r)return{};let n={};return Object.keys(r).forEach(o=>{let i=o,s=r[i];switch(typeof s){case"number":case"bigint":case"boolean":n[String(i)]=s;break;case"string":s.length<50?n[String(i)]=s:n[String(i)]="set";break;case"object":"environment"===i?n.environment=s:"networkConfig"===i?n.networkConfig=s:n[String(i)]=null!=s?"set":"unset"}}),n}n.ErrorBoundary=v},5197(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},2910(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},5417(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.EventLogger=void 0;let s=o(3488),d=o(7857),g=o(6171),_=o(1693),v=o(7631),b=o(4564),E=o(5848),k=o(7831),O=o(5877),R=o(8028),C=o(6366),I=100,A=1e4,T=1e3,j=6e5,P=500,N=200,D={};class F{static _safeFlushAndForget(r){var n;null==(n=D[r])||n.flush().catch(()=>{})}static _safeRetryFailedLogs(r){var n;null==(n=D[r])||n._retryFailedLogs()}constructor(r,n,o,i){var s,d;this._sdkKey=r,this._emitter=n,this._network=o,this._options=i,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=null!=(s=null==i?void 0:i.loggingEnabled)?s:(null==i?void 0:i.disableLogging)===!0?k.LoggingEnabledOption.disabled:k.LoggingEnabledOption.browserOnly,(null==i?void 0:i.loggingEnabled)&&void 0!==i.disableLogging&&g.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=null!=(d=null==i?void 0:i.loggingBufferMaxSize)?d:I;const v=null==i?void 0:i.networkConfig;this._logEventUrlConfig=new R.UrlConfiguration(_.Endpoint._rgstr,null==v?void 0:v.logEventUrl,null==v?void 0:v.api,null==v?void 0:v.logEventFallbackUrls)}setLogEventCompressionMode(r){this._network.setLogEventCompressionMode(r)}setLoggingEnabled(r){if("disabled"===this._loggingEnabled&&"disabled"!==r){let r=this._getStorageKey(),n=(0,O._getObjectFromStorage)(r);n&&this._queue.push(...n),O.Storage.removeItem(r)}this._loggingEnabled=r}enqueue(r){this._shouldLogEvent(r)&&(this._normalizeAndAppendEvent(r),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&F._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(r){var n;let o=null!=(n=this._nonExposedChecks[r])?n:0;this._nonExposedChecks[r]=o+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var r;let n=(0,v._isServerEnv)();n&&(null==(r=this._options)?void 0:r.loggingEnabled)!=="always"||(D[this._sdkKey]=this,n||(0,C._subscribeToVisiblityChanged)(r=>{"background"===r?F._safeFlushAndForget(this._sdkKey):"foreground"===r&&F._safeRetryFailedLogs(this._sdkKey)}),this._retryFailedLogs(),this._startBackgroundFlushInterval())}stop(){return i(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete D[this._sdkKey],yield this.flush()})}flush(){return i(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;let r=this._queue;this._queue=[],yield this._sendEvents(r)})}_quickFlushIfNeeded(){this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>N||setTimeout(()=>F._safeFlushAndForget(this._sdkKey),N))}_shouldLogEvent(r){var n;if((null==(n=this._options)?void 0:n.loggingEnabled)!=="always"&&(0,v._isServerEnv)())return!1;if(!(0,E._isExposureEvent)(r))return!0;let o=r.user?r.user:{statsigEnvironment:void 0},i=(0,s._getUserStorageKey)(this._sdkKey,o),d=r.metadata?r.metadata:{},g=[r.eventName,i,d.gate,d.config,d.ruleID,d.allocatedExperiment,d.parameterName,String(d.isExplicitParameter),d.reason].join("|"),_=this._lastExposureTimeMap[g],b=D
7ate.now();return(!_||!(b-_<j))&&(Object.keys(this._lastExposureTimeMap).length>T&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[g]=b,!0)}_sendEvents(r){return i(this,void 0,void 0,function*(){var n,o;if("disabled"===this._loggingEnabled)return this._saveFailedLogsToStorage(r),!1;try{let i=(0,C._isUnloading)()&&this._network.isBeaconSupported()&&(null==(o=null==(n=this._options)?void 0:n.networkConfig)?void 0:o.networkOverrideFunc)==null;if(this._emitter({name:"pre_logs_flushed",events:r}),(i?this._sendEventsViaBeacon(r):yield this._sendEventsViaPost(r)).success)return this._emitter({name:"logs_flushed",events:r}),!0;return g.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(r),!1}catch(r){return g.Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(r){return i(this,void 0,void 0,function*(){var n;let o=yield this._network.post(this._getRequestData(r)),i=null!=(n=null==o?void 0:o.code)?n:-1;return{success:i>=200&&i<300}})}_sendEventsViaBeacon(r){return{success:this._network.beacon(this._getRequestData(r))}}_getRequestData(r){return{sdkKey:this._sdkKey,data:{events:r},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[_.NetworkParam.EventCount]:String(r.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(r){for(;r.length>P;)r.shift();let n=this._getStorageKey();try{let o=this._getFailedLogsFromStorage(n);(0,O._setObjectInStorage)(n,[...o,...r])}catch(r){g.Log.warn("Unable to save failed logs to storage")}}_getFailedLogsFromStorage(r){let n=[];try{let o=(0,O._getObjectFromStorage)(r);return Array.isArray(o)&&(n=o),n}catch(r){return[]}}_retryFailedLogs(){let r=this._getStorageKey();i(this,void 0,void 0,function*(){O.Storage.isReady()||(yield O.Storage.isReadyResolver());let n=(0,O._getObjectFromStorage)(r);n&&(O.Storage.removeItem(r),yield this._sendEvents(n))}).catch(()=>{g.Log.warn("Failed to flush stored logs")})}_getStorageKey(){return`statsig.failed_logs.${(0,d._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(r){r.user&&(r.user=Object.assign({},r.user),delete r.user.privateAttributes);let n={},o=this._getCurrentPageUrl();o&&(n.statsigMetadata={currentPage:o});let i=Object.assign(Object.assign({},r),n);g.Log.debug("Enqueued Event:",i),this._queue.push(i)}_appendAndResetNonExposedChecks(){0!==Object.keys(this._nonExposedChecks).length&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var r;if((null==(r=this._options)?void 0:r.includeCurrentPageUrlWithEvents)!==!1)return(0,v._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var r,n;let o=setInterval(()=>{let r=D[this._sdkKey];r&&r._flushIntervalId===o?(F._safeFlushAndForget(this._sdkKey),b.StatsigSession.checkForIdleSession(this._sdkKey)):clearInterval(o)},null!=(n=null==(r=this._options)?void 0:r.loggingIntervalMs)?n:A);this._flushIntervalId=o}}n.EventLogger=F},7857(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._getSortedObject=n._DJB2Object=n._DJB2=void 0;let i=o(7853);n._DJB2=r=>{let n=0;for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o),n&=n;return String(n>>>0)};let _DJB2Object=(r,o)=>(0,n._DJB2)(JSON.stringify((0,n._getSortedObject)(r,o)));n._DJB2Object=_DJB2Object;let _getSortedObject=(r,o)=>{if(null==r)return null;let s=Object.keys(r).sort(),d={};return s.forEach(s=>{let g=r[s];if(0===o||"object"!==(0,i._typeOf)(g)){d[s]=g;return}d[s]=(0,n._getSortedObject)(g,null!=o?o-1:o)}),d};n._getSortedObject=_getSortedObject},9928(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},6171(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Log=n.LogLevel=void 0;let o=" DEBUG ",i="  INFO ",s="  WARN ",d=" ERROR ";function addTag(r){return r.unshift("[Statsig]"),r}n.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class g{static info(...r){g.level>=n.LogLevel.Info&&console.info(i,...addTag(r))}static debug(...r){g.level>=n.LogLevel.Debug&&console.debug(o,...addTag(r))}static warn(...r){g.level>=n.LogLevel.Warn&&console.warn(s,...addTag(r))}static error(...r){g.level>=n.LogLevel.Error&&console.error(d,...addTag(r))}}n.Log=g,g.level=n.LogLevel.Warn},7376(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createMemoKey=n.MemoPrefix=void 0,n.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};let o=new Set([]),i=new Set(["userPersistedValues"]);n.createMemoKey=function(r,n,s){let d=`${r}|${n}`;if(!s)return d;for(let r of Object.keys(s)){if(i.has(r))return;o.has(r)?d+=`|${r}=true`:d+=`|${r}=${s[r]}`}return d}},1693(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NetworkParam=n.NetworkDefault=n.Endpoint=void 0,n.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},n.NetworkDefault={[n.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[n.Endpoint._initialize]:"https://featureassets.org/v1",[n.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},n.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},1568(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.NetworkCore=void 0,o(1322);let s=o(1322),d=o(7665),g=o(6171),_=o(1693),v=o(4247),b=o(9178),E=o(417),k=o(7631),O=o(4564),R=o(755),C=o(5011),I=o(7707),A=o(7831),T=o(6366),j=1e4,P=500,N=3e4,D=50,F=.05,L=new Set([408,500,502,503,504,522,524,599]);class U{constructor(r,n){this._emitter=n,this._errorBoundary=null,this._timeout=j,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,r&&(this._options=r),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new v.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(r))}setLogEventCompressionMode(r){this._options.logEventCompressionMode=r}setErrorBoundary(r){this._errorBoundary=r,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(r)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}
7getLastUsedInitUrlAndReset(){let r=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,r}beacon(r){if(!_ensureValidSdkKey(r))return!1;let n=this._getInternalRequestArgs("POST",r),o=this._getPopulatedURL(n),i=navigator;return i.sendBeacon.bind(i)(o,n.body)}post(r){return i(this,void 0,void 0,function*(){let n=this._getInternalRequestArgs("POST",r);return this._tryEncodeBody(n),yield this._tryToCompressBody(n),this._sendRequest(n)})}get(r){let n=this._getInternalRequestArgs("GET",r);return this._sendRequest(n)}_sendRequest(r){return i(this,void 0,void 0,function*(){var n,o,i,s;if(!_ensureValidSdkKey(r)||this._netConfig.preventAllNetworkTraffic)return null;let{method:d,body:_,retries:v,attempt:b}=r,E=r.urlConfig.endpoint;if(this._isRateLimited(E))return g.Log.warn(`Request to ${E} was blocked because you are making requests too frequently.`),null;let k=null!=b?b:1,O=!1,R=this._getPopulatedURL(r),I=null,A=(0,T._isUnloading)();try{let o,i={method:d,body:_,headers:Object.assign({},r.headers),priority:r.priority,keepalive:A};_tryMarkInitStart(r,k);let s=this._leakyBucket[E];s&&(s.lastRequestTime=Date.now(),this._leakyBucket[E]=s);let g=null!=(n=this._netConfig.networkOverrideFunc)?n:fetch;if(!(I=yield Promise.race([g(R,i).finally(()=>clearTimeout(o)),new Promise((r,n)=>{o=setTimeout(()=>{O=!0,n(Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})])).ok){let r=yield I.text().catch(()=>"No Text"),n=Error(`NetworkError: ${R} ${r}`);throw n.name="NetworkError",n}let v=yield I.text();return _tryMarkInitEnd(r,I,k,v),this._fallbackResolver.tryBumpExpiryTime(r.sdkKey,r.urlConfig),{body:v,code:I.status}}catch(b){let n=_getErrorMessage(b),_=_didTimeout(null!=n?n:"",O);if(_tryMarkInitEnd(r,I,k,"",b),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(r.sdkKey,r.urlConfig,n,_))&&(r.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(r.sdkKey,r.urlConfig)),!v||k>v||!L.has(null!=(o=null==I?void 0:I.status)?o:500)){null==(i=this._emitter)||i.call(this,{name:"error",error:b,tag:C.ErrorTag.NetworkError,requestArgs:r});let o=`A networking error occurred during ${d} request to ${R}.`;return g.Log.error(o,n,b),null==(s=this._errorBoundary)||s.attachErrorIfNoneExists(o),null}return yield _exponentialBackoff(k),this._sendRequest(Object.assign(Object.assign({},r),{retries:v,attempt:k+1}))}})}_getLogEventCompressionMode(r){let n=null==r?void 0:r.logEventCompressionMode;return n||(null==r?void 0:r.disableCompression)!==!0||(n=A.LogEventCompressionMode.Disabled),n||(n=A.LogEventCompressionMode.Enabled),n}_isRateLimited(r){var n;let o=Date.now(),i=null!=(n=this._leakyBucket[r])?n:{count:0,lastRequestTime:o},s=Math.floor((o-i.lastRequestTime)*F);return i.count=Math.max(0,i.count-s),i.count>=D||(i.count+=1,i.lastRequestTime=o,this._leakyBucket[r]=i,!1)}_getPopulatedURL(r){var n;let o=null!=(n=r.fallbackUrl)?n:r.urlConfig.getUrl();(r.urlConfig.endpoint===_.Endpoint._initialize||r.urlConfig.endpoint===_.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=o);let i=Object.assign({[_.NetworkParam.SdkKey]:r.sdkKey,[_.NetworkParam.SdkType]:E.SDKType._get(r.sdkKey),[_.NetworkParam.SdkVersion]:I.SDK_VERSION,[_.NetworkParam.Time]:String(Date.now()),[_.NetworkParam.SessionID]:O.SessionID.get(r.sdkKey)},r.params),s=Object.keys(i).map(r=>`${encodeURIComponent(r)}=${encodeURIComponent(i[r])}`).join("&");return`${o}${s?`?${s}`:""}`}_tryEncodeBody(r){var n;let o=(0,k._getWindowSafe)(),i=r.body;if(r.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof i&&null==(0,s._getStatsigGlobalFlag)("no-encode")&&(null==o?void 0:o.btoa))try{r.body=o.btoa(i).split("").reverse().join(""),r.params=Object.assign(Object.assign({},null!=(n=r.params)?n:{}),{[_.NetworkParam.StatsigEncoded]:"1"})}catch(n){g.Log.warn(`Request encoding failed for ${r.urlConfig.getUrl()}`,n)}}_tryToCompressBody(r){return i(this,void 0,void 0,function*(){var n;let o=r.body;if("string"==typeof o&&_allowCompression(r,this._options))try{let i,s=new TextEncoder().encode(o),d=new CompressionStream("gzip"),v=d.writable.getWriter();v.write(s).catch(g.Log.error),v.close().catch(g.Log.error);let b=d.readable.getReader(),E=[];for(;!(i=yield b.read()).done;)E.push(i.value);let k=E.reduce((r,n)=>
7r+n.length,0),O=new Uint8Array(k),R=0;for(let r of E)O.set(r,R),R+=r.length;r.body=O,r.params=Object.assign(Object.assign({},null!=(n=r.params)?n:{}),{[_.NetworkParam.IsGzipped]:"1"})}catch(n){g.Log.warn(`Request compression failed for ${r.urlConfig.getUrl()}`,n)}})}_getInternalRequestArgs(r,n){let o=this._fallbackResolver.getActiveFallbackUrl(n.sdkKey,n.urlConfig),i=Object.assign(Object.assign({},n),{method:r,fallbackUrl:o});return"data"in n&&_populateRequestBody(i,n.data),i}}n.NetworkCore=U;let _ensureValidSdkKey=r=>!!r.sdkKey||(g.Log.warn("Unable to make request without an SDK key"),!1),_populateRequestBody=(r,n)=>{let{sdkKey:o,fallbackUrl:i}=r,s=R.StableID.get(o),d=O.SessionID.get(o),g=E.SDKType._get(o);r.body=JSON.stringify(Object.assign(Object.assign({},n),{statsigMetadata:Object.assign(Object.assign({},I.StatsigMetadataProvider.get()),{stableID:s,sessionID:d,sdkType:g,fallbackUrl:i})}))};function _allowCompression(r,n){if(!r.isCompressable||null!=(0,s._getStatsigGlobalFlag)("no-compress")||"undefined"==typeof CompressionStream||"undefined"==typeof TextEncoder)return!1;let o=null!=r.urlConfig.customUrl||null!=r.urlConfig.fallbackUrls,i=!0===b.SDKFlags.get(r.sdkKey,"enable_log_event_compression");switch(n.logEventCompressionMode){case A.LogEventCompressionMode.Disabled:return!1;case A.LogEventCompressionMode.Enabled:if(o&&!i)return!1;return!0;case A.LogEventCompressionMode.Forced:return!0;default:return!1}}function _getErrorMessage(r){return"string"==typeof r?r:r instanceof Error?`${r.name}: ${r.message}`:"Unknown Error"}function _didTimeout(r,n){return r.includes("Timeout")||n}function _tryMarkInitStart(r,n){r.urlConfig.endpoint===_.Endpoint._initialize&&d.Diagnostics._markInitNetworkReqStart(r.sdkKey,{attempt:n})}function _tryMarkInitEnd(r,n,o,i,s){r.urlConfig.endpoint===_.Endpoint._initialize&&d.Diagnostics._markInitNetworkReqEnd(r.sdkKey,d.Diagnostics._getDiagnosticsData(n,o,i,s))}function _exponentialBackoff(r){return i(this,void 0,void 0,function*(){yield new Promise(n=>setTimeout(n,Math.min(r*r*P,N)))})}},4247(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n._isDomainFailure=n.NetworkFallbackResolver=void 0;let s=o(5306),d=o(7857),g=o(6171),_=o(5877),v=6048e5,b=144e5;class E{constructor(r){var n;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null==(n=r.networkConfig)?void 0:n.networkOverrideFunc}setErrorBoundary(r){this._errorBoundary=r}tryBumpExpiryTime(r,n){var o;let i=null==(o=this._fallbackInfo)?void 0:o[n.endpoint];i&&(i.expiryTime=Date.now()+v,_tryWriteFallbackInfoToCache(r,Object.assign(Object.assign({},this._fallbackInfo),{[n.endpoint]:i})))}getActiveFallbackUrl(r,n){var o,i;if(null!=n.customUrl&&null!=n.fallbackUrls)return null;let s=this._fallbackInfo;null==s&&(s=null!=(o=_readFallbackInfoFromCache(r))?o:{},this._fallbackInfo=s);let d=s[n.endpoint];return!d||Date.now()>(null!=(i=d.expiryTime)?i:0)||n.getChecksum()!==d.urlConfigChecksum?(delete s[n.endpoint],this._fallbackInfo=s,_tryWriteFallbackInfoToCache(r,this._fallbackInfo),null):d.url?d.url:null}tryFetchUpdatedFallbackInfo(r,n,o,s){return i(this,void 0,void 0,function*(){var i,d;try{if(!_isDomainFailure(o,s))return!1;let d=null==n.customUrl&&null==n.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(n):n.fallbackUrls,g=this._pickNewFallbackUrl(null==(i=this._fallbackInfo)?void 0:i[n.endpoint],d);if(!g)return!1;return this._updateFallbackInfoWithNewUrl(r,n,g),!0}catch(r){return null==(d=this._errorBoundary)||d.logError("tryFetchUpdatedFallbackInfo",r),!1}})}_updateFallbackInfoWithNewUrl(r,n,o){var i,s,d;let g={urlConfigChecksum:n.getChecksum(),url:o,expiryTime:Date.now()+v,previous:[]},_=n.endpoint,b=null==(i=this._fallbackInfo)?void 0:i[_];b&&g.previous.push(...b.previous),g.previous.length>10&&(g.previous=[]);let E=null==(d=null==(s=this._fallbackInfo)?void 0:s[_])?void 0:d.url;null!=E&&g.previous.push(E),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[_]:g}
7),_tryWriteFallbackInfoToCache(r,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(r){return i(this,void 0,void 0,function*(){var n;let o=this._dnsQueryCooldowns[r.endpoint];if(o&&Date.now()<o)return null;this._dnsQueryCooldowns[r.endpoint]=Date.now()+b;let i=[],d=yield(0,s._fetchTxtRecords)(null!=(n=this._networkOverrideFunc)?n:fetch),g=_extractPathFromUrl(r.defaultUrl);for(let n of d){if(!n.startsWith(r.endpointDnsKey+"="))continue;let o=n.split("=");if(o.length>1){let r=o[1];r.endsWith("/")&&(r=r.slice(0,-1)),i.push(`https://${r}${g}`)}}return i})}_pickNewFallbackUrl(r,n){var o;if(null==n)return null;let i=new Set(null!=(o=null==r?void 0:r.previous)?o:[]),s=null==r?void 0:r.url,d=null;for(let r of n){let n=r.endsWith("/")?r.slice(0,-1):r;if(!i.has(r)&&n!==s){d=n;break}}return d}}function _isDomainFailure(r,n){var o;let i=null!=(o=null==r?void 0:r.toLowerCase())?o:"";return n||i.includes("uncaught exception")||i.includes("failed to fetch")||i.includes("networkerror when attempting to fetch resource")}function _getFallbackInfoStorageKey(r){return`statsig.network_fallback.${(0,d._DJB2)(r)}`}function _tryWriteFallbackInfoToCache(r,n){let o=_getFallbackInfoStorageKey(r);n&&0!==Object.keys(n).length?_.Storage.setItem(o,JSON.stringify(n)):_.Storage.removeItem(o)}function _readFallbackInfoFromCache(r){let n=_getFallbackInfoStorageKey(r),o=_.Storage.getItem(n);if(!o)return null;try{return JSON.parse(o)}catch(r){return g.Log.error("Failed to parse FallbackInfo"),null}}function _extractPathFromUrl(r){try{return new URL(r).pathname}catch(r){return null}}n.NetworkFallbackResolver=E,n._isDomainFailure=_isDomainFailure},9222(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},5738(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},9178(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SDKFlags=void 0;let o={};n.SDKFlags={setFlags:(r,n)=>{o[r]=n},get:(r,n)=>{var i,s;return null!=(s=null==(i=o[r])?void 0:i[n])&&s}}},417(r,n){"use strict";let o;Object.defineProperty(n,"__esModule",{value:!0}),n.SDKType=void 0;let i={};n.SDKType={_get:r=>{var n;return(null!=(n=i[r])?n:"js-mono")+(null!=o?o:"")},_setClientType(r,n){i[r]=n},_setBindingType(r){o&&"-react"!==o||(o="-"+r)}}},7631(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._cloneObject=n._getUnloadEvent=n._getCurrentPageUrlSafe=n._addDocumentEventListenerSafe=n._addWindowEventListenerSafe=n._isServerEnv=n._getDocumentSafe=n._getWindowSafe=void 0;let i=o(6171);n._getWindowSafe=()=>"undefined"!=typeof window?window:null;let _getDocumentSafe=()=>{var r;let o=(0,n._getWindowSafe)();return null!=(r=null==o?void 0:o.document)?r:null};n._getDocumentSafe=_getDocumentSafe;let _isServerEnv=()=>{if(null!==(0,n._getDocumentSafe)())return!1;let r="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;return"string"==typeof EdgeRuntime||r};n._isServerEnv=_isServerEnv;let _addWindowEventListenerSafe=(r,o)=>{let i=(0,n._getWindowSafe)();"function"==typeof(null==i?void 0:i.addEventListener)&&i.addEventListener(r,o)};n._addWindowEventListenerSafe=_addWindowEventListenerSafe;let _addDocumentEventListenerSafe=(r,o)=>{let i=(0,n._getDocumentSafe)();"function"==typeof(null==i?void 0:i.addEventListener)&&i.addEventListener(r,o)};n._addDocumentEventListenerSafe=_addDocumentEventListenerSafe;let _getCurrentPageUrlSafe=()=>{var r;try{return null==(r=(0,n._getWindowSafe)())?void 0:r.location.href.split(/[?#]/)[0]}catch(r){return}};n._getCurrentPageUrlSafe=_getCurrentPageUrlSafe;let _getUnloadEvent=()=>{let r=(0,n._getWindowSafe)();return r&&"onpagehide"in r?"pagehide":"beforeunload"};n._getUnloadEvent=_getUnloadEvent,n._cloneObject=(r,n)=>{try{return JSON.parse(JSON.stringify(n))}catch(n){return i.Log.error(`Failed to clone object ${r}`),null}}},4564(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StatsigSession=n.SessionID=void 0;let i=o(3488),s=o(6171),d=o(5877),g=o(1170),_=o(6366),v=18e5,b=144e5,E=15e3,k={};function _maybeBumpSession(r,n){let o=Date.now();return _checkForExpiredSession(r)?_persistNow(r):n&&(r.data.lastUpdate=o,_persistThrottled(r)),r}function _checkForExpiredSession(r){var n;let o=r.data,i=_isIdle(o)||_hasRunTooLong(o);return i&&(r.data=_newSessionData(),null==(n=null==__STATSIG__?void 0:__STATSIG__.instance(r.sdkKey))||n.$emt({name:"session_expired"})),i}function _isIdle({lastUpdate:r}){return Date.now()-r>v}function _hasRunTooLong({startTime:r}){return Date.now()-r>b}function _getSessionIDStorageKey(r){return`statsig.session_id.${(0,i._getStorageKey)(r)}`}function _persistNow(r){try{(0,d._setObjectInStorage)(r.storageKey,r.data),r.lastPersistedAt=Date.now()}catch(r){s.Log.warn("Failed to save SessionID")}}function _persistThrottled(r){Date.now()-r.lastPersistedAt>E&&_persistNow(r)}function _loadSessionFromStorage(r){return(0,d._getObjectFromStorage)(r)}function _loadOrCreateSharedSession(r){let n=_getSessionIDStorageKey(r),o=_loadSessionFromStorage(n);return o&&o.sessionID&&o.startTime&&o.lastUpdate?{data:o,sdkKey:r,lastPersistedAt:0,storageKey:n}:{data:_newSessionData(),sdkKey:r,lastPersistedAt:0,storageKey:n}}function _newSessionData(){return{sessionID:(0,g.getUUID)(),startTime:Date.now(),lastUpdate:Date.now()}}(0,_._subscribeToVisiblityChanged)(r=>
7{"background"===r&&Object.values(k).forEach(r=>_persistNow(r))}),n.SessionID={get:r=>n.StatsigSession.get(r).data.sessionID},n.StatsigSession={get:(r,n=!0)=>(null==k[r]&&(k[r]=_loadOrCreateSharedSession(r)),_maybeBumpSession(k[r],n)),overrideInitialSessionID:(r,n)=>{let o=Date.now(),i={data:{sessionID:r,startTime:o,lastUpdate:o},sdkKey:n,lastPersistedAt:Date.now(),storageKey:_getSessionIDStorageKey(n)};_persistNow(i),k[n]=i},checkForIdleSession:r=>{let n=k[r];!n||_checkForExpiredSession(n)&&_persistNow(n)}}},1837(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._fastApproxSizeOf=void 0;let o=2,i=1,_fastApproxSizeOf=(r,s)=>{let d=0,g=Object.keys(r);for(let _=0;_<g.length;_++){let v=g[_],b=r[v];if(d+=v.length,"object"==typeof b&&null!==b?d+=(0,n._fastApproxSizeOf)(b,s)+o:d+=String(b).length+i,d>=s)break}return d};n._fastApproxSizeOf=_fastApproxSizeOf},755(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCookieName=n.StableID=void 0;let i=o(3488),s=o(6171),d=o(7631),g=o(5877),_=o(1170),v={},b={},E={};function _getStableIDStorageKey(r){return`statsig.stable_id.${(0,i._getStorageKey)(r)}`}function _persistToStorage(r,n){let o=_getStableIDStorageKey(n);try{(0,g._setObjectInStorage)(o,r)}catch(r){s.Log.warn("Failed to save StableID to storage")}}function _loadFromStorage(r){let n=_getStableIDStorageKey(r);return(0,g._getObjectFromStorage)(n)}function _loadFromCookie(r){if(!b[r]||null==(0,d._getDocumentSafe)())return null;for(let n of document.cookie.split(";")){let[o,i]=n.trim().split("=");if(o===getCookieName(r))return decodeURIComponent(i)}return null}function _persistToCookie(r,n){if(!b[n]||null==(0,d._getDocumentSafe)())return;let o=new Date;o.setFullYear(o.getFullYear()+1),document.cookie=`${getCookieName(n)}=${encodeURIComponent(r)}; expires=${o.toUTCString()}; path=/`}function getCookieName(r){return`statsig.stable_id.${(0,i._getStorageKey)(r)}`}n.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:r=>{if(E[r])return null;if(null!=v[r])return v[r];let n=null;return null!=(n=_loadFromCookie(r))?(v[r]=n,_persistToStorage(n,r)):(null==(n=_loadFromStorage(r))&&(n=(0,_.getUUID)()),_persistToStorage(n,r),_persistToCookie(n,r),v[r]=n),n},setOverride:(r,n)=>{v[n]=r,_persistToStorage(r,n),_persistToCookie(r,n)},_setCookiesEnabled:(r,n)=>{b[r]=n},_setDisabled:(r,n)=>{E[r]=n}},n.getCookieName=getCookieName},8708(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.StatsigClientBase=void 0,o(1322);let s=o(1322),d=o(8513),g=o(5417),_=o(6171),v=o(7376),b=o(7631),E=o(4564),k=o(755),O=o(7831),R=o(5877),C=3e3;class I{constructor(r,n,o,i){var s,v,b,O;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const C=this.$emt.bind(this);(null==i?void 0:i.logLevel)!=null&&(_.Log.level=i.logLevel),(null==i?void 0:i.disableStorage)&&R.Storage._setDisabled(!0),(null==i?void 0:i.initialSessionID)&&E.StatsigSession.overrideInitialSessionID(i.initialSessionID,r),(null==i?void 0:i.storageProvider)&&R.Storage._setProvider(i.storageProvider),(null==i?void 0:i.enableCookies)&&k.StableID._setCookiesEnabled(r,i.enableCookies),(null==i?void 0:i.disableStableID)&&k.StableID._setDisabled(r,!0),this._sdkKey=r,this._options=null!=i?i:{},this._memoCache={},this.overrideAdapter=null!=(s=null==i?void 0:i.overrideAdapter)?s:null,this._logger=new g.EventLogger(r,C,o,i),this._errorBoundary=new d.ErrorBoundary(r,i,C),this._errorBoundary.wrap(this),this._errorBoundary.wrap(n),this._errorBoundary.wrap(this._logger),o.setErrorBoundary(this._errorBoundary),this.dataAdapter=n,this.dataAdapter.attach(r,i,o),this.storageProvider=R.Storage,null==(O=null==(b=null==(v=this.overrideAdapter)?void 0:v.loadFromStorage)?void 0:b.call(v))||O.catch(r=>this._errorBoundary.logError("OA::loadFromStorage",r)),this._primeReadyRipcord(),_assignGlobalInstance(r,this)}updateRuntimeOptions(r){r.loggingEnabled?(this._options.loggingEnabled=r.loggingEnabled,this._logger.setLoggingEnabled(r.loggingEnabled)):null!=r.disableLogging&&(this._options.disableLogging=r.disableLogging,this._logger.setLoggingEnabled(r.disableLogging?"disabled":"browser-only")),null!=r.disableStorage&&(this._options.disableStorage=r.disableStorage,R.Storage._setDisabled(r.disableStorage)),null!=r.enableCookies&&(this._options.enableCookies=r.enableCookies,k.StableID._setCo
7okiesEnabled(this._sdkKey,r.enableCookies)),r.logEventCompressionMode?this._logger.setLogEventCompressionMode(r.logEventCompressionMode):r.disableCompression&&this._logger.setLogEventCompressionMode(O.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return i(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(r,n){this._listeners[r]||(this._listeners[r]=[]),this._listeners[r].push(n)}off(r,n){if(this._listeners[r]){let o=this._listeners[r].indexOf(n);-1!==o&&this._listeners[r].splice(o,1)}}$on(r,n){n.__isInternal=!0,this.on(r,n)}$emt(r){var n;let barrier=n=>{try{n(r)}catch(o){if(!0===n.__isInternal)return void this._errorBoundary.logError(`__emit:${r.name}`,o);_.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",r)}};this._listeners[r.name]&&this._listeners[r.name].forEach(r=>barrier(r)),null==(n=this._listeners["*"])||n.forEach(barrier)}_setStatus(r,n){this.loadingStatus=r,this._memoCache={},this.$emt({name:"values_updated",status:r,values:n})}_enqueueExposure(r,n,o){(null==o?void 0:o.disableExposureLog)===!0?this._logger.incrementNonExposureCount(r):this._logger.enqueue(n)}_memoize(r,n){return(o,i)=>{if(this._options.disableEvaluationMemoization)return n(o,i);let s=(0,v.createMemoKey)(r,o,i);return s?(s in this._memoCache||(Object.keys(this._memoCache).length>=C&&(this._memoCache={}),this._memoCache[s]=n(o,i)),this._memoCache[s]):n(o,i)}}}function _assignGlobalInstance(r,n){var o;if((0,b._isServerEnv)())return;let i=(0,s._getStatsigGlobal)(),d=null!=(o=i.instances)?o:{},g=n;null!=d[r]&&_.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),d[r]=g,i.firstInstance||(i.firstInstance=g),i.instances=d,__STATSIG__=i}n.StatsigClientBase=I},5011(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorTag=void 0,n.ErrorTag={NetworkError:"NetworkError"}},1559(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DataAdapterCachePrefix=void 0,n.DataAdapterCachePrefix="statsig.cached"},5848(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._createLayerParameterExposure=n._createConfigExposure=n._mapExposures=n._createGateExposure=n._isExposureEvent=void 0;let o="statsig::config_exposure",i="statsig::gate_exposure",s="statsig::layer_exposure",_createExposure=(r,n,o,i,s)=>(o.bootstrapMetadata&&(i.bootstrapMetadata=o.bootstrapMetadata),{eventName:r,user:n,value:null,metadata:_addEvaluationDetailsToMetadata(o,i),secondaryExposures:s,time:Date.now()});function _mapExposures(r,n){return r.map(r=>"string"==typeof r?(null!=n?n:{})[r]:r).filter(r=>null!=r)}n._isExposureEvent=({eventName:r})=>r===i||r===o||r===s,n._createGateExposure=(r,n,o)=>{var s,d,g;let _={gate:n.name,gateValue:String(n.value),ruleID:n.ruleID};return(null==(s=n.__evaluation)?void 0:s.version)!=null&&(_.configVersion=n.__evaluation.version),_createExposure(i,r,n.details,_,_mapExposures(null!=(g=null==(d=n.__evaluation)?void 0:d.secondary_exposures)?g:[],o))},n._mapExposures=_mapExposures,n._createConfigExposure=(r,n,i)=>{var s,d,g,_;let v={config:n.name,ruleID:n.ruleID};return(null==(s=n.__evaluation)?void 0:s.version)!=null&&(v.configVersion=n.__evaluation.version),(null==(d=n.__evaluation)?void 0:d.passed)!=null&&(v.rulePassed=String(n.__evaluation.passed)),_createExposure(o,r,n.details,v,_mapExposures(null!=(_=null==(g=n.__evaluation)?void 0:g.secondary_exposures)?_:[],i))},n._createLayerParameterExposure=(r,n,o,i)=>{var d,g,_,v,b,E,k;let O=n.__evaluation,R=(null==(d=null==O?void 0:O.explicit_parameters)?void 0:d.includes(o))===!0,C="",I=null!=(g=null==O?void 0:O.undelegated_secondary_exposures)?g:[];R&&(C=null!=(_=O.allocated_experiment_name)?_:"",I=null!=(v=O.secondary_exposures)?v:[]);let A=null==(b=n.__evaluation)?void 0:b.parameter_rule_ids,T={config:n.name,parameterName:o,ruleID:null!=(E=null==A?void 0:A[o])?E:n.ruleID,allocatedExperiment:C,isExplicitParameter:String(R)};return(null==(k=n.__evaluation)?void 0:k.version)!=null&&(T.configVersion=n.__evaluation.version),_createExposure(s,r,n.details,T,_mapExposures(I,i))};
7let _addEvaluationDetailsToMetadata=(r,n)=>(n.reason=r.reason,r.lcut&&(n.lcut=String(r.lcut)),r.receivedAt&&(n.receivedAt=String(r.receivedAt)),n)},7707(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StatsigMetadataProvider=n.SDK_VERSION=void 0,n.SDK_VERSION="3.31.2";let o={sdkVersion:n.SDK_VERSION,sdkType:"js-mono"};n.StatsigMetadataProvider={get:()=>o,add:r=>{o=Object.assign(Object.assign({},o),r)}}},7831(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LoggingEnabledOption=n.LogEventCompressionMode=void 0,n.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},n.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},713(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},6510(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._makeTypedGet=n._mergeOverride=n._makeLayer=n._makeExperiment=n._makeDynamicConfig=n._makeFeatureGate=void 0;let i=o(6171),s=o(7853);function _makeEvaluation(r,n,o,i){var s;return{name:r,details:n,ruleID:null!=(s=null==o?void 0:o.rule_id)?s:"",__evaluation:o,value:i}}function _makeDynamicConfig(r,n,o){var i,s;let d=null!=(i=null==o?void 0:o.value)?i:{};return Object.assign(Object.assign({},_makeEvaluation(r,n,o,d)),{idType:null!=(s=null==o?void 0:o.id_type)?s:null,get:_makeTypedGet(r,null==o?void 0:o.value)})}function _makeTypedGet(r,n,o){return(d,g)=>{var _;let v=null!=(_=null==n?void 0:n[d])?_:null;return null==v?null!=g?g:null:null==g||(0,s._isTypeMatch)(v,g)?(null==o||o(d),v):(i.Log.warn(`Parameter type mismatch. '${r}.${d}' was found to be type '${typeof v}' but fallback/return type is '${typeof g}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=g?g:null)}}n._makeFeatureGate=function(r,n,o){var i;return Object.assign(Object.assign({},_makeEvaluation(r,n,o,(null==o?void 0:o.value)===!0)),{idType:null!=(i=null==o?void 0:o.id_type)?i:null})},n._makeDynamicConfig=_makeDynamicConfig,n._makeExperiment=function(r,n,o){var i;return Object.assign(Object.assign({},_makeDynamicConfig(r,n,o)),{groupName:null!=(i=null==o?void 0:o.group_name)?i:null})},n._makeLayer=function(r,n,o,i){var s,d;return Object.assign(Object.assign({},_makeEvaluation(r,n,o,void 0)),{get:_makeTypedGet(r,null==o?void 0:o.value,i),groupName:null!=(s=null==o?void 0:o.group_name)?s:null,__value:null!=(d=null==o?void 0:o.value)?d:{}})},n._mergeOverride=function(r,n,o,i){return Object.assign(Object.assign(Object.assign({},r),n),{get:_makeTypedGet(r.name,o,i)})},n._makeTypedGet=_makeTypedGet},7289(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},7425(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPDATE_DETAIL_ERROR_MESSAGES=n.createUpdateDetails=void 0,n.createUpdateDetails=(r,n,o,i,s,d)=>({duration:o,source:n,success:r,error:i,sourceUrl:s,warnings:d}),n.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}},5249(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._getUnitIDFromUser=n._getFullUserHash=n._normalizeUser=void 0;let i=o(7857),s=o(6171),d=o(7631);n._normalizeUser=function(r,n,o){let i=(0,d._cloneObject)("StatsigUser",r);return null==i?(s.Log.error("Failed to clone user"),{statsigEnvironment:void 0}):(null!=n&&null!=n.environment?i.statsigEnvironment=n.environment:null!=o&&(i.statsigEnvironment={tier:o}),i)},n._getFullUserHash=function(r){return r?(0,i._DJB2Object)(r):null},n._getUnitIDFromUser=function(r,n){var o,i,s;if("string"!=typeof n)return r.userID;let d=n.toLowerCase();return"userid"!==d?null!=(i=null==(o=r.customIDs)?void 0:o[n])?i:null==(s=r.customIDs)?void 0:s[d]:r.userID}},5877(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._setObjectInStorage=n._getObjectFromStorage=n.Storage=void 0;let i=o(6171),s=o(7631),d={},g={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:r=>d[r]?d[r]:null,setItem:(r,n)=>{d[r]=n},removeItem:r=>{delete d[r]},getAllKeys:()=>Object.keys(d)},_=null;try{let r=(0,s._getWindowSafe)();r&&r.localStorage&&"function"==typeof r.localStorage.getItem&&(_={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:n=>r.localStorage.getItem(n),setItem:(n,o)=>r.localStorage.setItem(n,o),removeItem:n=>r.localStorage.removeItem(n),getAllKeys:()=>Object.keys(r.localStorage)})}catch(r){i.Log.warn("Failed to setup localStorageProvider.")}let v=null!=_?_:g,b=v;function _inMemoryBreaker(r){try{return r()}catch(r){if(r instanceof Error&&"SecurityError"===r.name)return n.Storage._setProvider(g),null;throw r}}function _getObjectFromStorage(r){let o=n.Storage.getItem(r);try{return JSON.parse(null!=o?o:"null")}catch(n){return i.Log.error(`Failed to parse value for key "${r}"`),null}}function _setObjectInStorage(r,o){n.Storage.setItem(r,JSON.stringify(o))}n.Storage={isReady:()=>b.isReady(),isReadyResolver:()=>b.isReadyResolver(),getProviderName:()=>b.getProviderName(),getItem:r=>_inMemoryBreaker(()=>b.getItem(r)),setItem:(r,n)=>_inMemoryBreaker(()=>b.setItem(r,n)),removeItem:r=>b.removeItem(r),getAllKeys:()=>b.getAllKeys(),_setProvider:r=>
7{v=r,b=r},_setDisabled:r=>{b=r?g:v}},n._getObjectFromStorage=_getObjectFromStorage,n._setObjectInStorage=_setObjectInStorage},6196(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._typedJsonParse=void 0;let i=o(6171);n._typedJsonParse=function(r,n,o){try{let o=JSON.parse(r);if(o&&"object"==typeof o&&n in o)return o}catch(r){}return i.Log.error(`Failed to parse ${o}`),null}},7853(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._isTypeMatch=n._typeOf=void 0,n._typeOf=function(r){return Array.isArray(r)?"array":typeof r},n._isTypeMatch=function(r,n){let typeOf=r=>Array.isArray(r)?"array":null===r?"null":typeof r;return typeOf(r)===typeOf(n)}},1170(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getUUID=void 0,n.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let r=new Date().getTime(),n="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0,o="89ab"[Math.floor(4*Math.random())];return`xxxxxxxx-xxxx-4xxx-${o}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,o=>{let i=16*Math.random();return r>0?(i=(r+i)%16|0,r=Math.floor(r/16)):(i=(n+i)%16|0,n=Math.floor(n/16)),("x"===o?i:7&i|8).toString(16)})}},8028(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UrlConfiguration=void 0;let i=o(7857),s=o(1693),d={[s.Endpoint._initialize]:"i",[s.Endpoint._rgstr]:"e",[s.Endpoint._download_config_specs]:"d"};class g{constructor(r,n,o,i){this.customUrl=null,this.fallbackUrls=null,this.endpoint=r,this.endpointDnsKey=d[r],n&&(this.customUrl=n),!n&&o&&(this.customUrl=o.endsWith("/")?`${o}${r}`:`${o}/${r}`),i&&(this.fallbackUrls=i);const g=s.NetworkDefault[r];this.defaultUrl=`${g}/${r}`}getUrl(){var r;return null!=(r=this.customUrl)?r:this.defaultUrl}getChecksum(){var r;let n=(null!=(r=this.fallbackUrls)?r:[]).sort().join(",");return(0,i._DJB2)(this.customUrl+n)}}n.UrlConfiguration=g},6366(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._notifyVisibilityChanged=n._subscribeToVisiblityChanged=n._isUnloading=n._isCurrentlyVisible=void 0;let i=o(7631),s="foreground",d="background",g=[],_=s,v=!1;n._isCurrentlyVisible=()=>_===s,n._isUnloading=()=>v,n._subscribeToVisiblityChanged=r=>{g.unshift(r)},n._notifyVisibilityChanged=r=>{r!==_&&(_=r,g.forEach(n=>n(r)))},(0,i._addWindowEventListenerSafe)("focus",()=>{v=!1,(0,n._notifyVisibilityChanged)(s)}),(0,i._addWindowEventListenerSafe)("blur",()=>(0,n._notifyVisibilityChanged)(d)),(0,i._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,n._notifyVisibilityChanged)("visible"===document.visibilityState?s:d)}),(0,i._addWindowEventListenerSafe)((0,i._getUnloadEvent)(),()=>{v=!0,(0,n._notifyVisibilityChanged)(d)})},1365(r,n,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(r,n,o,i){void 0===i&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(r,i,s)}:function(r,n,o,i){void 0===i&&(i=o),r[i]=n[o]}),s=this&&this.__exportStar||function(r,n){for(var o in r)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||i(n,r,o)};Object.defineProperty(n,"__esModule",{value:!0}),n.Storage=n.Log=n.EventLogger=n.Diagnostics=void 0,o(1322);let d=o(1322),g=o(7665);Object.defineProperty(n,"Diagnostics",{enumerable:!0,get:function(){return g.Diagnostics}});let _=o(5417);Object.defineProperty(n,"EventLogger",{enumerable:!0,get:function(){return _.EventLogger}});let v=o(6171);Object.defineProperty(n,"Log",{enumerable:!0,get:function(){return v.Log}});let b=o(7707),E=o(5877);Object.defineProperty(n,"Storage",{enumerable:!0,get:function(){return E.Storage}}),s(o(1322),n),s(o(3488),n),s(o(610),n),s(o(305),n),s(o(7665),n),s(o(2108),n),s(o(8513),n),s(o(5197),n),s(o(2910),n),s(o(7857),n),s(o(9928),n),s(o(6171),n),s(o(7376),n),s(o(1693),n),s(o(1568),n),s(o(9222),n),s(o(5738),n),s(o(7631),n),s(o(417),n),s(o(4564),n),s(o(1837),n),s(o(755),n),s(o(8708),n),s(o(5011),n),s(o(1559),n),s(o(5848),n),s(o(7707),n),s(o(7831),n),s(o(713),n),s(o(6510),n),s(o(7289),n),s(o(5249),n),s(o(5877),n),s(o(6196),n),s(o(7853),n),s(o(8028),n),s(o(1170),n),s(o(6366),n),s(o(7425),n),s(o(9178),n),Object.assign((0,d._getStatsigGlobal)(),{Log:v.Log,SDK_VERSION:b.SDK_VERSION})},9575(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._resolveDeltasResponse=void 0;let i=o(1365),s=2;function _mergeDeltasIntoCache(r,n){return Object.assign(Object.assign(Object.assign({},r),n),{feature_gates:Object.assign(Object.assign({},r.feature_gates),n.feature_gates),layer_configs:Object.assign(Object.assign({}
7,r.layer_configs),n.layer_configs),dynamic_configs:Object.assign(Object.assign({},r.dynamic_configs),n.dynamic_configs)})}function _handleDeletedEntries(r){let n=r;return _deleteEntriesInRecord(r.deleted_gates,n.feature_gates),delete n.deleted_gates,_deleteEntriesInRecord(r.deleted_configs,n.dynamic_configs),delete n.deleted_configs,_deleteEntriesInRecord(r.deleted_layers,n.layer_configs),delete n.deleted_layers,n}function _deleteEntriesInRecord(r,n){null==r||r.forEach(r=>{delete n[r]})}n._resolveDeltasResponse=function(r,n){let o=(0,i._typedJsonParse)(n,"checksum","DeltasEvaluationResponse");if(!o)return{hadBadDeltaChecksum:!0};let d=_handleDeletedEntries(_mergeDeltasIntoCache(r,o)),g=(0,i._DJB2Object)({feature_gates:d.feature_gates,dynamic_configs:d.dynamic_configs,layer_configs:d.layer_configs},s);return g!==o.checksumV2?{hadBadDeltaChecksum:!0,badChecksum:g,badMergedConfigs:d,badFullResponse:o.deltas_full_response}:JSON.stringify(d)}},5054(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=o(1365),s=o(2547),d=o(5704);class g{constructor(r,n){this._sdkKey=r,this._options=n,this._valuesForExternalUse=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._valuesForExternalUse=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._valuesForExternalUse}setValues(r,n){var o,g;if(!r)return!1;let _=(0,i._typedJsonParse)(r.data,"has_updates","EvaluationResponse");return null!=_&&(this._source=r.source,(null==_?void 0:_.has_updates)!==!0||(null!=(o=_.time)?o:0)<this._lcut||(this._valuesForExternalUse=(0,i._typedJsonParse)(r.data,"has_updates","EvaluationResponse"),this._lcut=_.time,this._receivedAt=r.receivedAt,"init-v2"===_.response_format?this._values=new d.V2InitializeContainer(_):this._values=new s.V1InitializeContainer(_),this._bootstrapMetadata=this._extractBootstrapMetadata(r.source,_),r.source&&_.user&&this._setWarningState(n,_),i.SDKFlags.setFlags(this._sdkKey,null!=(g=_.sdk_flags)?g:{}),!0))}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(r){let n=this._values?this._values.getGate(r):null;return this._getDetailedStoreResult(n)}getConfig(r){let n=this._values?this._values.getConfig(r):null;return this._getDetailedStoreResult(n)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(r){let n=this._values?this._values.getLayer(r):null;return this._getDetailedStoreResult(n)}getParamStore(r){let n=this._values?this._values.getParamStore(r):null;return this._getDetailedStoreResult(n)}getSource(){return this._source}getExposureMapping(){var r;return null==(r=this._values)?void 0:r.getExposureMapping()}_extractBootstrapMetadata(r,n){if("Bootstrap"!==r)return null;let o={};return n.user&&(o.user=n.user),n.sdkInfo&&(o.generatorSDKInfo=n.sdkInfo),o.lcut=n.time,o}_getDetailedStoreResult(r){return{result:r,details:this._getDetails(null==r)}}_setWarningState(r,n){var o,s,d;let g=i.StableID.get(this._sdkKey);if((null==(o=r.customIDs)?void 0:o.stableID)!==g&&((null==(s=r.customIDs)?void 0:s.stableID)||g))return void this._warnings.add("StableIDMismatch");if("user"in n){let o=n.user,s=Object.assign(Object.assign({},r),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(null==(d=this._options)?void 0:d.disableStableID)&&(s=Object.assign(Object.assign({},s),{customIDs:Object.assign(Object.assign({},s.customIDs),{stableID:void 0})}),o=Object.assign(Object.assign({},o),{customIDs:Object.assign(Object.assign({},o.customIDs),{stableID:void 0})})),(0,i._getFullUserHash)(s)!==(0,i._getFullUserHash)(o)&&this._warnings.add("PartialUserMatch")}}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};let r={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(r.warnings=Array.from(this._warnings)),r}_getDetails(r){var n,o;let i=this.getCurrentSourceDetails(),s=i.reason,d=null!=(n=i.warnings)?n:[];if("Bootstrap"===this._source&&d.length>0&&(s+=d[0]),"Uninitialized"!==s&&"NoValues"!==s){let n=r?"Unrecognized":"Recognized";s=`${s}:${n}`}let g="Bootstrap"===this._source&&null!=(o=this._bootstrapMetadata)?o:void 0;return g&&(i.bootstrapMetadata=g),Object.assign(Object.assign({},i),{reason:s})}}n.default=g},1091(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0});let s=o(1365),d=o(9575);class g extends s.NetworkCore{constructor(r,n){super(r,n);const o=null==r?void 0:r.networkConfig;this._option=r,this._initializeUrlConfig=new s.UrlConfiguration(s.Endpoint._initialize,null==o?void 0:o.initializeUrl,null==o?void 0:o.api,null==o?void 0:o.initializeFallbackUrls)}fetchEvaluations(r,n,o,d,g){return i(this,void 0,void 0,function*(){var i,_,v,b,E,k;let O=n?(0,s._typedJsonParse)(n,"has_updates","InitializeResponse"):null,R={user:d,hash:null!=(v=null==(_=null==(i=this._option)?void 0:i.networkConfig)?void 0:_.initializeHashAlgorithm)?v:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==O?void 0:O.has_updates){let r=(null==O?void 0:O.hash_used)!==(null!=(k=null==(E=null==(b=this._option)?void 0:b.networkConfig)?void 0:E.initializeHashAlgorithm)?k:"djb2");R=Object.assign(Object.assign({},R),{sinceTime:g&&!r?O.time:0,previousDerivedFields:"derived_fields"in O&&g?O.derived_fields:{},deltasResponseRequested:!0,full_checksum:O.full_checksum,partialUserMatchSinceTime:r?0:O.time})}return this._fetchEvaluations(r,O,R,o)})}_fetchEvaluations(r,n,o,s){return i(this,void 0,void 0,function*(){var i,g;let _=yield this.post({sdkKey:r,urlConfig:this._initializeUrlConfig,data:o,retries:2,isStatsigEncodable:!0,priority:s});if((null==_?void 0:_.code)===204)return'{"has_updates": false}';if((null==_?void 0:_.code)!==200)return null!=(i=null==_?void 0:_.body)?i:null;if((null==n?void 0:n.has_updates)!==!0||(null==(g=_.body)?void 0:g.includes('"is_delta":true'))!==!0||!0!==o.deltasResponseRequested)return _.body;let v=(0,d._resolveDeltasResponse)(n,_.body);return"string"==typeof v?v:this._fetchEvaluations(r,n,Object.assign(Object.assign(Object.assign({},o),v),{deltasResponseRequested:!1}),s)})}}n.default=g},4320(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._makeParamStoreGetter=void 0;let i=o(1365),s={disableExposureLog:!0};function _shouldLogExposure(r){return null==r||!1===r.disableExposureLog}function _shouldReturnFallback(r,n){return null!=n&&!(0,i._isTypeMatch)(r,n)}function _getMappedStaticValue(r,n){return r.value}function _getMappedGateValue(r,n,o){return r.getFeatureGate(n.gate_name,_shouldLogExposure(o)?void 0:s).value?n.pass_value:n.fail_value}function _getMappedDynamicConfigValue(r,n,o,i){let d=r.getDynamicConfig(n.config_name,_shouldLogExposure(i)?void 0:s).get(n.param_name);return _shouldReturnFallback(d,o)?o:d}function _getMappedExperimentValue(r,n,o,i){let d=r.getExperiment(n.experiment_name,_shouldLogExposure(i)?void 0:s).get(n.param_name);return _shouldReturnFallback(d,o)?o:d}function _getMappedLayerValue(r,n,o,i){let d=r.getLayer(n.layer_name,_shouldLogExposure(i)?void 0:s).get(n.param_name);return _shouldReturnFallback(d,o)?o:d}n._makeParamStoreGetter=function(r,n,o){return(s,d)=>
7{if(null==n)return d;let g=n[s];if(null==g||null!=d&&(0,i._typeOf)(d)!==g.param_type)return d;switch(g.ref_type){case"static":return _getMappedStaticValue(g,o);case"gate":return _getMappedGateValue(r,g,o);case"dynamic_config":return _getMappedDynamicConfigValue(r,g,d,o);case"experiment":return _getMappedExperimentValue(r,g,d,o);case"layer":return _getMappedLayerValue(r,g,d,o);default:return d}}}},725(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0});let s=o(1365),d=o(5054),g=o(1091),_=o(4320),v=o(6292);class b extends s.StatsigClientBase{static instance(r){let n=(0,s._getStatsigGlobal)().instance(r);return n instanceof b?n:(s.Log.warn((0,s._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new b(null!=r?r:"",{}))}constructor(r,n,o=null){var i,_;s.SDKType._setClientType(r,"javascript-client");const b=new g.default(o,r=>{this.$emt(r)});for(const g of(super(r,null!=(i=null==o?void 0:o.dataAdapter)?i:new v.StatsigEvaluationsDataAdapter,b,o),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(s.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(s.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(s.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(s.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(s.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(s.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new d.default(r,null!=o?o:null),this._network=b,this._user=this._configureUser(n,o),this._sdkInstanceID=(0,s.getUUID)(),this._contextHandle=new s.PrecomputedEvaluationsContextHandle(r,()=>this._options,()=>this._errorBoundary,()=>this._store.getValues(),()=>this._user,()=>this._sdkInstanceID),null!=(_=null==o?void 0:o.plugins)?_:[]))g.bind(this)}initializeSync(r){var n;return"Uninitialized"!==this.loadingStatus?(0,s.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!=(n=this._store.getWarnings())?n:[]]):(this._logger.start(),this.updateUserSync(this._user,r))}initializeAsync(r){return i(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(r)),this._initializePromise})}updateUserSync(r,n){let o=performance.now();try{return this._updateUserSyncImpl(r,n,o)}catch(n){let r=n instanceof Error?n:Error(String(n));return this._createErrorUpdateDetails(r,o)}}_updateUserSyncImpl(r,n,o){var i;let d=[...null!=(i=this._store.getWarnings())?i:[]];this._resetForUser(r);let g=this.dataAdapter.getDataSync(this._user);null==g&&d.push("NoCachedValues"),this._store.setValues(g,this._user),this._finalizeUpdate(g);let _=null==n?void 0:n.disableBackgroundCacheRefresh;return!0===_||null==_&&(null==g?void 0:g.source)==="Bootstrap"||this._runPostUpdate(null!=g?g:null,this._user),(0,s.createUpdateDetails)(!0,this._store.getSource(),performance.now()-o,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),d)}updateUserAsync(r,n){return i(this,void 0,void 0,function*(){let o=performance.now();try{return yield this._updateUserAsyncImpl(r,n)}catch(n){let r=n instanceof Error?n:Error(String(n));return this._createErrorUpdateDetails(r,o)}})}_updateUserAsyncImpl(r,n){return i(this,void 0,void 0,function*(){this._resetForUser(r);let o=this._user;s.Diagnostics._markInitOverallStart(this._sdkKey);let i=this.dataAdapter.getDataSync(o);if(this._store.setValues(i,this._user),this._setStatus("Loading",i),i=yield this.dataAdapter.getDataAsync(i,o,n),o!==this._user)return(0,s.createUpdateDetails)(!1,this._store.getSource(),-1,Error("User changed during update"),this._network.getLastUsedInitUrlAndReset()
7);let d=!1;null!=i&&(s.Diagnostics._markInitProcessStart(this._sdkKey),d=this._store.setValues(i,this._user),s.Diagnostics._markInitProcessEnd(this._sdkKey,{success:d})),this._finalizeUpdate(i),d||(this._errorBoundary.attachErrorIfNoneExists(s.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),s.Diagnostics._markInitOverallEnd(this._sdkKey,d,this._store.getCurrentSourceDetails());let g=s.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,s.createUpdateDetails)(d,this._store.getSource(),g,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){let r=(0,s._cloneObject)("StatsigUser",this._user);return null==r&&(s.Log.error("Failed to clone user"),r={}),{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:r,errorBoundary:this._errorBoundary,session:s.StatsigSession.get(this._sdkKey),stableID:s.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}getContextHandle(){return this._contextHandle}checkGate(r,n){return this.getFeatureGate(r,n).value}logEvent(r,n,o){let i="string"==typeof r?{eventName:r,value:n,metadata:o}:r;this.$emt({name:"log_event_called",event:i}),this._logger.enqueue(Object.assign(Object.assign({},i),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(r){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:r}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(r){return i(this,void 0,void 0,function*(){return s.Storage.isReady()||(yield s.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,r)})}_createErrorUpdateDetails(r,n){var o;return(0,s.createUpdateDetails)(!1,this._store.getSource(),performance.now()-n,r,null,[...null!=(o=this._store.getWarnings())?o:[]])}_finalizeUpdate(r){this._store.finalize(),this._setStatus("Ready",r)}_runPostUpdate(r,n){this.dataAdapter.getDataAsync(r,n,{priority:"low"}).catch(r=>{s.Log.error("An error occurred after update.",r)})}_resetForUser(r){this._logger.reset(),this._store.reset(),this._user=this._configureUser(r,this._options)}_configureUser(r,n){var o,i,d;let g=(0,s._normalizeUser)(r,n),_=null==(o=g.customIDs)?void 0:o.stableID;if(_){let r=null==(d=(i=this.storageProvider).isReadyResolver)?void 0:d.call(i);r?r.then(()=>s.StableID.setOverride(_,this._sdkKey),()=>s.StableID.setOverride(_,this._sdkKey)):s.StableID.setOverride(_,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(g.analyticsOnlyMetadata=Object.assign(Object.assign({},g.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),g}_getFeatureGateImpl(r,n){var o,i;let{result:d,details:g}=this._store.getGate(r);this._checkUserHasIdForEvaluation(null==d?void 0:d.id_type,r,"Gate"),this._checkInitializationStatus(g.reason);let _=(0,s._makeFeatureGate)(r,g,d),v=null==(i=null==(o=this.overrideAdapter)?void 0:o.getGateOverride)?void 0:i.call(o,_,this._user,n),b=null!=v?v:_;return this._enqueueExposure(r,(0,s._createGateExposure)(this._user,b,this._store.getExposureMapping()),n),this.$emt({name:"gate_evaluation",gate:b}),b}_getDynamicConfigImpl(r,n){var o,i;let{result:d,details:g}=this._store.getConfig(r);this._checkUserHasIdForEvaluation(null==d?void 0:d.id_type,r,"Dynamic config"),this._checkInitializationStatus(g.reason);let _=(0,s._makeDynamicConfig)(r,g,d),v=null==(i=null==(o=this.overrideAdapter)?void 0:o.getDynamicConfigOverride)?void 0:i.call(o,_,this._user,n),b=null!=v?v:_;return this._enqueueExposure(r,(0,s._createConfigExposure)(this._user,b,this._store.getExposureMapping()),n),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:b}),b}_getExperimentImpl(r,n){var o,i,d,g;let{result:_,details:v}=this._store.getConfig(r);this._checkUserHasIdForEvaluation(null==_?void 0:_.id_type,r,"Experiment"),this._checkInitializationStatus(v.reason);let b=(0,s._makeExperiment)(r,v,_);null!=b.__evaluation&&(b.__evaluation.secondary_exposures=(0,s._mapExposures)(null!=(i=null==(o=b.__evaluation)?void 0:o.secondary_exposures)?i:[],this._store.getExposureMapping()));let E=null==(g=null==(d=this.overrideAdapter)?void 0:d.getExperimentOverride)?void 0:g.call(d,b,this._user,n),k=null!=E?E:b;return this._enqueueExposure(r,(0,s._createConfigExposure)(this._user,k,this._store.getExposureMapping()),n),this.$emt({name:"experiment_evaluation",experiment:k}),k}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(r,n){var o,i,d;let{result:g,details:_}=this._store.getLayer(r),v=(0,s._makeLayer)(r,_,g),b=null==(i=null==(o=this.overrideAdapter)?void 0:o.getLayerOverride)?void 0:i.call(o,v,this._user,n);(null==n?void 0:n.disableExposureLog)&&this._logger.incrementNonExposureCount(r);let E=(0,s._mergeOverride)(v,b,null!=(d=null==b?void 0:b.__value)?d:v.__value,o=>{null!=n&&n.disableExposureLog||this._enqueueExposure(r,(0,s._createLayerParameterExposure)(this._user,E,o,this._store.getExposureMapping()),n)});return this.$emt({name:"layer_evaluation",layer:E}),E}_getParameterStoreImpl(r,n){var o,i;let{result:s,details:d}=this._store.getParamStore(r);this._logger.incrementNonExposureCount(r);let g={name:r,details:d,__configuration:s,get:(0,_._makeParamStoreGetter)(this,s,n)},v=null==(i=null==(o=this.overrideAdapter)?void 0:o.getParamStoreOverride)?void 0:i.call(o,g,n);
7return null!=v&&(g.__configuration=v.config,g.details=v.details,g.get=(0,_._makeParamStoreGetter)(this,v.config,n)),g}_checkUserHasIdForEvaluation(r,n,o){r&&((0,s._getUnitIDFromUser)(this._user,r)||s.Log.warn(`The user does not have the required id_type "${r}" for ${o} "${n}"`))}_checkInitializationStatus(r){("Uninitialized"===r||r.startsWith("Loading"))&&s.Log.warn(`SDK initialization has not completed. Reason: ${r}`)}}n.default=b},6292(r,n,o){"use strict";var i=this&&this.__awaiter||function(r,n,o,i){function adopt(r){return r instanceof o?r:new o(function(n){n(r)})}return new(o||(o=Promise))(function(o,s){function fulfilled(r){try{step(i.next(r))}catch(r){s(r)}}function rejected(r){try{step(i.throw(r))}catch(r){s(r)}}function step(r){r.done?o(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.StatsigEvaluationsDataAdapter=void 0;let s=o(1365),d=o(1091);class g extends s.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(r,n,o){super.attach(r,n,o),null!==o&&o instanceof d.default?this._network=o:this._network=new d.default(null!=n?n:{})}getDataAsync(r,n,o){return this._getDataAsyncImpl(r,(0,s._normalizeUser)(n,this._options),o)}prefetchData(r,n){return this._prefetchDataImpl(r,n)}setData(r){let n=(0,s._typedJsonParse)(r,"has_updates","data");n&&"user"in n?super.setData(r,n.user):s.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(r,n){super.setData(r,n)}_fetchFromNetwork(r,n,o,s){return i(this,void 0,void 0,function*(){var i;let d=yield null==(i=this._network)?void 0:i.fetchEvaluations(this._getSdkKey(),r,null==o?void 0:o.priority,n,s);return null!=d?d:null})}_getCacheKey(r){var n;let o=(0,s._getStorageKey)(this._getSdkKey(),r,null==(n=this._options)?void 0:n.customUserCacheKeyFunc);return`${s.DataAdapterCachePrefix}.${this._cacheSuffix}.${o}`}_isCachedResultValidFor204(r,n){return null!=r.fullUserHash&&r.fullUserHash===(0,s._getFullUserHash)(n)}}n.StatsigEvaluationsDataAdapter=g},2547(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.V1InitializeContainer=void 0;let i=o(1365);class s{constructor(r){this._values=r}getGate(r){return this._getResultFromLookup(this._values.feature_gates,r)}getConfig(r){return this._getResultFromLookup(this._values.dynamic_configs,r)}getLayer(r){return this._getResultFromLookup(this._values.layer_configs,r)}getParamStore(r){return this._getResultFromLookup(this._values.param_stores,r)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(r,n){var o,s;return r&&null!=(s=null!=(o=r[n])?o:r[(0,i._DJB2)(n)])?s:null}}n.V1InitializeContainer=s},5704(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.V2InitializeContainer=void 0;let i=o(1365);class s{constructor(r){this._values=r}getGate(r){var n,o,i;let s=this._getResultFromLookup(this._values.feature_gates,r);return s?{name:r,value:!0===s.v,rule_id:null!=(n=s.r)?n:"default",secondary_exposures:null!=(o=s.s)?o:[],id_type:null!=(i=s.i)?i:""}:null}getConfig(r){var n,o,i,s;let d=this._getResultFromLookup(this._values.dynamic_configs,r);return d?{name:r,value:null!=(n=this._values.values[d.v])?n:{},rule_id:d.r,secondary_exposures:null!=(o=d.s)?o:[],id_type:null!=(i=d.i)?i:"",is_user_in_experiment:!0===d.ue,passed:!0===d.p,group_name:null!=(s=d.gn)?s:void 0,is_experiment_active:!0===d.ea,group:d.r,is_device_based:"stableID"===d.i}:null}getLayer(r){var n,o,i,s,d,g;let _=this._getResultFromLookup(this._values.layer_configs,r);return _?{name:r,value:null!=(n=this._values.values[_.v])?n:{},rule_id:_.r,secondary_exposures:null!=(o=_.s)?o:[],is_user_in_experiment:!0===_.ue,group_name:null!=(i=_.gn)?i:void 0,is_experiment_active:!0===_.ea,group:_.r,is_device_based:"stableID"===_.i,allocated_experiment_name:null!=(s=_.ae)?s:"",explicit_parameters:null!=(d=_.ep)?d:[],undelegated_secondary_exposures:null!=(g=_.us)?g:[],parameter_rule_ids:_.pr}:null}getParamStore(r){return this._getResultFromLookup(this._values.param_stores,r)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(r,n){var o,s;return r&&null!=(s=null!=(o=r[n])?o:r[(0,i._DJB2)(n)])?s:null}}n.V2InitializeContainer=s},6053(r,n,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(r,n,o,i){void 0===i&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(r,i,s)}:function(r,n,o,i){void 0===i&&(i=o),r[i]=n[o]}),s=this&&this.__exportStar||function(r,n){for(var o in r)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||i(n,r,o)};Object.defineProperty(n,"__esModule",{value:!0}),n.StatsigClient=void 0;let d=o(1365),g=o(725);n.StatsigClient=g.default,s(o(1365),n),n.default=Object.assign((0,d._getStatsigGlobal)(),{StatsigClient:g.default})},5867(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isNoopClient=n.NoopEvaluationsClient=void 0;let i=o(1365),s={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},_noop=()=>{},_noopWithInitializeDetails=()=>s,_noopAsync=()=>Promise.resolve(),_noopAsyncWithInitializeDetails=()=>Promise.resolve(s),d={reason:"Error:NoClient"},_defaultEvaluation=r=>(...n)=>{let o="string"==typeof n[0]?n[0]:n[1];switch(r){case"gate":return(0,i._makeFeatureGate)(o,d,null);case"config":return(0,i._makeDynamicConfig)(o,d,null);case"layer":return(0,i._makeLayer)(o,d,null);case"param_store":return{name:o}}},g={attach:_noop,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:_noop,setDataLegacy:_noop,prefetchData:_noopAsync},_={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:"",lastPersistedAt:0,storageKey:""},stableID:"",storageProvider:i.Storage,sdkInstanceID:""},v=new i.PrecomputedEvaluationsContextHandle("",()=>({}),()=>({}),()=>null,()=>({userID:""}),()=>"");n.NoopEvaluationsClient={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:_noopWithInitializeDetails,initializeAsync:_noopAsyncWithInitializeDetails,shutdown:_noopAsync,flush:_noopAsync,updateRuntimeOptions:_noop,updateUserSync:_noopWithInitializeDetails,updateUserAsync:_noopAsyncWithInitializeDetails,getContext:()=>Object.assign({},_),getContextHandle:()=>v,checkGate:()=>!1,getFeatureGate:_defaultEvaluation("gate"),getDynamicConfig:_defaultEvaluation("c
7onfig"),getExperiment:_defaultEvaluation("config"),getLayer:_defaultEvaluation("layer"),getParameterStore:_defaultEvaluation("param_store"),logEvent:_noop,on:_noop,off:_noop,$on:_noop,$emt:_noop,dataAdapter:g},n.isNoopClient=function(r){return"isNoop"in r}},9309(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=o(1594),s=o(5867);n.default=(0,i.createContext)({renderVersion:0,client:s.NoopEvaluationsClient,isLoading:!0})},8069(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StatsigProvider=void 0;let i=o(8532),s=o(1594),d=o(1365),g=o(9309),_=o(4925);function ConfigBasedStatsigProvider(r){let[n,o]=(0,s.useState)(0),d=(0,_.useClientAsyncInit)(r.sdkKey,r.user,r.options).client,[v,b]=(0,s.useState)(!_isReady(d));useStatsigClientSetup(d,o,b);let E=(0,s.useMemo)(()=>({renderVersion:n,client:d,isLoading:v}),[n,d,v]);return(0,i.jsx)(g.default.Provider,{value:E,children:null!=r.loadingComponent&&E.isLoading?r.loadingComponent:r.children})}function ClientBasedStatsigProvider(r){let[n,o]=(0,s.useState)(0),d=r.client,[_,v]=(0,s.useState)(!_isReady(d));useStatsigClientSetup(d,o,v);let b=(0,s.useMemo)(()=>({renderVersion:n,client:d,isLoading:_}),[n,d,_]);return(0,i.jsx)(g.default.Provider,{value:b,children:null!=r.loadingComponent&&b.isLoading?r.loadingComponent:r.children})}function useStatsigClientSetup(r,n,o){(0,s.useEffect)(()=>{let onValuesUpdated=()=>{n(r=>r+1),o(!_isReady(r))};return d.SDKType._setBindingType("react"),r.$on("values_updated",onValuesUpdated),()=>{r.flush().catch(r=>d.Log.error("An error occurred during flush",r)),r.off("values_updated",onValuesUpdated)}},[r,n])}function _isReady(r){return"isNoop"in r||"Ready"===r.loadingStatus}n.StatsigProvider=function(r){return"client"in r?(("sdkKey"in r||"user"in r)&&d.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,i.jsx)(ClientBasedStatsigProvider,Object.assign({},r))):(0,i.jsx)(ConfigBasedStatsigProvider,Object.assign({},r))}},3387(r,n,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(r,n,o,i){void 0===i&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(r,i,s)}:function(r,n,o,i){void 0===i&&(i=o),r[i]=n[o]}),s=this&&this.__exportStar||function(r,n){for(var o in r)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||i(n,r,o)};Object.defineProperty(n,"__esModule",{value:!0}),n.useStatsigUser=n.useStatsigInternalClientFactoryBootstrap=n.useStatsigInternalClientFactoryAsync=n.useStatsigClient=n.useParameterStore=n.useLayer=n.useGateValue=n.useFeatureGate=n.useExperiment=n.useDynamicConfig=n.useClientBootstrapInit=n.useClientAsyncInit=n.StatsigProvider=n.StatsigContext=void 0;let d=o(1365),g=o(9309);n.StatsigContext=g.default;let _=o(8069);Object.defineProperty(n,"StatsigProvider",{enumerable:!0,get:function(){return _.StatsigProvider}});let v=o(4925);Object.defineProperty(n,"useClientAsyncInit",{enumerable:!0,get:function(){return v.useClientAsyncInit}});let b=o(1679);Object.defineProperty(n,"useClientBootstrapInit",{enumerable:!0,get:function(){return b.useClientBootstrapInit}});let E=o(4865);n.useDynamicConfig=E.default;let k=o(1023);n.useExperiment=k.default;let O=o(4439);n.useFeatureGate=O.default;let R=o(126);n.useGateValue=R.default;let C=o(4571);n.useLayer=C.default;let I=o(3592);n.useParameterStore=I.default;let A=o(3046);Object.defineProperty(n,"useStatsigClient",{enumerable:!0,get:function(){return A.useStatsigClient}});let T=o(8497);Object.defineProperty(n,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return T.useStatsigInternalClientFactoryAsync}});let j=o(7535);Object.defineProperty(n,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return j.useStatsigInternalClientFactoryBootstrap}});let P=o(2370);Object.defineProperty(n,"useStatsigUser",{enumerable:!0,get:function(){return P.useStatsigUser}}),s(o(8064),n),Object.assign((0,d._getStatsigGlobal)(),{StatsigContext:g.default,StatsigProvider:_.StatsigProvider,useClientAsyncInit:v.useClientAsyncInit,useClientBootstrapInit:b.useClientBootstrapInit,useDynamicConfig:E.default,useExperiment:k.default,useFeatureGate:O.default,useGateValue:R.default,useLayer:C.default,useParameterStore:I.default,useStatsigClient:A.useStatsigClient,useStatsigInternalClientFactoryAsync:T.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:j.useStatsigInternalClientFactoryBootstrap,useStatsigUser:P.useStatsigUser})},4925(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useClientAsyncInit=void 0;let i=o(8064),s=o(8497);
7n.useClientAsyncInit=function(r,n,o=null){return(0,s.useStatsigInternalClientFactoryAsync)(r=>new i.StatsigClient(r.sdkKey,r.initialUser,r.statsigOptions),{sdkKey:r,initialUser:n,statsigOptions:o})}},1679(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useClientBootstrapInit=void 0;let i=o(8064),s=o(7535);n.useClientBootstrapInit=function(r,n,o,d=null,g){return(0,s.useStatsigInternalClientFactoryBootstrap)(r=>new i.StatsigClient(r.sdkKey,r.initialUser,r.statsigOptions),{sdkKey:r,initialUser:n,initialValues:o,statsigOptions:d,useLegacyFormat:g})}},4865(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=o(1594),s=o(1365),d=o(5867),g=o(9309);n.default=function(r,n){let{client:o,renderVersion:_}=(0,i.useContext)(g.default);return(0,i.useMemo)(()=>(0,d.isNoopClient)(o)?(s.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${r}'.`),d.NoopEvaluationsClient.getDynamicConfig(r,n)):o.getDynamicConfig(r,n),[r,o,_,...n?Object.values(n):[]])}},1023(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=o(1594),s=o(1365),d=o(5867),g=o(9309);n.default=function(r,n){let{client:o,renderVersion:_}=(0,i.useContext)(g.default);return(0,i.useMemo)(()=>(0,d.isNoopClient)(o)?(s.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${r}'.`),d.NoopEvaluationsClient.getExperiment(r,n)):o.getExperiment(r,n),[r,o,_,...n?Object.values(n):[]])}},4439(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=o(1594),s=o(1365),d=o(5867),g=o(9309);n.default=function(r,n){let{client:o,renderVersion:_}=(0,i.useContext)(g.default);return(0,i.useMemo)(()=>(0,d.isNoopClient)(o)?(s.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${r}'.`),d.NoopEvaluationsClient.getFeatureGate(r,n)):o.getFeatureGate(r,n),[r,o,_,...n?Object.values(n):[]])}},126(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=o(1594),s=o(1365),d=o(5867),g=o(9309);n.default=function(r,n){let{client:o,renderVersion:_}=(0,i.useContext)(g.default);return(0,i.useMemo)(()=>(0,d.isNoopClient)(o)?(s.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${r}'.`),d.NoopEvaluationsClient.checkGate(r,n)):o.checkGate(r,n),[r,o,_,...n?Object.values(n):[]])}},4571(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=o(1594),s=o(1365),d=o(5867),g=o(9309);n.default=function(r,n){let{client:o,renderVersion:_}=(0,i.useContext)(g.default);return(0,i.useMemo)(()=>(0,d.isNoopClient)(o)?(s.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${r}'.`),d.NoopEvaluationsClient.getLayer(r,n)):o.getLayer(r,n),[r,o,_,...n?Object.values(n):[]])}},3592(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=o(1594),s=o(1365),d=o(5867),g=o(9309);n.default=function(r,n){let{client:o,renderVersion:_}=(0,i.useContext)(g.default);return(0,i.useMemo)(()=>(0,d.isNoopClient)(o)?(s.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${r}'.`),d.NoopEvaluationsClient.getParameterStore(r,n)):o.getParameterStore(r,n),[r,o,_,...n?Object.values(n):[]])}},3046(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useStatsigClient=void 0;let i=o(1594),s=o(1365),d=o(5867),g=o(9309);n.useStatsigClient=function(){let{client:r,renderVersion:n,isLoading:o}=(0,i.useContext)(g.default),_=(0,i.useMemo)(()=>(0,d.isNoopClient)(r)?(s.Log.warn("Attempting to retrieve a StatsigClient but none was set."),d.NoopEvaluationsClient):r,[r,n]),v=[_,n],b=(0,i.useCallback)((r,n)=>_.checkGate(r,n),v),E=(0,i.useCallback)((r,n)=>_.getFeatureGate(r,n),v),k=(0,i.useCallback)((r,n)=>_.getDynamicConfig(r,n),v),O=(0,i.useCallback)((r,n)=>_.getExperiment(r,n),v),R=(0,i.useCallback)((r,n)=>_.getLayer(r,n),v),C=(0,i.useCallback)((r,n)=>_.getParameterStore(r,n),v),I=(0,i.useCallback)((r,n,o)=>"string"==typeof r?_.logEvent(r,n,o):_.logEvent(r),v);return(0,i.useMemo)(()=>({client:_,checkGate:b,getFeatureGate:E,getDynamicConfig:k,getExperiment:O,getLayer:R,getParameterStore:C,logEvent:I,isLoading:o}),[_,b,E,k,O,R,C,I,o])}},8497(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useStatsigInternalClientFactoryAsync=void 0;let i=o(1594),s=o(1365);n.useStatsigInternalClientFactoryAsync=function(r,n){let o=(0,i.useMemo)(()=>{var o;return null!=(o=(0,s._getInstance)(n.sdkKey))?o:r(n)},[]),[d,g]=(0,i.useState)("Ready"!==o.loadingStatus);return(0,i.useMemo)(()=>{"Ready"!==o.loadingStatus&&o.initializeAsync().catch(s.Log.error).finally(()=>g(!1))},[]),{client:o,isLoading:d}}},7535(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useStatsigInternalClientFactoryBootstrap=void 0;let i=o(1594),s=o(1365);n.useStatsigInternalClientFactoryBootstrap=function(r,n){let o=(0,i.useRef)((0,s._getInstance)(n.sdkKey));return(0,i.useMemo)(()=>
7{if(o.current)return o.current;let i=r(n);return o.current=i,n.useLegacyFormat?i.dataAdapter.setDataLegacy(n.initialValues,n.initialUser):i.dataAdapter.setData(n.initialValues),i.initializeSync(),i},[])}},2370(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useStatsigUser=void 0;let i=o(1594),s=o(9309),d=o(3046);function getClientUser(r){return r.getContextHandle().user}n.useStatsigUser=function(){let{client:r}=(0,d.useStatsigClient)(),{renderVersion:n}=(0,i.useContext)(s.default);return{user:(0,i.useMemo)(()=>getClientUser(r),[r,n]),updateUserSync:(0,i.useCallback)(n=>("function"==typeof n&&(n=n(getClientUser(r))),r.updateUserSync(n)),[r]),updateUserAsync:(0,i.useCallback)(n=>("function"==typeof n&&(n=n(getClientUser(r))),r.updateUserAsync(n)),[r])}}},301(r,n,o){"use strict";function _arrayLikeToArray(r,n){(null==n||n>r.length)&&(n=r.length);for(var o=0,i=Array(n);o<n;o++)i[o]=r[o];return i}o.d(n,{A:()=>_arrayLikeToArray})},6701(r,n,o){"use strict";function _arrayWithHoles(r){if(Array.isArray(r))return r}o.d(n,{A:()=>_arrayWithHoles})},3925(r,n,o){"use strict";function _assertThisInitialized(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}o.d(n,{A:()=>_assertThisInitialized})},7401(r,n,o){"use strict";function _classCallCheck(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}o.d(n,{A:()=>_classCallCheck})},8209(r,n,o){"use strict";o.d(n,{A:()=>_createClass});var i=o(8544);function _defineProperties(r,n){for(var o=0;o<n.length;o++){var s=n[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,(0,i.A)(s.key),s)}}function _createClass(r,n,o){return n&&_defineProperties(r.prototype,n),o&&_defineProperties(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}},663(r,n,o){"use strict";o.d(n,{A:()=>_defineProperty});var i=o(8544);function _defineProperty(r,n,o){return(n=(0,i.A)(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r}},8390(r,n,o){"use strict";function _getPrototypeOf(r){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}o.d(n,{A:()=>_getPrototypeOf})},9342(r,n,o){"use strict";function _setPrototypeOf(r,n){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}function _inherits(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&_setPrototypeOf(r,n)}o.d(n,{A:()=>_inherits})},8753(r,n,o){"use strict";function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}o.d(n,{A:()=>_iterableToArray})},5222(r,n,o){"use strict";function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}o.d(n,{A:()=>_nonIterableRest})},2975(r,n,o){"use strict";function _objectWithoutPropertiesLoose(r,n){if(null==r)return{};var o={};for(var i in r)if(({}).hasOwnProperty.call(r,i)){if(-1!==n.indexOf(i))continue;o[i]=r[i]}return o}o.d(n,{A:()=>_objectWithoutPropertiesLoose})},7386(r,n,o){"use strict";o.d(n,{A:()=>_possibleConstructorReturn});var i=o(7408),s=o(3925);function _possibleConstructorReturn(r,n){if(n&&("object"==(0,i.A)(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return(0,s.A)(r)}},8544(r,n,o){"use strict";o.d(n,{A:()=>toPropertyKey});var i=o(7408);function toPrimitive(r,n){if("object"!=(0,i.A)(r)||!r)return r;var o=r[Symbol.toPrimitive];if(void 0!==o){var s=o.call(r,n||"default");if("object"!=(0,i.A)(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(r)}function toPropertyKey(r){var n=toPrimitive(r,"string");return"symbol"==(0,i.A)(n)?n:n+""}},7408(r,n,o){"use strict";function _typeof(r){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}o.d(n,{A:()=>_typeof})},9876(r,n,o){"use strict";o.d(n,{A:()=>_unsupportedIterableToArray});var i=o(301);function _unsupportedIterableToArray(r,n){if(r){if("string"==typeof r)return(0,i.A)(r,n);var o=({}).toString.call(r).slice(8,-1);return"Object"===o&&r.constructor&&(o=r.constructor.name),"Map"===o||"Set"===o?Array.from(r):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?(0,i.A)(r,n):void 0}}},8450(r,n,o){"use strict";o.r(n),o.d(n,{createInstance:()=>Z,exists:()=>es,default:()=>ef,setDefaultNamespace:()=>el,loadResources:()=>et,getFixedT:()=>ei,init:()=>ee,loadNamespaces:()=>ec,changeLanguage:()=>eo,hasLoadedNamespace:()=>eu,loadLanguages:()=>ed,t:()=>ea,reloadResources:()=>er,use:()=>en});var i=o(7408),s=o(7401),d=o(8209),g=o(3925),_=o(9342),v=o(7386),b=o(8390),E=o(663),k=o(6701),O=o(8753),R=o(9876),C=o(5222);function _toArray(r){return(0,k.A)(r)||(0,O.A)(r)||(0,R.A)(r)||(0,C.A)()}function ownKeys(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function _objectSpread(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};
7n%2?ownKeys(Object(o),!0).forEach(function(n){(0,E.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}var I={type:"logger",log:function(r){this.output("log",r)},warn:function(r){this.output("warn",r)},error:function(r){this.output("error",r)},output:function(r,n){console&&console[r]&&console[r].apply(console,n)}},A=new(function(){function Logger(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,Logger),this.init(r,n)}return(0,d.A)(Logger,[{key:"init",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||I,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,n,o,i){return i&&!this.debug?null:("string"==typeof r[0]&&(r[0]="".concat(o).concat(this.prefix," ").concat(r[0])),this.logger[n](r))}},{key:"create",value:function(r){return new Logger(this.logger,_objectSpread(_objectSpread({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return(r=r||this.options).prefix=r.prefix||this.prefix,new Logger(this.logger,r)}}]),Logger}()),T=function(){function EventEmitter(){(0,s.A)(this,EventEmitter),this.observers={}}return(0,d.A)(EventEmitter,[{key:"on",value:function(r,n){var o=this;return r.split(" ").forEach(function(r){o.observers[r]=o.observers[r]||[],o.observers[r].push(n)}),this}},{key:"off",value:function(r,n){if(this.observers[r]){if(!n)return void delete this.observers[r];this.observers[r]=this.observers[r].filter(function(r){return r!==n})}}},{key:"emit",value:function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.observers[r]&&[].concat(this.observers[r]).forEach(function(r){r.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(n){n.apply(n,[r].concat(o))})}}]),EventEmitter}();function defer(){var r,n,o=new Promise(function(o,i){r=o,n=i});return o.resolve=r,o.reject=n,o}function makeString(r){return null==r?"":""+r}function i18next_copy(r,n,o){r.forEach(function(r){n[r]&&(o[r]=n[r])})}function getLastOfPath(r,n,o){function cleanKey(r){return r&&r.indexOf("###")>-1?r.replace(/###/g,"."):r}function canNotTraverseDeeper(){return!r||"string"==typeof r}for(var i="string"!=typeof n?[].concat(n):n.split(".");i.length>1;){if(canNotTraverseDeeper())return{};var s=cleanKey(i.shift());!r[s]&&o&&(r[s]=new o),r=Object.prototype.hasOwnProperty.call(r,s)?r[s]:{}}return canNotTraverseDeeper()?{}:{obj:r,k:cleanKey(i.shift())}}function setPath(r,n,o){var i=getLastOfPath(r,n,Object);i.obj[i.k]=o}function pushPath(r,n,o,i){var s=getLastOfPath(r,n,Object),d=s.obj,g=s.k;d[g]=d[g]||[],i&&(d[g]=d[g].concat(o)),i||d[g].push(o)}function getPath(r,n){var o=getLastOfPath(r,n),i=o.obj,s=o.k;if(i)return i[s]}function getPathWithDefaults(r,n,o){var i=getPath(r,o);return void 0!==i?i:getPath(n,o)}function deepExtend(r,n,o){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in r?"string"==typeof r[i]||r[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?o&&(r[i]=n[i]):deepExtend(r[i],n[i],o):r[i]=n[i]);return r}function regexEscape(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var j={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function i18next_escape(r){return"string"==typeof r?r.replace(/[&<>
7"'\/]/g,function(r){return j[r]}):r}var P="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,N=[" ",",","?","!",";"];function looksLikeObjectPath(r,n,o){n=n||"",o=o||"";var i=N.filter(function(r){return 0>n.indexOf(r)&&0>o.indexOf(r)});if(0===i.length)return!0;var s=new RegExp("(".concat(i.map(function(r){return"?"===r?"\\?":r}).join("|"),")")),d=!s.test(r);if(!d){var g=r.indexOf(o);g>0&&!s.test(r.substring(0,g))&&(d=!0)}return d}function ownKeys$1(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function _objectSpread$1(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ownKeys$1(Object(o),!0).forEach(function(n){(0,E.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$1(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function _createSuper(r){var n=_isNativeReflectConstruct();return function(){var o,i=(0,b.A)(r);return o=n?Reflect.construct(i,arguments,(0,b.A)(this).constructor):i.apply(this,arguments),(0,v.A)(this,o)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}function deepFind(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(r){if(r[n])return r[n];for(var i=n.split(o),s=r,d=0;d<i.length;++d){if(!s||"string"==typeof s[i[d]]&&d+1<i.length)return;if(void 0===s[i[d]]){for(var g=2,_=i.slice(d,d+g).join(o),v=s[_];void 0===v&&i.length>d+g;)g++,v=s[_=i.slice(d,d+g).join(o)];if(void 0===v)return;if(null===v)return null;if(n.endsWith(_)){if("string"==typeof v)return v;if(_&&"string"==typeof v[_])return v[_]}var b=i.slice(d+g).join(o);if(b)return deepFind(v,b,o);return}s=s[i[d]]}return s}}var D=function(r){(0,_.A)(ResourceStore,r);var n=_createSuper(ResourceStore);function ResourceStore(r){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,s.A)(this,ResourceStore),o=n.call(this),P&&T.call((0,g.A)(o)),o.data=r||{},o.options=i,void 0===o.options.keySeparator&&(o.options.keySeparator="."),void 0===o.options.ignoreJSONStructure&&(o.options.ignoreJSONStructure=!0),o}return(0,d.A)(ResourceStore,[{key:"addNamespaces",value:function(r){0>this.options.ns.indexOf(r)&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,d=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,g=[r,n];o&&"string"!=typeof o&&(g=g.concat(o)),o&&"string"==typeof o&&(g=g.concat(s?o.split(s):o)),r.indexOf(".")>-1&&(g=r.split("."));var _=getPath(this.data,g);return _||!d||"string"!=typeof o?_:deepFind(this.data&&this.data[r]&&this.data[r][n],o,s)}},{key:"addResource",value:function(r,n,o,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},d=this.options.keySeparator;void 0===d&&(d=".");var g=[r,n];o&&(g=g.concat(d?o.split(d):o)),r.indexOf(".")>-1&&(g=r.split("."),i=n,n=g[1]),this.addNamespaces(n),setPath(this.data,g,i),s.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var s in o)("string"==typeof o[s]||"[object Array]"===Object.prototype.toString.apply(o[s]))&&this.addResource(r,n,s,o[s],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,s){var d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},g=[r,n];r.indexOf(".")>-1&&(g=r.split("."),i=o,o=n,n=g[1]),this.addNamespaces(n);var _=getPath(this.data,g)||{};i?deepExtend(_,o,s):_=_objectSpread$1(_objectSpread$1({}
7,_),o),setPath(this.data,g,_),d.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return void 0!==this.getResource(r,n)}},{key:"getResourceBundle",value:function(r,n){return(n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?_objectSpread$1(_objectSpread$1({},{}),this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"hasLanguageSomeTranslations",value:function(r){var n=this.getDataByLanguage(r);return!!(n&&Object.keys(n)||[]).find(function(r){return n[r]&&Object.keys(n[r]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),ResourceStore}(T),F={processors:{},addPostProcessor:function(r){this.processors[r.name]=r},handle:function(r,n,o,i,s){var d=this;return r.forEach(function(r){d.processors[r]&&(n=d.processors[r].process(n,o,i,s))}),n}};function ownKeys$2(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function _objectSpread$2(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ownKeys$2(Object(o),!0).forEach(function(n){(0,E.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$2(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function _createSuper$1(r){var n=_isNativeReflectConstruct$1();return function(){var o,i=(0,b.A)(r);return o=n?Reflect.construct(i,arguments,(0,b.A)(this).constructor):i.apply(this,arguments),(0,v.A)(this,o)}}function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}var L={},U=function(r){(0,_.A)(Translator,r);var n=_createSuper$1(Translator);function Translator(r){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.A)(this,Translator),o=n.call(this),P&&T.call((0,g.A)(o)),i18next_copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
7i18nFormat","utils"],r,(0,g.A)(o)),o.options=i,void 0===o.options.keySeparator&&(o.options.keySeparator="."),o.logger=A.create("translator"),o}return(0,d.A)(Translator,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==r)return!1;var o=this.resolve(r,n);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(r,n){var o=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=n.ns||this.options.defaultNS||[],d=o&&r.indexOf(o)>-1,g=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!looksLikeObjectPath(r,o,i);if(d&&!g){var _=r.match(this.interpolator.nestingRegexp);if(_&&_.length>0)return{key:r,namespaces:s};var v=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(v[0])>-1)&&(s=v.shift()),r=v.join(i)}return"string"==typeof s&&(s=[s]),{key:r,namespaces:s}}},{key:"translate",value:function(r,n,o){var s=this;if("object"!==(0,i.A)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==r)return"";Array.isArray(r)||(r=[String(r)]);var d=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,g=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,_=this.extractFromKey(r[r.length-1],n),v=_.key,b=_.namespaces,E=b[b.length-1],k=n.lng||this.language,O=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(k&&"cimode"===k.toLowerCase()){if(O){var R=n.nsSeparator||this.options.nsSeparator;return d?(C.res="".concat(E).concat(R).concat(v),C):"".concat(E).concat(R).concat(v)}return d?(C.res=v,C):v}var C=this.resolve(r,n),I=C&&C.res,A=C&&C.usedKey||v,T=C&&C.exactUsedKey||v,j=Object.prototype.toString.apply(I),P=["[object Number]","[object Function]","[object RegExp]"],N=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,F="string"!=typeof I&&"boolean"!=typeof I&&"number"!=typeof I;if(D&&I&&F&&0>P.indexOf(j)&&("string"!=typeof N||"[object Array]"!==j)){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,I,_objectSpread$2(_objectSpread$2({},n),{},{ns:b})):"key '".concat(v," (").concat(this.language,")' returned an object instead of string.");return d?(C.res=L,C):L}if(g){var U="[object Array]"===j,B=U?[]:{},V=U?T:A;for(var K in I)if(Object.prototype.hasOwnProperty.call(I,K)){var H="".concat(V).concat(g).concat(K);B[K]=this.translate(H,_objectSpread$2(_objectSpread$2({},n),{joinArrays:!1,ns:b})),B[K]===H&&(B[K]=I[K])}I=B}}else if(D&&"string"==typeof N&&"[object Array]"===j)(I=I.join(N))&&(I=this.extendTranslation(I,r,n,o));else{var G=!1,z=!1,W=void 0!==n.count&&"string"!=typeof n.count,J=Translator.hasDefaultValue(n),Y=W?this.pluralResolver.getSuffix(k,n.count,n):"",X=n["defaultValue".concat(Y)]||n.defaultValue;!this.isValidLookup(I)&&J&&(G=!0,I=X),this.isValidLookup(I)||(z=!0,I=v);var Q=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&z?void 0:I,Z=J&&X!==I&&this.options.updateMissing;if(z||G||Z){if(this.logger.log(Z?"updateKey":"missingKey",k,E,v,Z?X:I),g){var ee=this.resolve(v,_objectSpread$2(_objectSpread$2({},n),{},{keySeparator:!1}));ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var et=[],er=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&er&&er[0])for(var en=0;en<er.length;en++)et.push(er[en]);else"all"===this.options.saveMissingTo?et=this.languageUtils.toResolveHierarchy(n.lng||this.language):et.push(n.lng||this.language);var send=function(r,o,i){var d=J&&i!==I?i:Q;s.options.missingKeyHandler?s.options.missingKeyHandler(r,E,o,d,Z,n):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(r,E,o,d,Z,n),s.emit("missingKey",r,E,o,I)};this.options.saveMissing&&(this.options.saveMissingPlurals&&W?et.forEach(function(r){s.pluralResolver.getSuffixes(r,n).forEac
vendor: 6,642 bytes, line 7
7h(function(o){send([r],v+o,n["defaultValue".concat(o)]||X)})}):send(et,v,X))}I=this.extendTranslation(I,r,n,C,o),z&&I===v&&this.options.appendNamespaceToMissingKey&&(I="".concat(E,":").concat(v)),(z||G)&&this.options.parseMissingKeyHandler&&(I="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(v):v,G?I:void 0):this.options.parseMissingKeyHandler(I))}return d?(C.res=I,C):I}},{key:"extendTranslation",value:function(r,n,o,i,s){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,_objectSpread$2(_objectSpread$2({},this.options.interpolation.defaultVariables),o),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(_objectSpread$2(_objectSpread$2({},o),{interpolation:_objectSpread$2(_objectSpread$2({},this.options.interpolation),o.interpolation)}));var g,_="string"==typeof r&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(_){var v=r.match(this.interpolator.nestingRegexp);g=v&&v.length}var b=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(b=_objectSpread$2(_objectSpread$2({},this.options.interpolation.defaultVariables),b)),r=this.interpolator.interpolate(r,b,o.lng||this.language,o),_){var E=r.match(this.interpolator.nestingRegexp);g<(E&&E.length)&&(o.nest=!1)}!1!==o.nest&&(r=this.interpolator.nest(r,function(){for(var r=arguments.length,i=Array(r),g=0;g<r;g++)i[g]=arguments[g];return s&&s[0]===i[0]&&!o.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(n[0])),null):d.translate.apply(d,i.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var k=o.postProcess||this.options.postProcess,O="string"==typeof k?[k]:k;return null!=r&&O&&O.length&&!1!==o.applyPostProcessor&&(r=F.handle(O,r,n,this.options&&this.options.postProcessPassResolved?_objectSpread$2({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,s,d,g=this,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof r&&(r=[r]),r.forEach(function(r){if(!g.isValidLookup(n)){var v=g.extractFromKey(r,_),b=v.key;o=b;var E=v.namespaces;g.options.fallbackNS&&(E=E.concat(g.options.fallbackNS));var k=void 0!==_.count&&"string"!=typeof _.count,O=k&&!_.ordinal&&0===_.count&&g.pluralResolver.shouldUseIntlApi(),R=void 0!==_.context&&("string"==typeof _.context||"number"==typeof _.context)&&""!==_.context,C=_.lngs?_.lngs:g.languageUtils.toResolveHierarchy(_.lng||g.language,_.fallbackLng);E.forEach(function(r){g.isValidLookup(n)||(d=r,!L["".concat(C[0],"-").concat(r)]&&g.utils&&g.utils.hasLoadedNamespace&&!g.utils.hasLoadedNamespace(d)&&(L["".concat(C[0],"-").concat(r)]=!0,g.logger.warn('key "'.concat(o,'" for languages "').concat(C.join(", "),'" won\'t get resolved as namespace "').concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(function(o){if(!g.isValidLookup(n)){s=o;var d,v=[b];if(g.i18nFormat&&g.i18nFormat.addLookupKeys)g.i18nFormat.addLookupKeys(v,b,o,r,_);else{k&&(E=g.pluralResolver.getSuffix(o,_.count,_));var E,C="".concat(g.options.pluralSeparator,"zero");if(k&&(v.push(b+E),O&&v.push(b+C)),R){var I="".concat(b).concat(g.options.contextSeparator).concat(_.context);v.push(I),k&&(v.push(I+E),O&&v.push(I+C))}}for(;d=v.pop();)g.isValidLookup(n)||(i=d,n=g.getResource(o,r,d,_))}}))})}}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:d}}},{key:"isValidLookup",value:function(r){return void 0!==r&&!(!this.options.returnNull&&null===r)&&!(!this.options.returnEmptyString&&""===r)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&void 0!==r[o])return!0;return!1}}]),Translator}(T);function capitalize(r){return r.charAt(0).toUpperCase()+r.slice(1)}var B=function(){function LanguageUtil(r){(0,s.A)(this,LanguageUtil),this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=A.create("languageUtils")}return(0,d.A)(LanguageUtil,[{key:"getScriptPartFromCode",value:function(r){if(!r||0>r.indexOf("-"))return null;var n=r.split("-");return 2===n.length||(n.pop(),"x"===n[n.length-1].toLowerCase())?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||0>r.indexOf("-"))return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if("string"==typeof r&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],o=r.split("-");return this.options.lowerCaseLng?o=o.map(function(r){return r.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=capitalize(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=capitalize(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=capitalize(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n,o=this;return r?(r.forEach(function(r){if(!n){var i=o.formatLanguageCode(r);(!o.options.supportedLngs||o.isSupportedCode(i))&&(n=i)}}),!n&&this.options.supportedLngs&&r.forEach(function(r){if(!n){var i=o.getLanguagePartFromCode(r);if(o.isSupportedCode(i))return n=i;n=o.options.supportedLngs.find(function(r){if(0===r.indexOf(i))return r})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if("function"==typeof r&&(r=r(n)),"string"==typeof r&&(r=[r]),"[object Array]"===Object.prototype.toString.apply(r))return r;if(!n)return r.default||[];var o=r[n];
vendor: 4,976 bytes, line 7
7return o||(o=r[this.getScriptPartFromCode(n)]),o||(o=r[this.formatLanguageCode(n)]),o||(o=r[this.getLanguagePartFromCode(n)]),o||(o=r.default),o||[]}},{key:"toResolveHierarchy",value:function(r,n){var o=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],r),s=[],addCode=function(r){r&&(o.isSupportedCode(r)?s.push(r):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(r)))};return"string"==typeof r&&r.indexOf("-")>-1?("languageOnly"!==this.options.load&&addCode(this.formatLanguageCode(r)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&addCode(this.getScriptPartFromCode(r)),"currentOnly"!==this.options.load&&addCode(this.getLanguagePartFromCode(r))):"string"==typeof r&&addCode(this.formatLanguageCode(r)),i.forEach(function(r){0>s.indexOf(r)&&addCode(o.formatLanguageCode(r))}),s}}]),LanguageUtil}(),V=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],K={1:function(r){return Number(r>1)},2:function(r){return Number(1!=r)},3:function(r){return 0},4:function(r){return Number(r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2)},5:function(r){return Number(0==r?0:1==r?1:2==r?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5)},6:function(r){return Number(1==r?0:r>=2&&r<=4?1:2)},7:function(r){return Number(1==r?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2)},8:function(r){return Number(1==r?0:2==r?1:8!=r&&11!=r?2:3)},9:function(r){return Number(r>=2)},10:function(r){return Number(1==r?0:2==r?1:r<7?2:r<11?3:4)},11:function(r){return Number(1==r||11==r?0:2==r||12==r?1:r>2&&r<20?2:3)},12:function(r){return Number(r%10!=1||r%100==11)},13:function(r){return Number(0!==r)},14:function(r){return Number(1==r?0:2==r?1:3==r?2:3)},15:function(r){return Number(r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2)},16:function(r){return Number(r%10==1&&r%100!=11?0:0!==r?1:2)},17:function(r){return Number(+(1!=r&&(r%10!=1||r%100==11)))},18:function(r){return Number(0==r?0:1==r?1:2)},19:function(r){return Number(1==r?0:0==r||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3)},20:function(r){return Number(1==r?0:0==r||r%100>0&&r%100<20?1:2)},21:function(r){return Number(r%100==1?1:r%100==2?2:3*(r%100==3||r%100==4))},22:function(r){return Number(1==r?0:2==r?1:(r<0||r>10)&&r%10==0?2:3)}},H=["v1","v2","v3"],G={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){var r={};return V.forEach(function(n){n.lngs.forEach(function(o){r[o]={numbers:n.nr,plurals:K[n.fc]}})}),r}var z=function(){function PluralResolver(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,PluralResolver),this.languageUtils=r,this.options=n,this.logger=A.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}return(0,d.A)(PluralResolver,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch(r){return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(r,n);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
vendor: 10,506 bytes, line 7
7return this.getSuffixes(r,o).map(function(r){return"".concat(n).concat(r)})}},{key:"getSuffixes",value:function(r){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(r,o);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(r,n){return G[r]-G[n]}).map(function(r){return"".concat(n.options.prepend).concat(r)}):i.numbers.map(function(i){return n.getSuffix(r,i,o)}):[]}},{key:"getSuffix",value:function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(r,o);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(n)):this.getSuffixRetroCompatible(i,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var o=this,i=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),s=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var returnSuffix=function(){return o.options.prepend&&s.toString()?o.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):returnSuffix():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?returnSuffix():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!H.includes(this.options.compatibilityJSON)}}]),PluralResolver}();function ownKeys$3(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function _objectSpread$3(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ownKeys$3(Object(o),!0).forEach(function(n){(0,E.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$3(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}var W=function(){function Interpolator(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,Interpolator),this.logger=A.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||function(r){return r},this.init(r)}return(0,d.A)(Interpolator,[{key:"init",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=void 0!==n.escape?n.escape:i18next_escape,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?regexEscape(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?regexEscape(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?regexEscape(n.nestingPrefix):n.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=n.nestingSuffix?regexEscape(n.nestingSuffix):n.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(n,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(r,n,o,i){var s,d,g,_=this,v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function regexSafe(r){return r.replace(/\$/g,"$$$$")}var handleFormat=function(r){if(0>r.indexOf(_.formatSeparator)){var s=getPathWithDefaults(n,v,r);return _.alwaysFormat?_.format(s,void 0,o,_objectSpread$3(_objectSpread$3(_objectSpread$3({},i),n),{},{interpolationkey:r})):s}var d=r.split(_.formatSeparator),g=d.shift().trim(),b=d.join(_.formatSeparator).trim();return _.format(getPathWithDefaults(n,v,g),b,o,_objectSpread$3(_objectSpread$3(_objectSpread$3({},i),n),{},{interpolationkey:g}))};this.resetRegExp();var b=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,E=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(r){return regexSafe(r)}},{regex:this.regexp,safeValue:function(r){return _.escapeValue?regexSafe(_.escape(r)):regexSafe(r)}}].forEach(function(n){for(g=0;s=n.regex.exec(r);){var o=s[1].trim();if(void 0===(d=handleFormat(o)))if("function"==typeof b){var v=b(r,s,i);d="string"==typeof v?v:""}else if(i&&i.hasOwnProperty(o))d="";else if(E){d=s[0];continue}else _.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(r)),d="";else"string"==typeof d||_.useRawValueToEscape||(d=makeString(d));var k=n.safeValue(d);if(r=r.replace(s[0],k),E?(n.regex.lastIndex+=d.length,n.regex.lastIndex-=s[0].length):n.regex.lastIndex=0,++g>=_.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var o,i,s=this,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},g=_objectSpread$3({},d);function handleHasOptions(r,n){var o=this.nestingOptionsSeparator;if(0>r.indexOf(o))return r;var i=r.split(new RegExp("".concat(o,"[ ]*{"))),s="{".concat(i[1]);r=i[0];var d=(s=this.interpolate(s,g)).match(/'/g),_=s.match(/"/g);(d&&d.length%2==0&&!_||_.length%2!=0)&&(s=s.replace(/'/g,'"'));try{g=JSON.parse(s),n&&(g=_objectSpread$3(_objectSpread$3({},n),g))}catch(n){return this.logger.warn("failed parsing options string in nesting for key ".concat(r),n),"".concat(r).concat(o).concat(s)}return delete g.defaultValue,r}for(g.applyPostProcessor=!1,delete g.defaultValue;o=this.nestingRegexp.exec(r);){var _=[],v=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var b=o[1].split(this.formatSeparator).map(function(r){return r.trim()});o[1]=b.shift(),_=b,v=!0}if((i=n(handleHasOptions.call(this,o[1].trim(),g),g))&&o[0]===r&&"string"!=typeof i)return i;"string"!=typeof i&&(i=makeString(i)),i||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(r)),i=""),v&&(i=_.reduce(function(r,n){return s.format(r,n,d.lng,_objectSpread$3(_objectSpread$3({},d),{},{interpolationkey:o[1].trim()}))},i.trim())),r=r.replace(o[0],i),this.regexp.lastIndex=0}return r}}]),Interpolator}();function ownKeys$4(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function _objectSpread$4(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ownKeys$4(Object(o),!0).forEach(function(n){(0,E.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$4(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function parseFormatStr(r){var n=r.toLowerCase().trim(),o={};if(r.indexOf("(")>-1){var i=r.split("(");n=i[0].toLowerCase().trim();var s=i[1].substring(0,i[1].length-1);"currency"===n&&0>s.indexOf(":")?o.currency||(o.currency=s.trim()):"relativetime"===n&&0>s.indexOf(":")?o.range||(o.range=s.trim()):s.split(";").forEach(function(r){if(r){var n=r.split(":"),i=_toArray(n),s=i[0],d=i.slice(1),g=d.join(":").trim().replace(/^'+|'+$/g,"");o[s.trim()]||(o[s.trim()]=g),"false"===g&&(o[s.trim()]=!1),"true"===g&&(o[s.trim()]=!0),isNaN(g)||(o[s.trim()]=parseInt(g,10))}})}return{formatName:n,formatOptions:o}}function createCachedFormatter(r){var n={};return function(o,i,s){var d=i+JSON.stringify(s),g=n[d];return g||(g=r(i,s),n[d]=g),g(o)}}var J=function(){function Formatter(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,Formatter),this.logger=A.create("formatter"),this.options=r,this.formats={number:createCachedFormatter(function(r,n){var o=new Intl.NumberFormat(r,n);return function(r){return o.format(r)}}),currency:createCachedFormatter(function(r,n){var o=new Intl.NumberFormat(r,_objectSpread$4(_objectSpread$4({},n),{},{style:"currency"}));return function(r){return o.format(r)}}),datetime:createCachedFormatter(function(r,n){var o=new Intl.DateTimeFormat(r,_objectSpread$4({},n));return function(r){return o.format(r)}}),relativetime:createCachedFormatter(function(r,n){var o=new Intl.RelativeTimeFormat(r,_objectSpread$4({},n));return function(r){return o.format(r,n.range||"day")}}),list:createCachedFormatter(function(r,n){var o=new Intl.ListFormat(r,_objectSpread$4({},n));return function(r){return o.format(r)}})},this.init(r)}return(0,d.A)(Formatter,[{key:"init",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=n.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=createCachedFormatter(n)}},{key:"format",value:function(r,n,o,i){var s=this;return n.split(this.formatSeparator).reduce(function(r,n){var d=parseFormatStr(n),g=d.formatName,_=d.formatOptions;if(s.formats[g]){var v=r;try{var b=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},E=b.locale||b.lng||i.locale||i.lng||o;v=s.formats[g](r,E,_objectSpread$4(_objectSpread$4(_objectSpread$4({},_),i),b))}catch(r){s.logger.warn(r)}return v}return s.logger.warn("there was no format function for ".concat(g)),r},r)}}]),Formatter}();function ownKeys$5(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function _objectSpread$5(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};
7n%2?ownKeys$5(Object(o),!0).forEach(function(n){(0,E.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$5(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function _createSuper$2(r){var n=_isNativeReflectConstruct$2();return function(){var o,i=(0,b.A)(r);return o=n?Reflect.construct(i,arguments,(0,b.A)(this).constructor):i.apply(this,arguments),(0,v.A)(this,o)}}function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}function removePending(r,n){void 0!==r.pending[n]&&(delete r.pending[n],r.pendingCount--)}var Y=function(r){(0,_.A)(Connector,r);var n=_createSuper$2(Connector);function Connector(r,o,i){var d,_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,s.A)(this,Connector),d=n.call(this),P&&T.call((0,g.A)(d)),d.backend=r,d.store=o,d.services=i,d.languageUtils=i.languageUtils,d.options=_,d.logger=A.create("backendConnector"),d.waitingReads=[],d.maxParallelReads=_.maxParallelReads||10,d.readingCalls=0,d.maxRetries=_.maxRetries>=0?_.maxRetries:5,d.retryTimeout=_.retryTimeout>=1?_.retryTimeout:350,d.state={},d.queue=[],d.backend&&d.backend.init&&d.backend.init(i,_.backend,_),d}return(0,d.A)(Connector,[{key:"queueLoad",value:function(r,n,o,i){var s=this,d={},g={},_={},v={};return r.forEach(function(r){var i=!0;n.forEach(function(n){var _="".concat(r,"|").concat(n);!o.reload&&s.store.hasResourceBundle(r,n)?s.state[_]=2:s.state[_]<0||(1===s.state[_]?void 0===g[_]&&(g[_]=!0):(s.state[_]=1,i=!1,void 0===g[_]&&(g[_]=!0),void 0===d[_]&&(d[_]=!0),void 0===v[n]&&(v[n]=!0)))}),i||(_[r]=!0)}),(Object.keys(d).length||Object.keys(g).length)&&this.queue.push({pending:g,pendingCount:Object.keys(g).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(d),pending:Object.keys(g),toLoadLanguages:Object.keys(_),toLoadNamespaces:Object.keys(v)}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),s=i[0],d=i[1];n&&this.emit("failedLoading",s,d,n),o&&this.store.addResourceBundle(s,d,o),this.state[r]=n?-1:2;var g={};this.queue.forEach(function(o){pushPath(o.loaded,[s],d),removePending(o,r),n&&o.errors.push(n),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(r){g[r]||(g[r]={});var n=o.loaded[r];n.length&&n.forEach(function(n){void 0===g[r][n]&&(g[r][n]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(function(r){return!r.done})}},{key:"read",value:function(r,n,o){var i=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,g=arguments.length>5?arguments[5]:void 0;return r.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:r,ns:n,fcName:o,tried:s,wait:d,callback:g}):(this.readingCalls++,this.backend[o](r,n,function(_,v){if(i.readingCalls--,i.waitingReads.length>0){var b=i.waitingReads.shift();i.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}_&&v&&s<i.maxRetries?setTimeout(function(){i.read.call(i,r,n,o,s+1,2*d,g)},d):g(_,v)})):g(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();"string"==typeof r&&(r=this.languageUtils.toResolveHierarchy(r)),"string"==typeof n&&(n=[n]);var d=this.queueLoad(r,n,i,s);if(!d.toLoad.length)return d.pending.length||s(),null;d.toLoad.forEach(function(r){o.loadOne(r)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=r.split("|"),s=i[0],d=i[1];this.read(s,d,"read",void 0,void 0,function(i,g){i&&n.logger.warn("".concat(o,"loading namespace ").concat(d," for language ").concat(s," failed"),i),!i&&g&&n.logger.log("".concat(o,"loaded namespace ").concat(d," for language ").concat(s),g),n.loaded(r,i,g)})}},{key:"saveMissing",value:function(r,n,o,i,s){var d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(r,n,o,i,null,_objectSpread$5(_objectSpread$5({},d),{},{isUpdate:s})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),Connector}(T);function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){var n={};if("object"===(0,i.A)(r[1])&&(n=r[1]),"string"==typeof r[1]&&(n.defaultValue=r[1]),"string"==typeof r[2]&&(n.tDescription=r[2]),"object"===(0,i.A)(r[2])||"object"===(0,i.A)(r[3])){var o=r[3]||r[2];
7Object.keys(o).forEach(function(r){n[r]=o[r]})}return n},interpolation:{escapeValue:!0,format:function(r,n,o,i){return r},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(r){return"string"==typeof r.ns&&(r.ns=[r.ns]),"string"==typeof r.fallbackLng&&(r.fallbackLng=[r.fallbackLng]),"string"==typeof r.fallbackNS&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs&&0>r.supportedLngs.indexOf("cimode")&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),r}function ownKeys$6(r,n){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,i)}return o}function _objectSpread$6(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ownKeys$6(Object(o),!0).forEach(function(n){(0,E.A)(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$6(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function _createSuper$3(r){var n=_isNativeReflectConstruct$3();return function(){var o,i=(0,b.A)(r);return o=n?Reflect.construct(i,arguments,(0,b.A)(this).constructor):i.apply(this,arguments),(0,v.A)(this,o)}}function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}function noop(){}function bindMemberFunctions(r){Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(function(n){"function"==typeof r[n]&&(r[n]=r[n].bind(r))})}var X=function(r){(0,_.A)(I18n,r);var n=_createSuper$3(I18n);function I18n(){var r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if((0,s.A)(this,I18n),r=n.call(this),P&&T.call((0,g.A)(r)),r.options=transformOptions(o),r.services={},r.logger=A,r.modules={external:[]},bindMemberFunctions((0,g.A)(r)),i&&!r.isInitialized&&!o.isClone){if(!r.options.initImmediate)return r.init(o,i),(0,v.A)(r,(0,g.A)(r));setTimeout(function(){r.init(o,i)},0)}return r}return(0,d.A)(I18n,[{key:"init",value:function(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof n&&(o=n,n={}),!n.defaultNS&&!1!==n.defaultNS&&n.ns&&("string"==typeof n.ns?n.defaultNS=n.ns:0>n.ns.indexOf("translation")&&(n.defaultNS=n.ns[0]));var i=get();function createClassOnDemand(r){return r?"function"==typeof r?new r:r:null}if(this.options=_objectSpread$6(_objectSpread$6(_objectSpread$6({},i),this.options),transformOptions(n)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=_objectSpread$6(_objectSpread$6({},i.interpolation),this.options.interpolation)),void 0!==n.keySeparator&&(this.options.userDefinedKeySeparator=n.keySeparator),void 0!==n.nsSeparator&&(this.options.userDefinedNsSeparator=n.nsSeparator),!this.options.isClone){this.modules.logger?A.init(createClassOnDemand(this.modules.logger),this.options):A.init(null,this.options),this.modules.formatter?s=this.modules.formatter:"undefined"!=typeof Intl&&(s=J);var s,d=new B(this.options);this.store=new D(this.options.resources,this.options);var g=this.services;g.logger=A,g.resourceStore=this.store,g.languageUtils=d,g.pluralResolver=new z(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(g.formatter=createClassOnDemand(s),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new W(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Y(createClassOnDemand(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(n){for(var o=arguments.length,i=Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];r.emit.apply(r,[n].concat(i))}),this.modules.languageDetector&&(g.languageDetector=createClassOnDemand(this.modules.languageDetector),g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=createClassOnDemand(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new U(this.services,this.options),this.translator.on("*",function(n){for(var o=arguments.length,i=Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];r.emit.apply(r,[n].concat(i))}),this.modules.external.forEach(function(n){n.init&&n.init(r)})}if(this.format=this.options.interpolation.format,o||(o=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var _=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);_.length>0&&"dev"!==_[0]&&(this.options.lng=_[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(n){r[n]=function(){var o;return(o=r.store)[n].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(n){r[n]=function(){var o;return(o=r.store)[n].apply(o,arguments),r}});var v=defer(),load=function(){var finish=function(n,i){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),v.resolve(i),o(n,i)};if(r.languages&&"v1"!==r.options.compatibilityAPI&&!r.isInitialized)return finish(null,r.t.bind(r));r.changeLanguage(r.options.lng,finish)};return this.options.resources||!this.options.initImmediate?load():setTimeout(load,0),v}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,i=o,s="string"==typeof r?r:this.language;if("function"==typeof r&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase())return i();var d=[],append=function(r){if(r){var o=n.services.languageUtils.toResolveHierarchy(r);o.forEach(function(r){0>d.indexOf(r)&&d.push(r)})}};s?append(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(r){return append(r)}
vendor: 3,665 bytes, line 7
7),this.options.preload&&this.options.preload.forEach(function(r){return append(r)}),this.services.backendConnector.load(d,this.options.ns,function(r){r||n.resolvedLanguage||!n.language||n.setResolvedLanguage(n.language),i(r)})}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=defer();return r||(r=this.languages),n||(n=this.options.ns),o||(o=noop),this.services.backendConnector.reload(r,n,function(r){i.resolve(),o(r)}),i}},{key:"use",value:function(r){if(!r)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===r.type&&(this.modules.backend=r),("logger"===r.type||r.log&&r.warn&&r.error)&&(this.modules.logger=r),"languageDetector"===r.type&&(this.modules.languageDetector=r),"i18nFormat"===r.type&&(this.modules.i18nFormat=r),"postProcessor"===r.type&&F.addPostProcessor(r),"formatter"===r.type&&(this.modules.formatter=r),"3rdParty"===r.type&&this.modules.external.push(r),this}},{key:"setResolvedLanguage",value:function(r){if(r&&this.languages&&!(["cimode","dev"].indexOf(r)>-1))for(var n=0;n<this.languages.length;n++){var o=this.languages[n];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=defer();this.emit("languageChanging",r);var setLngProps=function(r){o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.resolvedLanguage=void 0,o.setResolvedLanguage(r)},done=function(r,s){s?(setLngProps(s),o.translator.changeLanguage(s),o.isLanguageChangingTo=void 0,o.emit("languageChanged",s),o.logger.log("languageChanged",s)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),n&&n(r,function(){return o.t.apply(o,arguments)})},setLng=function(n){r||n||!o.services.languageDetector||(n=[]);var i="string"==typeof n?n:o.services.languageUtils.getBestMatchFromCodes(n);i&&(o.language||setLngProps(i),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(r){done(r,i)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(setLng):setLng(r):setLng(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var s=this,fixedT=function fixedT(r,n){if("object"!==(0,i.A)(n)){for(var d,g=arguments.length,_=Array(g>2?g-2:0),v=2;v<g;v++)_[v-2]=arguments[v];d=s.options.overloadTranslationOptionHandler([r,n].concat(_))}else d=_objectSpread$6({},n);d.lng=d.lng||fixedT.lng,d.lngs=d.lngs||fixedT.lngs,d.ns=d.ns||fixedT.ns,d.keyPrefix=d.keyPrefix||o||fixedT.keyPrefix;var b=s.options.keySeparator||".",E=d.keyPrefix?"".concat(d.keyPrefix).concat(b).concat(r):r;return s.t(E,d)};return"string"==typeof r?fixedT.lng=r:fixedT.lngs=r,fixedT.ns=n,fixedT.keyPrefix=o,fixedT}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
7if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,d=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var loadNotPending=function(r,o){var i=n.services.backendConnector.state["".concat(r,"|").concat(o)];return -1===i||2===i};if(o.precheck){var g=o.precheck(this,loadNotPending);if(void 0!==g)return g}return!!(this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||loadNotPending(i,r)&&(!s||loadNotPending(d,r)))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=defer();return this.options.ns?("string"==typeof r&&(r=[r]),r.forEach(function(r){0>o.options.ns.indexOf(r)&&o.options.ns.push(r)}),this.loadResources(function(r){i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=defer();"string"==typeof r&&(r=[r]);var i=this.options.preload||[],s=r.filter(function(r){return 0>i.indexOf(r)});return s.length?(this.options.preload=i.concat(s),this.loadResources(function(r){o.resolve(),n&&n(r)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),r)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,i=_objectSpread$6(_objectSpread$6(_objectSpread$6({},this.options),n),{isClone:!0}),s=new I18n(i);return(void 0!==n.debug||void 0!==n.prefix)&&(s.logger=s.logger.clone(n)),["store","services","language"].forEach(function(n){s[n]=r[n]}),s.services=_objectSpread$6({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new U(s.services,s.options),s.translator.on("*",function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];s.emit.apply(s,[r].concat(o))}),s.init(i,o),s.translator.options=s.options,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),I18n}(T);(0,E.A)(X,"createInstance",function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new X(r,n)});var Q=X.createInstance();Q.createInstance=X.createInstance;var Z=Q.createInstance,ee=Q.init,et=Q.loadResources,er=Q.reloadResources,en=Q.use,eo=Q.changeLanguage,ei=Q.getFixedT,ea=Q.t,es=Q.exists,el=Q.setDefaultNamespace,eu=Q.hasLoadedNamespace,ec=Q.loadNamespaces,ed=Q.loadLanguages;let ef=Q},1655(r){"use strict";r.exports=JSON.parse('[{"name":"attachment","path":"/attachment","manifestFileName":"attachment-manifest.json","rootModule":{"name":"AttachmentRoot","path":"./apps/attachment/src/AttachmentApp.tsx"},"devServer":{"port":7101},"scopes":["mx","cx"]},{"name":"mx","path":"/app","manifestFileName":"mx-manifest.json","rootModule":{"name":"AppRoot","path":"./src/apps/main/App/AppRoot.tsx"},"devServer":{"port":7102},"segment":{"key":"vERBWUB0nSZTGC8PALsjgSYv6tlfHhC1"},"datadog":{"rum":{"rawConfig":{"clientToken":"pub1d2e672abf95175ec019ec862e74da8f","applicationId":"616b085a-3631-48ae-a51e-b62c9790c999","service":"react-mx","version":"1.0.0","trackResources":true,"trackLongTasks":true,"actionNameAttribute":"hb-analytics-event","sessionSampleRate":100,"telemetrySampleRate":0,"useCrossSiteSessionCookie":true,"silentMultipleInit":true,"enableExperimentalFeatures":["feature_flags"]}
7,"logicConfig":{"sessionReplaySampleRate":{"mobileApp":0,"web":30}}},"logs":{"clientToken":"pub1d2e672abf95175ec019ec862e74da8f","service":"react-mx","sessionSampleRate":100}},"scopes":["mx"],"defaultFallbackRoute":true,"requires":["layout"]},{"name":"credential","path":"/credential-transition","manifestFileName":"credential-manifest.json","rootModule":{"name":"CredentialTransitionRoot","path":"./src/apps/ReceiveAngularCredentialsInReactFirst/ReceiveAngularCredentialsInReactFirst.tsx"},"devServer":{"port":7103},"scopes":["mx"]},{"name":"unsubscribe","path":"/unsubscribe","manifestFileName":"unsubscribe-manifest.json","rootModule":{"name":"UnsubscribeRoot","path":"./src/apps/Unsubscribe/UnsubscribeRoot.tsx"},"devServer":{"port":7104},"segment":{"key":"qYGbyvN7QCErnI4BTvOqvEl8lcBk1JNJ"},"scopes":["cx"]},{"name":"sms_subscribe","path":"/sms-subscribe","manifestFileName":"sms_subscribe-manifest.json","rootModule":{"name":"SmsConsentRoot","path":"./src/apps/SmsConsent/SmsConsentRoot.tsx"},"devServer":{"port":7105},"segment":{"key":"qYGbyvN7QCErnI4BTvOqvEl8lcBk1JNJ"},"scopes":["cx"]},{"name":"signup_standalone","path":"/signup","manifestFileName":"signup_standalone-manifest.json","rootModule":{"name":"SignupApp","path":"./apps/signup/src/SignupApp.tsx"},"devServer":{"port":7106},"segment":{"key":"0CYioLOs7GnFbeQH6a09JQPvNjvReVZ4"},"datadog":{"rum":{"rawConfig":{"clientToken":"pube2d23fc8137696d5f6a09bdd90608356","applicationId":"9c0d6678-47cd-41ca-bf53-c7c491169147","service":"gatsby-marketing-site","sessionSampleRate":30}},"logs":{"clientToken":"pube2d23fc8137696d5f6a09bdd90608356","service":"gatsby-marketing-site","sessionSampleRate":30}},"scopes":["mx"]},{"name":"cx","path":"/","manifestFileName":"cx-manifest.json","rootModule":{"name":"ClientExperience","path":"./src/components/ClientExperience/ClientExperience.tsx"},"devServer":{"port":7107},"segment":{"key":"5vCkJGWQ8SBy4MKu5W4FWMoVNhVQJE7p"},"datadog":{"rum":{"rawConfig":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","applicationId":"fa2e27d5-a44b-41aa-b46d-b4b59a2a0ec9","service":"honeybook-client-experience","version":"1.0.0","trackResources":true,"trackLongTasks":true,"sessionSampleRate":100,"telemetrySampleRate":0,"sessionReplaySampleRate":0,"useCrossSiteSessionCookie":true,"silentMultipleInit":true,"enableExperimentalFeatures":["feature_flags"]}},"logs":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","service":"honeybook-client-experience","sessionSampleRate":20}},"scopes":["cx"],"defaultFallbackRoute":true},{"name":"floor_plan_cx","path":"/floor-plan","manifestFileName":"floor_plan_cx-manifest.json","rootModule":{"name":"FloorPlanCXRoot","path":"./src/apps/FloorPlanCX/FloorPlanCXRoot.tsx"},"devServer":{"port":7112},"segment":{"key":"qYGbyvN7QCErnI4BTvOqvEl8lcBk1JNJ"},"datadog":{"rum":{"rawConfig":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","applicationId":"fa2e27d5-a44b-41aa-b46d-b4b59a2a0ec9","service":"honeybook-client-experience","version":"1.0.0","trackResources":true,"trackLongTasks":true,"sessionSampleRate":100,"telemetrySampleRate":0,"sessionReplaySampleRate":0,"useCrossSiteSessionCookie":true,"silentMultipleInit":true,"enableExperimentalFeatures":["feature_flags"]}},"logs":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","service":"honeybook-client-experience","sessionSampleRate":20}},"scopes":["cx"]},{"name":"photo_gallery_cx","path":"/gallery","manifestFileName":"photo_gallery_cx-manifest.json","rootModule":{"name":"PhotoGalleryCXRoot","path":"./apps/photo_gallery_cx/src/PhotoGalleryCXRoot.tsx"},"devServer":{"port":7111},"segment":{"key":"qYGbyvN7QCErnI4BTvOqvEl8lcBk1JNJ"},"datadog":{"rum":{"rawConfig":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","applicationId":"fa2e27d5-a44b-41aa-b46d-b4b59a2a0ec9","service":"honeybook-photo-gallery-cx","version":"1.0.0","trackResources":true,"trackLongTasks":true,"sessionSampleRate":100,"telemetrySampleRate":0,"sessionReplaySampleRate":0,"useCrossSiteSessionCookie":true,"silentMultipleInit":true,"enableExperimentalFeatures":["feature_flags"]}},"logs":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","service":"honeybook-photo-gallery-cx","sessionSampleRate":20}},"scopes":["cx.hosted.unauthenticated"]},{"name":"availability_calendar_cx","path":"/availability","manifestFileName":"availability_calendar_cx-manifest.json","rootModule":{"name":"AvailabilityCalendarCXRoot","path":"./apps/cx/domains/availability-calendar/src/AvailabilityCalendarCXRoot.tsx"},"devServer":{"port":7115}
7,"segment":{"key":"qYGbyvN7QCErnI4BTvOqvEl8lcBk1JNJ"},"datadog":{"rum":{"rawConfig":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","applicationId":"fa2e27d5-a44b-41aa-b46d-b4b59a2a0ec9","service":"honeybook-availability-calendar-cx","version":"1.0.0","trackResources":true,"trackLongTasks":true,"sessionSampleRate":100,"telemetrySampleRate":0,"sessionReplaySampleRate":0,"useCrossSiteSessionCookie":true,"silentMultipleInit":true,"enableExperimentalFeatures":["feature_flags"]}},"logs":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","service":"honeybook-availability-calendar-cx","sessionSampleRate":20}},"scopes":["cx.hosted.unauthenticated"]},{"name":"malkut_login_as","path":"/ala-facilitator-v2","manifestFileName":"malkut_login_as-manifest.json","rootModule":{"name":"MalkutLoginAs","path":"./src/apps/MalkutLoginAs/MalkutLoginAs.tsx"},"devServer":{"port":7108},"scopes":["mx","cx"]},{"name":"cp","path":"/app","manifestFileName":"cp-manifest.json","rootModule":{"name":"ClientPortalRoot","path":"./src/components/ClientExperience/ClientPortalRoot.tsx"},"devServer":{"port":7109},"segment":{"key":"5vCkJGWQ8SBy4MKu5W4FWMoVNhVQJE7p"},"datadog":{"rum":{"rawConfig":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","applicationId":"fa2e27d5-a44b-41aa-b46d-b4b59a2a0ec9","service":"honeybook-client-experience","version":"1.0.0","trackResources":true,"trackLongTasks":true,"sessionSampleRate":100,"telemetrySampleRate":0,"sessionReplaySampleRate":0,"useCrossSiteSessionCookie":true,"silentMultipleInit":true,"enableExperimentalFeatures":["feature_flags"]}},"logs":{"clientToken":"pub8097be383b218c52b6771b28e4c8b883","service":"honeybook-client-experience","sessionSampleRate":20}},"scopes":["cx"]},{"name":"tasks","path":null,"manifestFileName":"tasks-manifest.json","rootModule":{"name":"TasksApp","path":"./apps/mx/domains/tasks/src/TasksApp.tsx"},"devServer":{"port":7110},"scopes":["mx.hosted"]},{"name":"layout","path":null,"manifestFileName":"layout-manifest.json","rootModule":{"name":"MxRouteWithLayout","path":"./apps/mx/layout/src/MxRouteWithLayout.tsx"},"devServer":{"port":7113},"scopes":["mx.hosted"]},{"name":"floor_plan","path":null,"manifestFileName":"floor_plan-manifest.json","rootModule":{"name":"FloorPlanApp","path":"./apps/mx/domains/floor-plan/src/FloorPlanApp.tsx"},"devServer":{"port":7114},"scopes":["mx.hosted"]},{"name":"availability_calendar","path":null,"manifestFileName":"availability_calendar-manifest.json","rootModule":{"name":"AvailabilityCalendarApp","path":"./apps/mx/domains/availability-calendar/src/AvailabilityCalendarApp.tsx"},"devServer":{"port":7116},"scopes":["mx.hosted"]}]')}},__webpack_module_cache__={};function __webpack_require__(r){var n=__webpack_module_cache__[r];if(void 0!==n)return n.exports;var o=__webpack_module_cache__[r]={exports:{}};return __webpack_modules__[r].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(3072),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(r){return 10!=r},rootOutputDir:""})})(),(()=>{__webpack_require__.n=r=>{var n=r&&r.__esModule?()=>r.default:()=>r;return __webpack_require__.d(n,{a:n}),n}})(),(()=>{__webpack_require__.d=(r,n)=>{for(var o in n)__webpack_require__.o(n,o)&&!__webpack_require__.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=r=>Promise.all(Object.keys(__webpack_require__.f).reduce((n,o)=>(__webpack_require__.f[o](r,n),n),[]))})(),(()=>{__webpack_require__.u=r=>"router."+r+"."+({176:"8a04818e78435c43",193:"106ccde18a1bde8c",245:"159176c097ee0239",25:"22e90b16edb2185f",295:"99d64fa2c6c3d7fa",304:"04868a0779742ff5",426:"6898430d17edfe95",531:"a15022683b211f5f",574:"4f5832b4f0d0cf62",60:"a93fe0e2eb2a81ef",808:"8376f82986711146",935:"f724caef6bf3127a"})[r]+".js"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(r){if("object"==typeof window)return window}
7})()})(),(()=>{__webpack_require__.o=(r,n)=>Object.prototype.hasOwnProperty.call(r,n)})(),(()=>{var r={},n="router:";__webpack_require__.l=function(o,i,s,d){if(r[o])return void r[o].push(i);if(void 0!==s)for(var g,_,v=document.getElementsByTagName("script"),b=0;b<v.length;b++){var E=v[b];if(E.getAttribute("src")==o||E.getAttribute("data-rspack")==n+s){g=E;break}}g||(_=!0,(g=document.createElement("script")).timeout=120,__webpack_require__.nc&&g.setAttribute("nonce",__webpack_require__.nc),g.setAttribute("data-rspack",n+s),g.src=o),r[o]=[i];var onScriptComplete=function(n,i){g.onerror=g.onload=null,clearTimeout(k);var s=r[o];if(delete r[o],g.parentNode&&g.parentNode.removeChild(g),s&&s.forEach(function(r){return r(i)}),n)return n(i)},k=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=onScriptComplete.bind(null,g.onerror),g.onload=onScriptComplete.bind(null,g.onload),_&&document.head.appendChild(g)}})(),(()=>{__webpack_require__.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.p="/"})(),(()=>{__webpack_require__.rv=()=>"1.6.8"})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@honeybook/analytics-react-web",version:"0.7.0",factory:()=>Promise.all([__webpack_require__.e("426"),__webpack_require__.e("295"),__webpack_require__.e("304"),__webpack_require__.e("245")]).then(()=>()=>__webpack_require__(796)),eager:0,singleton:1,requiredVersion:"0.7.0",strictVersion:1},{name:"@honeybook/core-react",version:"2.1.0",factory:()=>__webpack_require__.e("176").then(()=>()=>__webpack_require__(7675)),eager:0,singleton:1,requiredVersion:"2.1.0",strictVersion:1},{name:"@honeybook/fullstory-react-web",version:"0.1.3",factory:()=>Promise.all([__webpack_require__.e("25"),__webpack_require__.e("60")]).then(()=>()=>__webpack_require__(8191)),eager:0,singleton:1,requiredVersion:"0.1.3",strictVersion:1},{name:"@honeybook/fundamentals-react",version:"1.5.0",factory:()=>Promise.all([__webpack_require__.e("426"),__webpack_require__.e("304"),__webpack_require__.e("10"),__webpack_require__.e("193")]).then(()=>()=>__webpack_require__(4984)),eager:0,singleton:1,requiredVersion:"1.5.0",strictVersion:1},{name:"@honeybook/statsig-react-web",version:"0.5.0",factory:()=>Promise.all([__webpack_require__.e("935"),__webpack_require__.e("531")]).then(()=>()=>__webpack_require__(2462)),eager:0,singleton:1,requiredVersion:"0.5.0",strictVersion:1},{name:"@statsig/js-client",version:"3.31.2",factory:()=>()=>__webpack_require__(6053),eager:1,singleton:1,requiredVersion:"3.31.2"},{name:"@statsig/react-bindings",version:"3.31.2",factory:()=>()=>__webpack_require__(3387),eager:1,singleton:1,requiredVersion:"3.31.2"},{name:"i18next",version:"21.10.0",factory:()=>()=>__webpack_require__(8450),eager:1,singleton:1,requiredVersion:"21.10.0"},{name:"react-i18next",version:"11.18.6",factory:()=>()=>__webpack_require__(2584),eager:1,singleton:1,requiredVersion:"11.18.6"},{name:"react/jsx-runtime",version:"17.0.2",factory:()=>()=>__webpack_require__(8e3),eager:1,singleton:1,requiredVersion:"17.0.2"}]},uniqueName:"router"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{889:["8235","8811","8532","8064","5737"],10:["2441"],808:["7667","6024","3133","4499"]},moduleIdToConsumeDataMapping:{7667:{shareScope:"default",shareKey:"@honeybook/analytics-react-web",import:"@honeybook/analytics-react-web",requiredVersion:"0.7.0",strictVersion:!0,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("426"),__webpack_require__.e("295"),__webpack_require__.e("304"),__webpack_require__.e("245")]).then(()=>()=>__webpack_require__(796))},3133:{shareScope:"default",shareKey:"@honeybook/fullstory-react-web",import:"@honeybook/fullstory-react-web",requiredVersion:"0.1.3",strictVersion:!0,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("25"),__webpack_require__.e("60")]).then(()=>()=>__webpack_require__(8191))},8532:{shareScope:"default",shareKey:"react/jsx-runtime",import:"react/jsx-runtime",requiredVersion:"17.0.2",strictVersion:!1,singleton:!0,eager:!0,fallback:()=>()=>__webpack_require__(8e3)},4499:{shareScope:"default",shareKey:"@honeybook/statsig-react-web",import:"@honeybook/statsig-react-web",requiredVersion:"0.5.0",strictVersion:!0,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("935"),__webpack_require__.e("531")]).then(()=>()=>__webpack_require__(2462))},5737:{shareScope:"default",shareKey:"i18next",import:"i18next",requiredVersion:"21.10.0",strictVersion:!1,singleton:!0,eager:!0,fallback:()=>()=>__webpack_require__(8450)},8235:{shareScope:"default",shareKey:"@statsig/react-bindings",import:"@statsig/react-bindings",requiredVersion:"3.31.2",strictVersion:!1,singleton:!0,eager:!0,fallback:()=>()=>__webpack_require__(3387)},8064:{shareScope:"default",shareKey:"@statsig/js-client",import:"@statsig/js-client",requiredVersion:"3.31.2",strictVersion:!1,singleton:!0,eager:!0,fallback:()=>()=>__webpack_require__(6053)},2441:{shareScope:"default",shareKey:"@honeybook/core-react",import:"@honeybook/core-react",requiredVersion:"2.1.0",strictVersion:!0,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("176").then(()=>()=>__webpack_require__(7675))},8811:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"11.18.6",strictVersion:!1,singleton:!0,eager:!0,fallback:()=>()=>__webpack_require__(2584)},6024:{shareScope:"default",shareKey:"@honeybook/fundamentals-react",import:"@honeybook/fundamentals-react",requiredVersion:"1.5.0",strictVersion:!0,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("426"),__webpack_require__.e("304"),__webpack_require__.e("574")]).then(()=>()=>__webpack_require__(4984))}},initialConsumes:["8235","8811","8532","8064","5737"]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{var r={889:0};__webpack_require__.f.j=function(n,o){var i=__webpack_require__.o(r,n)?r[n]:void 0;if(0!==i)if(i)o.push(i[2]);else if(10!=n){var s=new Promise((o,s)=>i=r[n]=[o,s]);o.push(i[2]=s);var d=__webpack_require__.p+__webpack_require__.u(n),g=Error(),loadingEnded=function(o){if
7(__webpack_require__.o(r,n)&&(0!==(i=r[n])&&(r[n]=void 0),i)){var s=o&&("load"===o.type?"missing":o.type),d=o&&o.target&&o.target.src;g.message="Loading chunk "+n+" failed.\n("+s+": "+d+")",g.name="ChunkLoadError",g.type=s,g.request=d,i[1](g)}};__webpack_require__.l(d,loadingEnded,"chunk-"+n,n)}else r[n]=0};var __rspack_jsonp=(n,o)=>{var i,s,[d,g,_]=o,v=0;if(d.some(n=>0!==r[n])){for(i in g)__webpack_require__.o(g,i)&&(__webpack_require__.m[i]=g[i]);_&&_(__webpack_require__)}for(n&&n(o);v<d.length;v++)s=d[v],__webpack_require__.o(r,s)&&r[s]&&r[s][0](),r[s]=0},n=self.webpackChunkrouter=self.webpackChunkrouter||[];n.forEach(__rspack_jsonp.bind(null,0)),n.push=__rspack_jsonp.bind(null,n.push.bind(n))})(),(()=>{__webpack_require__.ruid="[email protected]"})(),(()=>{var r=__webpack_require__.x,n=!1;__webpack_require__.x=function(){if(n||(n=!0,__webpack_require__(7107)),"function"==typeof r)return r();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x()})();
8//# sourceMappingURL=router.81253de5b744171a.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.