vdb-ai-chat 1.0.52 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see chat-widget.js.LICENSE.txt */
2
- (()=>{var e,t,n,r,i={6556(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(i),n(e)}).catch(r)})}function i(e,t,n){var i;return(i=n,new Promise(function(e){return setTimeout(e,i)})).then(function(){return r(function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}(),1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}n.d(t,{s2:()=>r,w_:()=>i})},9952(e,t,n){"use strict";n.d(t,{d:()=>l,j:()=>u});var r=n(6e3),i=n(3172),o=n(1635),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,i,a=(0,o.Cl)((0,o.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},e),((n={})[s]=a,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),s=n(6490),l=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},u=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new s.r),void 0===i&&(i=new a),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new l({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,i.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},6115(e,t,n){"use strict";n.d(t,{g:()=>o,M:()=>a});var r=n(1635),i=n(2079),o="onRemoveFromFuture",a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map(function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t)||(e.queue.push(t),0))});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e,t){if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var n=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,i=e.factor,o=void 0===i?2:i,a=e.attempt,s=e.maxTimeout,l=void 0===s?1/0:s;return Math.min(t*r*Math.pow(o,a),l)}({attempt:this.getAttempts(e)});return t>0&&n<t&&(n=t),this.scheduleItem(e,n)},t.prototype.pushWithDelay=function(e,t){return this.scheduleItem(e,t)},t.prototype.scheduleItem=function(e,t){var n=this;return!(this.updateAttempts(e)>this.maxAttempts||this.includes(e)||(setTimeout(function(){n.queue.push(e),n.future=n.future.filter(function(t){return t.id!==e.id}),n.emit(o)},t),this.future.push(e),0))},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find(function(t){return t.id===e.id}))||Boolean(this.future.find(function(t){return t.id===e.id}))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.v)},4980(e,t,n){"use strict";n.d(t,{C:()=>o,D:()=>a});var r=n(1635),i=n(9952);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):function(){return(0,r.sH)(this,void 0,void 0,function(){var n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o.apply(t,[e])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}})})}().then(function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof i.d&&"middleware_cancellation"===n.type)throw n;return n instanceof i.d?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)})}function a(e,t){return o(e,t).then(function(t){if(t instanceof i.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},6490(e,t,n){"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(1635),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t})},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},2321(e,t,n){"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function o(e){return"function"==typeof e}function a(e){return null!=e}function s(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>i,Kg:()=>r,Qd:()=>s,Tn:()=>o,t2:()=>a})},6251(e,t,n){"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise(function(r,i){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,i.apply(void 0,e)}});return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}}},2079(e,t,n){"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(e,r),t.apply(n,i)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter(function(e){return e!==t});return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach(function(e){e.apply(n,r)}),this},e}()},7718(e,t,n){"use strict";n.d(t,{a:()=>o,s:()=>i});var r=n(9839);function i(){return!(0,r.B)()||window.navigator.onLine}function o(){return!i()}},7947(e,t,n){"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},7977(e,t,n){"use strict";n.d(t,{o:()=>a});var r=n(1635),i=n(9952),o=n(4568),a=function(e){function t(t,n){return e.call(this,t,n,new o.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i.j)},9839(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{B:()=>r,S:()=>i})},5770(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})},4568(e,t,n){"use strict";n.d(t,{U:()=>h});var r=n(1635),i=n(6490),o=n(524),a=n(8167),s=n(1298),l=n(7947);function u(e){console.error("Error sending segment performance metrics",e)}var c,d=function(){function e(e){var t,n,r,i,o,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:l.a,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var s=!1,c=function(){s||(s=!0,a.flush().catch(u),s=!1,setTimeout(c,a.flushTimer))};c()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var i=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},i),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}}(e,t,(0,s.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(u)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,function(){var e=this;return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(t){u(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t,n;return(0,r.YH)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,o.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){c=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==c||c.increment(t,null!=r?r:[])},t}(i.p)},4757(e,t,n){"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,i=t.type,o=t.didError,a=void 0!==o&&o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(t,{y:()=>r})},8167(e,t,n){"use strict";n.d(t,{r:()=>r});var r="1.84.0"},524(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}n.d(t,{h:()=>o}),Object.defineProperty(r,"name",{value:"default",configurable:!0});var i=n(2453),o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.m)();return(n&&n.fetch||r).apply(void 0,e)}},2453(e,t,n){"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},472(e,t,n){"use strict";n.d(t,{Ud:()=>a,kJ:()=>i,rY:()=>o});var r="analytics";function i(){return window[r]}function o(e){r=e}function a(e){window[r]=e}},3357(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function i(e,t){var n=r(e);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(e,t){n.addEventListener("load",function(){return e(n)}),n.addEventListener("error",function(e){return t(e)})})}return new Promise(function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});a<s.length;a++){var l=s[a],u=l[0],c=l[1];o.setAttribute(u,c)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var d=window.document.querySelector("script");d?null===(i=d.parentElement)||void 0===i||i.insertBefore(o,d):window.document.head.appendChild(o)})}function o(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{d:()=>o,k:()=>i})},1094(e,t,n){"use strict";n.d(t,{J:()=>i});var r=n(1635);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce(function(e,t){var n,i,o=t[0],a=t[1];return"object"==typeof a?(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=a,n)):(0,r.Cl)((0,r.Cl)({},e),((i={})[o]={},i))},{});return Object.entries(e.integrations).reduce(function(e,t){var n,o=t[0],a=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=(0,r.Cl)((0,r.Cl)({},a),i[o]),n))},{})}},2613(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(1635),i=function(e,t){return(0,r.sH)(void 0,void 0,void 0,function(){var n;return(0,r.YH)(this,function(i){return n=function(i){return(0,r.sH)(void 0,void 0,void 0,function(){var o;return(0,r.YH)(this,function(r){switch(r.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})}},9456(e,t,n){"use strict";n.d(t,{I2:()=>s,YM:()=>l,qQ:()=>a});var r,i=n(472),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,i.kJ)();t&&(t._cdn=e),r=e},s=function(){var e,t=null!=r?r:null===(e=(0,i.kJ)())||void 0===e?void 0:e._cdn;if(t)return t;var n,a=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(e){var t,r=null!==(t=e.getAttribute("src"))&&void 0!==t?t:"",i=o.exec(r);i&&i[1]&&(n=i[1])}),n);return a||"https://cdn.segment.com"},l=function(){var e=s();return"".concat(e,"/next-integrations")}},5881(e,t,n){"use strict";n.d(t,{x:()=>h});var r=n(1635),i=n(6115),o=n(7977),a=n(9839),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.B)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function l(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o.o(e.event,e.id)})}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function c(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||function(e){return(new Date).getTime()>e}(o);if(a)return s.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void s.removeItem(r);!a&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var h=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),h=[],f={};return d(n,function(){try{h=l(o),f=u(a),c(o),c(a),i.queue=(0,r.fX)((0,r.fX)([],h,!0),i.queue,!0),i.seen=(0,r.Cl)((0,r.Cl)({},f),i.seen)}catch(e){console.error(e)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.fX)((0,r.fX)([],i.queue,!0),i.future,!0);try{d(n,function(){!function(e,t){var n=l(e),i=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))},{});s.setItem(e,JSON.stringify(Object.values(i)))}(o,e),function(e,t){var n=u(e);s.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(a,i.seen)})}catch(e){console.error(e)}}}),i}return(0,r.C6)(t,e),t}(i.M)},5791(e,t,n){"use strict";n.d(t,{W:()=>i});var r=n(1476);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},1298(e,t,n){"use strict";n.d(t,{X:()=>r});function r(){return"npm"}},5939(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>s});var r=n(1635),i=n(9952),o=n(5791);function a(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){function i(t,n){return(0,r.sH)(this,void 0,void 0,function(){var i,a,s;return(0,r.YH)(this,function(l){switch(l.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return l.sent(),i||null===a||(a.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((s={})[e]=!1,s))),[2,a]}})})}var a,s,l,u,c;return(0,r.YH)(this,function(e){switch(e.label){case 0:a=(0,o.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,l=n,e.label=1;case 1:return s<l.length?(u=l[s],[4,i(a,u)]):[3,4];case 2:if(null===(c=e.sent()))return[2,null];a=c,e.label=3;case 3:return s++,[3,1];case 4:return[2,a]}})})}function s(e,t){function n(n){return(0,r.sH)(this,void 0,void 0,function(){var a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return a=!1,[4,e({payload:(0,o.W)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){a=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!a)throw new i.d({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,screen:n,identify:n,alias:n,group:n}}},2572(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(6041));function o(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=o("postalCode","zip"),e.country=o("country"),e.street=o("street"),e.state=o("state"),e.city=o("city"),e.region=o("region")}},2360(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Alias=a,i.default(a,o.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},4857(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},7697(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},4500(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(2572)),o=n(4857),a=r(n(8822)),s=r(n(5316)),l=r(n(6041)),u=r(n(7631));function c(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?s.default(e.timestamp):new Date,t.traverse&&u.default(e),this.opts=t,this.obj=e}t.Facade=c;var d=c.prototype;function h(e){return o.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=l.default(n,t.join("."))),this.opts.clone?h(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?h(t):t},c.proxy=function(e){return function(){return this.proxy(e)}},c.field=function(e){return function(){return this.field(e)}},c.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},c.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||l.default(r,e);return"object"!=typeof i&&(i=l.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=c.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");"object"==typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},3335(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(6698)),o=r(n(6659)),a=r(n(5316)),s=n(4500);function l(e,t){s.Facade.call(this,e,t)}t.Group=l,i.default(l,s.Facade);var u=l.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=s.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return o.default(t)?t:void 0},u.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},u.name=s.Facade.proxy("traits.name"),u.industry=s.Facade.proxy("traits.industry"),u.employees=s.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},7538(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(4500),o=r(n(6041)),a=r(n(6698)),s=r(n(6659)),l=r(n(5316)),u=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,a.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return l.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return l.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),n=this.lastName();return t&&n?u(t+" "+n):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");return"string"==typeof t?u(t).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=u(t).indexOf(" ");if(-1!==n)return u(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},1476(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(4500);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(2360);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return o.Alias}});var a=n(3335);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.Group}});var s=n(7538);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return s.Identify}});var l=n(3863);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return l.Track}});var u=n(5525);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return u.Page}});var c=n(2542);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return c.Screen}});var d=n(7697);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},i.Facade),{Alias:o.Alias,Group:a.Group,Identify:s.Identify,Track:l.Track,Page:u.Page,Screen:c.Screen,Delete:d.Delete})},6659(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},8822(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},5525(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(6698)),o=n(4500),a=n(3863),s=r(n(6659));function l(e,t){o.Facade.call(this,e,t)}t.Page=l,i.default(l,o.Facade);var u=l.prototype;u.action=function(){return"page"},u.type=u.action,u.category=o.Facade.field("category"),u.name=o.Facade.field("name"),u.title=o.Facade.proxy("properties.title"),u.path=o.Facade.proxy("properties.path"),u.url=o.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t},u.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},u.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},2542(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(6698)),o=n(5525),a=n(3863);function s(e,t){o.Page.call(this,e,t)}t.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},s.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},3863(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(6698)),o=n(4500),a=n(7538),s=r(n(6659)),l=r(n(6041));function u(e,t){o.Facade.call(this,e,t)}t.Track=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"track"},c.type=c.action,c.event=o.Facade.field("event"),c.value=o.Facade.proxy("properties.value"),c.category=o.Facade.proxy("properties.category"),c.id=o.Facade.proxy("properties.id"),c.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},c.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},c.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},c.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},c.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},c.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},c.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},c.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},c.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},c.sku=o.Facade.proxy("properties.sku"),c.tax=o.Facade.proxy("properties.tax"),c.name=o.Facade.proxy("properties.name"),c.price=o.Facade.proxy("properties.price"),c.total=o.Facade.proxy("properties.total"),c.repeat=o.Facade.proxy("properties.repeat"),c.coupon=o.Facade.proxy("properties.coupon"),c.shipping=o.Facade.proxy("properties.shipping"),c.discount=o.Facade.proxy("properties.discount"),c.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},c.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},c.description=o.Facade.proxy("properties.description"),c.plan=o.Facade.proxy("properties.plan"),c.subtotal=function(){var e=l.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},c.products=function(){var e=this.properties(),t=l.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},c.quantity=function(){return(this.obj.properties||{}).quantity||1},c.currency=function(){return(this.obj.properties||{}).currency||"USD"},c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.query=o.Facade.proxy("options.query"),c.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},c.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},c.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},c.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e){if("number"==typeof e)return e;if("string"==typeof e)return e=e.replace(/\$/g,""),e=parseFloat(e),isNaN(e)?void 0:e}}(e)},c.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},c.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},7631(e,t,n){"use strict";var r=n(1042);e.exports=function e(t,n){return void 0===n&&(n=!0),t&&"object"==typeof t?function(t,n){return Object.keys(t).forEach(function(r){t[r]=e(t[r],n)}),t}(t,n):Array.isArray(t)?function(t,n){return t.forEach(function(r,i){t[i]=e(r,n)}),t}(t,n):r.is(t,n)?r.parse(t):t}},1042(e,t){"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var o,a=0;o=t[a];a++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var s=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(s)},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},5493(e){"use strict";function t(e){return e&&"object"==typeof e?i(e)||o(e)?e:r(e)?function(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}(e,t):function(e,t,n){if(e.reduce)return e.reduce(t,n);for(var r=0;r<e.length;r++)n=t(n,e[r]);return n}(s(e),function(r,i){return r[n(i)]=t(e[i]),r},{}):e}function n(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=function(e){return"string"==typeof e?n(e):t(e)};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){return"[object Date]"===Object.prototype.toString.call(e)},o=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},a=Object.prototype.hasOwnProperty,s=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},2473(e,t,n){"use strict";e.exports=n(2510)},5486(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e.filter(function(t,n){return e.lastIndexOf(t)===n})}function s(e){for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;++t){var o=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var l in o){var u=o[l],c=e[l];if(c&&u){if(Array.isArray(c)){e[l]=a(c.concat(u));continue}if(Array.isArray(u)){e[l]=a([c].concat(i(u)));continue}if("object"===r(u)){e[l]=s({},c,u);continue}}e[l]=u}}return e}n.r(t),n.d(t,{assignStyle:()=>s,camelCaseProperty:()=>h,cssifyDeclaration:()=>m,cssifyObject:()=>g,hyphenateProperty:()=>p,isPrefixedProperty:()=>y,isPrefixedValue:()=>_,isUnitlessProperty:()=>O,normalizeProperty:()=>L,resolveArrayValue:()=>D,unprefixProperty:()=>N,unprefixValue:()=>F});var l=/-([a-z])/g,u=/^Ms/g,c={};function d(e){return e[1].toUpperCase()}function h(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(l,d).replace(u,"ms");return c[e]=t,t}var f=n(5685);function p(e){return(0,f.default)(e)}function m(e,t){return p(e)+":"+t}function g(e){var t="";for(var n in e){var r=e[n];"string"!=typeof r&&"number"!=typeof r||(t&&(t+=";"),t+=m(n,r))}return t}var v=/^(Webkit|Moz|O|ms)/;function y(e){return v.test(e)}var b=/-webkit-|-moz-|-ms-/;function _(e){return"string"==typeof e&&b.test(e)}var w={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],x=["Webkit","ms","Moz","O"];function E(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var C=0,k=S.length;C<k;++C){var A=S[C];w[A]=!0;for(var R=0,T=x.length;R<T;++R)w[E(x[R],A)]=!0}for(var P in w)w[p(P)]=!0;function O(e){return w.hasOwnProperty(e)}var I=/^(ms|Webkit|Moz|O)/;function N(e){var t=e.replace(I,"");return t.charAt(0).toLowerCase()+t.slice(1)}function L(e){return N(h(e))}function D(e,t){return t.join(";"+p(e)+":")}var M=/(-ms-|-webkit-|-moz-|-o-)/g;function F(e){return"string"==typeof e?e.replace(M,""):e}},5721(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var r,i=(r=n(5685))&&r.__esModule?r:{default:r}},4014(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/},8907(e,t){"use strict";t.Y=function(e,t){return function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),o=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!o&&"not"===o.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}}),l})}(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var i=e.expressions.every(function(e){var n=e.feature,r=e.modifier,i=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=u(i),o=u(o);break;case"resolution":i=l(i),o=l(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=s(i),o=s(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=i;case"max":return o<=i;default:return o===i}});return i&&!n||!i&&n})};var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function l(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},7608(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(5482),o=r(i),a=r(n(5493)),s=r(n(2473)),l=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,u=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,c=function(e){return function(t){return e(t)?"<token>":null}},d=function(e,t){return void 0===t&&(t=String),function(n){if("word"!==n.type)return null;var r=n.value.match(e);return null===r?null:t(r[1])}},h=c(function(e){return"space"===e.type}),f=c(function(e){return"div"===e.type&&"/"===e.value}),p=c(function(e){return"div"===e.type&&","===e.value}),m=function(e){return"word"===e.type?e.value:null},g=d(/^(none)$/i),v=d(/^(auto)$/i),y=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,Number),b=d(/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,Number),_=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i),w=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,function(e){return e.toLowerCase()}),S=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i),x=d(/(^-?[_a-z][_a-z0-9-]*$)/i),E=function(e){return"string"!==e.type?null:e.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/\\/g,"")},C=function(e){return"word"===e.type&&(l.test(e.value)||e.value in s||"transparent"===e.value)?e.value:"function"===e.type&&u.test(e.value)?i.stringify(e):null},k=d(/^(none|underline|line-through)$/i),A=d(/^(solid|dashed|dotted)$/),R=function(e){var t=e.types,n=void 0===t?[b,_,S]:t,r=e.directions,i=void 0===r?["Top","Right","Bottom","Left"]:r,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;return function(e){var t,r=[];for(r.push(e.expect.apply(e,n));r.length<4&&e.hasTokens();)e.expect(h),r.push(e.expect.apply(e,n));e.expectEmpty();var o=r[0],s=r[1],u=void 0===s?o:s,c=r[2],d=void 0===c?o:c,f=r[3],p=void 0===f?u:f,m=function(e){return""+a+i[e]+l};return(t={})[m(0)]=o,t[m(1)]=u,t[m(2)]=d,t[m(3)]=p,t}},T=function(e){var t=e.expect(b),n=e.matches(h)?e.expect(b):t;return e.expectEmpty(),{width:t,height:n}},P=function(e){var t,n,r,i;if(e.matches(g))return e.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var o=!1;e.hasTokens();)o&&e.expect(h),void 0===t&&e.matches(b,_)?(t=e.lastValue,e.expect(h),n=e.expect(b,_),e.saveRewindPoint(),e.matches(h)&&e.matches(b,_)?r=e.lastValue:e.rewind()):void 0===i&&e.matches(C)?i=e.lastValue:e.throw(),o=!0;return void 0===t&&e.throw(),{offset:{width:t,height:n},radius:void 0!==r?r:0,color:void 0!==i?i:"black"}},O=d(/(nowrap|wrap|wrap-reverse)/),I=d(/(row|row-reverse|column|column-reverse)/),N=function(e){var t;if(e.matches(E))t=e.lastValue;else for(t=e.expect(x);e.hasTokens();)e.expect(h),t+=" "+e.expect(x);return e.expectEmpty(),{fontFamily:t}},L=d(/^(normal)$/),D=d(/^(italic)$/),M=d(/^([1-9]00|bold)$/),F=d(/^(small-caps)$/),V=[],z=d(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),j=d(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),B=d(/^(solid|double|dotted|dashed)$/),H=function(e){return function(t){var n=t.expect(e);return t.expectEmpty(),n}},$=H(y),W=H(b),U=H(w),K=function(e){return function(t,n){return function(r){var i,o,a,s=r.expect(e);if(r.hasTokens())r.expect(p),a=r.expect(e);else{if(void 0===n)return s;a=n}return r.expectEmpty(),[(i={},i[t+"Y"]=a,i),(o={},o[t+"X"]=s,o)]}}},q=K(y),Y=K(b),G=K(w),X={perspective:$,scale:q("scale"),scaleX:$,scaleY:$,translate:Y("translate",0),translateX:W,translateY:W,rotate:U,rotateX:U,rotateY:U,rotateZ:U,skewX:U,skewY:U,skew:G("skew","0deg")},J=R({types:[C],prefix:"border",suffix:"Color"}),Q=R({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),Z=R({prefix:"border",suffix:"Width"}),ee=R({types:[b,_,S,v],prefix:"margin"}),te=R({prefix:"padding"}),ne={aspectRatio:function(e){var t=e.expect(y);return e.hasTokens()&&(e.expect(f),t/=e.expect(y)),{aspectRatio:t}},background:function(e){return{backgroundColor:e.expect(C)}},border:function(e){var t,n,r;if(e.matches(g))return e.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var i=0;i<3&&e.hasTokens();)0!==i&&e.expect(h),void 0===t&&e.matches(b,_)?t=e.lastValue:void 0===n&&e.matches(C)?n=e.lastValue:void 0===r&&e.matches(A)?r=e.lastValue:e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n="black"),void 0===r&&(r="solid"),{borderWidth:t,borderColor:n,borderStyle:r}},borderColor:J,borderRadius:Q,borderWidth:Z,boxShadow:function(e){var t=P(e);return{shadowOffset:t.offset,shadowRadius:t.radius,shadowColor:t.color,shadowOpacity:1}},flex:function(e){var t,n,r;if(e.matches(g))return e.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(e.saveRewindPoint(),e.matches(v)&&!e.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};e.rewind();for(var i=0;i<2&&e.hasTokens();)0!==i&&e.expect(h),void 0===t&&e.matches(y)?(t=e.lastValue,e.saveRewindPoint(),e.matches(h)&&e.matches(y)?n=e.lastValue:e.rewind()):void 0===r&&e.matches(b,_,S)?r=e.lastValue:void 0===r&&e.matches(v)?r="auto":e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=0),{flexGrow:t,flexShrink:n,flexBasis:r}},flexFlow:function(e){for(var t,n,r=0;r<2&&e.hasTokens();)0!==r&&e.expect(h),void 0===t&&e.matches(O)?t=e.lastValue:void 0===n&&e.matches(I)?n=e.lastValue:e.throw(),r+=1;return e.expectEmpty(),void 0===t&&(t="nowrap"),void 0===n&&(n="row"),{flexWrap:t,flexDirection:n}},font:function(e){for(var t,n,r,i,o=0;o<3&&e.hasTokens();){if(e.matches(L));else if(void 0===t&&e.matches(D))t=e.lastValue;else if(void 0===n&&e.matches(M))n=e.lastValue;else{if(void 0!==r||!e.matches(F))break;r=[e.lastValue]}e.expect(h),o+=1}var a=e.expect(b,_);e.matches(f)&&(i=e.expect(b,_)),e.expect(h);var s=N(e).fontFamily;void 0===t&&(t="normal"),void 0===n&&(n="normal"),void 0===r&&(r=V);var l={fontStyle:t,fontWeight:n,fontVariant:r,fontSize:a,fontFamily:s};return void 0!==i&&(l.lineHeight=i),l},fontFamily:N,fontVariant:function(e){for(var t=[e.expect(x)];e.hasTokens();)e.expect(h),t.push(e.expect(x));return{fontVariant:t}},fontWeight:function(e){return{fontWeight:e.expect(m)}},margin:ee,padding:te,placeContent:function(e){var t,n=e.expect(z);return e.hasTokens()?(e.expect(h),t=e.expect(j)):t="stretch",e.expectEmpty(),{alignContent:n,justifyContent:t}},shadowOffset:function(e){return{shadowOffset:T(e)}},textShadow:function(e){var t=P(e);return{textShadowOffset:t.offset,textShadowRadius:t.radius,textShadowColor:t.color}},textShadowOffset:function(e){return{textShadowOffset:T(e)}},textDecoration:function(e){for(var t,n,r,i=!1;e.hasTokens();){if(i&&e.expect(h),void 0===t&&e.matches(k)){var o=[e.lastValue.toLowerCase()];e.saveRewindPoint(),"none"!==o[0]&&e.matches(h)&&e.matches(k)?(o.push(e.lastValue.toLowerCase()),o.sort().reverse()):e.rewind(),t=o.join(" ")}else void 0===n&&e.matches(B)?n=e.lastValue:void 0===r&&e.matches(C)?r=e.lastValue:e.throw();i=!0}return{textDecorationLine:void 0!==t?t:"none",textDecorationColor:void 0!==r?r:"black",textDecorationStyle:void 0!==n?n:"solid"}},textDecorationLine:function(e){for(var t=[],n=!1;e.hasTokens();)n&&e.expect(h),t.push(e.expect(k).toLowerCase()),n=!0;return t.sort().reverse(),{textDecorationLine:t.join(" ")}},transform:function(e){for(var t=[],n=!1;e.hasTokens();){n&&e.expect(h);var r,i=e.expectFunction(),o=i.functionName,a=X[o](i);Array.isArray(a)||(a=[(r={},r[o]=a,r)]),t=a.concat(t),n=!0}return{transform:t}}},re="SYMBOL_MATCH",ie=function(){function e(e,t){this.index=0,this.nodes=e,this.functionName=null!=t?t.value:null,this.lastValue=null,this.rewindIndex=-1}var t=e.prototype;return t.hasTokens=function(){return this.index<=this.nodes.length-1},t[re]=function(){if(!this.hasTokens())return null;for(var e=this.nodes[this.index],t=0;t<arguments.length;t+=1){var n=(t<0||arguments.length<=t?void 0:arguments[t])(e);if(null!==n)return this.index+=1,this.lastValue=n,n}return null},t.matches=function(){return null!==this[re].apply(this,arguments)},t.expect=function(){var e=this[re].apply(this,arguments);return null!==e?e:this.throw()},t.matchesFunction=function(){var t=this.nodes[this.index];if("function"!==t.type)return null;var n=new e(t.nodes,t);return this.index+=1,this.lastValue=null,n},t.expectFunction=function(){var e=this.matchesFunction();return null!==e?e:this.throw()},t.expectEmpty=function(){this.hasTokens()&&this.throw()},t.throw=function(){throw new Error("Unexpected token type: "+this.nodes[this.index].type)},t.saveRewindPoint=function(){this.rewindIndex=this.index},t.rewind=function(){if(-1===this.rewindIndex)throw new Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},e}(),oe=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,ae=/^true|false$/i,se=/^null$/i,le=/^undefined$/i,ue=function(e,t,n){var r,i=!1===n||!(e in ne),a=t.trim();return i?((r={})[e]=function(e,t){var n=t.match(oe);if(null!==n)return Number(n[1]);var r=t.match(ae);return null!==r?"true"===r[0].toLowerCase():null!==t.match(se)?null:null===t.match(le)?t:void 0}(0,a),r):function(e,t){var n=o(t),r=new ie(n.nodes);return ne[e](r)}(e,a)};t.Ay=function(e,t){return void 0===t&&(t=[]),e.reduce(function(e,n){var r,i=(r=n[0],/^--\w+/.test(r)?r:a(r)),o=n[1],s=-1===t.indexOf(i);return Object.assign(e,ue(i,o,s))},{})}},9395(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},646(e){"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw o.framesToPop=1,o}}},4594(e,t,n){"use strict";var r=n(9395);e.exports=r},5685(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},6698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6485(e,t,n){"use strict";t.A=function(e){var t=e.prefixMap,n=e.plugins;return function e(s){for(var l in s){var u=s[l];if((0,a.default)(u))s[l]=e(u);else if(Array.isArray(u)){for(var c=[],d=0,h=u.length;d<h;++d){var f=(0,i.default)(n,l,u[d],s,t);(0,o.default)(c,f||u[d])}c.length>0&&(s[l]=c)}else{var p=(0,i.default)(n,l,u,s,t);p&&(s[l]=p),s=(0,r.default)(t,l,s)}}return s}};var r=s(n(2049)),i=s(n(7971)),o=s(n(9863)),a=s(n(1099));function s(e){return e&&e.__esModule?e:{default:e}}},4217(e,t){"use strict";t.A=function(){return null}},1261(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return o.map(function(e){return t.replace(i,e+"cross-fade(")})};var r=n(5486),i=/cross-fade\(/g,o=["-webkit-",""]},8041(e,t){"use strict";t.A=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},7033(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return o.map(function(e){return t.replace(i,e+"filter(")})};var r=n(5486),i=/filter\(/g,o=["-webkit-",""]},6852(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("image-set(")>-1)return o.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,i=(r=n(4014))&&r.__esModule?r:{default:r},o=["-webkit-",""]},20(e,t){"use strict";t.A=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var i=n[e],o=0,a=i.length;o<a;++o)r[i[o]]=t};var n={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]}},9996(e,t){"use strict";t.A=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}},5129(e,t){"use strict";t.A=function(e,t){if(r.hasOwnProperty(e)&&i.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},508(e,t,n){"use strict";t.A=function(e,t,n,a){if("string"==typeof t&&s.hasOwnProperty(e)){var u=function(e,t){if((0,i.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),o=0,a=n.length;o<a;++o){var s=n[o],u=[s];for(var c in t){var d=(0,r.default)(c);if(s.indexOf(d)>-1&&"order"!==d)for(var h=t[c],f=0,p=h.length;f<p;++f)u.unshift(s.replace(d,l[h[f]]+d))}n[o]=u.join(",")}return n.join(",")}(t,a),c=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return c;var d=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,o.default)(e)]=c,n["Moz"+(0,o.default)(e)]=d,u)}};var r=a(n(5721)),i=a(n(4014)),o=a(n(7091));function a(e){return e&&e.__esModule?e:{default:e}}var s={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},9863(e,t){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,i=t.length;r<i;++r)n(e,t[r]);else n(e,t)}},7091(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},1099(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},2049(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];if(r&&n.hasOwnProperty(t))for(var o=(0,i.default)(t),a=0;a<r.length;++a){var s=r[a]+o;n[s]||(n[s]=n[t])}return n};var r,i=(r=n(7091))&&r.__esModule?r:{default:r}},7971(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){for(var o=0,a=e.length;o<a;++o){var s=e[o](t,n,r,i);if(s)return s}}},7918(e,t,n){"use strict";var r=n(8907).Y,i="undefined"!=typeof window?window.matchMedia:null;function o(e,t,n){var o,a=this;function s(e){a.matches=e.matches,a.media=e.media}i&&!n&&(o=i.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(s)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){o&&o.addListener(e)},this.removeListener=function(e){o&&o.removeListener(e)},this.dispose=function(){o&&o.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},5316(e,t,n){"use strict";var r=n(1042),i=n(356),o=n(4385),a=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===a.call(t)?e:function(e){return"[object Number]"===a.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e);var t,n}},356(e,t){"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},4385(e,t){"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},801(e){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},6041(e){function t(e){return function(t,n,r,o){var a,s=o&&function(e){return"function"==typeof e}(o.normalizer)?o.normalizer:i;n=s(n);for(var l=!1;!l;)u();function u(){for(a in t){var e=s(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[a];return null==i?void(l=!0):n.length?void(t=i):void(l=!0)}}}a=void 0,l=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,i,o){return t(r).call(this,e,n,i,o),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},5482(e,t,n){var r=n(8809),i=n(8449),o=n(9063);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(e,t){return i(this.nodes,e,t),this},a.unit=n(2882),a.walk=i,a.stringify=o,e.exports=a},8809(e){var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),u="*".charCodeAt(0),c="u".charCodeAt(0),d="U".charCodeAt(0),h="+".charCodeAt(0),f=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var p,m,g,v,y,b,_,w,S,x=[],E=e,C=0,k=E.charCodeAt(C),A=E.length,R=[{nodes:x}],T=0,P="",O="",I="";C<A;)if(k<=32){p=C;do{p+=1,k=E.charCodeAt(p)}while(k<=32);v=E.slice(C,p),g=x[x.length-1],k===n&&T?I=v:g&&"div"===g.type?(g.after=v,g.sourceEndIndex+=v.length):k===s||k===l||k===a&&E.charCodeAt(p+1)!==u&&(!S||S&&"function"===S.type&&"calc"!==S.value)?O=v:x.push({type:"space",sourceIndex:C,sourceEndIndex:p,value:v}),C=p}else if(k===r||k===i){p=C,v={type:"string",sourceIndex:C,quote:m=k===r?"'":'"'};do{if(y=!1,~(p=E.indexOf(m,p+1)))for(b=p;E.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(E+=m).length-1,v.unclosed=!0}while(y);v.value=E.slice(C+1,p),v.sourceEndIndex=v.unclosed?p:p+1,x.push(v),C=p+1,k=E.charCodeAt(C)}else if(k===a&&E.charCodeAt(C+1)===u)v={type:"comment",sourceIndex:C,sourceEndIndex:(p=E.indexOf("*/",C))+2},-1===p&&(v.unclosed=!0,p=E.length,v.sourceEndIndex=p),v.value=E.slice(C+2,p),x.push(v),C=p+2,k=E.charCodeAt(C);else if(k!==a&&k!==u||!S||"function"!==S.type||"calc"!==S.value)if(k===a||k===s||k===l)v=E[C],x.push({type:"div",sourceIndex:C-O.length,sourceEndIndex:C+v.length,value:v,before:O,after:""}),O="",C+=1,k=E.charCodeAt(C);else if(t===k){p=C;do{p+=1,k=E.charCodeAt(p)}while(k<=32);if(w=C,v={type:"function",sourceIndex:C-P.length,value:P,before:E.slice(w+1,p)},C=p,"url"===P&&k!==r&&k!==i){p-=1;do{if(y=!1,~(p=E.indexOf(")",p+1)))for(b=p;E.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(E+=")").length-1,v.unclosed=!0}while(y);_=p;do{_-=1,k=E.charCodeAt(_)}while(k<=32);w<_?(v.nodes=C!==_+1?[{type:"word",sourceIndex:C,sourceEndIndex:_+1,value:E.slice(C,_+1)}]:[],v.unclosed&&_+1!==p?(v.after="",v.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:p,value:E.slice(_+1,p)})):(v.after=E.slice(_+1,p),v.sourceEndIndex=p)):(v.after="",v.nodes=[]),C=p+1,v.sourceEndIndex=v.unclosed?p:C,k=E.charCodeAt(C),x.push(v)}else T+=1,v.after="",v.sourceEndIndex=C+1,x.push(v),R.push(v),x=v.nodes=[],S=v;P=""}else if(n===k&&T)C+=1,k=E.charCodeAt(C),S.after=I,S.sourceEndIndex+=I.length,I="",T-=1,R[R.length-1].sourceEndIndex=C,R.pop(),x=(S=R[T]).nodes;else{p=C;do{k===o&&(p+=1),p+=1,k=E.charCodeAt(p)}while(p<A&&!(k<=32||k===r||k===i||k===s||k===l||k===a||k===t||k===u&&S&&"function"===S.type&&"calc"===S.value||k===a&&"function"===S.type&&"calc"===S.value||k===n&&T));v=E.slice(C,p),t===k?P=v:c!==v.charCodeAt(0)&&d!==v.charCodeAt(0)||h!==v.charCodeAt(1)||!f.test(v.slice(2))?x.push({type:"word",sourceIndex:C,sourceEndIndex:p,value:v}):x.push({type:"unicode-range",sourceIndex:C,sourceEndIndex:p,value:v}),C=p}else v=E[C],x.push({type:"word",sourceIndex:C-O.length,sourceEndIndex:C+v.length,value:v}),C+=1,k=E.charCodeAt(C);for(C=R.length-1;C;C-=1)R[C].unclosed=!0,R[C].sourceEndIndex=E.length;return R[0].nodes}},9063(e){function t(e,t){var r,i,o=e.type,a=e.value;return t&&void 0!==(i=t(e))?i:"word"===o||"space"===o?a:"string"===o?(r=e.quote||"")+a+(e.unclosed?"":r):"comment"===o?"/*"+a+(e.unclosed?"":"*/"):"div"===o?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes,t),"function"!==o?r:a+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):a}function n(e,n){var r,i;if(Array.isArray(e)){for(r="",i=e.length-1;~i;i-=1)r=t(e[i],n)+r;return r}return t(e,n)}e.exports=n},2882(e){var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);e.exports=function(e){var a,s,l,u=0,c=e.length;if(0===c||!function(e){var i,o=e.charCodeAt(0);if(o===n||o===t){if((i=e.charCodeAt(1))>=48&&i<=57)return!0;var a=e.charCodeAt(2);return i===r&&a>=48&&a<=57}return o===r?(i=e.charCodeAt(1))>=48&&i<=57:o>=48&&o<=57}(e))return!1;for((a=e.charCodeAt(u))!==n&&a!==t||u++;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),a===r&&s>=48&&s<=57)for(u+=2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),l=e.charCodeAt(u+2),(a===i||a===o)&&(s>=48&&s<=57||(s===n||s===t)&&l>=48&&l<=57))for(u+=s===n||s===t?3:2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;return{number:e.slice(0,u),unit:e.slice(u)}}},8449(e){e.exports=function e(t,n,r){var i,o,a,s;for(i=0,o=t.length;i<o;i+=1)a=t[i],r||(s=n(a,i,t)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,i,t)}},2694(e,t,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551(e,t,n){"use strict";var r=n(6540),i=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,F=Object.assign;function V(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function j(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function B(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return j(e.type,!1);case 11:return j(e.type.render,!1);case 1:return j(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case C:return"Profiler";case E:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){J(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,Ee=null;function Ce(e){if(e=bi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function ke(e){xe?Ee?Ee.push(e):Ee=[e]:xe=e}function Ae(){if(xe){var e=xe,t=Ee;if(Ee=xe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Re(e,t){return e(t)}function Te(){}var Pe=!1;function Oe(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Re(e,t,n)}finally{Pe=!1,(null!==xe||null!==Ee)&&(Te(),Ae())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Ne=!1}function De(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Fe=null,Ve=!1,ze=null,je={onError:function(e){Me=!0,Fe=e}};function Be(e,t,n,r,i,o,a,s,l){Me=!1,Fe=null,De.apply(je,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(o(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return We(i),e;if(a===r)return We(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Je=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,xt,Et,Ct,kt=!1,At=[],Rt=null,Tt=null,Pt=null,Ot=new Map,It=new Map,Nt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ct(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function zt(e,t,n){Vt(e)&&n.delete(t)}function jt(){kt=!1,null!==Rt&&Vt(Rt)&&(Rt=null),null!==Tt&&Vt(Tt)&&(Tt=null),null!==Pt&&Vt(Pt)&&(Pt=null),Ot.forEach(zt),It.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<At.length){Bt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Bt(Rt,e),null!==Tt&&Bt(Tt,e),null!==Pt&&Bt(Pt,e),Ot.forEach(t),It.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Nt.shift()}var $t=_.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Kt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=i,$t.transition=o}}function qt(e,t,n,r){if(Wt){var i=Gt(e,t,n,r);if(null===i)Wr(e,t,r,Yt,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Rt=Mt(Rt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return Pt=Mt(Pt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ot.set(o,Mt(Ot.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Wr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Gt(e,t,n,r){if(Yt=null,null!==(e=yi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Qt,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=F({},un,{view:0,detail:0}),hn=on(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(fn),mn=on(F({},fn,{dataTransfer:0})),gn=on(F({},dn,{relatedTarget:0})),vn=on(F({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(F({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return En}var kn=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(kn),Rn=on(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=on(F({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(On),Nn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Dn,Fn=c&&(!Ln||Dn&&8<Dn&&11>=Dn),Vn=String.fromCharCode(32),zn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,$n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=Kr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Yn(e){Vr(e,0)}function Gn(e){if(q(_i(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Qn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Qn=Zn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),qn=Kn=null)}function nr(e){if("value"===e.propertyName&&Gn(qn)){var t=[];Un(t,qn,e,we(e)),Oe(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(qn)}function or(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||(r="selectionStart"in(r=gr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Er={};function Cr(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return xr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=Cr("animationend"),Ar=Cr("animationiteration"),Rr=Cr("animationstart"),Tr=Cr("transitionend"),Pr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Pr.set(e,t),l(t,[e])}for(var Nr=0;Nr<Or.length;Nr++){var Lr=Or[Nr];Ir(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Ir(kr,"onAnimationEnd"),Ir(Ar,"onAnimationIteration"),Ir(Rr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Fe;Me=!1,Fe=null,Ve||(Ve=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Vr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}}}if(Ve)throw e=ze,Ve=!1,ze=null,e}function zr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach(function(t){"selectionchange"!==t&&(Mr.has(t)||jr(t,!1,e),jr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,jr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Xt(t)){case 1:var i=Ut;break;case 4:i=Kt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=o,i=we(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Ar:case Rr:l=vn;break;case Tr:l=Pn;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&null!=(m=Ie(p,h))&&c.push(Ur(p,m,f))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:_i(l),f=null==u?s:_i(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,yi(i)===r&&((c=new c(h,p+"enter",u,n,i)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,p=0,f=c=l;f;f=qr(f))p++;for(f=0,m=h;m;m=qr(m))f++;for(;0<p-f;)c=qr(c),p--;for(;0<f-p;)h=qr(h),f--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=qr(c),h=qr(h)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Wn(s))if(Jn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Un(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?_i(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Qt="value"in(Jt=i)?Jt.value:Jt.textContent,Hn=!0)),0<(v=Kr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:v}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,Vn);case"textInput":return(e=t.data)===Vn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&jn(e,t)?(e=en(),Zt=Qt=Jt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Kr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Vr(a,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(Ur(e,o,i)),null!=(o=Ie(e,t))&&r.push(Ur(e,o,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Ie(n,o))&&a.unshift(Ur(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Qr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[hi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[fi]||null}var Si=[],xi=-1;function Ei(e){return{current:e}}function Ci(e){0>xi||(e.current=Si[xi],Si[xi]=null,xi--)}function ki(e,t){xi++,Si[xi]=e.current,e.current=t}var Ai={},Ri=Ei(Ai),Ti=Ei(!1),Pi=Ai;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!=e.childContextTypes}function Ni(){Ci(Ti),Ci(Ri)}function Li(e,t,n){if(Ri.current!==Ai)throw Error(o(168));ki(Ri,t),ki(Ti,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return F({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Pi=Ri.current,ki(Ri,e),ki(Ti,Ti.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ti),Ci(Ri),ki(Ri,e)):Ci(Ti),ki(Ti,n)}var Vi=null,zi=!1,ji=!1;function Bi(e){null===Vi?Vi=[e]:Vi.push(e)}function Hi(){if(!ji&&null!==Vi){ji=!0;var e=0,t=bt;try{var n=Vi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vi=null,zi=!1}catch(t){throw null!==Vi&&(Vi=Vi.slice(e+1)),qe(Ze,Hi),t}finally{bt=t,ji=!1}}return null}var $i=[],Wi=0,Ui=null,Ki=0,qi=[],Yi=0,Gi=null,Xi=1,Ji="";function Qi(e,t){$i[Wi++]=Ki,$i[Wi++]=Ui,Ui=e,Ki=t}function Zi(e,t,n){qi[Yi++]=Xi,qi[Yi++]=Ji,qi[Yi++]=Gi,Gi=e;var r=Xi;e=Ji;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Ji=o+e}else Xi=1<<o|n<<i|r,Ji=e}function eo(e){null!==e.return&&(Qi(e,1),Zi(e,1,0))}function to(e){for(;e===Ui;)Ui=$i[--Wi],$i[Wi]=null,Ki=$i[--Wi],$i[Wi]=null;for(;e===Gi;)Gi=qi[--Yi],qi[Yi]=null,Ji=qi[--Yi],qi[Yi]=null,Xi=qi[--Yi],qi[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Pu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Xi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=_.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function _o(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Iu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case S:return(t=Fu(t,e.mode,n)).return=e,t;case I:return h(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Lu(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case I:return f(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),io&&Qi(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Qi(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(g=p(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),io&&Qi(i,m),u}function g(i,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Qi(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return io&&Qi(i,g),c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),io&&Qi(i,g),c}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===I&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=vo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=Lu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Nu(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case S:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fu(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(D(a))return g(r,o,a,l);yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Mu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=_o(!0),So=_o(!1),xo=Ei(null),Eo=null,Co=null,ko=null;function Ao(){ko=Co=Eo=null}function Ro(e){var t=xo.current;Ci(xo),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){Eo=e,ko=Co=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===Co){if(null===Eo)throw Error(o(308));Co=e,Eo.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return t}var Io=null;function No(e){null===Io?Io=[e]:Io.push(e)}function Lo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,No(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return null===(i=r.interleaved)?(t.next=t,No(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var h=s.lane,f=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(h=t,f=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=m.payload)?p.call(f,d,h):p))break e;d=F({},d,h);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function Wo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Uo={},Ko=Ei(Uo),qo=Ei(Uo),Yo=Ei(Uo);function Go(e){if(e===Uo)throw Error(o(174));return e}function Xo(e,t){switch(ki(Yo,t),ki(qo,e),ki(Ko,Uo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(Ko),ki(Ko,t)}function Jo(){Ci(Ko),Ci(qo),Ci(Yo)}function Qo(e){Go(Yo.current);var t=Go(Ko.current),n=le(t,e.type);t!==n&&(ki(qo,e),ki(Ko,n))}function Zo(e){qo.current===e&&(Ci(Ko),Ci(qo))}var ea=Ei(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=_.ReactCurrentDispatcher,oa=_.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,ha=0,fa=0;function pa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Za:es,e=n(r,i),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Qa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function va(){var e=0!==ha;return ha=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function _a(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h,sa.lanes|=d,Dl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Dl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Ea(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Oa(9,ka.bind(null,n,r,i,t),void 0,null),null===Rl)throw Error(o(349));30&aa||Ca(n,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&Ta(e)}function Aa(e,t,n){return n(function(){Ra(t)&&Ta(e)})}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ta(e){var t=Do(e,1);null!==t&&tu(t,e,1,-1)}function Pa(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ba().memoizedState}function Na(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}sa.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Da(e,t){return Na(8390656,8,e,t)}function Ma(e,t){return La(2048,8,e,t)}function Fa(e,t){return La(4,2,e,t)}function Va(e,t){return La(4,4,e,t)}function za(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ja(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,za.bind(null,t,e),n)}function Ba(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ua(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Ka(){return ba().memoizedState}function qa(e,t,n){var r=eu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Xa(t,n):null!==(n=Lo(e,t,n,r))&&(tu(n,e,r,Zl()),Ja(n,t,r))}function Ya(e,t,n){var r=eu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,No(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Lo(e,t,i,r))&&(tu(n,e,r,i=Zl()),Ja(n,t,r))}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Qa={readContext:Oo,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Za={readContext:Oo,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Na(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Pa,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Ua.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Rl)throw Error(o(349));30&aa||Ca(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Da(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Oa(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(io){var n=Ji;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=ha++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Fa,useLayoutEffect:Va,useMemo:$a,useReducer:wa,useRef:Ia,useState:function(){return wa(_a)},useDebugValue:Ba,useDeferredValue:function(e){return Wa(ba(),la.memoizedState,e)},useTransition:function(){return[wa(_a)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:Ka,unstable_isNewReconciler:!1},ts={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Fa,useLayoutEffect:Va,useMemo:$a,useReducer:Sa,useRef:Ia,useState:function(){return Sa(_a)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[Sa(_a)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:Ka,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=eu(e),o=zo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,i))&&(tu(t,e,i,r),Bo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=eu(e),o=zo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,i))&&(tu(t,e,i,r),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zl(),r=eu(e),i=zo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=jo(e,i,r))&&(tu(t,e,r,n),Bo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function as(e,t,n){var r=!1,i=Ai,o=t.contextType;return"object"==typeof o&&null!==o?o=Oo(o):(i=Ii(t)?Pi:Ri.current,o=(r=null!=(r=t.contextTypes))?Oi(e,i):Ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Fo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Oo(o):(o=Ii(t)?Pi:Ri.current,i.context=Oi(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var hs="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,Wl=r),ds(0,t)},n}function ps(e,t,n){(n=zo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Ul?Ul=new Set([this]):Ul.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zo(-1,1)).tag=2,jo(n,t,1))),n.lanes|=1),e)}var ys=_.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?So(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ou(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return $s(e,t,i)}return t.flags|=1,(e=Iu(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,$s(e,t,i);131072&e.flags&&(bs=!0)}}return ks(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Il,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Il,Ol),Ol|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Il,Ol),Ol|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Il,Ol),Ol|=r;return _s(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Ii(n)?Pi:Ri.current;return o=Oi(t,o),Po(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function As(e,t,n,r,i){if(Ii(n)){var o=!0;Mi(t)}else o=!1;if(Po(t,i),null===t.stateNode)Hs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Oo(u):Oi(t,u=Ii(n)?Pi:Ri.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Mo=!1;var h=t.memoizedState;a.state=h,$o(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Ti.current||Mo?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,h,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Vo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,h=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Oo(l):Oi(t,l=Ii(n)?Pi:Ri.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,a,r,l),Mo=!1,h=t.memoizedState,a.state=h,$o(t,r,a,i);var p=t.memoizedState;s!==d||h!==p||Ti.current||Mo?("function"==typeof f&&(rs(t,n,f,r),p=t.memoizedState),(u=Mo||os(t,n,u,r,h,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,o,i)}function Rs(e,t,n,r,i,o){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Fi(t,n,!1),$s(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):_s(e,t,s,o),t.memoizedState=r.state,i&&Fi(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Xo(e,t.containerInfo)}function Ps(e,t,n,r,i){return po(),mo(i),t.flags|=256,_s(e,t,n,r),t.child}var Os,Is,Ns,Ls={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Du(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Lu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ls,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Du({mode:"visible",children:r.children},i,0,null),(a=Lu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&wo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ls,a);if(!(1&t.mode))return Vs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Vs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Rl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(e,i),tu(r,e,i,-1))}return pu(),Vs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=ku.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(qi[Yi++]=Xi,qi[Yi++]=Ji,qi[Yi++]=Gi,Xi=e.id,Ji=e.overflow,Gi=t),(t=Fs(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==r?s=Iu(r,s):(s=Lu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ls,i}return e=(s=e.child).sibling,i=Iu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,n,r){return null!==r&&mo(r),wo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function js(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_s(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),js(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}js(t,!0,n,null,o);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Us(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Us(t),null;case 1:case 17:return Ii(t.type)&&Ni(),Us(t),null;case 3:return r=t.stateNode,Jo(),Ci(Ti),Ci(Ri),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(ou(oo),oo=null))),Us(t),null;case 5:Zo(t);var i=Go(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Us(t),null}if(e=Go(Ko.current),ho(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[hi]=t,r[fi]=a,e=!!(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)zr(Dr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":X(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":K(r),Z(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[fi]=r,Os(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)zr(Dr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":X(e,r),i=G(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":K(e),Z(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Us(t),null;case 6:if(e&&null!=t.stateNode)Ns(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Go(Yo.current),Go(Ko.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Us(t),null;case 13:if(Ci(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&1&t.mode&&!(128&t.flags))fo(),po(),t.flags|=98560,a=!1;else if(a=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hi]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Us(t),a=!1}else null!==oo&&(ou(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Nl&&(Nl=3):pu())),null!==t.updateQueue&&(t.flags|=4),Us(t),null);case 4:return Jo(),null===e&&Hr(t.stateNode.containerInfo),Us(t),null;case 10:return Ro(t.type._context),Us(t),null;case 19:if(Ci(ea),null===(a=t.memoizedState))return Us(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Ws(a,!1);else{if(0!==Nl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ws(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>Bl&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Us(t),null}else 2*Je()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(Us(t),null);case 22:case 23:return cu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ol)&&(Us(t),6&t.subtreeFlags&&(t.flags|=8192)):Us(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function qs(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jo(),Ci(Ti),Ci(Ri),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(Ci(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(ea),null;case 4:return Jo(),null;case 10:return Ro(t.type._context),null;case 22:case 23:return cu(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Go(Ko.current);var o,a=null;switch(n){case"input":i=G(e,i),r=G(e,r),a=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Gs=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Qs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xu(e,t,n)}else n.current=null}function Zs(e,t,n){try{n()}catch(n){xu(e,t,n)}}var el=!1;function tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Zs(t,n,o)}i=i.next}while(i!==r)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[gi],delete t[vi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var ul=null,cl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Gs||Qs(n,t);case 6:var r=ul,i=cl;ul=null,dl(e,t,n),cl=i,null!==(ul=r)&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(ul,n.stateNode));break;case 4:r=ul,i=cl,ul=n.stateNode.containerInfo,cl=!0,dl(e,t,n),ul=r,cl=i;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Zs(n,t,a),i=i.next}while(i!==r)}dl(e,t,n);break;case 1:if(!Gs&&(Qs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xu(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,dl(e,t,n),Gs=r):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function pl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,cl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,cl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));hl(a,s,i),ul=null,cl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){xu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pl(t,e),gl(e),4&r){try{tl(3,e,e.return),nl(3,e)}catch(t){xu(e,e.return,t)}try{tl(5,e,e.return)}catch(t){xu(e,e.return,t)}}break;case 1:pl(t,e),gl(e),512&r&&null!==n&&Qs(n,n.return);break;case 5:if(pl(t,e),gl(e),512&r&&null!==n&&Qs(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){xu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&J(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ge(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):b(i,d,h,c)}switch(l){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[fi]=a}catch(t){xu(e,e.return,t)}}break;case 6:if(pl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){xu(e,e.return,t)}}break;case 3:if(pl(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){xu(e,e.return,t)}break;case 4:default:pl(t,e),gl(e);break;case 13:pl(t,e),gl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(jl=Je())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||d,pl(t,e),Gs=c):pl(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(p=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:tl(4,f,f.return);break;case 1:Qs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xu(r,n,e)}}break;case 5:Qs(f,f.return);break;case 22:if(null!==f.memoizedState){_l(h);continue}}null!==p?(p.return=f,Js=p):_l(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){xu(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){xu(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:pl(t,e),gl(e),4&r&&fl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),ll(e,al(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;sl(e,al(e),a);break;default:throw Error(o(161))}}catch(t){xu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=Ys;var u=Gs;if(Ys=a,(Gs=l)&&!u)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?wl(i):null!==l?(l.return=a,Js=l):wl(i);for(;null!==o;)Js=o,yl(o,t,n),o=o.sibling;Js=i,Ys=s,Gs=u}bl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):bl(e)}}function bl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Gs||nl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ht(h)}}}break;default:throw Error(o(163))}Gs||512&t.flags&&rl(t)}catch(e){xu(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(e){xu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){xu(t,i,e)}}var o=t.return;try{rl(t)}catch(e){xu(t,o,e)}break;case 5:var a=t.return;try{rl(t)}catch(e){xu(t,a,e)}}}catch(e){xu(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Sl,xl=Math.ceil,El=_.ReactCurrentDispatcher,Cl=_.ReactCurrentOwner,kl=_.ReactCurrentBatchConfig,Al=0,Rl=null,Tl=null,Pl=0,Ol=0,Il=Ei(0),Nl=0,Ll=null,Dl=0,Ml=0,Fl=0,Vl=null,zl=null,jl=0,Bl=1/0,Hl=null,$l=!1,Wl=null,Ul=null,Kl=!1,ql=null,Yl=0,Gl=0,Xl=null,Jl=-1,Ql=0;function Zl(){return 6&Al?Je():-1!==Jl?Jl:Jl=Je()}function eu(e){return 1&e.mode?2&Al&&0!==Pl?Pl&-Pl:null!==go.transition?(0===Ql&&(Ql=mt()),Ql):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function tu(e,t,n,r){if(50<Gl)throw Gl=0,Xl=null,Error(o(185));vt(e,n,r),2&Al&&e===Rl||(e===Rl&&(!(2&Al)&&(Ml|=n),4===Nl&&au(e,Pl)),nu(e,r),1===n&&0===Al&&!(1&t.mode)&&(Bl=Je()+500,zi&&Hi()))}function nu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ht(e,e===Rl?Pl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zi=!0,Bi(e)}(su.bind(null,e)):Bi(su.bind(null,e)),ai(function(){!(6&Al)&&Hi()}),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Jl=-1,Ql=0,6&Al)throw Error(o(327));var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=ht(e,e===Rl?Pl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var i=Al;Al|=2;var a=fu();for(Rl===e&&Pl===t||(Hl=null,Bl=Je()+500,du(e,t));;)try{vu();break}catch(t){hu(e,t)}Ao(),El.current=a,Al=i,null!==Tl?t=0:(Rl=null,Pl=0,t=Nl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=iu(e,i)),1===t)throw n=Ll,du(e,0),au(e,r),nu(e,Je()),n;if(6===t)au(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=mu(e,r),2===t&&(a=pt(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=Ll,du(e,0),au(e,r),nu(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_u(e,zl,Hl);break;case 3:if(au(e,r),(130023424&r)===r&&10<(t=jl+500-Je())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Zl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_u.bind(null,e,zl,Hl),t);break}_u(e,zl,Hl);break;case 4:if(au(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xl(r/1960))-r)){e.timeoutHandle=ri(_u.bind(null,e,zl,Hl),r);break}_u(e,zl,Hl);break;default:throw Error(o(329))}}}return nu(e,Je()),e.callbackNode===n?ru.bind(null,e):null}function iu(e,t){var n=Vl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=zl,zl=n,null!==t&&ou(t)),e}function ou(e){null===zl?zl=e:zl.push.apply(zl,e)}function au(e,t){for(t&=~Fl,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(6&Al)throw Error(o(327));wu();var t=ht(e,0);if(!(1&t))return nu(e,Je()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Ll,du(e,0),au(e,t),nu(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,zl,Hl),nu(e,Je()),null}function lu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Bl=Je()+500,zi&&Hi())}}function uu(e){null!==ql&&0===ql.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=kl.transition,r=bt;try{if(kl.transition=null,bt=1,e)return e()}finally{bt=r,kl.transition=n,!(6&(Al=t))&&Hi()}}function cu(){Ol=Il.current,Ci(Il)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ni();break;case 3:Jo(),Ci(Ti),Ci(Ri),ra();break;case 5:Zo(r);break;case 4:Jo();break;case 13:case 19:Ci(ea);break;case 10:Ro(r.type._context);break;case 22:case 23:cu()}n=n.return}if(Rl=e,Tl=e=Iu(e.current,null),Pl=Ol=t,Nl=0,Ll=null,Fl=Ml=Dl=0,zl=Vl=null,null!==Io){for(t=0;t<Io.length;t++)if(null!==(r=(n=Io[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Io=null}return e}function hu(e,t){for(;;){var n=Tl;try{if(Ao(),ia.current=Qa,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,ha=0,Cl.current=null,null===n||null===n.return){Nl=1,Ll=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Pl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&ms(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(a,c,t),pu();break e}u=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(us(u,l));break e}}a=u=us(u,l),4!==Nl&&(Nl=2),null===Vl?Vl=[a]:Vl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ul&&Ul.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}bu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function fu(){var e=El.current;return El.current=Qa,null===e?Qa:e}function pu(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||!(268435455&Dl)&&!(268435455&Ml)||au(Rl,Pl)}function mu(e,t){var n=Al;Al|=2;var r=fu();for(Rl===e&&Pl===t||(Hl=null,du(e,t));;)try{gu();break}catch(t){hu(e,t)}if(Ao(),Al=n,El.current=r,null!==Tl)throw Error(o(261));return Rl=null,Pl=0,Nl}function gu(){for(;null!==Tl;)yu(Tl)}function vu(){for(;null!==Tl&&!Ge();)yu(Tl)}function yu(e){var t=Sl(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?bu(e):Tl=t,Cl.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=qs(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Nl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Ol)))return void(Tl=n);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Nl&&(Nl=5)}function _u(e,t,n){var r=bt,i=kl.transition;try{kl.transition=null,bt=1,function(e,t,n,r){do{wu()}while(null!==ql);if(6&Al)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Rl&&(Tl=Rl=null,Pl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Kl||(Kl=!0,Ru(tt,function(){return wu(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=kl.transition,kl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,Cl.current=null,function(e,t){if(ei=Wt,fr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(l=s+i),h!==a||0!==r&&3!==h.nodeType||(u=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++c===i&&(l=s),f===a&&++d===r&&(u=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){xu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=el,el=!1}(e,n),ml(n,e),pr(ti),Wt=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Al=l,bt=s,kl.transition=a}else e.current=n;if(Kl&&(Kl=!1,ql=e,Yl=i),0===(a=e.pendingLanes)&&(Ul=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nu(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if($l)throw $l=!1,e=Wl,Wl=null,e;!!(1&Yl)&&0!==e.tag&&wu(),1&(a=e.pendingLanes)?e===Xl?Gl++:(Gl=0,Xl=e):Gl=0,Hi()}(e,t,n,r)}finally{kl.transition=i,bt=r}return null}function wu(){if(null!==ql){var e=_t(Yl),t=kl.transition,n=bt;try{if(kl.transition=null,bt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Yl=0,6&Al)throw Error(o(331));var i=Al;for(Al|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:tl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var f=(d=Js).sibling,p=d.return;if(il(d),d===c){Js=null;break}if(null!==f){f.return=p,Js=f;break}Js=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:tl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var _=(s=Js).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Js=_;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){xu(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Al=i,Hi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,kl.transition=t}}return!1}function Su(e,t,n){e=jo(e,t=fs(0,t=us(n,t),1),1),t=Zl(),null!==e&&(vt(e,1,t),nu(e,t))}function xu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ul||!Ul.has(r))){t=jo(t,e=ps(t,e=us(n,e),1),1),e=Zl(),null!==t&&(vt(t,1,e),nu(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zl(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Pl&n)===n&&(4===Nl||3===Nl&&(130023424&Pl)===Pl&&500>Je()-jl?du(e,0):Fl|=n),nu(e,t)}function Cu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=Zl();null!==(e=Do(e,t))&&(vt(e,t,n),nu(e,n))}function ku(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Au(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cu(e,n)}function Ru(e,t){return qe(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,t,n,r){return new Tu(e,t,n,r)}function Ou(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Ou(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Lu(n.children,i,a,t);case E:s=8,i|=8;break;case C:return(e=Pu(12,n,t,2|i)).elementType=C,e.lanes=a,e;case T:return(e=Pu(13,n,t,i)).elementType=T,e.lanes=a,e;case P:return(e=Pu(19,n,t,i)).elementType=P,e.lanes=a,e;case N:return Du(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case A:s=9;break e;case R:s=11;break e;case O:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Lu(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,i,o,a,s,l){return e=new Vu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Pu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fo(o),e}function ju(e){if(!e)return Ai;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Di(e,n,t)}return t}function Bu(e,t,n,r,i,o,a,s,l){return(e=zu(n,r,!0,e,0,o,0,s,l)).context=ju(null),n=e.current,(o=zo(r=Zl(),i=eu(n))).callback=null!=t?t:null,jo(n,o,i),e.current.lanes=i,vt(e,i,r),nu(e,r),e}function Hu(e,t,n,r){var i=t.current,o=Zl(),a=eu(i);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=zo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=jo(i,t,a))&&(tu(e,i,a,o),Bo(e,i,a)),a}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),po();break;case 5:Qo(t);break;case 1:Ii(t.type)&&Mi(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(xo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(ki(ea,1&ea.current),null!==(e=$s(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return $s(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,io&&1048576&t.flags&&Zi(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=Oi(t,Ri.current);Po(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Fo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),_s(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ou(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===O)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Vo(e,t),$o(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ps(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=So(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=$s(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return Qo(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Cs(e,t),_s(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Ms(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(xo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=$s(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=zo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),To(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),r=r(i=Oo(i)),t.flags|=1,_s(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Ss(e,t,r,i=ns(r.type,i),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Hs(e,t),t.tag=1,Ii(r)?(e=!0,Mi(t)):e=!1,Po(t,n),as(t,r,i),ls(t,r,i,n),Rs(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Es(e,t,n)}throw Error(o(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Qu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=$u(a);s.call(e)}}Hu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=$u(a);o.call(e)}}var a=Bu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),uu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=$u(l);s.call(e)}}var l=zu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[pi]=l.current,Hr(8===e.nodeType?e.parentNode:e),uu(function(){Hu(t,l,n,r)}),l}(n,t,e,i,r);return $u(a)}Yu.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hu(e,t,null,null)},Yu.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uu(function(){Hu(null,e,null,null)}),t[pi]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),nu(t,Je()),!(6&Al)&&(Bl=Je()+500,Hi()))}break;case 13:uu(function(){var t=Do(e,1);if(null!==t){var n=Zl();tu(t,e,1,n)}}),Uu(e,1)}},St=function(e){if(13===e.tag){var t=Do(e,134217728);null!==t&&tu(t,e,134217728,Zl()),Uu(e,134217728)}},xt=function(e){if(13===e.tag){var t=eu(e),n=Do(e,t);null!==n&&tu(n,e,t,Zl()),Uu(e,t)}},Et=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));q(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=lu,Te=uu;var Zu={usingClientEntryPoint:!1,Events:[bi,_i,wi,ke,Ae,lu]},ec={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{it=nc.inject(tc),ot=nc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(o(299));var n=!1,r="",i=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return uu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(o(200));return Qu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(o(200));return Qu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(o(40));return!!e._reactRootContainer&&(uu(function(){Qu(null,null,e,!1,function(){e._reactRootContainer=null,e[pi]=null})}),!0)},t.unstable_batchedUpdates=lu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Qu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338(e,t,n){"use strict";var r=n(961);t.H=r.createRoot,t.c=r.hydrateRoot},961(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},2869(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(8168),i=n(8587),o=n(6540),a=n(8997),s=n(9176),l=["animating","color","hidesWhenStopped","size","style"],u=e=>o.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),c=o.forwardRef((e,t)=>{var n=e.animating,a=void 0===n||n,c=e.color,f=void 0===c?"#1976D2":c,p=e.hidesWhenStopped,m=void 0===p||p,g=e.size,v=void 0===g?"small":g,y=e.style,b=(0,i.A)(e,l),_=o.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},u({stroke:f,opacity:.2}),u({stroke:f,strokeDasharray:80,strokeDashoffset:60}));return o.createElement(s.A,(0,r.A)({},b,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[d.container,y]}),o.createElement(s.A,{children:_,style:["number"==typeof v?{height:v,width:v}:h[v],d.animation,!a&&d.animationPause,!a&&m&&d.hidesWhenStopped]}))});c.displayName="ActivityIndicator";var d=a.A.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),h=a.A.create({small:{width:20,height:20},large:{width:36,height:36}});const f=c},9697(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(5725).A},3384(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(646),i=n.n(r),o=n(7162),a={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},s={},l=o.A;function u(){if(o.A){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var i=n.document.documentElement;e=i.clientHeight,t=i.clientWidth}a.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},a.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function c(){u(),Array.isArray(s.change)&&s.change.forEach(e=>e(a))}class d{static get(e){return l&&(l=!1,u()),i()(a[e],"No dimension set for key "+e),a[e]}static set(e){e&&(o.A?i()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(a.screen=e.screen),null!=e.window&&(a.window=e.window)))}static addEventListener(e,t){return s[e]=s[e]||[],s[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(s[e])&&(s[e]=s[e].filter(e=>e!==t))}}o.A&&(window.visualViewport?window.visualViewport.addEventListener("resize",c,!1):window.addEventListener("resize",c,!1))},728(e,t,n){"use strict";n.d(t,{A:()=>I});var r=n(2555),i=n(8168),o=n(8587),a=n(6540),s=n(3642),l=[];function u(e){return l[e-1]}var c=n(6927),d=/^data:/;class h{static has(e){var t=h._entries;return d.test(e)||Boolean(t[e])}static add(e){var t=h._entries,n=Date.now();t[e]?(t[e].lastUsedTimestamp=n,t[e].refCount+=1):t[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var t=h._entries;t[e]&&(t[e].refCount-=1),h._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,t,n=h._entries,r=Object.keys(n);r.length+1>h._maximumEntries&&(r.forEach(r=>{var i=n[r];(!t||i.lastUsedTimestamp<t.lastUsedTimestamp)&&0===i.refCount&&(e=r,t=i)}),e&&delete n[e])}}h._maximumEntries=256,h._entries={};var f=0,p={},m={abort(e){var t=p[""+e];t&&(t.onerror=null,t.onload=null,t=null,delete p[""+e])},getSize(e,t,n){var r=!1,i=setInterval(a,16),o=m.load(e,a,function(){"function"==typeof n&&n(),m.abort(o),clearInterval(i)});function a(){var e=p[""+o];if(e){var n=e.naturalHeight,a=e.naturalWidth;n&&a&&(t(a,n),r=!0)}r&&(m.abort(o),clearInterval(i))}},has:e=>h.has(e),load(e,t,n){f+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});"function"==typeof r.decode?r.decode().then(n,n):setTimeout(n,0)},r.src=e,p[""+f]=r,f},prefetch:e=>new Promise((t,n)=>{m.load(e,()=>{h.add(e),h.remove(e),t()},n)}),queryCache(e){var t={};return e.forEach(e=>{h.has(e)&&(t[e]="disk/memory")}),Promise.resolve(t)}};const g=m;var v=n(9518),y=n(8997),b=n(5243),_=n(9176),w=n(4078),S=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],x="LOADED",E="LOADING",C=0,k=/^(data:image\/svg\+xml;utf8,)(.*)/;function A(e){var t=null;if("number"==typeof e){var n=u(e);if(null==n)throw new Error('Image: asset with ID "'+e+'" could not be found. Please check the image source or packager.');var r=n.scales[0];if(n.scales.length>1){var i=v.A.get();r=n.scales.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e)}var o=1!==r?"@"+r+"x":"";t=n?n.httpServerLocation+"/"+n.name+o+"."+n.type:""}else"string"==typeof e?t=e:e&&"string"==typeof e.uri&&(t=e.uri);if(t){var a=t.match(k);if(a){var s=a[1],l=a[2];return""+s+encodeURIComponent(l)}}return t}var R=a.forwardRef((e,t)=>{var n=e["aria-label"],r=e.accessibilityLabel,l=e.blurRadius,d=e.defaultSource,h=e.draggable,f=e.onError,p=e.onLayout,m=e.onLoad,v=e.onLoadEnd,k=e.onLoadStart,R=e.pointerEvents,T=e.source,I=e.style,N=(0,o.A)(e,S),L=n||r,D=a.useState(()=>{var e=A(T);return null!=e&&g.has(e)?x:"IDLE"}),M=D[0],F=D[1],V=a.useState({}),z=V[0],j=V[1],B=a.useContext(b.A),H=a.useRef(null),$=a.useRef(C++),W=a.useRef(null),U=M===x||M===E&&null==d,K=function(e,t,n,r){var i=y.A.flatten(e),o=i.filter,a=i.resizeMode,s=i.shadowOffset,l=i.tintColor;i.resizeMode&&(0,w.m)("Image.style.resizeMode","Image: style.resizeMode is deprecated. Please use props.resizeMode."),i.tintColor&&(0,w.m)("Image.style.tintColor","Image: style.tintColor is deprecated. Please use props.tintColor.");var u=[],d=null;if(o&&u.push(o),t&&u.push("blur("+t+"px)"),s){var h=(0,c.l5)(i);h&&u.push("drop-shadow("+h+")")}return(r||l)&&null!=n&&u.push("url(#tint-"+n+")"),u.length>0&&(d=u.join(" ")),[a,d,l]}(I,l,$.current,e.tintColor),q=K[0],Y=K[1],G=K[2],X=e.resizeMode||q||"cover",J=e.tintColor||G,Q=U?T:d,Z=A(Q),ee=function(e){if("number"==typeof e){var t=u(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"==typeof e)return{height:e.height,width:e.width}}(Q),te=Z?'url("'+Z+'")':null,ne=function(){if(null!=H.current&&("center"===X||"repeat"===X)){var e=H.current,t=e.naturalHeight,n=e.naturalWidth,r=z.height,i=z.width;if(t&&n&&r&&i){var o=Math.min(1,i/n,r/t);return Math.ceil(o*n)+"px "+Math.ceil(o*t)+"px"}}}(),re=Z?(0,s.A)("img",{alt:L||"",style:P.accessibilityImage$raw,draggable:h||!1,ref:H,src:Z}):null,ie=A(T);return a.useEffect(()=>{function e(){null!=W.current&&(g.abort(W.current),W.current=null)}return e(),null!=ie&&(F(E),k&&k(),W.current=g.load(ie,function(e){F(x),m&&m(e),v&&v()},function(){F("ERRORED"),f&&f({nativeEvent:{error:"Failed to load resource "+ie}}),v&&v()})),e},[ie,W,F,f,m,v,k]),a.createElement(_.A,(0,i.A)({},N,{"aria-label":L,onLayout:function(e){if("center"===X||"repeat"===X||p){var t=e.nativeEvent.layout;p&&p(e),j(t)}},pointerEvents:R,ref:t,style:[P.root,B&&P.inline,ee,I,P.undo,{boxShadow:null}]}),a.createElement(_.A,{style:[P.image,O[X],{backgroundImage:te,filter:Y},null!=ne&&{backgroundSize:ne}],suppressHydrationWarning:!0}),re,function(e,t){return e&&null!=t?a.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},a.createElement("defs",null,a.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},a.createElement("feFlood",{floodColor:""+e,key:e}),a.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}(J,$.current))});R.displayName="Image";var T=R;T.getSize=function(e,t,n){g.getSize(e,t,n)},T.prefetch=function(e){return g.prefetch(e)},T.queryCache=function(e){return g.queryCache(e)};var P=y.A.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),O=y.A.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const I=T},7068(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3116);const i={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,r.A)()},removeAllListeners(){},removeListener(){}}},5470(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(8168),i=n(8587),o=n(6540),a=n(9176),s=["behavior","contentContainerStyle","keyboardVerticalOffset"];class l extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,i.A)(e,s));return o.createElement(a.A,(0,r.A)({onLayout:this.onLayout},t))}}const u=l},9518(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3384);class i{static get(){return r.A.get("window").scale}static getFontScale(){return r.A.get("window").fontScale||i.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*i.get())}static roundToNearestPixel(e){var t=i.get();return Math.round(e*t)/t}}},7862(e,t,n){"use strict";n.d(t,{A:()=>r});const r={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}}},4129(e,t,n){"use strict";n.d(t,{A:()=>te});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(7162),l=()=>{},u=function(){var e=!1;if(s.A)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function c(){return this.cancelBubble}function d(){return this.defaultPrevented}function h(e,t,n,r){var i=function(e){return null!=e&&(u?e:Boolean(e.capture))}(r),o=e=>{return n(((t=e).nativeEvent=t,t.persist=l,t.isDefaultPrevented=d,t.isPropagationStopped=c,t));var t};return e.addEventListener(t,o,i),function(){null!=e&&e.removeEventListener(t,o,i)}}var f,p,m="keyboard",g="keyboard",v=!1,y=new Set,b="keyboard",_="mouse",w="touch",S="contextmenu",x="mousedown",E="mousemove",C="mouseup",k="pointerdown",A="pointermove",R="scroll",T="selectionchange",P="touchcancel",O="touchmove",I="touchstart",N={passive:!0},L={capture:!0,passive:!0};function D(){null==f&&null==p||(null!=f&&(g=f,f=null),null!=p&&(m=p,p=null),F())}function M(e){var t=e.type;if("undefined"!=typeof window&&null!=window.PointerEvent){if(t===k)return void(m!==e.pointerType&&(g=e.pointerType,m=e.pointerType,F()));if(t===A)return void(g!==e.pointerType&&(g=e.pointerType,F()))}else{if(v||(t===x&&m!==_&&(g=_,m=_,F()),t===E&&g!==_&&(g=_,F())),t===I)return v=!0,e.touches&&e.touches.length>1&&(v=!1),void(m!==w&&(g=w,m=w,F()));t!==S&&t!==C&&t!==T&&t!==R&&t!==P&&t!==O||(v=!1)}}function F(){var e={activeModality:m,modality:g};y.forEach(t=>{t(e)})}s.A&&(h(window,"blur",function(){f=g,p=m,m=b,g=b,F(),v=!1},N),h(window,"focus",function(){D()},N),h(document,"keydown",function(e){e.metaKey||e.altKey||e.ctrlKey||g!==b&&(g=b,m=b,F())},L),h(document,"visibilitychange",function(){"hidden"!==document.visibilityState&&D()},L),h(document,k,M,L),h(document,A,M,L),h(document,S,M,L),h(document,x,M,L),h(document,E,M,L),h(document,C,M,L),h(document,P,M,L),h(document,O,M,L),h(document,I,M,L),h(document,T,M,L),h(document,R,M,L));var V=n(8425),z=n(9241);function j(e,t){var n=(0,z.A)(()=>new Map),r=(0,z.A)(()=>(r,i)=>{var o=n.get(r);null!=o&&o(),null==i&&(n.delete(r),i=()=>{});var a=h(r,e,i,t);return n.set(r,a),a});return(0,V.A)(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}var B={},H={passive:!0},$="react-gui:hover:lock",W="react-gui:hover:unlock";function U(e,t,n){var r=document.createEvent("CustomEvent"),i=n||B,o=i.bubbles,a=void 0===o||o,s=i.cancelable,l=void 0===s||s,u=i.detail;r.initCustomEvent(t,a,l,u),e.dispatchEvent(r)}function K(e){var t=e.pointerType;return null!=t?t:g}var q=n(6533),Y=n(8997),G=n(9176),X=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function J(e,t){var n=e.children,s=e.delayLongPress,l=e.delayPressIn,u=e.delayPressOut,c=e.disabled,d=e.onBlur,h=e.onContextMenu,f=e.onFocus,p=e.onHoverIn,m=e.onHoverOut,g=e.onKeyDown,v=e.onLongPress,y=e.onPress,b=e.onPressMove,_=e.onPressIn,w=e.onPressOut,S=e.style,x=e.tabIndex,E=e.testOnly_hovered,C=e.testOnly_pressed,k=(0,i.A)(e,X),A=Q(!0===E),R=A[0],T=A[1],P=Q(!1),O=P[0],I=P[1],N=Q(!0===C),L=N[0],D=N[1],M=(0,o.useRef)(null),F=(0,a.A)(t,M),z=(0,o.useMemo)(()=>({delayLongPress:s,delayPressStart:l,delayPressEnd:u,disabled:c,onLongPress:v,onPress:y,onPressChange:D,onPressStart:_,onPressMove:b,onPressEnd:w}),[s,l,u,c,v,y,_,b,w,D]),B=(0,q.A)(M,z),Y=B.onContextMenu,J=B.onKeyDown;!function(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,o=t.onHoverChange,a=t.onHoverUpdate,s=t.onHoverEnd,l=!("undefined"==typeof window||null==window.PointerEvent),u=j(l?"pointermove":"mousemove",H),c=j(l?"pointerenter":"mouseenter",H),d=j(l?"pointerleave":"mouseleave",H),h=j($,H),f=j(W,H);(0,V.A)(()=>{var t=e.current;if(null!==t){var l=function(e){null!=s&&s(e),null!=o&&o(!1),u(t,null),d(t,null)},p=function(t){var r=e.current;null!=r&&"touch"!==K(t)&&(n&&U(r,W),l(t))},m=function(e){"touch"!==K(e)&&null!=a&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),a(e))},g=function(e){null!=i&&i(e),null!=o&&o(!0),null!=a&&u(t,r?null:m),d(t,r?null:p)};c(t,r?null:function(t){var i=e.current;null!=i&&"touch"!==K(t)&&(n&&U(i,$),g(t),h(i,r?null:function(e){e.target!==i&&l(t)}),f(i,r?null:function(e){e.target!==i&&g(t)}))})}},[c,u,d,h,f,n,r,i,o,a,s,e])}(M,{contain:!0,disabled:c,onHoverChange:T,onHoverStart:p,onHoverEnd:m});var ee,te={hovered:R,focused:O,pressed:L},ne=o.useCallback(e=>{e.nativeEvent.target===M.current&&(I(!1),null!=d&&d(e))},[M,I,d]),re=o.useCallback(e=>{e.nativeEvent.target===M.current&&(I(!0),null!=f&&f(e))},[M,I,f]),ie=o.useCallback(e=>{null!=Y&&Y(e),null!=h&&h(e)},[h,Y]),oe=o.useCallback(e=>{null!=J&&J(e),null!=g&&g(e)},[g,J]);return ee=void 0!==x?x:c?-1:0,o.createElement(G.A,(0,r.A)({},k,B,{"aria-disabled":c,onBlur:ne,onContextMenu:ie,onFocus:re,onKeyDown:oe,ref:F,style:[c?Z.disabled:Z.active,"function"==typeof S?S(te):S],tabIndex:ee}),"function"==typeof n?n(te):n)}function Q(e){var t=(0,o.useState)(!1);return[t[0]||e,t[1]]}var Z=Y.A.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),ee=(0,o.memo)((0,o.forwardRef)(J));ee.displayName="Pressable";const te=ee},4951(e,t,n){"use strict";n.d(t,{A:()=>O});var r=n(2555),i=n(8168),o=n(8587),a=n(3384),s=n(3116),l=n(646),u=n.n(l),c=n(87),d=n(7862),h=n(6540),f=n(8997),p=n(9176),m=n(1804),g=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function v(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var y=h.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,a=e.onWheel,s=e.scrollEnabled,l=void 0===s||s,u=e.scrollEventThrottle,c=void 0===u?0:u,d=e.showsHorizontalScrollIndicator,f=e.showsVerticalScrollIndicator,y=e.style,_=(0,o.A)(e,g),w=h.useRef({isScrolling:!1,scrollLastTick:0}),S=h.useRef(null),x=h.useRef(null);function E(e){return t=>{l&&e&&e(t)}}function C(e){w.current.scrollLastTick=Date.now(),n&&n(v(e))}var k=!1===d||!1===f;return h.createElement(p.A,(0,i.A)({},_,{onScroll:function(e){var t,r,i;e.stopPropagation(),e.target===x.current&&(e.persist(),null!=S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{!function(e){w.current.isScrolling=!1,n&&n(v(e))}(e)},100),w.current.isScrolling?(t=w.current.scrollLastTick,r=c,i=Date.now()-t,r>0&&i>=r&&C(e)):function(e){w.current.isScrolling=!0,C(e)}(e))},onTouchMove:E(r),onWheel:E(a),ref:(0,m.A)(x,t),style:[y,!l&&b.scrollDisabled,k&&b.hideScrollbar]}))}),b=f.A.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});const _=y;var w=n(8865),S=n(8683),x=n(4594),E=n.n(x),C=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],k={};class A extends h.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=w.A.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),w.A.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;e=r.x,t=r.y,n=r.animated}var i=this.getScrollableNode(),o=e||0,a=t||0;null!=i&&("function"==typeof i.scroll?i.scroll({top:a,left:o,behavior:n?"smooth":"auto"}):(i.scrollLeft=o,i.scrollTop=a))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==d.A.OS&&u()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,S.A.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var i=a.A.get("window").height;this.keyboardWillOpenTo&&(i=this.keyboardWillOpenTo.endCoordinates.screenY);var o=t-i+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(o=Math.max(0,o)),this.scrollResponderScrollTo({x:0,y:o,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),i=n?r.scrollWidth:0,o=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:i,y:o,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&(0,s.A)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.A)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){E()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,a=e.onContentSizeChange,s=e.refreshControl,l=e.stickyHeaderIndices,c=e.pagingEnabled,d=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),f=(0,o.A)(e,C),m={};a&&(m={onLayout:this._handleContentOnLayout});var g=!n&&Array.isArray(l),v=g||c?h.Children.map(this.props.children,(e,t)=>{var n=g&&l.indexOf(t)>-1;return null!=e&&(n||c)?h.createElement(p.A,{style:[n&&T.stickyHeader,c&&T.pagingEnabledChild]},e):e}):this.props.children,y=h.createElement(p.A,(0,i.A)({},m,{children:v,collapsable:!1,ref:this._setInnerViewRef,style:[n&&T.contentContainerHorizontal,d&&T.contentContainerCenterContent,t]})),b=n?T.baseHorizontal:T.baseVertical,w=n?T.pagingEnabledHorizontal:T.pagingEnabledVertical,S=(0,r.A)((0,r.A)({},f),{},{style:[b,c&&w,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),x=_;u()(void 0!==x,"ScrollViewClass must not be undefined");var E=h.createElement(x,(0,i.A)({},S,{ref:this._setScrollNodeRef}),y);return s?h.cloneElement(s,{style:S.style},E):E}}var R={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},T=f.A.create({baseVertical:(0,r.A)((0,r.A)({},R),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,r.A)((0,r.A)({},R),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),P=h.forwardRef((e,t)=>h.createElement(A,(0,i.A)({},e,{forwardedRef:t})));P.displayName="ScrollView";const O=P},6610(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2901);const i=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&(e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("))(e))return e;var n=(0,r.A)(e);if(null!=n)return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+((n>>24&255)/255*t).toFixed(2)+")"}}},1747(e,t,n){"use strict";n.d(t,{A:()=>l});var r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"];Object.keys(r).forEach(e=>{i.forEach(t=>{r[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=r[e]})});const o=r;var a=n(6610),s={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function l(e,t){var n=e;return null!=t&&o[t]||"number"!=typeof e?null!=t&&s[t]&&(n=(0,a.A)(e)):n=e+"px",n}},3748(e,t,n){"use strict";n.d(t,{_:()=>p});var r=n(7162);function i(e,t,n){if(r.A){var i=null!=t?t:document,o=i.getElementById(e);if(null==o)if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),i instanceof ShadowRoot)i.insertBefore(o,i.firstChild);else{var a=i.head;a&&a.insertBefore(o,a.firstChild)}return o.sheet}return null}var o=Array.prototype.slice;function a(e){var t,n={},r={};function i(e,t,r){var i=l(n),o=i.indexOf(t)+1,a=i[o],s=null!=a&&null!=n[a].start?n[a].start:e.cssRules.length,u=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,s);if(u){null==n[t].start&&(n[t].start=s);for(var c=o;c<i.length;c+=1){var d=i[c],h=n[d].start||0;n[d].start=h+1}}return u}null!=e&&o.call(e.cssRules).forEach((e,i)=>{var o=e.cssText;if(o.indexOf("stylesheet-group")>-1)t=function(e){return Number(e.selectorText.split(s)[1])}(e),n[t]={start:i,rules:[o]};else{var a=c(o);null!=a&&(r[a]=!0,n[t].rules.push(o))}});var a={getTextContent:()=>l(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,o){var a=Number(o);if(null==n[a]){var s=function(e){return'[stylesheet-group="'+e+'"]{}'}(a);n[a]={start:null,rules:[s]},null!=e&&i(e,a,s)}var l=c(t);null!=l&&null==r[l]&&(r[l]=!0,n[a].rules.push(t),null!=e&&(i(e,a,t)||n[a].rules.pop()))}};return a}var s=/["']/g;function l(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var u=/\s*([,])\s*/g;function c(e){var t=e.split("{")[0].trim();return""!==t?t.replace(u,"$1"):null}var d=new WeakMap,h=[],f=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function p(e,t){var n;if(void 0===t&&(t="react-native-stylesheet"),r.A){var o=null!=e?e.getRootNode():document;if(0===h.length)n=a(i(t)),f.forEach(e=>{n.insert(e,0)}),d.set(o,h.length),h.push(n);else{var s=d.get(o);if(null==s){var l=h[0],u=null!=l?l.getTextContent():"";n=a(i(t,o,u)),d.set(o,h.length),h.push(n)}else n=h[s]}}else 0===h.length?(n=a(i(t)),f.forEach(e=>{n.insert(e,0)}),h.push(n)):n=h[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){h.forEach(n=>{n.insert(e,t)})}}}},8997(e,t,n){"use strict";n.d(t,{A:()=>me});var r=n(2555),i=n(8587),o=n(1747),a=n(7162),s={},l=!a.A||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),u='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',c={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]};const d=(e,t)=>{if(!e)return s;var n={},r=function(){var r=e[i];if(null==r)return"continue";if("backgroundClip"===i)"text"===r&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if("flex"===i)-1===r?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=r;else if("font"===i)n[i]=r.replace("System",u);else if("fontFamily"===i)if(r.indexOf("System")>-1){var a=r.split(/,\s*/);a[a.indexOf("System")]=u,n[i]=a.join(",")}else n[i]="monospace"===r?"monospace,monospace":r;else if("textDecorationLine"===i)l?n.textDecorationLine=r:n.textDecoration=r;else if("writingDirection"===i)n.direction=r;else{var s=(0,o.A)(e[i],i),d=c[i];t&&"inset"===i?(null==e.insetInline&&(n.left=s,n.right=s),null==e.insetBlock&&(n.top=s,n.bottom=s)):t&&"margin"===i?(null==e.marginInline&&(n.marginLeft=s,n.marginRight=s),null==e.marginBlock&&(n.marginTop=s,n.marginBottom=s)):t&&"padding"===i?(null==e.paddingInline&&(n.paddingLeft=s,n.paddingRight=s),null==e.paddingBlock&&(n.paddingTop=s,n.paddingBottom=s)):d?d.forEach((t,r)=>{null==e[t]&&(n[t]=s)}):n[i]=s}};for(var i in e)r();return n};var h=/[A-Z]/g,f=/^ms-/,p={};function m(e){return"-"+e.toLowerCase()}var g=n(6485),v=n(4217),y=n(1261),b=n(8041),_=n(7033),w=n(6852),S=n(20),x=n(9996),E=n(5129),C=n(508),k=["Webkit"],A=["Webkit","ms"];const R={plugins:[v.A,y.A,b.A,_.A,w.A,S.A,x.A,E.A,C.A],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:A,textEmphasis:A,textEmphasisStyle:A,textEmphasisColor:A,boxDecorationBreak:A,clipPath:k,maskImage:A,maskMode:A,maskRepeat:A,maskPosition:A,maskClip:A,maskOrigin:A,maskSize:A,maskComposite:A,mask:A,maskBorderSource:A,maskBorderMode:A,maskBorderSlice:A,maskBorderWidth:A,maskBorderOutset:A,maskBorderRepeat:A,maskBorder:A,maskType:A,textDecorationStyle:k,textDecorationSkip:k,textDecorationLine:k,textDecorationColor:k,filter:k,breakAfter:k,breakBefore:k,breakInside:k,columnCount:k,columnFill:k,columnGap:k,columnRule:k,columnRuleColor:k,columnRuleStyle:k,columnRuleWidth:k,columns:k,columnSpan:k,columnWidth:k,backdropFilter:k,hyphens:k,flowInto:k,flowFrom:k,regionFragment:k,textOrientation:k,tabSize:["Moz"],fontKerning:k,textSizeAdjust:k}},T=(0,g.A)(R);var P=["animationKeyframes"],O=new Map,I={},N={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},L="borderTopLeftRadius",D="borderTopRightRadius",M="borderBottomLeftRadius",F="borderBottomRightRadius",V="borderLeftColor",z="borderLeftStyle",j="borderLeftWidth",B="borderRightColor",H="borderRightStyle",$="borderRightWidth",W="right",U="marginLeft",K="marginRight",q="paddingLeft",Y="paddingRight",G="left",X={[L]:D,[D]:L,[M]:F,[F]:M,[V]:B,[z]:H,[j]:$,[B]:V,[H]:z,[$]:j,[G]:W,[U]:K,[K]:U,[q]:Y,[Y]:q,[W]:G},J={borderStartStartRadius:L,borderStartEndRadius:D,borderEndStartRadius:M,borderEndEndRadius:F,borderInlineStartColor:V,borderInlineStartStyle:z,borderInlineStartWidth:j,borderInlineEndColor:B,borderInlineEndStyle:H,borderInlineEndWidth:$,insetInlineEnd:W,insetInlineStart:G,marginInlineStart:U,marginInlineEnd:K,paddingInlineStart:q,paddingInlineEnd:Y},Q=["clear","float","textAlign"];function Z(e){var t=T(d(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=function(e){if(e in p)return p[e];var t=e.replace(h,m);return p[e]=f.test(t)?"-"+t:t}(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function ee(e,t,n){return e+"-"+function(e){for(var t,n=e.length,r=1^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}(t+n).toString(36)}function te(e){if("number"==typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r=function(e){var t=ee("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map(t=>""+t+Z(e[t])).join("")+"}",r=["-webkit-",""].map(e=>"@"+e+"keyframes "+t+n);return[t,r]}(e),i=r[0],o=r[1];t.push(i),n.push(...o)}}),[t,n]}var ne=n(3748),re=n(4336),ie=n(6927),oe=n(3176),ae=["writingDirection"],se=new WeakMap,le=(0,ne._)(),ue={shadow:!0,textShadow:!0};function ce(e){e.forEach(e=>{var t=e[0],n=e[1];null!=le&&t.forEach(e=>{le.insert(e,n)})})}var de={position:"absolute",left:0,right:0,top:0,bottom:0},he=fe({x:(0,r.A)({},de)}).x;function fe(e){return Object.keys(e).forEach(t=>{var n,a,s,l,u=e[t];null!=u&&!0!==u.$$css&&(t.indexOf("$raw")>-1?n=function(e,t){var n=function(e,t){var n,o={$$css:!0},a=[],s=e.animationKeyframes,l=(0,i.A)(e,P),u=ee("css",t,JSON.stringify(e)),c="."+u;if(null!=s){var d=te(s),h=d[0],f=d[1];n=h.join(","),a.push(...f)}var p=Z((0,r.A)((0,r.A)({},l),{},{animationName:n}));return a.push(""+c+p),o[u]=u,[o,[[a,1]]]}(e,t),o=n[0];return ce(n[1]),o}(u,t.split("$raw")[0]):(a=u,s=function(e){var t={$$css:!0},n=[];function r(e,t,r){var i,a=function(e,t){var n=(0,o.A)(e,t);return"string"!=typeof n?JSON.stringify(n||""):n}(r,t),s=t+a,l=O.get(s);if(null!=l)i=l[0],n.push(l[1]);else{i=ee("r",e,e!==t?s:a);var u=N[e]||3,c=function(e,t,n){var r=[],i="."+e;switch(t){case"animationKeyframes":var o=te(n),a=o[0],s=o[1],l=Z({animationName:a.join(",")});r.push(""+i+l,...s);break;case"placeholderTextColor":var u=Z({color:n,opacity:1});r.push(i+"::-webkit-input-placeholder"+u,i+"::-moz-placeholder"+u,i+":-ms-input-placeholder"+u,i+"::placeholder"+u);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=Z({pointerEvents:"none"});r.push(i+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var h=Z({pointerEvents:"auto"});r.push(i+">*"+h)}var f=Z({pointerEvents:c});r.push(""+i+f);break;case"scrollbarWidth":"none"===n&&r.push(i+"::-webkit-scrollbar{display:none}");var p=Z({scrollbarWidth:n});r.push(""+i+p);break;default:var m=Z({[t]:n});r.push(""+i+m)}return r}(i,t,r),d=[c,u];n.push(d),O.set(s,[i,d])}return i}return Object.keys(e).sort().forEach(n=>{var i=e[n];if(null!=i){var o;if(Q.indexOf(n)>-1){var a=r(n,n,"left"),s=r(n,n,"right");"start"===i?o=[a,s]:"end"===i&&(o=[s,a])}var l=J[n];if(null!=l){var u=r(n,l,i),c=r(n,X[l],i);o=[u,c]}if("transitionProperty"===n){for(var d=Array.isArray(i)?i:[i],h=[],f=0;f<d.length;f++){var p=d[f];"string"==typeof p&&null!=J[p]&&h.push(f)}if(h.length>0){var m=[...d],g=[...d];h.forEach(e=>{var t=m[e];if("string"==typeof t){var i=J[t],a=X[i];m[e]=i,g[e]=a;var s=r(n,n,m),l=r(n,n,g);o=[s,l]}})}}null==o?o=r(n,n,i):t.$$css$localize=!0,t[n]=o}}),[t,n]}((0,ie.vk)(a,ue)),l=s[0],ce(s[1]),n=l),se.set(u,n))}),e}function pe(e,t){void 0===t&&(t={});var n="rtl"===t.writingDirection,o=function(e,t){void 0===t&&(t={});var n=t,o=n.writingDirection,a=(0,i.A)(n,ae),s="rtl"===o;return oe.P.factory({transform(e){var t=se.get(e);return null!=t?(0,re.n)(t,s):(0,ie.vk)(e,(0,r.A)((0,r.A)({},ue),a))}})(e)}(e,t);return Array.isArray(o)&&null!=o[1]&&(o[1]=function(e,t){var n=e||I,r={},i={},o=function(){var e=n[a],o=a,s=e;if(!Object.prototype.hasOwnProperty.call(n,a)||null==e)return"continue";Q.indexOf(a)>-1&&("start"===e?s=t?"right":"left":"end"===e&&(s=t?"left":"right"));var l=J[a];if(null!=l&&(o=t?X[l]:l),"transitionProperty"===a){var u=Array.isArray(e)?e:[e];u.forEach((e,n)=>{if("string"==typeof e){var r=J[e];null!=r&&(u[n]=t?X[r]:r,s=u.join(" "))}})}r[o]||(i[o]=s),o===a&&(r[o]=!0)};for(var a in n)o();return d(i,!0)}(o[1],n)),o}pe.absoluteFill=he,pe.absoluteFillObject=de,pe.create=fe,pe.compose=function(e,t){return[e,t]},pe.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.flat(1/0),i={},o=0;o<r.length;o++){var a=r[o];null!=a&&"object"==typeof a&&Object.assign(i,a)}return i},pe.getSheet=function(){return{id:le.id,textContent:le.getTextContent()}},pe.hairlineWidth=1,a.A&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=pe.flatten);const me=pe},6927(e,t,n){"use strict";n.d(t,{l5:()=>l,vk:()=>f});var r=n(6610),i=n(1747),o=n(4078),a={},s={height:0,width:0},l=e=>{var t=e.shadowColor,n=e.shadowOffset,o=e.shadowOpacity,a=e.shadowRadius,l=n||s,u=l.height,c=l.width,d=(0,i.A)(c),h=(0,i.A)(u),f=(0,i.A)(a||0),p=(0,r.A)(t||"black",o);if(null!=p&&null!=d&&null!=h&&null!=f)return d+" "+h+" "+f+" "+p},u=e=>{var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+(0,i.A)(n,t)+")"},c=e=>e.map(u).join(" "),d={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},h={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},f=function(e,t){void 0===t&&(t={});var n=e||a,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,o.m)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var u=l(n);if(null!=u&&null==r.boxShadow){var f=n.boxShadow,p=f?f+", "+u:u;r.boxShadow=p}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,o.m)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var m=(e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||s,a=o.height,l=o.width,u=r||0,c=(0,i.A)(l),d=(0,i.A)(a),h=(0,i.A)(u),f=(0,i.A)(t,"textShadowColor");if(f&&(0!==a||0!==l||0!==u)&&null!=c&&null!=d&&null!=h)return c+" "+d+" "+h+" "+f})(n);if(null!=m&&null==r.textShadow){var g=n.textShadow,v=g?g+", "+m:m;r.textShadow=v}}for(var y in n)if(null==h[y]&&"shadowColor"!==y&&"shadowOffset"!==y&&"shadowOpacity"!==y&&"shadowRadius"!==y&&"textShadowColor"!==y&&"textShadowOffset"!==y&&"textShadowRadius"!==y){var b=n[y],_=d[y]||y,w=b;!Object.prototype.hasOwnProperty.call(n,y)||_!==y&&null!=n[_]||("aspectRatio"===_&&"number"==typeof w?r[_]=w.toString():"fontVariant"===_?(Array.isArray(w)&&w.length>0&&(w=w.join(" ")),r[_]=w):"textAlignVertical"===_?null==n.verticalAlign&&(r.verticalAlign="center"===w?"middle":w):"transform"===_?(Array.isArray(w)&&(w=c(w)),r.transform=w):r[_]=w)}return r}},5243(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(6540).createContext)(!1)},8506(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(2555),i=n(8587),o=n(6540),a=n(3642),s=n(8697),l=n(254),u=n(2008),c=n(1804),d=n(6177),h=n(3098),f=n(8997),p=n(5243),m=n(1420),g=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],v=Object.assign({},s.Gs,s.Fh,s.DY,s.l3,s.Aw,s.k2,s.CD,s.eO,{href:!0,lang:!0,pointerEvents:!0}),y=o.forwardRef((e,t)=>{var n=e.hrefAttrs,r=e.numberOfLines,s=e.onClick,f=e.onLayout,y=e.onPress,b=e.onMoveShouldSetResponder,w=e.onMoveShouldSetResponderCapture,S=e.onResponderEnd,x=e.onResponderGrant,E=e.onResponderMove,C=e.onResponderReject,k=e.onResponderRelease,A=e.onResponderStart,R=e.onResponderTerminate,T=e.onResponderTerminationRequest,P=e.onScrollShouldSetResponder,O=e.onScrollShouldSetResponderCapture,I=e.onSelectionChangeShouldSetResponder,N=e.onSelectionChangeShouldSetResponderCapture,L=e.onStartShouldSetResponder,D=e.onStartShouldSetResponderCapture,M=e.selectable,F=(0,i.A)(e,g),V=o.useContext(p.A),z=o.useRef(null),j=(0,m.PZ)().direction;(0,u.A)(z,f),(0,h.A)(z,{onMoveShouldSetResponder:b,onMoveShouldSetResponderCapture:w,onResponderEnd:S,onResponderGrant:x,onResponderMove:E,onResponderReject:C,onResponderRelease:k,onResponderStart:A,onResponderTerminate:R,onResponderTerminationRequest:T,onScrollShouldSetResponder:P,onScrollShouldSetResponderCapture:O,onSelectionChangeShouldSetResponder:I,onSelectionChangeShouldSetResponderCapture:N,onStartShouldSetResponder:L,onStartShouldSetResponderCapture:D});var B=o.useCallback(e=>{null!=s?s(e):null!=y&&(e.stopPropagation(),y(e))},[s,y]),H=V?"span":"div",$=null!=e.lang?(0,m.il)(e.lang):null,W=e.dir||$,U=W||j,K=(e=>(0,l.A)(e,v))(F);if(K.dir=W,V||(K.dir=null!=W?W:"auto"),(s||y)&&(K.onClick=B),K.style=[null!=r&&r>1&&{WebkitLineClamp:r},!0===V?_.textHasAncestor$raw:_.text$raw,1===r&&_.textOneLine,null!=r&&r>1&&_.textMultiLine,e.style,!0===M&&_.selectable,!1===M&&_.notSelectable,y&&_.pressable],null!=e.href&&(H="a",null!=n)){var q=n.download,Y=n.rel,G=n.target;null!=q&&(K.download=q),null!=Y&&(K.rel=Y),"string"==typeof G&&(K.target="_"!==G.charAt(0)?"_"+G:G)}var X=(0,d.A)(K),J=(0,c.A)(z,X,t);K.ref=J;var Q=(0,a.A)(H,K,{writingDirection:U});return V?Q:o.createElement(p.A.Provider,{value:!0},Q)});y.displayName="Text";var b={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},_=f.A.create({text$raw:b,textHasAncestor$raw:(0,r.A)((0,r.A)({},b),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const w=y},6413(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(6533),l=n(8997),u=n(9176),c=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function d(e,t){var n=e.activeOpacity,l=e.delayPressIn,d=e.delayPressOut,f=e.delayLongPress,p=e.disabled,m=e.focusable,g=e.onLongPress,v=e.onPress,y=e.onPressIn,b=e.onPressOut,_=e.rejectResponderTermination,w=e.style,S=(0,i.A)(e,c),x=(0,o.useRef)(null),E=(0,a.A)(t,x),C=(0,o.useState)("0s"),k=C[0],A=C[1],R=(0,o.useState)(null),T=R[0],P=R[1],O=(0,o.useCallback)((e,t)=>{P(e),A(t?t/1e3+"s":"0s")},[P,A]),I=(0,o.useCallback)(e=>{O(null!=n?n:.2,e)},[n,O]),N=(0,o.useCallback)(e=>{O(null,e)},[O]),L=(0,o.useMemo)(()=>({cancelable:!_,disabled:p,delayLongPress:f,delayPressStart:l,delayPressEnd:d,onLongPress:g,onPress:v,onPressStart(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;I(t?0:150),null!=y&&y(e)},onPressEnd(e){N(250),null!=b&&b(e)}}),[f,l,d,p,g,v,y,b,_,I,N]),D=(0,s.A)(x,L);return o.createElement(u.A,(0,r.A)({},S,D,{accessibilityDisabled:p,focusable:!p&&!1!==m,pointerEvents:p?"box-none":void 0,ref:E,style:[h.root,!p&&h.actionable,w,null!=T&&{opacity:T},{transitionDuration:k}]}))}var h=l.A.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),f=o.memo(o.forwardRef(d));f.displayName="TouchableOpacity";const p=f},8683(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(1968),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=["ms","Moz","O","Webkit"];Object.keys(i).forEach(e=>{o.forEach(t=>{i[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=i[e]})});const a=i,s=function(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||a.hasOwnProperty(e)&&a[e]?(""+t).trim():t+"px"},l=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--"),o=s(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}};var u=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:i-=window.scrollY,left:r-=window.scrollX}},c=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=u(r),i=u(e),o=i.height,a=i.left,s=i.top,l=i.width,c=a-t.left,d=s-t.top;n(c,d,l,o,a,s)}},0)},d={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};const h={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==d[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){c(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=(0,r.A)(e),i=n.height,o=n.left,a=n.top,s=n.width;t(o,a,s,i)},0)},measureLayout(e,t,n,r){c(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":l(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},9176(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(8587),i=n(6540),o=n(3642),a=n(8697),s=n(254),l=n(2008),u=n(1804),c=n(6177),d=n(3098),h=n(8997),f=n(5243),p=n(1420),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],g=Object.assign({},a.Gs,a.Fh,a.DY,a.l3,a.Aw,a.k2,a.CD,a.eO,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),v=i.forwardRef((e,t)=>{var n=e.hrefAttrs,a=e.onLayout,h=e.onMoveShouldSetResponder,v=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,_=e.onResponderGrant,w=e.onResponderMove,S=e.onResponderReject,x=e.onResponderRelease,E=e.onResponderStart,C=e.onResponderTerminate,k=e.onResponderTerminationRequest,A=e.onScrollShouldSetResponder,R=e.onScrollShouldSetResponderCapture,T=e.onSelectionChangeShouldSetResponder,P=e.onSelectionChangeShouldSetResponderCapture,O=e.onStartShouldSetResponder,I=e.onStartShouldSetResponderCapture,N=(0,r.A)(e,m),L=i.useContext(f.A),D=i.useRef(null),M=(0,p.PZ)().direction;(0,l.A)(D,a),(0,d.A)(D,{onMoveShouldSetResponder:h,onMoveShouldSetResponderCapture:v,onResponderEnd:b,onResponderGrant:_,onResponderMove:w,onResponderReject:S,onResponderRelease:x,onResponderStart:E,onResponderTerminate:C,onResponderTerminationRequest:k,onScrollShouldSetResponder:A,onScrollShouldSetResponderCapture:R,onSelectionChangeShouldSetResponder:T,onSelectionChangeShouldSetResponderCapture:P,onStartShouldSetResponder:O,onStartShouldSetResponderCapture:I});var F="div",V=null!=e.lang?(0,p.il)(e.lang):null,z=e.dir||V,j=z||M,B=(e=>(0,s.A)(e,g))(N);if(B.dir=z,B.style=[y.view$raw,L&&y.inline,e.style],null!=e.href&&(F="a",null!=n)){var H=n.download,$=n.rel,W=n.target;null!=H&&(B.download=H),null!=$&&(B.rel=$),"string"==typeof W&&(B.target="_"!==W.charAt(0)?"_"+W:W)}var U=(0,c.A)(B),K=(0,u.A)(D,U,t);return B.ref=K,(0,o.A)(F,B,{writingDirection:j})});v.displayName="View";var y=h.A.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});const b=v},3642(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(8285),i=n(2555),o=n(8587),a=n(8997),s=n(4078),l=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],u={},c=Object.prototype.hasOwnProperty,d=Array.isArray,h=/[A-Z]/g;function f(e){return"-"+e.toLowerCase()}function p(e){return e.replace(h,f)}function m(e){return d(e)?e.join(" "):e}var g=a.A.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});var v=n(6540),y=n(1420);const b=(e,t,n)=>{var d;e&&e.constructor===String&&(d=r.A.propsToAccessibilityComponent(t));var h=d||e,f=((e,t,n)=>{t||(t=u);var d=t,h=d["aria-activedescendant"],f=d.accessibilityActiveDescendant,v=d["aria-atomic"],y=d.accessibilityAtomic,b=d["aria-autocomplete"],_=d.accessibilityAutoComplete,w=d["aria-busy"],S=d.accessibilityBusy,x=d["aria-checked"],E=d.accessibilityChecked,C=d["aria-colcount"],k=d.accessibilityColumnCount,A=d["aria-colindex"],R=d.accessibilityColumnIndex,T=d["aria-colspan"],P=d.accessibilityColumnSpan,O=d["aria-controls"],I=d.accessibilityControls,N=d["aria-current"],L=d.accessibilityCurrent,D=d["aria-describedby"],M=d.accessibilityDescribedBy,F=d["aria-details"],V=d.accessibilityDetails,z=d["aria-disabled"],j=d.accessibilityDisabled,B=d["aria-errormessage"],H=d.accessibilityErrorMessage,$=d["aria-expanded"],W=d.accessibilityExpanded,U=d["aria-flowto"],K=d.accessibilityFlowTo,q=d["aria-haspopup"],Y=d.accessibilityHasPopup,G=d["aria-hidden"],X=d.accessibilityHidden,J=d["aria-invalid"],Q=d.accessibilityInvalid,Z=d["aria-keyshortcuts"],ee=d.accessibilityKeyShortcuts,te=d["aria-label"],ne=d.accessibilityLabel,re=d["aria-labelledby"],ie=d.accessibilityLabelledBy,oe=d["aria-level"],ae=d.accessibilityLevel,se=d["aria-live"],le=d.accessibilityLiveRegion,ue=d["aria-modal"],ce=d.accessibilityModal,de=d["aria-multiline"],he=d.accessibilityMultiline,fe=d["aria-multiselectable"],pe=d.accessibilityMultiSelectable,me=d["aria-orientation"],ge=d.accessibilityOrientation,ve=d["aria-owns"],ye=d.accessibilityOwns,be=d["aria-placeholder"],_e=d.accessibilityPlaceholder,we=d["aria-posinset"],Se=d.accessibilityPosInSet,xe=d["aria-pressed"],Ee=d.accessibilityPressed,Ce=d["aria-readonly"],ke=d.accessibilityReadOnly,Ae=d["aria-required"],Re=d.accessibilityRequired,Te=(d.role,d.accessibilityRole,d["aria-roledescription"]),Pe=d.accessibilityRoleDescription,Oe=d["aria-rowcount"],Ie=d.accessibilityRowCount,Ne=d["aria-rowindex"],Le=d.accessibilityRowIndex,De=d["aria-rowspan"],Me=d.accessibilityRowSpan,Fe=d["aria-selected"],Ve=d.accessibilitySelected,ze=d["aria-setsize"],je=d.accessibilitySetSize,Be=d["aria-sort"],He=d.accessibilitySort,$e=d["aria-valuemax"],We=d.accessibilityValueMax,Ue=d["aria-valuemin"],Ke=d.accessibilityValueMin,qe=d["aria-valuenow"],Ye=d.accessibilityValueNow,Ge=d["aria-valuetext"],Xe=d.accessibilityValueText,Je=d.dataSet,Qe=d.focusable,Ze=d.id,et=d.nativeID,tt=d.pointerEvents,nt=d.style,rt=d.tabIndex,it=d.testID,ot=(0,o.A)(d,l),at=z||j,st=r.A.propsToAriaRole(t),lt=null!=h?h:f;null!=lt&&(ot["aria-activedescendant"]=lt);var ut=null!=v?h:y;null!=ut&&(ot["aria-atomic"]=ut);var ct=null!=b?b:_;null!=ct&&(ot["aria-autocomplete"]=ct);var dt=null!=w?w:S;null!=dt&&(ot["aria-busy"]=dt);var ht=null!=x?x:E;null!=ht&&(ot["aria-checked"]=ht);var ft=null!=C?C:k;null!=ft&&(ot["aria-colcount"]=ft);var pt=null!=A?A:R;null!=pt&&(ot["aria-colindex"]=pt);var mt=null!=T?T:P;null!=mt&&(ot["aria-colspan"]=mt);var gt=null!=O?O:I;null!=gt&&(ot["aria-controls"]=m(gt));var vt=null!=N?N:L;null!=vt&&(ot["aria-current"]=vt);var yt=null!=D?D:M;null!=yt&&(ot["aria-describedby"]=m(yt));var bt=null!=F?F:V;null!=bt&&(ot["aria-details"]=bt),!0===at&&(ot["aria-disabled"]=!0,"button"!==e&&"form"!==e&&"input"!==e&&"select"!==e&&"textarea"!==e||(ot.disabled=!0));var _t=null!=B?B:H;null!=_t&&(ot["aria-errormessage"]=_t);var wt=null!=$?$:W;null!=wt&&(ot["aria-expanded"]=wt);var St=null!=U?U:K;null!=St&&(ot["aria-flowto"]=m(St));var xt=null!=q?q:Y;null!=xt&&(ot["aria-haspopup"]=xt);var Et=null!=G?G:X;!0===Et&&(ot["aria-hidden"]=Et);var Ct=null!=J?J:Q;null!=Ct&&(ot["aria-invalid"]=Ct);var kt=null!=Z?Z:ee;null!=kt&&(ot["aria-keyshortcuts"]=m(kt));var At=null!=te?te:ne;null!=At&&(ot["aria-label"]=At);var Rt=null!=re?re:ie;null!=Rt&&(ot["aria-labelledby"]=m(Rt));var Tt=null!=oe?oe:ae;null!=Tt&&(ot["aria-level"]=Tt);var Pt=null!=se?se:le;null!=Pt&&(ot["aria-live"]="none"===Pt?"off":Pt);var Ot=null!=ue?ue:ce;null!=Ot&&(ot["aria-modal"]=Ot);var It=null!=de?de:he;null!=It&&(ot["aria-multiline"]=It);var Nt=null!=fe?fe:pe;null!=Nt&&(ot["aria-multiselectable"]=Nt);var Lt=null!=me?me:ge;null!=Lt&&(ot["aria-orientation"]=Lt);var Dt=null!=ve?ve:ye;null!=Dt&&(ot["aria-owns"]=m(Dt));var Mt=null!=be?be:_e;null!=Mt&&(ot["aria-placeholder"]=Mt);var Ft=null!=we?we:Se;null!=Ft&&(ot["aria-posinset"]=Ft);var Vt=null!=xe?xe:Ee;null!=Vt&&(ot["aria-pressed"]=Vt);var zt=null!=Ce?Ce:ke;null!=zt&&(ot["aria-readonly"]=zt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.readOnly=!0));var jt=null!=Ae?Ae:Re;null!=jt&&(ot["aria-required"]=jt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.required=Re)),null!=st&&(ot.role="none"===st?"presentation":st);var Bt=null!=Te?Te:Pe;null!=Bt&&(ot["aria-roledescription"]=Bt);var Ht=null!=Oe?Oe:Ie;null!=Ht&&(ot["aria-rowcount"]=Ht);var $t=null!=Ne?Ne:Le;null!=$t&&(ot["aria-rowindex"]=$t);var Wt=null!=De?De:Me;null!=Wt&&(ot["aria-rowspan"]=Wt);var Ut=null!=Fe?Fe:Ve;null!=Ut&&(ot["aria-selected"]=Ut);var Kt=null!=ze?ze:je;null!=Kt&&(ot["aria-setsize"]=Kt);var qt=null!=Be?Be:He;null!=qt&&(ot["aria-sort"]=qt);var Yt=null!=$e?$e:We;null!=Yt&&(ot["aria-valuemax"]=Yt);var Gt=null!=Ue?Ue:Ke;null!=Gt&&(ot["aria-valuemin"]=Gt);var Xt=null!=qe?qe:Ye;null!=Xt&&(ot["aria-valuenow"]=Xt);var Jt=null!=Ge?Ge:Xe;if(null!=Jt&&(ot["aria-valuetext"]=Jt),null!=Je)for(var Qt in Je)if(c.call(Je,Qt)){var Zt=p(Qt),en=Je[Qt];null!=en&&(ot["data-"+Zt]=en)}0===rt||"0"===rt||-1===rt||"-1"===rt?ot.tabIndex=rt:(!1===Qe&&(ot.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?!1!==Qe&&!0!==j||(ot.tabIndex="-1"):"button"===st||"checkbox"===st||"link"===st||"radio"===st||"textbox"===st||"switch"===st?!1!==Qe&&(ot.tabIndex="0"):!0===Qe&&(ot.tabIndex="0")),null!=tt&&(0,s.m)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var tn=(0,a.A)([nt,tt&&g[tt]],(0,i.A)({writingDirection:"ltr"},n)),nn=tn[0],rn=tn[1];nn&&(ot.className=nn),rn&&(ot.style=rn);var on=null!=Ze?Ze:et;return null!=on&&(ot.id=on),null!=it&&(ot["data-testid"]=it),null==ot.type&&"button"===e&&(ot.type="button"),ot})(h,t,n),b=v.createElement(h,f);return f.dir?v.createElement(y.YO,{children:b,direction:f.dir,locale:f.lang}):b}},2901(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(1515),i=n.n(r);const o=e=>{if(null==e)return e;var t=i()(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0}},6864(e,t,n){"use strict";n.r(t),n.d(t,{AccessibilityInfo:()=>w,ActivityIndicator:()=>$r.A,Alert:()=>S,Animated:()=>qn,AppRegistry:()=>or,AppState:()=>hr,Appearance:()=>Xn,BackHandler:()=>pr,Button:()=>qr,CheckBox:()=>Jr,Clipboard:()=>gr,DeviceEventEmitter:()=>va.A,Dimensions:()=>vr.A,Easing:()=>Cn,FlatList:()=>Fe,I18nManager:()=>yr,Image:()=>Mt.A,ImageBackground:()=>ti,InteractionManager:()=>Z,Keyboard:()=>br.A,KeyboardAvoidingView:()=>ni.A,LayoutAnimation:()=>xr,Linking:()=>Cr,LogBox:()=>ga,Modal:()=>Ai,NativeEventEmitter:()=>kr,NativeModules:()=>m,PanResponder:()=>Vr,Picker:()=>Ni,PixelRatio:()=>zr.A,Platform:()=>E.A,Pressable:()=>Li.A,ProgressBar:()=>Vi,RefreshControl:()=>M,SafeAreaView:()=>$i,ScrollView:()=>F.A,SectionList:()=>Ut,Share:()=>jr,StatusBar:()=>Ki,StyleSheet:()=>T.A,Switch:()=>ro,Text:()=>qt.A,TextInput:()=>go,Touchable:()=>Xo,TouchableHighlight:()=>ia,TouchableNativeFeedback:()=>la,TouchableOpacity:()=>Wr.A,TouchableWithoutFeedback:()=>ha,UIManager:()=>p.A,Vibration:()=>Hr,View:()=>R.A,VirtualizedList:()=>fa,YellowBox:()=>ma,findNodeHandle:()=>o,processColor:()=>a.A,render:()=>f,unmountComponentAtNode:()=>l,unstable_createElement:()=>r.A,useColorScheme:()=>ya,useLocaleContext:()=>ba,useWindowDimensions:()=>_a});var r=n(3642),i=n(961);const o=e=>{var t;try{t=(0,i.findDOMNode)(e)}catch(e){}return t};var a=n(2901),s=n(5338);const l=i.unmountComponentAtNode;var u=n(3748);function c(e,t){return(0,u._)(t),(0,s.c)(t,e)}function d(e,t){(0,u._)(t);var n=(0,s.H)(t);return n.render(e),n}function h(e,t,n){return(0,u._)(t),(0,i.hydrate)(e,t,n),{unmount:function(){return l(t)}}}function f(e,t,n){return(0,u._)(t),(0,i.render)(e,t,n),{unmount:function(){return l(t)}}}var p=n(8683);const m={UIManager:p.A};var g=n(7162);function v(){return new Promise((e,t)=>{e(!0)})}var y=g.A&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null,b={},_={isScreenReaderEnabled:v,isReduceMotionEnabled:function(){return new Promise((e,t)=>{e(!y||y.matches)})},fetch:v,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!y)return;var n=e=>{t(e.matches)};r=n,null!=y&&(null!=y.addEventListener?y.addEventListener("change",r):y.addListener(r)),b[t]=n}var r;return{remove:()=>_.removeEventListener(e,t)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=b[t];if(!n||!y)return;r=n,null!=y&&(null!=y.removeEventListener?y.removeEventListener("change",r):y.removeListener(r))}var r}};const w=_,S=class{static alert(){}};var x=n(2555),E=n(7862),C=n(8168),k=n(6540),A=n(8587),R=n(9176),T=n(8997);const P=function e(t,n,r){if(void 0===r&&(r=-1),0===r)return!0;if(t===n)return!1;if("function"==typeof t&&"function"==typeof n)return!1;if("object"!=typeof t||null===t)return t!==n;if("object"!=typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(n.length!==i)return!0;for(var o=0;o<i;o++)if(e(t[o],n[o],r-1))return!0}else{for(var a in t)if(e(t[a],n[a],r-1))return!0;for(var s in n)if(void 0===t[s]&&void 0!==n[s])return!0}return!1};var O=n(646),I=n.n(O);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var D=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];const M=function(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var t=(0,A.A)(e,D);return k.createElement(R.A,t)};var F=n(4951);var V=n(1603),z=g.A&&void 0!==window.requestIdleCallback,j=z?window.requestIdleCallback:function(e,t){return setTimeout(()=>{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};z&&window.cancelIdleCallback;const B=j;var H=new V.A,$={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise(n=>{J(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),q.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{q.cancelTasks(t)}}},createInteractionHandle(){J();var e=++G;return U.add(e),e},clearInteractionHandle(e){I()(!!e,"Must provide a handle to clear."),J(),U.delete(e),K.add(e)},addListener:H.addListener.bind(H),setDeadline(e){X=e}},W=new Set,U=new Set,K=new Set,q=new class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>(0,x.A)((0,x.A)({},t),{},{tasks:t.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(I()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,n=this._queueStack[t];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}({onMoreTasks:J}),Y=0,G=0,X=-1;function J(){Y||(Y=X>0?setTimeout(Q):B(Q))}function Q(){Y=0;var e=W.size;U.forEach(e=>W.add(e)),K.forEach(e=>W.delete(e));var t=W.size;if(0!==e&&0===t?H.emit($.Events.interactionComplete):0===e&&0!==t&&H.emit($.Events.interactionStart),0===t)for(var n=Date.now();q.hasTasksToProcess();)if(q.processNext(),X>0&&Date.now()-n>=X){J();break}U.clear(),K.clear()}const Z=$,ee=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=Z.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}},te=function(e,t,n){return t<e?e:t>n?n:t};class ne{constructor(e){I()(e>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=e,this._regions=0===e?[]:[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if(I()(e.first>=0&&e.first<this._numCells&&e.last>=-1&&e.last<this._numCells&&e.last>=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.last<e.first)){var t=this._findRegion(e.first),n=t[0],r=t[1],i=this._findRegion(e.last),o=i[0],a=i[1];if(r!==a||n.isSpacer){var s=[],l=[],u=(0,x.A)((0,x.A)({},e),{},{isSpacer:!1});n.first<u.first&&(n.isSpacer?s.push({first:n.first,last:u.first-1,isSpacer:!0}):u.first=n.first),o.last>u.last&&(o.isSpacer?l.push({first:u.last+1,last:o.last,isSpacer:!0}):u.last=o.last);var c=[...s,u,...l],d=a-r+1;this._regions.splice(r,d,...c)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every((t,n)=>t.first===e._regions[n].first&&t.last===e._regions[n].last&&t.isSpacer===e._regions[n].isSpacer)}_findRegion(e){for(var t=0,n=this._regions.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this._regions[r];if(e>=i.first&&e<=i.last)return[i,r];e<i.first?n=r-1:e>i.last&&(t=r+1)}I()(!1,"A region was not found containing cellIdx "+e)}}class re{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,t){var n;I()(!this._childrenToCellKey.has(e),"Trying to add already present child list");var r=null!==(n=this._cellKeyToChildren.get(t))&&void 0!==n?n:new Set;r.add(e),this._cellKeyToChildren.set(t,r),this._childrenToCellKey.set(e,t)}remove(e){var t=this._childrenToCellKey.get(e);I()(null!=t,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(t);I()(n,"_cellKeyToChildren should contain cellKey"),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(t)}forEach(e){for(var t,n=L(this._cellKeyToChildren.values());!(t=n()).done;)for(var r,i=L(t.value);!(r=i()).done;)e(r.value)}forEachInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)t(r.value)}anyInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)if(t(r.value))return!0;return!1}size(){return this._childrenToCellKey.size}}class ie{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var oe=[],ae=10,se=null;const le=class{static addListener(e){return null===se&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),oe.push(e),{remove:()=>{oe=oe.filter(t=>e!==t)}}}static setSampleRate(e){se=e}static setMinSampleCount(e){ae=e}constructor(e){this._anyBlankStartTime=null,this._enabled=!1,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(se||0)>Math.random(),this._resetData()}activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=n.g.performance.now())}deactivateAndFlush(){if(this._enabled){var e=this._samplesStartTime;if(null!=e)if(this._info.sample_count<ae)this._resetData();else{var t=n.g.performance.now()-e,r=(0,x.A)((0,x.A)({},this._info),{},{total_time_spent:t});oe.forEach(e=>e(r)),this._resetData()}}}computeBlankness(e,t,r){if(!this._enabled||0===e.getItemCount(e.data)||t.last<t.first||null==this._samplesStartTime)return 0;var i=r.dOffset,o=r.offset,a=r.velocity,s=r.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(s),this._info.pixels_scrolled+=Math.round(Math.abs(i));var l=Math.round(1e3*Math.abs(a)),u=n.g.performance.now();null!=this._anyBlankStartTime&&(this._info.any_blank_ms+=u-this._anyBlankStartTime),this._anyBlankStartTime=null,null!=this._mostlyBlankStartTime&&(this._info.mostly_blank_ms+=u-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var c=0,d=t.first,h=this._getFrameMetrics(d,e);d<=t.last&&(!h||!h.inLayout);)h=this._getFrameMetrics(d,e),d++;h&&d>0&&(c=Math.min(s,Math.max(0,h.offset-o)));for(var f=0,p=t.last,m=this._getFrameMetrics(p,e);p>=t.first&&(!m||!m.inLayout);)m=this._getFrameMetrics(p,e),p--;if(m&&p<e.getItemCount(e.data)-1){var g=m.offset+m.length;f=Math.min(s,Math.max(0,o+s-g))}var v=Math.round(c+f),y=v/s;return y>0?(this._anyBlankStartTime=u,this._info.any_blank_speed_sum+=l,this._info.any_blank_count++,this._info.pixels_blank+=v,y>.5&&(this._mostlyBlankStartTime=u,this._info.mostly_blank_count++)):(l<.01||Math.abs(i)<1)&&this.deactivateAndFlush(),y}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null}};class ue extends k.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,t){"function"==typeof e?super.setState((t,n)=>{var r;this._inAsyncStateUpdate=!0;try{r=e(t,n)}catch(e){throw e}finally{this._inAsyncStateUpdate=!1}return r},t):super.setState(e,t)}_installSetStateHooks(){var e=this,t=this.props,n=this.state;Object.defineProperty(this,"props",{get:()=>(I()(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),t),set(e){t=e}}),Object.defineProperty(this,"state",{get:()=>(I()(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n),set(e){n=e}})}}function ce(e,t,n,r,i,o){if(function(e,t,n){return e>=0&&t<=n&&t>e}(n,r,i))return!0;var a=function(e,t,n){var r=Math.min(t,n)-Math.max(e,0);return Math.max(0,r)}(n,r,i);return 100*(e?a/i:a/o)>=t}const de=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,r,i){var o=e.getItemCount(e.data),a=this._config,s=a.itemVisiblePercentThreshold,l=a.viewAreaCoveragePercentThreshold,u=null!=l,c=u?l:s;I()(null!=c&&null!=s!=(null!=l),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var d=[];if(0===o)return d;var h=-1,f=i||{first:0,last:o-1},p=f.first,m=f.last;if(m>=o)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:i,itemCount:o})),[];for(var g=p;g<=m;g++){var v=r(g,e);if(v){var y=v.offset-t,b=y+v.length;if(y<n&&b>0)h=g,ce(u,c,y,b,n,v.length)&&d.push(g);else if(h>=0)break}}return d}onUpdate(e,t,n,r,i,o,a){var s=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==s&&r(0,e)){var l=[];if(s&&(l=this.computeViewableItems(e,t,n,r,a)),this._viewableIndices.length!==l.length||!this._viewableIndices.every((e,t)=>e===l[t]))if(this._viewableIndices=l,this._config.minimumViewTime){var u=setTimeout(()=>{this._timers.delete(u),this._onUpdateSync(e,l,o,i)},this._config.minimumViewTime);this._timers.add(u)}else this._onUpdateSync(e,l,o,i)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,t,n,r){t=t.filter(e=>this._viewableIndices.includes(e));for(var i,o=this._viewableItems,a=new Map(t.map(t=>{var n=r(t,!0,e);return[n.key,n]})),s=[],l=L(a);!(i=l()).done;){var u=i.value,c=u[0],d=u[1];o.has(c)||s.push(d)}for(var h,f=L(o);!(h=f()).done;){var p=h.value,m=p[0],g=p[1];a.has(m)||s.push((0,x.A)((0,x.A)({},g),{},{isViewable:!1}))}s.length>0&&(this._viewableItems=a,n({viewableItems:Array.from(a.values()),changed:s,viewabilityConfig:this._config}))}};var he=k.createContext(null);function fe(e){var t=e.children,n=e.value,r=(0,k.useMemo)(()=>({cellKey:null,getScrollMetrics:n.getScrollMetrics,horizontal:n.horizontal,getOutermostParentListRef:n.getOutermostParentListRef,registerAsNestedChild:n.registerAsNestedChild,unregisterAsNestedChild:n.unregisterAsNestedChild}),[n.getScrollMetrics,n.horizontal,n.getOutermostParentListRef,n.registerAsNestedChild,n.unregisterAsNestedChild]);return k.createElement(he.Provider,{value:r},t)}function pe(e){var t=e.cellKey,n=e.children,r=(0,k.useContext)(he),i=(0,k.useMemo)(()=>null==r?null:(0,x.A)((0,x.A)({},r),{},{cellKey:t}),[r,t]);return k.createElement(he.Provider,{value:i},n)}class me extends k.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!1})},updateProps:(e,t)=>{var n=this.props,r=n.cellKey,i=n.prevCellKey;this.props.onUpdateSeparators(["leading"===e?i:r],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,x.A)((0,x.A)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(t=>({separatorProps:(0,x.A)((0,x.A)({},t.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,n,r){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?k.createElement(t,{item:n,index:r,separators:this._separators}):e?e({item:n,index:r,separators:this._separators}):void I()(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}render(){var e=this.props,t=e.CellRendererComponent,n=e.ItemSeparatorComponent,r=e.ListItemComponent,i=e.cellKey,o=e.horizontal,a=e.item,s=e.index,l=e.inversionStyle,u=e.onCellFocusCapture,c=e.onCellLayout,d=e.renderItem,h=this._renderElement(d,r,a,s),f=k.isValidElement(n)?n:n&&k.createElement(n,this.state.separatorProps),p=l?o?[ge.rowReverse,l]:[ge.columnReverse,l]:o?[ge.row,l]:l,m=t?k.createElement(t,(0,C.A)({cellKey:i,index:s,item:a,style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),h,f):k.createElement(R.A,(0,C.A)({style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),h,f);return k.createElement(pe,{cellKey:this.props.cellKey},m)}}var ge=T.A.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}});function ve(e,t){return"object"==typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"==typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}var ye=n(801),be=n.n(ye),_e=!1,we="";function Se(e){return null!=e&&e}function xe(e){return null!=e?e:10}function Ee(e){return null!=e?e:2}function Ce(e,t){return e*t/2}function ke(e){return null!=e?e:21}class Ae extends ue{scrollToEnd(e){var t=!e||e.animated,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var r=this.__getFrameMetricsApprox(n,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}scrollToIndex(e){var t=this.props,n=t.data,r=t.horizontal,i=t.getItemCount,o=t.getItemLayout,a=t.onScrollToIndexFailed,s=e.animated,l=e.index,u=e.viewOffset,c=e.viewPosition;if(I()(l>=0,"scrollToIndex out of range: requested index "+l+" but minimum is 0"),I()(i(n)>=1,"scrollToIndex out of range: item length "+i(n)+" but minimum is 1"),I()(l<i(n),"scrollToIndex out of range: requested index "+l+" is out of 0 to "+(i(n)-1)),!o&&l>this._highestMeasuredFrameIndex)return I()(!!a,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void a({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:l});var d=this.__getFrameMetricsApprox(Math.floor(l),this.props),h=Math.max(0,this._getOffsetApprox(l,this.props)-(c||0)*(this._scrollMetrics.visibleLength-d.length))-(u||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:h,animated:s}:{y:h,animated:s}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}scrollToItem(e){for(var t=e.item,n=this.props,r=n.data,i=n.getItem,o=(0,n.getItemCount)(r),a=0;a<o;a++)if(i(r,a)===t){this.scrollToIndex((0,x.A)((0,x.A)({},e),{},{index:a}));break}}scrollToOffset(e){var t=e.animated,n=e.offset;null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}recordInteraction(){this._nestedChildLists.forEach(e=>{e.recordInteraction()}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||"rootList"}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach(e=>{var n=null!=e&&this._cellRefs[e];n&&n.updateSeparatorProps(t)})},this._getSpacerKey=e=>e?"height":"width",this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new re,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,n=e.onRefresh;return this._isNestedWithSameOrientation()?k.createElement(R.A,e):n?(I()("boolean"==typeof e.refreshing,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:"undefined")+"`"),k.createElement(F.A,(0,C.A)({},e,{refreshControl:null==e.refreshControl?k.createElement(M,{refreshing:e.refreshing,onRefresh:n,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):k.createElement(F.A,e)},this._onCellLayout=(e,t,n)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:n,inLayout:!0},o=this._frames[t];o&&i.offset===o.offset&&i.length===o.length&&n===o.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(o?o.length:0),this._totalCellsMeasured+=o?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,n),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,x.A)((0,x.A)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:be()(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t),this._scrollMetrics.contentLength=this._selectLength({height:t,width:e}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=e=>{var t=e.offset-this._offsetFromParentVirtualizedList,n=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:n,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach(t=>{t._onScroll(e)}),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,n=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),o=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var a=this._convertParentScrollMetrics({visibleLength:n,offset:i});n=a.visibleLength,r=a.contentLength,i=a.offset,o=a.dOffset}var s=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,l=o/s;s>500&&this._scrollMetrics.dt>500&&r>5*n&&!this._hasWarned.perf&&(function(){console.log(...arguments)}("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:s,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var u=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:s,dOffset:o,offset:i,timestamp:t,velocity:l,visibleLength:n,zoomScale:u},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==l&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollBeginDrag(e)}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollBegin(e)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollEnd(e)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((e,t)=>{var n=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),r=Ae._createRenderMask(t,n,this._getNonViewportRenderRegions(t));return n.first===e.cellsAroundViewport.first&&n.last===e.cellsAroundViewport.last&&r.equals(e.renderMask)?null:{cellsAroundViewport:n,renderMask:r}})},this._createViewToken=(e,t,n)=>{var r=n.data,i=(0,n.getItem)(r,e);return{index:e,item:i,key:this._keyExtractor(i,e,n),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var n=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return n.offset+r*n.length},this.__getFrameMetricsApprox=(e,t)=>{var n=this._getFrameMetrics(e,t);if(n&&n.index===e)return n;var r=t.data,i=t.getItemCount,o=t.getItemLayout;return I()(e>=0&&e<i(r),"Tried to get frame for out of range index "+e),I()(!o,"Should not have to estimate frames when a measurement metrics function is provided"),{length:this._averageCellLength,offset:this._averageCellLength*e}},this._getFrameMetrics=(e,t)=>{var n=t.data,r=t.getItem,i=t.getItemCount,o=t.getItemLayout;I()(e>=0&&e<i(n),"Tried to get frame for out of range index "+e);var a=r(n,e),s=this._frames[this._keyExtractor(a,e,t)];return s&&s.index===e||!o?s:o(n,e)},this._getNonViewportRenderRegions=e=>{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,n=e.getItemCount(e.data);if(t>=n||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,o=r-1;o>=0&&i<this._scrollMetrics.visibleLength;o--)r--,i+=this.__getFrameMetricsApprox(o,e).length;for(var a=t,s=0,l=a+1;l<n&&s<this._scrollMetrics.visibleLength;l++)a++,s+=this.__getFrameMetricsApprox(l,e).length;return[{first:r,last:a}]},this._checkProps(e),this._fillRateHelper=new le(this._getFrameMetrics),this._updateCellsToRenderBatcher=new ee(this._updateCellsToRender,null!==(t=this.props.updateCellsBatchingPeriod)&&void 0!==t?t:50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityHelper:new de(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}));else{var n=this.props,r=n.onViewableItemsChanged,i=n.viewabilityConfig;r&&this._viewabilityTuples.push({viewabilityHelper:new de(i),onViewableItemsChanged:r})}var o=Ae._initialRenderRegion(e);this.state={cellsAroundViewport:o,renderMask:Ae._createRenderMask(e,o)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,n=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=n>r,o=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,a=o;i&&(a=o<0?Math.min(o+t,0):Math.max(o-(n-r-t),0));var s=o-a;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var l=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=s;var u=l.scrollLeft-a;l.scrollLeft=this.props.getItemLayout?u:Math.min(u,this._totalCellLength)}else{e.target.scrollTop+=s;var c=l.scrollTop-a;l.scrollTop=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,n=e.windowSize,r=e.getItemCount,i=e.data,o=e.initialScrollIndex;I()(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),I()(ke(n)>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),I()(r,'VirtualizedList: The "getItemCount" prop must be provided');var a=r(i);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||a>0&&o>=a)||this._hasWarned.initialScrollIndex||(console.warn('initialScrollIndex "'+o+'" is not valid (list has '+a+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,n){var r=e.getItemCount(e.data);I()(t.first>=0&&t.last>=t.first-1&&t.last<r,'Invalid cells around viewport "['+t.first+", "+t.last+']" was passed to VirtualizedList._createRenderMask');var i=new ne(r);if(r>0){for(var o=0,a=[t,...null!=n?n:[]];o<a.length;o++){var s=a[o];i.addCells(s)}if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var l=Ae._initialRenderRegion(e);i.addCells(l)}var u=new Set(e.stickyHeaderIndices);Ae._ensureClosestStickyHeader(e,u,i,t.first)}return i}static _initialRenderRegion(e){var t,n,r=e.getItemCount(e.data),i=Math.max(0,Math.min(r-1,Math.floor(null!==(t=e.initialScrollIndex)&&void 0!==t?t:0)));return{first:i,last:Math.min(r,i+(null!=(n=e.initialNumToRender)?n:10))-1}}static _ensureClosestStickyHeader(e,t,n,r){for(var i=e.ListHeaderComponent?1:0,o=r-1;o>=0;o--)if(t.has(o+i)){n.addCells({first:o,last:o});break}}_adjustCellsAroundViewport(e,t){var n,r=e.data,i=e.getItemCount,o=Ee(e.onEndReachedThreshold),a=this._scrollMetrics,s=a.contentLength,l=a.offset,u=a.visibleLength,c=s-u-l;if(u<=0||s<=0)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;if(e.disableVirtualization){var d=c<o*u?xe(e.maxToRenderPerBatch):0;n={first:0,last:Math.min(t.last+d,i(r)-1)}}else{if(e.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(c)>=Number.EPSILON)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;n=function(e,t,n,r,i,o){var a=e.getItemCount(e.data);if(0===a)return{first:0,last:-1};var s=o.offset,l=o.velocity,u=o.visibleLength,c=o.zoomScale,d=void 0===c?1:c,h=Math.max(0,s),f=h+u,p=(n-1)*u,m=l>1?"after":l<-1?"before":"none",g=Math.max(0,h-.5*p),v=Math.max(0,f+.5*p);if(i(a-1,e).offset*d<g)return{first:Math.max(0,a-1-t),last:a-1};var y=function(e,t,n,r){void 0===r&&(r=1);for(var i=t.getItemCount(t.data),o=[],a=0;a<e.length;a++)for(var s=e[a],l=0,u=i-1;l<=u;){var c=l+(u-l>>>1),d=n(c,t),h=d.offset*r,f=(d.offset+d.length)*r;if(0===c&&s<h||0!==c&&s<=h)u=c-1;else{if(!(s>f)){o[a]=c;break}l=c+1}}return o}([g,h,f,v],e,i,d),b=y[0],_=y[1],w=y[2],S=y[3];b=null==b?0:b,S=null==S?a-1:S;for(var x={first:_=null==_?Math.max(0,b):_,last:w=null==w?Math.min(S,_+t-1):w},E=function(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}(r,x);!(_<=b&&w>=S);){var C=E>=t,k=_<=r.first||_>r.last,A=_>b&&(!C||!k),R=w>=r.last||w<r.first,T=w<S&&(!C||!R);if(C&&!A&&!T)break;!A||"after"===m&&T&&R||(k&&E++,_--),!T||"before"===m&&A&&k||(R&&E++,w++)}if(!(w>=_&&_>=0&&w<a&&_>=b&&w<=S&&_<=x.first&&w>=x.last))throw new Error("Bad window calculation "+JSON.stringify({first:_,last:w,itemCount:a,overscanFirst:b,overscanLast:S,visible:x}));return{first:_,last:w}}(e,xe(e.maxToRenderPerBatch),ke(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),I()(n.last<i(r),"computeWindowedRenderLimits() should return range in-bounds")}if(this._nestedChildLists.size()>0){var h=this._findFirstChildWithMore(n.first,n.last);n.last=null!=h?h:n.last}return n}_findFirstChildWithMore(e,t){for(var n=e;n<=t;n++){var r=this._indicesToKeys.get(n);if(null!=r&&this._nestedChildLists.anyInCell(r,e=>e.hasMore()))return n}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler):setTimeout(()=>this.setupWebWheelHandler(),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var n=Ae._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:n,renderMask:Ae._createRenderMask(e,n)}}_pushCells(e,t,n,r,i,o){var a,s=this,l=this.props,u=l.CellRendererComponent,c=l.ItemSeparatorComponent,d=l.ListHeaderComponent,h=l.ListItemComponent,f=l.data,p=l.debug,m=l.getItem,g=l.getItemCount,v=l.getItemLayout,y=l.horizontal,b=l.renderItem,_=d?1:0,w=g(f)-1;i=Math.min(w,i);for(var S=function(){var r=m(f,x),i=s._keyExtractor(r,x,s.props);s._indicesToKeys.set(x,i),n.has(x+_)&&t.push(e.length);var l=null==v||p||s._fillRateHelper.enabled();e.push(k.createElement(me,(0,C.A)({CellRendererComponent:u,ItemSeparatorComponent:x<w?c:void 0,ListItemComponent:h,cellKey:i,horizontal:y,index:x,inversionStyle:o,item:r,key:i,prevCellKey:a,onUpdateSeparators:s._onUpdateSeparators,onCellFocusCapture:e=>s._onCellFocusCapture(i),onUnmount:s._onCellUnmount,ref:e=>{s._cellRefs[i]=e},renderItem:b},l&&{onCellLayout:s._onCellLayout}))),a=i},x=r;x<=i;x++)S()}static _constrainToItemCount(e,t){var n=t.getItemCount(t.data),r=Math.min(n-1,e.last),i=xe(t.maxToRenderPerBatch);return{first:te(0,n-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==Se(this.props.horizontal))}_keyExtractor(e,t,n){if(null!=n.keyExtractor)return n.keyExtractor(e,t);var r=ve(e,t);return r===String(t)&&(_e=!0,e.type&&e.type.displayName&&(we=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,t=e.ListEmptyComponent,n=e.ListFooterComponent,r=e.ListHeaderComponent,i=this.props,o=i.data,a=i.horizontal,s=this.props.inverted?Se(this.props.horizontal)?Re.horizontallyInverted:Re.verticallyInverted:null,l=[],u=new Set(this.props.stickyHeaderIndices),c=[];if(r){u.has(0)&&c.push(0);var d=k.isValidElement(r)?r:k.createElement(r,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-header",key:"$header"},k.createElement(R.A,{onLayout:this._onLayoutHeader,style:[s,this.props.ListHeaderComponentStyle]},d)))}var h=this.props.getItemCount(o);if(0===h&&t){var f=k.isValidElement(t)?t:k.createElement(t,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-empty",key:"$empty"},k.cloneElement(f,{onLayout:e=>{this._onLayoutEmpty(e),f.props.onLayout&&f.props.onLayout(e)},style:[s,f.props.style]})))}if(h>0){_e=!1,we="";for(var p,m=this._getSpacerKey(!a),g=this.state.renderMask.enumerateRegions(),v=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}(g,e=>e.isSpacer),y=L(g);!(p=y()).done;){var b=p.value;if(b.isSpacer){if(this.props.disableVirtualization)continue;var _=b!==v||this.props.getItemLayout?b.last:te(b.first-1,b.last,this._highestMeasuredFrameIndex),w=this.__getFrameMetricsApprox(b.first,this.props),S=this.__getFrameMetricsApprox(_,this.props),E=S.offset+S.length-w.offset;l.push(k.createElement(R.A,{key:"$spacer-"+b.first,style:{[m]:E}}))}else this._pushCells(l,c,u,b.first,b.last,s)}!this._hasWarned.keys&&_e&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",we),this._hasWarned.keys=!0)}if(n){var C=k.isValidElement(n)?n:k.createElement(n,null);l.push(k.createElement(pe,{cellKey:this._getFooterCellKey(),key:"$footer"},k.createElement(R.A,{onLayout:this._onLayoutFooter,style:[s,this.props.ListFooterComponentStyle]},C)))}var A,T=(0,x.A)((0,x.A)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(A=this.props.scrollEventThrottle,null!=A?A:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:c,style:s?[s,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<h-1;var P=k.createElement(fe,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:Se(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}},k.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(T),{ref:this._captureScrollRef},l));return this.props.debug?k.createElement(R.A,{style:Re.debug},P,this._renderDebugOverlay()):P}componentDidUpdate(e){var t=this.props,n=t.data,r=t.extraData;n===e.data&&r===e.extraData||this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.resetViewableIndices()});var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,e=>{e.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,t,n,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:n,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach(e=>{e.measureLayoutRelativeToContainingList()}))},e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")})}catch(e){console.warn("measureLayoutRelativeToContainingList threw an error",e.stack)}}_getFooterCellKey(){return this._getCellKey()+"-footer"}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],n=this.props.getItemCount(this.props.data),r=0;r<n;r++){var i=this.__getFrameMetricsApprox(r,this.props);i.inLayout&&t.push(i)}var o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,a=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),s=a.offset+a.length-o,l=this._scrollMetrics.offset,u=this._scrollMetrics.visibleLength;return k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlay]},t.map((t,n)=>k.createElement(R.A,{key:"f"+n,style:[Re.debugOverlayBase,Re.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]})),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameLast,{top:o*e,height:s*e}]}),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameVis,{top:l*e,height:u*e}]}))}_selectLength(e){return Se(this.props.horizontal)?e.width:e.height}_selectOffset(e){return Se(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,n=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,o=e.onEndReached,a=e.onEndReachedThreshold,s=e.initialScrollIndex,l=this._scrollMetrics,u=l.contentLength,c=l.visibleLength,d=l.offset,h=d,f=u-c-d;h<.001&&(h=0),f<.001&&(f=0);var p=h<=(null!=i?i*c:2),m=f<=(null!=a?a*c:2);o&&this.state.cellsAroundViewport.last===n(t)-1&&m&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,o({distanceFromEnd:f})):null!=r&&0===this.state.cellsAroundViewport.first&&p&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?s&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:h})):(this._sentStartForContentLength=p?this._sentStartForContentLength:0,this._sentEndForContentLength=m?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,n=e.last,r=this._scrollMetrics,i=r.offset,o=r.visibleLength,a=r.velocity,s=this.props.getItemCount(this.props.data),l=!1,u=function(e){return null!=e?e:2}(this.props.onStartReachedThreshold),c=Ee(this.props.onEndReachedThreshold);if(t>0){var d=i-this.__getFrameMetricsApprox(t,this.props).offset;l=d<0||a<-2&&d<Ce(u,o)}if(!l&&n>=0&&n<s-1){var h=this.__getFrameMetricsApprox(n,this.props).offset-(i+o);l=h<0||a>2&&h<Ce(c,o)}if(l&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,t){this._viewabilityTuples.forEach(n=>{n.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,n.onViewableItemsChanged,t)})}}Ae.contextType=he;var Re=T.A.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}});const Te=Ae;var Pe=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Oe(e,t){return e===t||!(!Pe(e)||!Pe(t))}function Ie(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Oe(e[n],t[n]))return!1;return!0}var Ne=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function Le(e){return null!=e?e:1}class De extends k.PureComponent{scrollToEnd(e){this._listRef&&this._listRef.scrollToEnd(e)}scrollToIndex(e){this._listRef&&this._listRef.scrollToIndex(e)}scrollToItem(e){this._listRef&&this._listRef.scrollToItem(e)}scrollToOffset(e){this._listRef&&this._listRef.scrollToOffset(e)}recordInteraction(){this._listRef&&this._listRef.recordInteraction()}flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()}getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()}getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()}getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()}constructor(e){super(e),this._virtualizedListPairs=[],this._captureRef=e=>{this._listRef=e},this._getItem=(e,t)=>{var n=Le(this.props.numColumns);if(n>1){for(var r=[],i=0;i<n;i++){var o=t*n+i;if(o<e.length){var a=e[o];r.push(a)}}return r}return e[t]},this._getItemCount=e=>{if(null!=e&&function(e){return"number"==typeof Object(e).length}(e)){var t=Le(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ve;return r>1?(I()(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map((e,n)=>i(e,t*r+n)).join(":")):i(e,t)},this._renderer=(e,t,n,r,i)=>{var o=Le(r),a=n=>e?k.createElement(e,n):t?t(n):null,s=e=>{if(o>1){var t=e.item,r=e.index;return I()(Array.isArray(t),"Expected array of items with numColumns > 1"),k.createElement(R.A,{style:[Me.row,n]},t.map((t,n)=>{var i=a({item:t,index:r*o+n,separators:e.separators});return null!=i?k.createElement(k.Fragment,{key:n},i):null}))}return a(e)};return e?{ListItemComponent:s}:{renderItem:s}},this._memoizedRenderer=function(e,t){void 0===t&&(t=Ie);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){I()(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),I()(e.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),I()(!P(e.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),I()(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,"Changing viewabilityConfigCallbackPairs on the fly is not supported"),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,n=e.getItemCount,r=e.horizontal,i=e.columnWrapperStyle,o=e.onViewableItemsChanged,a=e.viewabilityConfigCallbackPairs,s=Le(this.props.numColumns);I()(!t&&!n,"FlatList does not support custom data formats."),s>1?I()(!r,"numColumns does not support horizontal."):I()(!i,"columnWrapperStyle not supported for single column lists"),I()(!(o&&a),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,t){var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ve;t.item.forEach((n,o)=>{I()(null!=t.index,"Missing index!");var a=t.index*r+o;e.push((0,x.A)((0,x.A)({},t),{},{item:n,key:i(n,a),index:a}))})}_createOnViewableItemsChanged(e){return t=>{var n=Le(this.props.numColumns);if(e)if(n>1){var r=[],i=[];t.viewableItems.forEach(e=>this._pushMultiColumnViewable(i,e)),t.changed.forEach(e=>this._pushMultiColumnViewable(r,e)),e({viewableItems:i,changed:r})}else e(t)}}render(){var e,t=this.props,n=t.numColumns,r=t.columnWrapperStyle,i=t.removeClippedSubviews,o=t.strictMode,a=void 0!==o&&o,s=(0,A.A)(t,Ne),l=a?this._memoizedRenderer:this._renderer;return k.createElement(Te,(0,C.A)({},s,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=i,null!=e?e:"android"===E.A.OS)},l(this.props.ListItemComponent,this.props.renderItem,r,n,this.props.extraData)))}}var Me=T.A.create({row:{flexDirection:"row"}});const Fe=De;var Ve=n(5725);class ze{constructor(e){"ios"===E.A.OS&&(I()(null!=e,"`new NativeEventEmitter()` requires a non-null argument."),this._nativeModule=e)}addListener(e,t,n){var r;null==(r=this._nativeModule)||r.addListener(e);var i=Ve.A.addListener(e,t,n);return{remove:()=>{var e;null!=i&&(null==(e=this._nativeModule)||e.removeListeners(1),i.remove(),i=null)}}}removeListener(e,t){var n;null==(n=this._nativeModule)||n.removeListeners(1),Ve.A.removeListener(e,t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ve.A.emit(e,...n)}removeAllListeners(e){var t;I()(null!=e,"`NativeEventEmitter.removeAllListener()` requires a non-null argument."),null==(t=this._nativeModule)||t.removeListeners(this.listenerCount(e)),Ve.A.removeAllListeners(e)}listenerCount(e){return Ve.A.listenerCount(e)}}const je=E.A,Be=()=>!1,He=()=>!1;var $e,We=("ios"===je.OS&&n.g.RN$Bridgeless,null),Ue=1,Ke=1,qe=new Set,Ye=!1,Ge=[];"android"===je.OS&&null!=We&&We.queueAndExecuteBatchedOperations&&He();var Xe=null,Je=We,Qe={getValue:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.getValue,e,t)},setWaitingForIdentifier:function(e){qe.add(e),Ye=!0,Be()&&Xe&&clearTimeout(Xe)},unsetWaitingForIdentifier:function(e){qe.delete(e),0===qe.size&&(Ye=!1,Qe.disableQueue())},disableQueue:function(){I()(Je,"Native animated module is not available"),Be()?(clearImmediate(Xe),Xe=setImmediate(Qe.flushQueue)):Qe.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ye||0!==Ge.length?Ge.push(()=>e(...n)):e(...n)},createAnimatedNode:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){I()(Je,"Native animated module is not available")},startListeningToAnimatedNodeValue:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,r){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.startAnimatingNode,e,t,n,r)},stopAnimation:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.stopAnimation,e)},setAnimatedNodeValue:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){I()(Je,"Native animated module is not available"),null!=Je.restoreDefaultValues&&Qe.queueOperation(Je.restoreDefaultValues,e)},dropAnimatedNode:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.addAnimatedEventToView,e,t,n)},removeAnimatedEventFromView(e,t,n){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.removeAnimatedEventFromView,e,t,n)}},Ze={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},et=(0,x.A)((0,x.A)({},Ze),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),tt={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},nt={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function rt(e){return et.hasOwnProperty(e)}function it(e){return tt.hasOwnProperty(e)}function ot(e){return nt.hasOwnProperty(e)}function at(){return Ke++}var st=!1;function lt(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||We?e.useNativeDriver||!1:(st||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),st=!0),!1)}const ut={API:Qe,isSupportedColorStyleProp:function(e){return Ze.hasOwnProperty(e)},isSupportedStyleProp:rt,isSupportedTransformProp:it,isSupportedInterpolationParam:ot,addWhitelistedStyleProp:function(e){et[e]=!0},addWhitelistedTransformProp:function(e){tt[e]=!0},addWhitelistedInterpolationParam:function(e){nt[e]=!0},validateStyles:function(e){for(var t in e)if(!rt(t))throw new Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach(e=>{if(!it(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})},validateInterpolation:function(e){for(var t in e)if(!ot(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return Ue++},generateNewAnimationId:at,assertNativeAnimatedModule:function(){I()(We,"Native animated module is not available")},shouldUseNativeDriver:lt,transformDataType:function(e){return"string"!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e},get nativeEventEmitter(){return $e||($e=new ze("ios"!==je.OS?null:We)),$e}};var ct=ut.API,dt=1;const ht=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(ut.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(dt++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),ct.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=ut.nativeEventEmitter.addListener("onAnimatedValueUpdate",e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,ct.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;ut.assertNativeAnimatedModule(),I()(this.__isNative,'Attempt to get native tag from node not marked as "native"');var t=null!==(e=this.__nativeTag)&&void 0!==e?e:ut.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=t;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),ut.API.createAnimatedNode(t,n),this.__shouldUpdateListenersForNewNativeTag=!0}return t}__getNativeConfig(){throw new Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}},ft=class extends ht{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__makeNative(e),ut.API.connectAnimatedNodes(this.__getNativeTag(),r.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),ut.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&ut.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__getValue&&r.__callListeners(r.__getValue())}}};var pt=n(1515),mt=n.n(pt),gt=e=>e;function vt(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return function(e){var t=e.outputRange;I()(t.length>=2,"Bad output range"),function(e){for(var t=e[0].replace(bt,""),n=1;n<e.length;++n)I()(t===e[n].replace(bt,""),"invalid pattern "+e[0]+" and "+e[n])}(t=t.map(yt));var n=t[0].match(bt).map(()=>[]);t.forEach(e=>{e.match(bt).forEach((e,t)=>{n[t].push(+e)})});var r,i=t[0].match(bt).map((t,r)=>vt((0,x.A)((0,x.A)({},e),{},{outputRange:n[r]}))),o="string"==typeof(r=t[0])&&r.startsWith("rgb");return e=>{var n=0;return t[0].replace(bt,()=>{var t=+i[n++](e);return o&&(t=n<4?Math.round(t):Math.round(1e3*t)/1e3),String(t)})}}(e);var t=e.outputRange,n=e.inputRange,r=e.easing||gt,i="extend";void 0!==e.extrapolateLeft?i=e.extrapolateLeft:void 0!==e.extrapolate&&(i=e.extrapolate);var o="extend";return void 0!==e.extrapolateRight?o=e.extrapolateRight:void 0!==e.extrapolate&&(o=e.extrapolate),e=>{I()("number"==typeof e,"Cannot interpolation an input which is not a number");var a=function(e,t){var n;for(n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,n);return function(e,t,n,r,i,o,a,s){var l=e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,n[a],n[a+1],t[a],t[a+1],r,i,o)}}function yt(e){var t=mt()(e);return null===t||"number"!=typeof t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var bt=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;class _t extends ft{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=vt(t)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return I()("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new _t(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(ut.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}_t.__createInterpolation=vt;const wt=_t;var St=ut.API;const xt=class extends ft{constructor(e,t){if(super(),"number"!=typeof e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null,t&&t.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&St.getValue(this.__getNativeTag(),e=>{this._value=e-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){var t,n;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&(t=this.__getNativeTag().toString(),n=()=>St.setAnimatedNodeValue(this.__getNativeTag(),e),St.setWaitingForIdentifier(t),n(),St.unsetWaitingForIdentifier(t))}setOffset(e){this._offset=e,this.__isNative&&St.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&St.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&St.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?St.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&St.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new wt(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=Z.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,e=>{this._updateValue(e,!0)},e=>{this._animation=null,null!==n&&Z.clearInteractionHandle(n),t&&t(e)},r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,t){if(void 0===e)throw new Error("AnimatedValue: Attempting to set value to undefined");var n;this._value=e,t&&(n=new Set,function e(t){"function"==typeof t.update?n.add(t):t.__getChildren().forEach(e)}(this),n.forEach(e=>e.update())),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}};function Et(e,t,n){var r=[],i=(e,t)=>{if(e instanceof xt)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if("object"==typeof e)for(var n in e)i(e[n],t.concat(n))};return I()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]),null!=e&&r.forEach(n=>{ut.API.addAnimatedEventToView(e,t,n)}),{detach(){null!=e&&r.forEach(n=>{ut.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)})}}}class Ct{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn("Animated.event now requires a second argument for options"),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=lt(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){I()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=Et(e,t,this._argMapping)}__detach(e,t){I()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;return this.__isNative?this._callListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(e,t,n)=>{if(e instanceof xt)"number"==typeof t&&e.setValue(t);else if("object"==typeof e)for(var r in e)i(e[r],t[r],r)};e._argMapping.forEach((e,t)=>{i(e,n[t],"arg"+t)}),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._listeners.forEach(e=>e(...t))}}const kt=class extends ft{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ht?r.__getValue():r}return t})}__getAnimatedValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ht?r.__getAnimatedValue():r}return t})}__attach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(t=>{for(var n in t){var r=t[n];r instanceof ht?e.push({type:"animated",property:n,nodeTag:r.__getNativeTag()}):e.push({type:"static",property:n,value:ut.transformDataType(r)})}}),ut.validateTransform(e),{type:"transform",transforms:e}}};var At=T.A.flatten;function Rt(e){var t=At(e),n={};for(var r in t){var i=t[r];"transform"===r&&Array.isArray(i)?n[r]=new kt(i):i instanceof ht?n[r]=i:i&&!Array.isArray(i)&&"object"==typeof i&&(n[r]=Rt(i))}return n}const Tt=class extends ft{constructor(e){super(),this._inputStyle=e,this._style=Rt(e)}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof ht?r.__isNative||(t[n]=r.__getValue()):r&&!Array.isArray(r)&&"object"==typeof r?t[n]=this._walkStyleAndGetValues(r):t[n]=r}return t}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof ht?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&"object"==typeof r&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof ht){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return ut.validateStyles(e),{type:"style",style:e}}},Pt=class extends ht{constructor(e,t){super(),e.style&&(e=(0,x.A)((0,x.A)({},e),{},{style:new Tt(e.style)})),this._props=e,this._callback=t,this.__attach()}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht?(!n.__isNative||n instanceof Tt)&&(e[t]=n.__getValue()):e[t]=n instanceof Ct?n.__getHandler():n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof ht&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var t=this._props[e];t instanceof ht&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof ht&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){I()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;I()(null!=e,"Unable to locate attached view in the native tree"),ut.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){I()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;I()(null!=e,"Unable to locate attached view in the native tree"),ut.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&ut.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:"props",props:e}}};var Ot=n(8425);function It(e){return(0,x.A)((0,x.A)({},e.__getValue()),{},{collapsable:!1})}var Nt=["style"];function Lt(e){return k.forwardRef((t,n)=>{var r=function(e){var t=(0,k.useReducer)(e=>e+1,0)[1],n=(0,k.useRef)(null),r=(0,k.useMemo)(()=>new Pt(e,()=>null==n.current?void 0:n.current()),[e]);!function(e){var t=(0,k.useRef)(null),n=(0,k.useRef)(!1);(0,k.useEffect)(()=>{ut.API.flushQueue()}),(0,Ot.A)(()=>(n.current=!1,()=>{n.current=!0}),[]),(0,Ot.A)(()=>{if(e.__attach(),null!=t.current){var r=t.current;r.__restoreDefaultValues(),r.__detach(),t.current=null}return()=>{n.current?e.__detach():t.current=e}},[e])}(r);var i,o,a=(0,k.useCallback)(i=>{r.setNativeView(i),n.current=()=>{t()};var o=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}(i),a=[];for(var s in e){var l=e[s];l instanceof Ct&&l.__isNative&&(l.__attach(o,s),a.push([s,l]))}return()=>{n.current=null;for(var e=0,t=a;e<t.length;e++){var r=t[e],i=r[0];r[1].__detach(o,i)}}},[e,r]),s=(i=a,o=(0,k.useRef)(void 0),(0,k.useCallback)(e=>{o.current&&(o.current(),o.current=void 0),null!=e&&(o.current=i(e))},[i]));return[It(r),s]}(t),i=r[0],o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,k.useCallback)(e=>{for(var n=0,r=t;n<r.length;n++){var i=r[n];null!=i&&("function"==typeof i?i(e):i.current=e)}},[...t])}(r[1],n),a=i.passthroughAnimatedPropExplicitValues,s=i.style,l=null!=a?a:{},u=l.style,c=(0,A.A)(l,Nt),d=[s,u];return k.createElement(e,(0,C.A)({},i,c,{style:d,ref:o}))})}const Dt=Lt(k.forwardRef((e,t)=>k.createElement(Fe,(0,C.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var Mt=n(728);const Ft=Lt(Mt.A),Vt=Lt(k.forwardRef((e,t)=>k.createElement(F.A,(0,C.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var zt=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class jt extends k.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var n=this._subExtractor(t);return n&&n.key||String(t)},this._convertViewable=e=>{var t;I()(null!=e.index,"Received a broken ViewToken");var n=this._subExtractor(e.index);if(!n)return null;var r=n.section.keyExtractor,i=this.props.keyExtractor||ve,o=null!=r?r(e.item,n.index):i(e.item,null!==(t=n.index)&&void 0!==t?t:0);return(0,x.A)((0,x.A)({},e),{},{index:n.index,key:o,section:n.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,n=e.changed,r=this.props.onViewableItemsChanged;null!=r&&r({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var n=t.item,r=t.index,i=this._subExtractor(r);if(!i)return null;var o=i.index;if(null==o){var a=i.section;if(!0===i.header){var s=this.props.renderSectionHeader;return s?s({section:a}):null}var l=this.props.renderSectionFooter;return l?l({section:a}):null}var u=i.section.renderItem||this.props.renderItem,c=this._getSeparatorComponent(r,i,e);return I()(u,"no renderItem!"),k.createElement(Bt,{SeparatorComponent:c,LeadingSeparatorComponent:0===o?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:o,item:n,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(r-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:u,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var n=this._updatePropsMap[e];null!=n&&n(t)},this._updateHighlightFor=(e,t)=>{var n=this._updateHighlightMap[e];null!=n&&n(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,n=0;n<e.sectionIndex;n++)t+=this.props.getItemCount(this.props.sections[n].data)+2;var r=e.viewOffset||0;if(null!=this._listRef){e.itemIndex>0&&this.props.stickySectionHeadersEnabled&&(r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length);var i=(0,x.A)((0,x.A)({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}getListRef(){return this._listRef}render(){for(var e,t=this.props,n=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,A.A)(t,zt)),r=this.props.ListHeaderComponent?1:0,i=this.props.stickySectionHeadersEnabled?[]:void 0,o=0,a=L(this.props.sections);!(e=a()).done;){var s=e.value;null!=i&&i.push(o+r),o+=2,o+=this.props.getItemCount(s.data)}var l=this._renderItem(o);return k.createElement(Te,(0,C.A)({},n,{keyExtractor:this._keyExtractor,stickyHeaderIndices:i,renderItem:l,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>o,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,n){if(!t)return null;for(var r=n-1,i=0;i<t.length;i++){var o=t[i],a=o.data,s=e.getItemCount(a);if(-1===r||r===s)return o;if(r<s)return e.getItem(a,r);r-=s+2}return null}_subExtractor(e){for(var t=e,n=this.props,r=n.getItem,i=n.getItemCount,o=n.keyExtractor,a=n.sections,s=0;s<a.length;s++){var l=a[s],u=l.data,c=l.key||String(s);if(!((t-=1)>=i(u)+1))return-1===t?{section:l,key:c+":header",index:null,header:!0,trailingSection:a[s+1]}:t===i(u)?{section:l,key:c+":footer",index:null,header:!1,trailingSection:a[s+1]}:{section:l,key:c+":"+(l.keyExtractor||o||ve)(r(u,t),t),index:t,leadingItem:r(u,t-1),leadingSection:a[s-1],trailingItem:r(u,t+1),trailingSection:a[s+1]};t-=i(u)+1}}_getSeparatorComponent(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}function Bt(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,r=e.cellKey,i=e.prevCellKey,o=e.setSelfHighlightCallback,a=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,l=e.updatePropsFor,u=e.item,c=e.index,d=e.section,h=e.inverted,f=k.useState(!1),p=f[0],m=f[1],g=k.useState(!1),v=g[0],y=g[1],b=k.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),_=b[0],w=b[1],S=k.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),E=S[0],A=S[1];k.useEffect(()=>(o(r,y),s(r,A),()=>{s(r,null),o(r,null)}),[r,o,A,s]);var T={highlight:()=>{m(!0),y(!0),null!=i&&a(i,!0)},unhighlight:()=>{m(!1),y(!1),null!=i&&a(i,!1)},updateProps:(e,r)=>{"leading"===e?null!=t?w((0,x.A)((0,x.A)({},_),r)):null!=i&&l(i,(0,x.A)((0,x.A)({},_),r)):"trailing"===e&&null!=n&&A((0,x.A)((0,x.A)({},E),r))}},P=e.renderItem({item:u,index:c,section:d,separators:T}),O=null!=t&&k.createElement(t,(0,C.A)({highlighted:p},_)),I=null!=n&&k.createElement(n,(0,C.A)({highlighted:v},E));return O||I?k.createElement(R.A,null,!1===h?O:I,P,!1===h?I:O):P}const Ht=jt;var $t=["stickySectionHeadersEnabled"];class Wt extends k.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,n=(0,A.A)(e,$t),r=null!=t?t:"ios"===E.A.OS;return k.createElement(Ht,(0,C.A)({},n,{stickySectionHeadersEnabled:r,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}const Ut=Wt,Kt=Lt(k.forwardRef((e,t)=>k.createElement(Ut,(0,C.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var qt=n(8506);const Yt=Lt(qt.A),Gt=Lt(R.A),Xt=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Jt=class extends ft{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new wt(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}},Qt=class extends ft{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof ht&&0===t.__getValue())&&console.error("Detected potential division by zero in AnimatedDivision"),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Zt=class extends ft{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}},en=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},tn=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},nn=class extends ht{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=lt(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,x.A)((0,x.A)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass((0,x.A)((0,x.A)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:"tracking",animationId:at(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}};var rn=1;const on=class extends ft{constructor(e){super();var t=e||{x:0,y:0};"number"==typeof t.x&&"number"==typeof t.y?(this.x=new xt(t.x),this.y=new xt(t.y)):(I()(t.x instanceof xt&&t.y instanceof xt,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(rn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}};var an=1;const sn=class{start(e,t,n,r,i){}stop(){this.__nativeId&&ut.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error("This animation type cannot be offloaded to native")}__debouncedOnEnd(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)}__startNativeAnimation(e){var t=an+":startAnimation";an+=1,ut.API.setWaitingForIdentifier(t);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=ut.generateNewAnimationId(),ut.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(e){throw e}finally{ut.API.unsetWaitingForIdentifier(t)}}},ln=class extends sn{constructor(e){var t,n,r;super(),this._deceleration=null!==(t=e.deceleration)&&void 0!==t?t:.998,this._velocity=e.velocity,this._useNativeDriver=lt(e),this.__isInteraction=null!==(n=e.isInteraction)&&void 0!==n?n:!this._useNativeDriver,this.__iterations=null!==(r=e.iterations)&&void 0!==r?r:1}__getNativeAnimationConfig(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,t,n,r,i){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));this._onUpdate(t),Math.abs(this._lastValue-t)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};function un(e){return 3.62*(e-30)+194}function cn(e){return 3*(e-8)+25}const dn=function(e,t){return{stiffness:un(e),damping:cn(t)}},hn=function(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}var i=n(e/1.7,0,20);i=r(i,0,.8);var o,a,s,l=r(n(t/1.7,0,20),.5,200),u=function(e,t){return.01*e+(1-e)*t}(2*(o=i)-o*o,(a=l)<=18?(s=a,7e-4*Math.pow(s,3)-.031*Math.pow(s,2)+.64*s+1.28):a>18&&a<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(a):function(e){return 45e-8*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(a));return{stiffness:un(l),damping:cn(u)}};class fn extends sn{constructor(e){var t,n,r,i,o,a,s,l,u,c,d;if(super(),this._overshootClamping=null!==(t=e.overshootClamping)&&void 0!==t&&t,this._restDisplacementThreshold=null!==(n=e.restDisplacementThreshold)&&void 0!==n?n:.001,this._restSpeedThreshold=null!==(r=e.restSpeedThreshold)&&void 0!==r?r:.001,this._initialVelocity=null!==(i=e.velocity)&&void 0!==i?i:0,this._lastVelocity=null!==(o=e.velocity)&&void 0!==o?o:0,this._toValue=e.toValue,this._delay=null!==(a=e.delay)&&void 0!==a?a:0,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(s=e.isInteraction)&&void 0!==s?s:!this._useNativeDriver,this.__iterations=null!==(l=e.iterations)&&void 0!==l?l:1,void 0!==e.stiffness||void 0!==e.damping||void 0!==e.mass)I()(void 0===e.bounciness&&void 0===e.speed&&void 0===e.tension&&void 0===e.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),this._stiffness=null!==(u=e.stiffness)&&void 0!==u?u:100,this._damping=null!==(c=e.damping)&&void 0!==c?c:10,this._mass=null!==(d=e.mass)&&void 0!==d?d:1;else if(void 0!==e.bounciness||void 0!==e.speed){var h,f;I()(void 0===e.tension&&void 0===e.friction&&void 0===e.stiffness&&void 0===e.damping&&void 0===e.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var p=hn(null!==(h=e.bounciness)&&void 0!==h?h:8,null!==(f=e.speed)&&void 0!==f?f:12);this._stiffness=p.stiffness,this._damping=p.damping,this._mass=1}else{var m,g,v=dn(null!==(m=e.tension)&&void 0!==m?m:40,null!==(g=e.friction)&&void 0!==g?g:7);this._stiffness=v.stiffness,this._damping=v.damping,this._mass=1}I()(this._stiffness>0,"Stiffness value must be greater than 0"),I()(this._damping>0,"Damping value must be greater than 0"),I()(this._mass>0,"Mass value must be greater than 0")}__getNativeAnimationConfig(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(e=this._initialVelocity)&&void 0!==e?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=t,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,r instanceof fn){var o=r.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var a=()=>{this._useNativeDriver?this.__startNativeAnimation(i):this.onUpdate()};this._delay?this._timeout=setTimeout(a,this._delay):a()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=Date.now();e>this._lastTime+64&&(e=this._lastTime+64);var t=(e-this._lastTime)/1e3;this._frameTime+=t;var n=this._damping,r=this._mass,i=this._stiffness,o=-this._initialVelocity,a=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),l=s*Math.sqrt(1-a*a),u=this._toValue-this._startPosition,c=0,d=0,h=this._frameTime;if(a<1){var f=Math.exp(-a*s*h);c=this._toValue-f*((o+a*s*u)/l*Math.sin(l*h)+u*Math.cos(l*h)),d=a*s*f*(Math.sin(l*h)*(o+a*s*u)/l+u*Math.cos(l*h))-f*(Math.cos(l*h)*(o+a*s*u)-l*u*Math.sin(l*h))}else{var p=Math.exp(-s*h);c=this._toValue-p*(u+(o+s*u)*h),d=p*(o*(h*s-1)+h*u*(s*s))}if(this._lastTime=e,this._lastPosition=c,this._lastVelocity=d,this._onUpdate(c),this.__active){var m=!1;this._overshootClamping&&0!==this._stiffness&&(m=this._startPosition<this._toValue?c>this._toValue:c<this._toValue);var g=Math.abs(d)<=this._restSpeedThreshold,v=!0;if(0!==this._stiffness&&(v=Math.abs(this._toValue-c)<=this._restDisplacementThreshold),m||g&&v)return 0!==this._stiffness&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),void this.__debouncedOnEnd({finished:!0});this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}const pn=fn;var mn,gn=.1,vn="function"==typeof Float32Array;function yn(e,t){return 1-3*t+3*e}function bn(e,t){return 3*t-6*e}function _n(e){return 3*e}function wn(e,t,n){return((yn(t,n)*e+bn(t,n))*e+_n(t))*e}function Sn(e,t,n){return 3*yn(t,n)*e*e+2*bn(t,n)*e+_n(t)}function xn(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var i=vn?new Float32Array(11):new Array(11);if(e!==t||n!==r)for(var o=0;o<11;++o)i[o]=wn(o*gn,e,n);return function(o){return e===t&&n===r?o:0===o?0:1===o?1:wn(function(t){for(var r=0,o=1;10!==o&&i[o]<=t;++o)r+=gn;--o;var a=r+(t-i[o])/(i[o+1]-i[o])*gn,s=Sn(a,e,n);return s>=.001?function(e,t,n,r){for(var i=t,o=0;o<4;++o){var a=Sn(i,n,r);if(0===a)return i;i-=(wn(i,n,r)-e)/a}return i}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0,l=t,u=n;do{(o=wn(a=l+(u-l)/2,r,i)-e)>0?u=a:l=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+gn,e,n)}(o),t,r)}}class En{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return mn||(mn=En.bezier(.42,0,1,1)),mn(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>Math.pow(t,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){void 0===e&&(e=1);var t=e*Math.PI;return e=>1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}static back(e){return void 0===e&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){return xn(e,t,n,r)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e(2*(1-t))/2}}const Cn=En;var kn;const An=class extends sn{constructor(e){var t,n,r,i,o;super(),this._toValue=e.toValue,this._easing=null!==(t=e.easing)&&void 0!==t?t:(kn||(kn=Cn.inOut(Cn.ease)),kn),this._duration=null!==(n=e.duration)&&void 0!==n?n:500,this._delay=null!==(r=e.delay)&&void 0!==r?r:0,this.__iterations=null!==(i=e.iterations)&&void 0!==i?i:1,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(o=e.isInteraction)&&void 0!==o?o:!this._useNativeDriver}__getNativeAnimationConfig(){for(var e=[],t=Math.round(this._duration/(1e3/60)),n=0;n<t;n++)e.push(this._easing(n/t));return e.push(this._easing(1)),{type:"frames",frames:e,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var o=()=>{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(o,this._delay):o()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};var Rn=ut.API,Tn={r:0,g:0,b:0,a:1},Pn=1;function On(e){if(null==e)return null;if(In(e))return e;var t=mt()(e);if(null==t)return null;if("object"==typeof t){if(null!=t)return t}else if("number"==typeof t)return{r:(4278190080&t)>>>24,g:(16711680&t)>>>16,b:(65280&t)>>>8,a:(255&t)/255};return null}function In(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}class Nn extends ft{constructor(e,t){super(),this._listeners={};var n=null!=e?e:Tn;if(function(e){return e&&e.r instanceof xt&&e.g instanceof xt&&e.b instanceof xt&&e.a instanceof xt}(n)){var r=n;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var i,o=null!==(i=On(n))&&void 0!==i?i:Tn,a=Tn;In(o)?a=o:this.nativeColor=o,this.r=new xt(a.r),this.g=new xt(a.g),this.b=new xt(a.b),this.a=new xt(a.a)}(this.nativeColor||t&&t.useNativeDriver)&&this.__makeNative()}setValue(e){var t,n=!1;if(this.__isNative){var r=this.__getNativeTag();Rn.setWaitingForIdentifier(r.toString())}var i=null!==(t=On(e))&&void 0!==t?t:Tn;if(In(i)){var o=i;this.r.setValue(o.r),this.g.setValue(o.g),this.b.setValue(o.b),this.a.setValue(o.a),null!=this.nativeColor&&(this.nativeColor=null,n=!0)}else{var a=i;this.nativeColor!==a&&(this.nativeColor=a,n=!0)}if(this.__isNative){var s=this.__getNativeTag();n&&Rn.updateAnimatedNodeConfig(s,this.__getNativeConfig()),Rn.unsetWaitingForIdentifier(s.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var t=String(Pn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},t}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}var Ln=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},Dn=function(e,t,n){if(e instanceof on){var r=(0,x.A)({},t),i=(0,x.A)({},t);for(var o in t){var a=t[o],s=a.x,l=a.y;void 0!==s&&void 0!==l&&(r[o]=s,i[o]=l)}var u=n(e.x,r),c=n(e.y,i);return Vn([u,c],{stopTogether:!1})}if(e instanceof Nn){var d=(0,x.A)({},t),h=(0,x.A)({},t),f=(0,x.A)({},t),p=(0,x.A)({},t);for(var m in t){var g=t[m],v=g.r,y=g.g,b=g.b,_=g.a;void 0!==v&&void 0!==y&&void 0!==b&&void 0!==_&&(d[m]=v,h[m]=y,f[m]=b,p[m]=_)}var w=n(e.r,d),S=n(e.g,h),E=n(e.b,f),C=n(e.a,p);return Vn([w,S,E,C],{stopTogether:!1})}return null},Mn=function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ht?r.track(new nn(r,t.toValue,An,i,n)):r.animate(new An(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},Fn=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start(function r(i){i.finished&&++t!==e.length?e[t].start(r):n&&n(i)})},stop:function(){t<e.length&&e[t].stop()},reset:function(){e.forEach((e,n)=>{n<=t&&e.reset()}),t=0},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},Vn=function(e,t){var n=0,r={},i=!(t&&!1===t.stopTogether),o={start:function(t){n!==e.length?e.forEach((a,s)=>{var l=function(a){if(r[s]=!0,++n===e.length)return n=0,void(t&&t(a));!a.finished&&i&&o.stop()};a?a.start(l):l({finished:!0})}):t&&t({finished:!0})},stop:function(){e.forEach((e,t)=>{!r[t]&&e.stop(),r[t]=!0})},reset:function(){e.forEach((e,t)=>{e.reset(),r[t]=!1,n=0})},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return o},zn=function(e){return Mn(new xt(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})};const jn={Value:xt,ValueXY:on,Color:Nn,Interpolation:wt,Node:ht,decay:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),r.animate(new ln(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},timing:Mn,spring:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ht?r.track(new nn(r,t.toValue,pn,i,n)):r.animate(new pn(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},add:function(e,t){return new Xt(e,t)},subtract:function(e,t){return new tn(e,t)},divide:function(e,t){return new Qt(e,t)},multiply:function(e,t){return new en(e,t)},modulo:function(e,t){return new Zt(e,t)},diffClamp:function(e,t,n){return new Jt(e,t,n)},delay:zn,sequence:Fn,parallel:Vn,stagger:function(e,t){return Vn(t.map((t,n)=>Fn([zn(e*n),t])))},loop:function(e,t){var n=void 0===t?{}:t,r=n.iterations,i=void 0===r?-1:r,o=n.resetBeforeIteration,a=void 0===o||o,s=!1,l=0;return{start:function(t){e&&0!==i?e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){void 0===r&&(r={finished:!0}),s||l===i||!1===r.finished?t&&t(r):(l++,a&&e.reset(),e.start(n))}():t&&t({finished:!0})},stop:function(){s=!0,e.stop()},reset:function(){l=0,s=!1,e.reset()},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}},event:function(e,t){var n=new Ct(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:Lt,attachNativeEvent:Et,forkEvent:function(e,t){return e?e instanceof Ct?(e.__addListener(t),e):function(){"function"==typeof e&&e(...arguments),t(...arguments)}:t},unforkEvent:function(e,t){e&&e instanceof Ct&&e.__removeListener(t)},Event:Ct};var Bn=!1;function Hn(e){return t=>{var n=null==t?t:function(){if(Bn)console.warn("Ignoring recursive animation callback when running mock animations");else{Bn=!0;try{t(...arguments)}finally{Bn=!1}}};e(n)}}var $n={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},Wn=e=>(0,x.A)((0,x.A)({},$n),{},{start:Hn(t=>{e.forEach(e=>e.start()),null==t||t({finished:!0})})});const Un={Value:xt,ValueXY:on,Color:Nn,Interpolation:wt,Node:ht,decay:function(e,t){return $n},timing:function(e,t){var n=e;return(0,x.A)((0,x.A)({},$n),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},spring:function(e,t){var n=e;return(0,x.A)((0,x.A)({},$n),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},add:jn.add,subtract:jn.subtract,divide:jn.divide,multiply:jn.multiply,modulo:jn.modulo,diffClamp:jn.diffClamp,delay:function(e){return $n},sequence:function(e){return Wn(e)},parallel:function(e,t){return Wn(e)},stagger:function(e,t){return Wn(t)},loop:function(e,t){return(void 0===t?{}:t).iterations,$n},event:jn.event,createAnimatedComponent:Lt,attachNativeEvent:Et,forkEvent:jn.forkEvent,unforkEvent:jn.unforkEvent,Event:Ct};var Kn=E.A.isTesting?Un:jn;const qn=(0,x.A)({FlatList:Dt,Image:Ft,ScrollView:Vt,SectionList:Kt,Text:Yt,View:Gt},Kn);var Yn=g.A&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,Gn=new WeakMap;const Xn={getColorScheme:()=>Yn&&Yn.matches?"dark":"light",addChangeListener(e){var t=Gn.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?"dark":"light"})},Gn.set(e,t)),Yn&&Yn.addListener(t),{remove:function(){var t=Gn.get(e);Yn&&t&&Yn.removeListener(t),Gn.delete(e)}}}};var Jn=k.createContext(null),Qn=k.forwardRef((e,t)=>{var n=e.children,r=e.WrapperComponent,i=k.createElement(R.A,{children:n,key:1,style:tr.appContainer});return r&&(i=k.createElement(r,null,i)),k.createElement(Jn.Provider,{value:e.rootTag},k.createElement(R.A,{ref:t,style:tr.appContainer},i))});Qn.displayName="AppContainer";const Zn=Qn;var er,tr=T.A.create({appContainer:{flex:1,pointerEvents:"box-none"}}),nr={},rr={},ir=e=>e();class or{static getAppKeys(){return Object.keys(rr)}static getApplication(e,t){return I()(rr[e]&&rr[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),rr[e].getApplication(t)}static registerComponent(e,t){return rr[e]={getApplication:e=>{return n=ir(t),r=e?e.initialProps:nr,i=er&&er(e),{element:k.createElement(Zn,{WrapperComponent:i,rootTag:{}},k.createElement(n,r)),getStyleElement:e=>{var t=T.A.getSheet();return k.createElement("style",(0,C.A)({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}};var n,r,i},run:e=>{return n=ir(t),r=er&&er(e),i=e.callback,a=(o={hydrate:e.hydrate||!1,initialProps:e.initialProps||nr,mode:e.mode||"concurrent",rootTag:e.rootTag}).initialProps,s=o.mode,l=o.rootTag,u=o.hydrate?"concurrent"===s?c:h:"concurrent"===s?d:f,I()(l,"Expect to have a valid rootTag, instead got ",l),u(k.createElement(Zn,{WrapperComponent:r,ref:i,rootTag:l},k.createElement(n,a)),l);var n,r,i,o,a,s,l,u}},e}static registerConfig(e){e.forEach(e=>{var t=e.appKey,n=e.component,r=e.run;r?or.registerRunnable(t,r):(I()(n,"No component provider passed in"),or.registerComponent(t,n))})}static registerRunnable(e,t){return rr[e]={run:t},e}static runApplication(e,t){return I()(rr[e]&&rr[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),rr[e].run(t)}static setComponentProviderInstrumentationHook(e){ir=e}static setWrapperComponentProvider(e){er=e}static unmountApplicationComponentAtRootTag(e){l(e)}}var ar=g.A&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),sr=["change","memoryWarning"],lr=ar?"webkitvisibilitychange":"visibilitychange",ur=ar?"webkitVisibilityState":"visibilityState",cr="active",dr=null;class hr{static get currentState(){if(!hr.isAvailable)return cr;switch(document[ur]){case"hidden":case"prerender":case"unloaded":return"background";default:return cr}}static addEventListener(e,t){if(hr.isAvailable&&(I()(-1!==sr.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e))return dr||(dr=new V.A,document.addEventListener(lr,()=>{dr&&dr.emit("change",hr.currentState)},!1)),dr.addListener(e,t)}}function fr(){}hr.isAvailable=g.A&&!!document[ur];const pr={exitApp:fr,addEventListener:()=>(console.error("BackHandler is not supported on web and should not be used."),{remove:fr}),removeEventListener:fr};var mr;class gr{static isAvailable(){return void 0===mr&&(mr="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),mr}static getString(){return Promise.resolve("")}static setString(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var o=document.createRange();o.selectNodeContents(r),i.addRange(o);try{document.execCommand("copy"),t=!0}catch(e){}i.removeAllRanges(),n.removeChild(r)}return t}}var vr=n(3384);const yr={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})};var br=n(7068);function _r(e,t){E.A.isTesting||p.A.configureNextLayoutAnimation(e,null!=t?t:function(){},function(){})}function wr(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var Sr={easeInEaseOut:wr(300,"easeInEaseOut","opacity"),linear:wr(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}};const xr={configureNext:_r,create:wr,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:Sr,easeInEaseOut:_r.bind(null,Sr.easeInEaseOut),linear:_r.bind(null,Sr.linear),spring:_r.bind(null,Sr.spring)};var Er=g.A?window.location.href:"";const Cr=new class{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this._eventCallbacks[e];null!=i&&Array.isArray(i)&&i.map(e=>{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var r=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=r}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(Er)}openURL(e,t){1===arguments.length&&(t="_blank");try{return((e,t)=>{if(g.A){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}})(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){I()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),I()(e,"Invalid URL: cannot be empty")}},kr=ze;var Ar={centroidDimension:function(e,t,n,r){var i=e.touchBank,o=0,a=0,s=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==s)s.touchActive&&s.currentTimeStamp>t&&(o+=r&&n?s.currentPageX:r&&!n?s.currentPageY:!r&&n?s.previousPageX:s.previousPageY,a=1);else for(var l=0;l<i.length;l++){var u=i[l];null!=u&&u.touchActive&&u.currentTimeStamp>=t&&(o+=r&&n?u.currentPageX:r&&!n?u.currentPageY:!r&&n?u.previousPageX:u.previousPageY,a++)}return a>0?o/a:Ar.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return Ar.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return Ar.centroidDimension(e,0,!1,!0)},noCentroid:-1};const Rr=Ar;var Tr=Rr.currentCentroidXOfTouchesChangedAfter,Pr=Rr.currentCentroidYOfTouchesChangedAfter,Or=Rr.previousCentroidXOfTouchesChangedAfter,Ir=Rr.previousCentroidYOfTouchesChangedAfter,Nr=Rr.currentCentroidX,Lr=Rr.currentCentroidY,Dr={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Tr(t,e._accountsForMovesUpTo),e.moveY=Pr(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=Or(t,n),i=Tr(t,n),o=Ir(t,n),a=Pr(t,n),s=e.dx+(i-r),l=e.dy+(a-o),u=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(s-e.dx)/u,e.vy=(l-e.dy)/u,e.dx=s,e.dy=l,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&Dr._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:r=>(t.handle||(t.handle=Z.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=Nr(r.touchHistory),n.y0=Lr(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)),onResponderReject(r){Mr(t,e.onPanResponderReject,r,n)},onResponderRelease(r){Mr(t,e.onPanResponderRelease,r,n),Fr(t),Dr._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var i=r.touchHistory;n.numberActiveTouches=i.numberActiveTouches,Mr(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){Mr(t,e.onPanResponderTerminate,r,n),Fr(t),Dr._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function Mr(e,t,n,r){e.handle&&(Z.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function Fr(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}const Vr=Dr;var zr=n(9518);const jr=class{static share(e,t){return void 0===t&&(t={}),I()("object"==typeof e&&null!==e,"Content to share must be a valid object"),I()("string"==typeof e.url||"string"==typeof e.message,"At least one of URL and message is required"),I()("object"==typeof t&&null!==t,"Options must be a valid object"),I()(!e.title||"string"==typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}};var Br=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)};const Hr={cancel(){Br(0)},vibrate(e){void 0===e&&(e=400),Br(e)}};var $r=n(2869),Wr=n(6413),Ur=k.forwardRef((e,t)=>{var n=e.accessibilityLabel,r=e.color,i=e.disabled,o=e.onPress,a=e.testID,s=e.title;return k.createElement(Wr.A,{accessibilityLabel:n,accessibilityRole:"button",disabled:i,focusable:!i,onPress:o,ref:t,style:[Kr.button,r&&{backgroundColor:r},i&&Kr.buttonDisabled],testID:a},k.createElement(qt.A,{style:[Kr.text,i&&Kr.textDisabled]},s))});Ur.displayName="Button";var Kr=T.A.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}});const qr=Ur;var Yr=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],Gr=k.forwardRef((e,t)=>{var n=e["aria-readonly"],i=e.color,o=e.disabled,a=e.onChange,s=e.onValueChange,l=e.readOnly,u=e.style,c=e.value,d=(0,A.A)(e,Yr),h=k.createElement(R.A,{style:[Xr.fakeControl,c&&Xr.fakeControlChecked,c&&i&&{backgroundColor:i,borderColor:i},o&&Xr.fakeControlDisabled,c&&o&&Xr.fakeControlCheckedAndDisabled]}),f=(0,r.A)("input",{checked:c,disabled:o,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,a&&a(e),s&&s(t)},readOnly:!0===l||!0===n||!0===d.accessibilityReadOnly,ref:t,style:[Xr.nativeControl,Xr.cursorInherit],type:"checkbox"});return k.createElement(R.A,(0,C.A)({},d,{"aria-disabled":o,"aria-readonly":n,style:[Xr.root,u,o&&Xr.cursorDefault]}),h,f)});Gr.displayName="CheckBox";var Xr=T.A.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:(0,x.A)((0,x.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const Jr=Gr;var Qr=["children","style","imageStyle","imageRef"],Zr={},ei=(0,k.forwardRef)((e,t)=>{var n=e.children,r=e.style,i=void 0===r?Zr:r,o=e.imageStyle,a=e.imageRef,s=(0,A.A)(e,Qr),l=T.A.flatten(i),u=l.height,c=l.width;return k.createElement(R.A,{ref:t,style:i},k.createElement(Mt.A,(0,C.A)({},s,{ref:a,style:[{width:c,height:u,zIndex:-1},T.A.absoluteFill,o]})),n)});ei.displayName="ImageBackground";const ti=ei;var ni=n(5470);const ri=function(e){var t=e.children,n=k.useRef(null);if(g.A&&!n.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),n.current=r)}return k.useEffect(()=>{if(g.A)return()=>{document.body&&n.current&&(document.body.removeChild(n.current),n.current=null)}},[]),n.current&&g.A?i.createPortal(t,n.current):null};function ii(e,t){return"slide"===e?t?ai:si:"fade"===e?t?li:ui:t?oi.container:oi.hidden}var oi=T.A.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"300ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:"300ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),ai=[oi.container,oi.animatedIn,oi.slideIn],si=[oi.container,oi.animatedOut,oi.slideOut],li=[oi.container,oi.animatedIn,oi.fadeIn],ui=[oi.container,oi.animatedOut,oi.fadeOut];const ci=function(e){var t=e.animationType,n=e.children,i=e.onDismiss,o=e.onShow,a=e.visible,s=k.useState(!1),l=s[0],u=s[1],c=k.useRef(!1),d=k.useRef(!1),h=t&&"none"!==t,f=k.useCallback(e=>{e&&e.currentTarget!==e.target||(a?o&&o():u(!1))},[o,a]);return k.useEffect(()=>{d.current&&!l&&i&&i(),d.current=l},[l,i]),k.useEffect(()=>{a&&u(!0),a===c.current||h||f(),c.current=a},[h,a,f]),l||a?(0,r.A)("div",{style:l?ii(t,a):oi.hidden,onAnimationEnd:f,children:n}):null};var di=["active","children","onRequestClose","transparent"],hi=k.forwardRef((e,t)=>{var n=e.active,r=e.children,i=e.onRequestClose,o=e.transparent,a=(0,A.A)(e,di);k.useEffect(()=>{if(g.A){var e=e=>{n&&"Escape"===e.key&&(e.stopPropagation(),i&&i())};return document.addEventListener("keyup",e,!1),()=>document.removeEventListener("keyup",e,!1)}},[n,i]);var s=k.useMemo(()=>[fi.modal,o?fi.modalTransparent:fi.modalOpaque],[o]);return k.createElement(R.A,(0,C.A)({},a,{"aria-modal":!0,ref:t,role:n?"dialog":null,style:s}),k.createElement(R.A,{style:fi.container},r))}),fi=T.A.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}});const pi=hi;var mi=()=>(0,r.A)("div",{role:"none",tabIndex:0,style:_i.focusBracket});function gi(e){if(!g.A)return!1;try{e.focus()}catch(e){}return document.activeElement===e}function vi(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(gi(n)||vi(n))return!0}return!1}function yi(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(gi(n)||yi(n))return!0}return!1}const bi=e=>{var t=e.active,n=e.children,r=k.useRef(),i=k.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return k.useEffect(()=>{if(g.A){var e=()=>{if(null!=r.current&&!i.current.trapFocusInProgress&&t){try{if(i.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var e=vi(r.current);i.current.lastFocusedElement===document.activeElement&&(e=yi(r.current)),!e&&null!=r.current&&document.activeElement&&p.A.focus(r.current)}}finally{i.current.trapFocusInProgress=!1}i.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener("focus",e,!0),()=>document.removeEventListener("focus",e,!0)}},[t]),k.useEffect(function(){if(g.A){var e=document.activeElement;return function(){e&&document.contains(e)&&p.A.focus(e)}}},[]),k.createElement(k.Fragment,null,k.createElement(mi,null),k.createElement(R.A,{ref:r},n),k.createElement(mi,null))};var _i=T.A.create({focusBracket:{outlineStyle:"none"}}),wi=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],Si=0,xi=[],Ei={};function Ci(){if(0!==xi.length){var e=xi[xi.length-1];xi.forEach(t=>{t in Ei&&Ei[t](t===e)})}}function ki(e){e in Ei&&(Ei[e](!1),delete Ei[e]);var t=xi.indexOf(e);-1!==t&&(xi.splice(t,1),Ci())}const Ai=k.forwardRef((e,t)=>{var n=e.animationType,r=e.children,i=e.onDismiss,o=e.onRequestClose,a=e.onShow,s=e.transparent,l=e.visible,u=void 0===l||l,c=(0,A.A)(e,wi),d=k.useMemo(()=>Si++,[]),h=k.useState(!1),f=h[0],p=h[1],m=k.useCallback(()=>{ki(d),i&&i()},[d,i]),g=k.useCallback(()=>{!function(e,t){ki(e),xi.push(e),Ei[e]=t,Ci()}(d,p),a&&a()},[d,a]);return k.useEffect(()=>()=>ki(d),[d]),k.createElement(ri,null,k.createElement(ci,{animationType:n,onDismiss:m,onShow:g,visible:u},k.createElement(bi,{active:f},k.createElement(pi,(0,C.A)({},c,{active:f,onRequestClose:o,ref:t,transparent:s}),r))))});var Ri=n(1804),Ti=n(6177),Pi=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],Oi=k.forwardRef((e,t)=>{var n=e.children,i=e.enabled,o=e.onValueChange,a=e.selectedValue,s=e.style,l=e.testID,u=(e.itemStyle,e.mode,e.prompt,(0,A.A)(e,Pi)),c=k.useRef(null),d=(0,x.A)({children:n,disabled:!1===i||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;o&&o(r,n)},style:[Ii.initial,s],testID:l,value:a},u),h=(0,Ti.A)(d),f=(0,Ri.A)(c,h,t);return d.ref=f,(0,r.A)("select",d)});Oi.Item=function(e){var t=e.color,n=e.label,i=e.testID,o=e.value,a={color:t};return(0,r.A)("option",{children:n,style:a,testID:i,value:o})};var Ii=T.A.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}});const Ni=Oi;var Li=n(4129),Di=["color","indeterminate","progress","trackColor","style"],Mi=k.forwardRef((e,t)=>{var n=e.color,r=void 0===n?"#1976D2":n,i=e.indeterminate,o=void 0!==i&&i,a=e.progress,s=void 0===a?0:a,l=e.trackColor,u=void 0===l?"transparent":l,c=e.style,d=(0,A.A)(e,Di),h=100*s,f=o?"25%":h+"%";return k.createElement(R.A,(0,C.A)({},d,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o?null:h,ref:t,role:"progressbar",style:[Fi.track,c,{backgroundColor:u}]}),k.createElement(R.A,{style:[{backgroundColor:r,width:f},Fi.progress,o&&Fi.animation]}))});Mi.displayName="ProgressBar";var Fi=T.A.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}});const Vi=Mi;var zi=["style"],ji=g.A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",Bi=k.forwardRef((e,t)=>{var n=e.style,r=(0,A.A)(e,zi);return k.createElement(R.A,(0,C.A)({},r,{ref:t,style:[Hi.root,n]}))});Bi.displayName="SafeAreaView";var Hi=T.A.create({root:{paddingTop:ji+"(safe-area-inset-top)",paddingRight:ji+"(safe-area-inset-right)",paddingBottom:ji+"(safe-area-inset-bottom)",paddingLeft:ji+"(safe-area-inset-left)"}});const $i=Bi;var Wi=()=>{};function Ui(){return null}Ui.setBackgroundColor=Wi,Ui.setBarStyle=Wi,Ui.setHidden=Wi,Ui.setNetworkActivityIndicatorVisible=Wi,Ui.setTranslucent=Wi;const Ki=Ui;var qi=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;const Yi=(e,t)=>{var n;return"string"==typeof e?""+parseFloat(e)*t+e.match(qi)[1]:(n=e,!isNaN(parseFloat(n))&&isFinite(n)?e*t:void 0)};var Gi=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],Xi={},Ji="0px 1px 3px rgba(0,0,0,0.5)",Qi=Ji+", 0 0 0 10px rgba(0,0,0,0.1)",Zi="#D5D5D5",eo="#BDBDBD",to=k.forwardRef((e,t)=>{var n=e["aria-label"],i=e.accessibilityLabel,o=e.activeThumbColor,a=e.activeTrackColor,s=e.disabled,l=void 0!==s&&s,u=e.onValueChange,c=e.style,d=void 0===c?Xi:c,h=e.thumbColor,f=e.trackColor,p=e.value,m=void 0!==p&&p,g=(0,A.A)(e,Gi),v=k.useRef(null);function y(e){var t="focus"===e.nativeEvent.type?Qi:Ji;null!=v.current&&(v.current.style.boxShadow=t)}var b=T.A.flatten(d),_=b.height,w=b.width,S=_||"20px",x=Yi(S,2),E=w>x?w:x,P=Yi(S,.5),O=!0===m?null!=f&&"object"==typeof f?f.true:null!=a?a:"#A3D3CF":null!=f&&"object"==typeof f?f.false:null!=f?f:"#939393",I=m?null!=o?o:"#009688":null!=h?h:"#FAFAFA",N=S,L=N,D=[no.root,d,l&&no.cursorDefault,{height:S,width:E}],M=!0===m?"string"==typeof a&&null!=a||"object"==typeof f&&null!=f&&f.true?O:Zi:"string"==typeof f&&null!=f||"object"==typeof f&&null!=f&&f.false?O:Zi,F=!0===m?null==o?eo:I:null==h?eo:I,V=[no.track,{backgroundColor:l?M:O,borderRadius:P}],z=[no.thumb,m&&no.thumbActive,{backgroundColor:l?F:I,height:N,marginStart:m?Yi(L,-1):0,width:L}],j=(0,r.A)("input",{"aria-label":n||i,checked:m,disabled:l,onBlur:y,onChange:function(e){null!=u&&u(e.nativeEvent.target.checked)},onFocus:y,ref:t,style:[no.nativeControl,no.cursorInherit],type:"checkbox",role:"switch"});return k.createElement(R.A,(0,C.A)({},g,{style:D}),k.createElement(R.A,{style:V}),k.createElement(R.A,{ref:v,style:z}),j)});to.displayName="Switch";var no=T.A.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:(0,x.A)((0,x.A)({forcedColorAdjust:"none"},T.A.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:Ji,start:"0%",transform:"translateZ(0)",transitionDuration:"0.1s"},thumbActive:{insetInlineStart:"100%"},nativeControl:(0,x.A)((0,x.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const ro=to;var io=n(8697),oo=n(254),ao=n(2008),so=n(3098),lo=n(1420),uo=n(8865),co=(e,t)=>{if(((e,t)=>{var n=e.selectionEnd,r=e.selectionStart,i=t.start,o=t.end;return i!==r||o!==n})(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(e){}}},ho=Object.assign({},io.Gs,io.Fh,io.DY,io.l3,io.Aw,io.k2,io.CD,io.eO,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),fo=null,po=k.forwardRef((e,t)=>{var n,i,o=e.autoCapitalize,a=void 0===o?"sentences":o,s=e.autoComplete,l=e.autoCompleteType,u=e.autoCorrect,c=void 0===u||u,d=e.blurOnSubmit,h=e.caretHidden,f=e.clearTextOnFocus,p=e.dir,m=e.editable,g=e.enterKeyHint,v=e.inputMode,y=e.keyboardType,b=e.multiline,_=void 0!==b&&b,w=e.numberOfLines,S=e.onBlur,x=e.onChange,E=e.onChangeText,C=e.onContentSizeChange,A=e.onFocus,R=e.onKeyPress,T=e.onLayout,P=e.onMoveShouldSetResponder,O=e.onMoveShouldSetResponderCapture,I=e.onResponderEnd,N=e.onResponderGrant,L=e.onResponderMove,D=e.onResponderReject,M=e.onResponderRelease,F=e.onResponderStart,V=e.onResponderTerminate,z=e.onResponderTerminationRequest,j=e.onScrollShouldSetResponder,B=e.onScrollShouldSetResponderCapture,H=e.onSelectionChange,$=e.onSelectionChangeShouldSetResponder,W=e.onSelectionChangeShouldSetResponderCapture,U=e.onStartShouldSetResponder,K=e.onStartShouldSetResponderCapture,q=e.onSubmitEditing,Y=e.placeholderTextColor,G=e.readOnly,X=void 0!==G&&G,J=e.returnKeyType,Q=e.rows,Z=e.secureTextEntry,ee=void 0!==Z&&Z,te=e.selection,ne=e.selectTextOnFocus,re=e.showSoftInputOnFocus,ie=e.spellCheck;if(null!=v)i=v,n="email"===v?"email":"tel"===v?"tel":"search"===v?"search":"url"===v?"url":"text";else if(null!=y)switch(y){case"email-address":n="email";break;case"number-pad":case"numeric":i="numeric";break;case"decimal-pad":i="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}ee&&(n="password");var oe=k.useRef({height:null,width:null}),ae=k.useRef(null),se=k.useRef(null),le=k.useRef(!1);k.useEffect(()=>{ae.current&&se.current&&co(ae.current,se.current),le.current=ee},[ee]);var ue=k.useCallback(e=>{if(_&&C&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===oe.current.height&&n===oe.current.width||(oe.current.height=t,oe.current.width=n,C({nativeEvent:{contentSize:{height:oe.current.height,width:oe.current.width}}}))}},[_,C]),ce=k.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&uo.A.currentlyFocusedField()===e},ue(e))},[ue]);(0,Ot.A)(()=>{var e=ae.current;null!=e&&null!=te&&co(e,te),document.activeElement===e&&(uo.A._currentlyFocusedNode=e)},[ae,te]);var de=_?"textarea":"input";(0,ao.A)(ae,T),(0,so.A)(ae,{onMoveShouldSetResponder:P,onMoveShouldSetResponderCapture:O,onResponderEnd:I,onResponderGrant:N,onResponderMove:L,onResponderReject:D,onResponderRelease:M,onResponderStart:F,onResponderTerminate:V,onResponderTerminationRequest:z,onScrollShouldSetResponder:j,onScrollShouldSetResponderCapture:B,onSelectionChangeShouldSetResponder:$,onSelectionChangeShouldSetResponderCapture:W,onStartShouldSetResponder:U,onStartShouldSetResponderCapture:K});var he=(0,lo.PZ)().direction,fe=(e=>(0,oo.A)(e,ho))(e);fe.autoCapitalize=a,fe.autoComplete=s||l||"on",fe.autoCorrect=c?"on":"off",fe.dir=void 0!==p?p:"auto",fe.enterKeyHint=g||J,fe.inputMode=i,fe.onBlur=function(e){uo.A._currentlyFocusedNode=null,S&&(e.nativeEvent.text=e.target.value,S(e))},fe.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,ue(t),x&&x(e),E&&E(n)},fe.onFocus=function(e){var t=e.target;A&&(e.nativeEvent.text=t.value,A(e)),null!=t&&(uo.A._currentlyFocusedNode=t,f&&(t.value=""),ne&&(null!=fo&&clearTimeout(fo),fo=setTimeout(()=>{null!=t&&document.activeElement===t&&t.select()},0)))},fe.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==d?!_:d,r=e.nativeEvent,i=function(e){return e.isComposing||229===e.keyCode}(r);R&&R(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||(!d&&_||!q||(e.preventDefault(),r.text=e.target.value,q(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},fe.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};H&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,H(e)),le.current===ee&&(se.current=n)}catch(e){}},fe.readOnly=!0===X||!1===m,fe.rows=_?null!=Q?Q:w:1,fe.spellCheck=null!=ie?ie:c,fe.style=[{"--placeholderTextColor":Y},mo.textinput$raw,mo.placeholder,e.style,h&&mo.caretHidden],fe.type=_?void 0:n,fe.virtualkeyboardpolicy=!1===re?"manual":"auto";var pe=(0,Ti.A)(fe),me=(0,Ri.A)(ae,pe,ce,t);fe.ref=me;var ge=null!=e.lang?(0,lo.il)(e.lang):null,ve=e.dir||ge||he;return(0,r.A)(de,fe,{writingDirection:ve})});po.displayName="TextInput",po.State=uo.A;var mo=T.A.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}});const go=po;var vo=n(8285),yo=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},bo=function(e){var t=this;e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},_o=yo;const wo=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||_o,n.poolSize||(n.poolSize=10),n.release=bo,n},So=yo;var xo=So;function Eo(e,t){this.width=e,this.height=t}Eo.prototype.destructor=function(){this.width=null,this.height=null},Eo.getPooledFromElement=function(e){return Eo.getPooled(e.offsetWidth,e.offsetHeight)},wo(Eo,xo);const Co=Eo;var ko=So;function Ao(e,t){this.left=e,this.top=t}Ao.prototype.destructor=function(){this.left=null,this.top=null},wo(Ao,ko);const Ro=Ao;var To=n(4078),Po=e=>{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},Oo="NOT_RESPONDER",Io="RESPONDER_INACTIVE_PRESS_IN",No="RESPONDER_INACTIVE_PRESS_OUT",Lo="RESPONDER_ACTIVE_PRESS_IN",Do="RESPONDER_ACTIVE_PRESS_OUT",Mo="RESPONDER_ACTIVE_LONG_PRESS_IN",Fo="RESPONDER_ACTIVE_LONG_PRESS_OUT",Vo="ERROR",zo={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},jo=(0,x.A)((0,x.A)({},zo),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Bo=(0,x.A)((0,x.A)({},zo),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Ho=(0,x.A)((0,x.A)({},zo),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),$o="RESPONDER_RELEASE",Wo="RESPONDER_TERMINATED",Uo="LONG_PRESS_DETECTED",Ko={NOT_RESPONDER:{DELAY:Vo,RESPONDER_GRANT:Io,RESPONDER_RELEASE:Vo,RESPONDER_TERMINATED:Vo,ENTER_PRESS_RECT:Vo,LEAVE_PRESS_RECT:Vo,LONG_PRESS_DETECTED:Vo},RESPONDER_INACTIVE_PRESS_IN:{DELAY:Lo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Io,LEAVE_PRESS_RECT:No,LONG_PRESS_DETECTED:Vo},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:Do,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Io,LEAVE_PRESS_RECT:No,LONG_PRESS_DETECTED:Vo},RESPONDER_ACTIVE_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Lo,LEAVE_PRESS_RECT:Do,LONG_PRESS_DETECTED:Mo},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Lo,LEAVE_PRESS_RECT:Do,LONG_PRESS_DETECTED:Vo},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Mo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Mo},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Mo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Vo},error:{DELAY:Oo,RESPONDER_GRANT:Io,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Oo,LEAVE_PRESS_RECT:Oo,LONG_PRESS_DETECTED:Oo}},qo={componentDidMount:function(){(0,To.m)("TouchableMixin","TouchableMixin is deprecated. Please use Pressable.");var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==Oo&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=Oo,this.state.touchable.responderID=t,this._receiveSignal("RESPONDER_GRANT",e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(n=isNaN(n)?130:n)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;r=isNaN(r)?370:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal($o,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(Wo,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},i=r.left,o=r.top,a=r.right,s=r.bottom,l=this.touchableGetHitSlop?this.touchableGetHitSlop():null;l&&(i+=l.left||0,o+=l.top||0,a+=l.right||0,s+=l.bottom||0);var u=Po(e.nativeEvent),c=u&&u.pageX,d=u&&u.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(c,d,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout(),c>t.left-i&&d>t.top-o&&c<t.left+n.width+a&&d<t.top+n.height+s){var h=this.state.touchable.touchState;this._receiveSignal("ENTER_PRESS_RECT",e),this.state.touchable.touchState===Io&&h!==Io&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal("LEAVE_PRESS_RECT",e)}},touchableHandleFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},touchableHandleBlur:function(e){this.props.onBlur&&this.props.onBlur(e)},_remeasureMetricsOnActivation:function(){var e=this.state.touchable.responderID;null!=e&&p.A.measure(e,this._handleQueryLayout)},_handleQueryLayout:function(e,t,n,r,i,o){(e||t||n||r||i||o)&&(this.state.touchable.positionOnActivate&&Ro.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&Co.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=Ro.getPooled(i,o),this.state.touchable.dimensionsOnActivate=Co.getPooled(n,r))},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal("DELAY",e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==Lo&&t!==Mo?console.error("Attempted to transition from state `"+t+"` to `"+Mo+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(Uo,e)},_receiveSignal:function(e,t){var n=this.state.touchable.responderID,r=this.state.touchable.touchState,i=Ko[r]&&Ko[r][e];if(n||e!==$o){if(!i)throw new Error("Unrecognized signal `"+e+"` or state `"+r+"` for Touchable responder `"+n+"`");if(i===Vo)throw new Error("Touchable cannot transition from `"+r+"` to `"+e+"` for responder `"+n+"`");r!==i&&(this._performSideEffectsForTransition(r,i,e,t),this.state.touchable.touchState=i)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===Lo||e===Mo},_savePressInLocation:function(e){var t=Po(e.nativeEvent),n=t&&t.pageX,r=t&&t.pageY,i=t&&t.locationX,o=t&&t.locationY;this.pressInLocation={pageX:n,pageY:r,locationX:i,locationY:o}},_getDistanceBetweenPoints:function(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},_performSideEffectsForTransition:function(e,t,n,r){var i=this._isHighlight(e),o=this._isHighlight(t);(n===Wo||n===$o)&&this._cancelLongPressDelayTimeout();var a=e===Oo&&t===Io,s=!jo[e]&&jo[t];if((a||s)&&this._remeasureMetricsOnActivation(),Bo[e]&&n===Uo&&this.touchableHandleLongPress&&this.touchableHandleLongPress(r),o&&!i?this._startHighlight(r):!o&&i&&this._endHighlight(r),Bo[e]&&n===$o){var l=!!this.props.onLongPress,u=Ho[e]&&(!l||!this.touchableLongPressCancelsPress());(!Ho[e]||u)&&this.touchableHandlePress&&(o||i||(this._startHighlight(r),this._endHighlight(r)),this.touchableHandlePress(r))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){p.A.playTouchSound()},_startHighlight:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(e)},_endHighlight:function(e){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;"Enter"!==n&&" "!==n||("keydown"===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==Oo||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):"keyup"===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==Oo&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),"Enter"===n&&"link"===vo.A.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}},Yo=(qo.touchableHandleFocus,qo.touchableHandleBlur,(0,A.A)(qo,["touchableHandleFocus","touchableHandleBlur"]));qo.withoutDefaultFocusAndBlur=Yo;var Go={Mixin:qo,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!Go.TOUCH_TARGET_DEBUG)return null;var r={};for(var i in n=n||{top:0,bottom:0,left:0,right:0})r[i]=-n[i];var o=mt()(t);if("number"!=typeof o)return null;var a="#"+("00000000"+o.toString(16)).substr(-8);return k.createElement(R.A,{pointerEvents:"none",style:(0,x.A)({position:"absolute",borderColor:a.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:a.slice(0,-2)+"0F"},r)})}};const Xo=Go;var Jo=n(6533),Qo=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function Zo(e,t){return{child:{opacity:null!=e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function ea(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}function ta(e,t){var n=e.activeOpacity,r=e.children,i=e.delayPressIn,o=e.delayPressOut,a=e.delayLongPress,s=e.disabled,l=e.focusable,u=e.onHideUnderlay,c=e.onLongPress,d=e.onPress,h=e.onPressIn,f=e.onPressOut,p=e.onShowUnderlay,m=e.rejectResponderTermination,g=e.style,v=e.testOnly_pressed,y=e.underlayColor,b=(0,A.A)(e,Qo),_=(0,k.useRef)(null),w=(0,Ri.A)(t,_),S=(0,k.useState)(!0===v?Zo(n,y):null),x=S[0],E=S[1],T=(0,k.useCallback)(()=>{ea(e)&&(E(Zo(n,y)),null!=p&&p())},[n,p,e,y]),P=(0,k.useCallback)(()=>{!0!==v&&ea(e)&&(E(null),null!=u&&u())},[u,e,v]),O=(0,k.useMemo)(()=>({cancelable:!m,disabled:s,delayLongPress:a,delayPressStart:i,delayPressEnd:o,onLongPress:c,onPress:d,onPressStart(e){T(),null!=h&&h(e)},onPressEnd(e){P(),null!=f&&f(e)}}),[a,i,o,s,c,d,h,f,m,T,P]),I=(0,Jo.A)(_,O),N=k.Children.only(r);return k.createElement(R.A,(0,C.A)({},b,I,{accessibilityDisabled:s,focusable:!s&&!1!==l,pointerEvents:s?"box-none":void 0,ref:w,style:[na.root,g,!s&&na.actionable,x&&x.underlay]}),k.cloneElement(N,{style:[N.props.style,x&&x.child]}))}var na=T.A.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),ra=k.memo(k.forwardRef(ta));ra.displayName="TouchableHighlight";const ia=ra;var oa=["style"],aa={};const sa=function(e){var t=e.style,n=(0,A.A)(e,oa);return k.createElement(R.A,(0,C.A)({},n,{style:[aa,t]}))},la=sa;var ua={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0};function ca(e,t){(0,To.m)("TouchableWithoutFeedback","TouchableWithoutFeedback is deprecated. Please use Pressable.");var n=e.delayPressIn,r=e.delayPressOut,i=e.delayLongPress,o=e.disabled,a=e.focusable,s=e.onLongPress,l=e.onPress,u=e.onPressIn,c=e.onPressOut,d=e.rejectResponderTermination,h=(0,k.useRef)(null),f=(0,k.useMemo)(()=>({cancelable:!d,disabled:o,delayLongPress:i,delayPressStart:n,delayPressEnd:r,onLongPress:s,onPress:l,onPressStart:u,onPressEnd:c}),[o,n,r,i,s,l,u,c,d]),p=(0,Jo.A)(h,f),m=k.Children.only(e.children),g=[m.props.children],v=(e=>(0,oo.A)(e,ua))(e);v.accessibilityDisabled=o,v.focusable=!o&&!1!==a,v.ref=(0,Ri.A)(t,h,m.ref);var y=Object.assign(v,p);return k.cloneElement(m,y,...g)}var da=k.memo(k.forwardRef(ca));da.displayName="TouchableWithoutFeedback";const ha=da,fa=Te;function pa(e){return k.createElement(sa,e)}pa.ignoreWarnings=()=>{};const ma=pa,ga={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}};var va=n(9697);function ya(){var e=k.useState(Xn.getColorScheme()),t=e[0],n=e[1];return k.useEffect(()=>Xn.addChangeListener(function(e){n(e.colorScheme)}).remove),t}const ba=lo.PZ;function _a(){var e=(0,k.useState)(()=>vr.A.get("window")),t=e[0],n=e[1];return(0,k.useEffect)(()=>{function e(e){var t=e.window;null!=t&&n(t)}return vr.A.addEventListener("change",e),n(vr.A.get("window")),()=>{vr.A.removeEventListener("change",e)}},[]),t}},8285(e,t,n){"use strict";n.d(t,{A:()=>s});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null};const i=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var i=r[n];if(null!==i)return i||n}};var o={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},a={};const s={isDisabled:e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1,propsToAccessibilityComponent:function(e){if(void 0===e&&(e=a),"label"===(e.role||e.accessibilityRole))return"label";var t=i(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return o[t]}},propsToAriaRole:i}},8865(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8683);const i={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.A.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.A.blur(e))}}},7162(e,t,n){"use strict";n.d(t,{A:()=>r});const r=!("undefined"==typeof window||!window.document||!window.document.createElement)},3116(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8865);const i=()=>{r.A.blurTextInput(r.A.currentlyFocusedField())}},8697(e,t,n){"use strict";n.d(t,{Aw:()=>s,CD:()=>u,DY:()=>o,Fh:()=>i,Gs:()=>r,eO:()=>c,k2:()=>l,l3:()=>a});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},i={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},o={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},a={onBlur:!0,onFocus:!0},s={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},1968(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()}},87(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(t=>{null!=t&&("function"!=typeof t?"object"!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=e:t(e))})}}n.d(t,{A:()=>r}),n(6540)},254(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,{A:()=>r})},2008(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(8425),i=n(8683),o=n(7162),a="__reactLayoutHandler",s=(o.A,null);function l(e,t){var n=(o.A&&void 0!==window.ResizeObserver&&null==s&&(s=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[a];"function"==typeof n&&i.A.measure(t,(t,r,i,o,a,s)=>{var l={nativeEvent:{layout:{x:t,y:r,width:i,height:o,left:a,top:s}},timeStamp:Date.now()};Object.defineProperty(l.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(l)})})})),s);(0,r.A)(()=>{var n=e.current;null!=n&&(n[a]=t)},[e,t]),(0,r.A)(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[a]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}},8425(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(6540);const i=n(7162).A?r.useLayoutEffect:r.useEffect},1420(e,t,n){"use strict";n.d(t,{YO:()=>c,il:()=>u,PZ:()=>d});var r=n(6540),i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),a=new Map,s={direction:"ltr",locale:"en-US"},l=(0,r.createContext)(s);function u(e){return function(e){var t=a.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=i.has(r)}catch(t){var s=e.split("-")[0];n=o.has(s)}else{var l=e.split("-")[0];n=o.has(l)}return a.set(e,n),n}(e)?"rtl":"ltr"}function c(e){var t=e.direction,n=e.locale,i=e.children;return t||n?r.createElement(l.Provider,{children:i,value:{direction:n?u(n):t,locale:n}}):i}function d(){return(0,r.useContext)(l)}},1804(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6540),i=n(87);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo(()=>(0,i.A)(...t),[...t])}},6177(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8683),i=n(9241);function o(e){return e.pointerEvents,e.style,(0,i.A)(()=>e=>{null!=e&&(e.measure=t=>r.A.measure(e,t),e.measureLayout=(t,n,i)=>r.A.measureLayout(e,t,i,n),e.measureInWindow=t=>r.A.measureInWindow(e,t))})}},6533(e,t,n){"use strict";n.d(t,{A:()=>x});var r="DELAY",i="ERROR",o="LONG_PRESS_DETECTED",a="NOT_RESPONDER",s="RESPONDER_ACTIVE_LONG_PRESS_START",l="RESPONDER_ACTIVE_PRESS_START",u="RESPONDER_INACTIVE_PRESS_START",c="RESPONDER_RELEASE",d="RESPONDER_TERMINATED",h=Object.freeze({NOT_RESPONDER:{DELAY:i,RESPONDER_GRANT:u,RESPONDER_RELEASE:i,RESPONDER_TERMINATED:i,LONG_PRESS_DETECTED:i},RESPONDER_INACTIVE_PRESS_START:{DELAY:l,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:i},RESPONDER_ACTIVE_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},ERROR:{DELAY:a,RESPONDER_GRANT:u,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:a}}),f=e=>e.getAttribute("role"),p=e=>e.tagName.toLowerCase(),m=e=>e===l||e===s,g=e=>"button"===f(e),v=e=>e===u||e===l||e===s,y=e=>{var t=e.key,n=e.target,r=" "===t||"Spacebar"===t,i="button"===p(n)||g(n);return"Enter"===t||r&&i};class b{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=a,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=a,this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=_(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(r,e)},n):this._receiveSignal(r,e);var i=_(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},i+n)},t=e=>{this._receiveSignal(c,e)},n=e=>{var r=this._config.onPress,i=e.target;if(this._touchState!==a&&y(e)){t(e),document.removeEventListener("keyup",n);var o=i.getAttribute("role"),s=p(i),l="link"===o||"a"===s||"button"===s||"input"===s||"select"===s||"textarea"===s,u=this._responderElement===i;null!=r&&!l&&u&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&g(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,o=t.target;if(!r&&y(t)){this._touchState===a&&(e(t,!1),this._responderElement=o,document.addEventListener("keyup",n));var s=" "===i||"Spacebar"===i,l=f(o);s&&("button"===l||"menuitem"===l)&&"button"!==p(o)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=w(e);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(d,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return!(!r&&null!=i&&this._isPointerTouch&&"contextmenu"===e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?g(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?g(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;null!=h[n]&&(r=h[n][e]),this._touchState===a&&e===c||(null==r||r===i?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if((e=>e===d||e===c)(n)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),v(e)&&n===o){var i=this._config.onLongPress;null!=i&&null==r.nativeEvent.key&&(i(r),this._longPressDispatched=!0)}var a=m(e),l=m(t);if(!a&&l?this._activate(r):a&&!l&&this._deactivate(r),v(e)&&n===c){var u=this._config,h=u.onLongPress;null!=u.onPress&&(null!=h&&e===s||l||a||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=w(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var o=_(this._config.delayPressEnd);o>0?this._pressOutDelayTimeout=setTimeout(()=>{i()},o):i()}_handleLongPress(e){this._touchState!==l&&this._touchState!==s||this._receiveSignal(o,e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function _(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!=e?e:n)}function w(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var S=n(6540);function x(e,t){var n=(0,S.useRef)(null);null==n.current&&(n.current=new b(t));var r=n.current;return(0,S.useEffect)(()=>{r.configure(t)},[t,r]),(0,S.useEffect)(()=>()=>{r.reset()},[r]),(0,S.useDebugValue)(t),r.getEventHandlers()}},3098(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(6540),i=n(1968),o=()=>{},a={},s=[];function l(e){return e>20?e%20:e}function u(e,t){var n,r,u,c=!1,d=e.changedTouches,h=e.type,f=!0===e.metaKey,p=!0===e.shiftKey,m=d&&d[0].force||0,g=l(d&&d[0].identifier||0),v=d&&d[0].clientX||e.clientX,y=d&&d[0].clientY||e.clientY,b=d&&d[0].pageX||e.pageX,_=d&&d[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):o,S=e.timeStamp;function x(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:l(e.identifier),get locationX(){return k(e.clientX)},get locationY(){return A(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:S}))}if(null!=d)r=x(d),u=x(e.touches);else{var E=[{force:m,identifier:g,get locationX(){return k(v)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S}];r=E,u="mouseup"===h||"dragstart"===h?s:E}var C={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:a,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>c,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:f,shiftKey:p,changedTouches:r,force:m,identifier:g,get locationX(){return k(v)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S,touches:u,type:h},persist:o,preventDefault:w,stopPropagation(){c=!0},target:e.target,timeStamp:S,touchHistory:t.touchHistory};function k(e){if(n=n||(0,i.A)(C.currentTarget))return e-n.left}function A(e){if(n=n||(0,i.A)(C.currentTarget))return e-n.top}return C}function c(e){return"touchstart"===e||"mousedown"===e}function d(e){return"touchmove"===e||"mousemove"===e}function h(e){return"touchend"===e||"mouseup"===e||f(e)}function f(e){return"touchcancel"===e||"dragstart"===e}var p="__reactResponderId";function m(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function g(e){return null!=e?e[p]:null}function v(e){return e.timeStamp||e.timestamp}function y(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function b(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:v(e)})}function _(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}var w=n(7162),S={},x=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],E=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],C={touchstart:x,mousedown:x,touchmove:E,mousemove:E,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},k={id:null,idPath:null,node:null},A=new Map,R=!1,T=0,P={id:null,node:null,idPath:null},O=new class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(d(e))t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[y(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=v(e),t.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+b(e)+"\n","Touch Bank: "+_(t))}(e,n));else if(c(e))t.changedTouches.forEach(e=>function(e,t){var n=y(e),r=t.touchBank[n];r?function(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=v(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=v(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=v(t)}(r,e):t.touchBank[n]=function(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:v(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:v(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:v(e)}}(e),t.mostRecentTimeStamp=v(e)}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(h(e)&&(t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[y(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=v(e),t.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+b(e)+"\n","Touch Bank: "+_(t))}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,i=0;i<r.length;i++){var o=r[i];if(null!=o&&o.touchActive){n.indexOfSingleActiveTouch=i;break}}}get touchHistory(){return this._touchHistory}};function I(e){P=e}function N(e){var t=A.get(e);return null!=t?t:S}function L(e){var t=e.type,n=e.target;if("touchstart"===t&&(R=!0),("touchmove"===t||T>1)&&(R=!1),!("mousedown"===t&&R||"mousemove"===t&&R||"mousemove"===t&&T<1))if(R&&"mouseup"===t)0===T&&(R=!1);else{var r=c(t)&&function(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,o=e.type,a=!1===t&&!1===i;return!!("touchstart"===o||"touchmove"===o||"mousedown"===o&&(0===n||1===r)&&a||"mousemove"===o&&1===r&&a)}(e),i=d(t),o=h(t),a=function(e){return"scroll"===e}(t),s=function(e){return"select"===e||"selectionchange"===e}(t),l=u(e,O);(r||i||o)&&(e.touches?T=e.touches.length:r?T=1:o&&(T=0),O.recordTouchTrack(t,l.nativeEvent));var p,v=function(e){for(var t=[],n=[],r=function(e){return"selectionchange"===e.type?m(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():m(e.target)}(e),i=0;i<r.length;i++){var o=r[i],a=g(o);null!=a&&(t.push(a),n.push(o))}return{idPath:t,nodePath:n}}(e),y=!1;if(r||i||a&&T>0){var b=P.idPath,_=v.idPath;if(null!=b&&null!=_){var w=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var i=e[0],o=0,a=t[0],s=0;n-r>0&&(i=e[o=n-r],n=r),r-n>0&&(a=t[s=r-n],r=n);for(var l=n;l--;){if(i===a)return i;i=e[o++],a=t[s++]}return null}(b,_);if(null!=w){var S=_.indexOf(w)+(w===P.id?1:0);v={idPath:_.slice(S),nodePath:v.nodePath.slice(S)}}else v=null}null!=v&&(p=function(e,t,n){var r=C[t.type];if(null!=r){for(var i=e.idPath,o=e.nodePath,a=r[0],s=r[1],l=r[2].bubbles,u=function(e,t,r){var o=N(e)[r];if(null!=o&&(n.currentTarget=t,!0===o(n)))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},c=i.length-1;c>=0;c--){var d=u(i[c],o[c],a);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(l)for(var h=0;h<i.length;h++){var f=u(i[h],o[h],s);if(null!=f)return f;if(!0===n.isPropagationStopped())return}else{var p=i[0],m=o[0];if(t.target===m)return u(p,m,s)}}}(v,e,l),null!=p&&(function(e,t){var n=P,r=n.id,i=n.node,o=t.id,a=t.node,s=N(o),l=s.onResponderGrant,u=s.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=a,null==r)null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),I(t);else{var c=N(r),d=c.onResponderTerminate,h=c.onResponderTerminationRequest,f=!0;null!=h&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminationRequest",!1===h(e)&&(f=!1)),f?(null!=d&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminate",d(e)),null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),I(t)):null!=u&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderReject",u(e))}}(l,p),y=!0))}if(null!=P.id&&null!=P.node){var x=P,E=x.id,A=x.node,L=N(E),D=L.onResponderStart,M=L.onResponderMove,F=L.onResponderEnd,V=L.onResponderRelease,z=L.onResponderTerminate,j=L.onResponderTerminationRequest;if(l.bubbles=!1,l.cancelable=!1,l.currentTarget=A,r)null!=D&&(l.dispatchConfig.registrationName="onResponderStart",D(l));else if(i)null!=M&&(l.dispatchConfig.registrationName="onResponderMove",M(l));else{var B=f(t)||"contextmenu"===t||"blur"===t&&n===window||"blur"===t&&n.contains(A)&&e.relatedTarget!==A||a&&0===T||a&&n.contains(A)&&n!==A||s&&function(e){return"selectionchange"===e.type?(n=(t=window.getSelection()).toString(),r=t.anchorNode,i=t.focusNode,o=r&&r.nodeType===window.Node.TEXT_NODE||i&&i.nodeType===window.Node.TEXT_NODE,n.length>=1&&"\n"!==n&&o):"select"===e.type;var t,n,r,i,o}(e),H=o&&!B&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;n<t.length;n++){var r=t[n].target;if(null!=r&&e.contains(r))return!0}return!1}(A,e.touches);if(o&&null!=F&&(l.dispatchConfig.registrationName="onResponderEnd",F(l)),H&&(null!=V&&(l.dispatchConfig.registrationName="onResponderRelease",V(l)),I(k)),B){var $=!0;"contextmenu"!==t&&"scroll"!==t&&"selectionchange"!==t||(y?$=!1:null!=j&&(l.dispatchConfig.registrationName="onResponderTerminationRequest",!1===j(l)&&($=!1))),$&&(null!=z&&(l.dispatchConfig.registrationName="onResponderTerminate",z(l)),I(k),R=!1,T=0)}}}}}var D=["blur","scroll"],M=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function F(e){P.id===e&&function(){var e=P,t=e.id,n=e.node;if(null!=t&&null!=n){var r=N(t).onResponderTerminate;if(null!=r){var i=u({},O);i.currentTarget=n,r(i)}I(k)}R=!1,T=0}(),A.has(e)&&A.delete(e)}var V={},z=0;function j(e,t){void 0===t&&(t=V);var n,i,o=(n=()=>z++,null==(i=r.useRef(null)).current&&(i.current=n()),i.current),a=r.useRef(!1);r.useEffect(()=>(w.A&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",L),M.forEach(e=>{document.addEventListener(e,L)}),D.forEach(e=>{document.addEventListener(e,L,!0)}),window.__reactResponderSystemActive=!0),()=>{F(o)}),[o]),r.useEffect(()=>{var n=t,r=n.onMoveShouldSetResponder,i=n.onMoveShouldSetResponderCapture,s=n.onScrollShouldSetResponder,l=n.onScrollShouldSetResponderCapture,u=n.onSelectionChangeShouldSetResponder,c=n.onSelectionChangeShouldSetResponderCapture,d=n.onStartShouldSetResponder,h=n.onStartShouldSetResponderCapture,f=null!=r||null!=i||null!=s||null!=l||null!=u||null!=c||null!=d||null!=h,m=e.current;f?(function(e,t,n){!function(e,t){null!=e&&(e[p]=t)}(t,e),A.set(e,n)}(o,m,t),a.current=!0):a.current&&(F(o),a.current=!1)},[t,e,o]),r.useDebugValue({isResponder:e.current===P.node}),r.useDebugValue(t)}},9241(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6540),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function o(e){var t=r.useRef(i);return t.current===i&&(t.current=e()),t.current}},4078(e,t,n){"use strict";function r(e,t){}n.d(t,{m:()=>r})},5725(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new(n(1603).A)},1603(e,t,n){"use strict";n.d(t,{A:()=>r});class r{constructor(){this._registry={}}addListener(e,t,n){var r=function(e,t){var n=e[t];return null==n&&(n=new Set,e[t]=n),n}(this._registry,e),i={context:n,listener:t,remove(){r.delete(i)}};return r.add(i),i}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0,a=[...t];o<a.length;o++){var s=a[o];s.listener.apply(s.context,r)}}}removeAllListeners(e){null==e?this._registry={}:delete this._registry[e]}listenerCount(e){var t=this._registry[e];return null==t?0:t.size}}},1515(e){"use strict";function t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,n,r){const i=r<.5?r*(1+n):r+n-r*n,o=2*r-i,a=t(o,i,e+1/3),s=t(o,i,e),l=t(o,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*l)<<8}const r="[-+]?\\d*\\.?\\d+",i=r+"%";function o(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let l;function u(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function h(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;const f=(void 0===l&&(l={rgb:new RegExp("rgb"+o(r,r,r)),rgba:new RegExp("rgba("+s(r,r,r,r)+"|"+a(r,r,r,r)+")"),hsl:new RegExp("hsl"+o(r,i,i)),hsla:new RegExp("hsla("+s(r,i,i,r)+"|"+a(r,i,i,r)+")"),hwb:new RegExp("hwb"+o(r,i,i)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),l);let p;if(p=f.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;const m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=f.rgb.exec(e))?(u(p[1])<<24|u(p[2])<<16|u(p[3])<<8|255)>>>0:(p=f.rgba.exec(e))?void 0!==p[6]?(u(p[6])<<24|u(p[7])<<16|u(p[8])<<8|d(p[9]))>>>0:(u(p[2])<<24|u(p[3])<<16|u(p[4])<<8|d(p[5]))>>>0:(p=f.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=f.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=f.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=f.hsl.exec(e))?(255|n(c(p[1]),h(p[2]),h(p[3])))>>>0:(p=f.hsla.exec(e))?void 0!==p[6]?(n(c(p[6]),h(p[7]),h(p[8]))|d(p[9]))>>>0:(n(c(p[2]),h(p[3]),h(p[4]))|d(p[5]))>>>0:(p=f.hwb.exec(e))?(255|function(e,n,r){if(n+r>=1){const e=Math.round(255*n/(n+r));return e<<24|e<<16|e<<8}const i=t(0,1,e+1/3)*(1-n-r)+n,o=t(0,1,e)*(1-n-r)+n,a=t(0,1,e-1/3)*(1-n-r)+n;return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}(c(p[1]),h(p[2]),h(p[3])))>>>0:null}},5287(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var _=b.prototype=new y;_.constructor=b,m(_,v.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:x.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+R(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),T(a,t,i,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+R(s=e[u],u);l+=T(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,c=o+R(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},L={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:x};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},6540(e,t,n){"use strict";e.exports=n(5287)},7463(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,_(e),!m)if(null!==r(u))m=!0,N(S);else{var t=r(c);null!==t&&L(w,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(k),k=-1),p=!0;var o=f;try{for(_(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!T());){var a=h.callback;if("function"==typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===r(u)&&i(u),_(n)}else i(u);h=r(u)}if(null!==h)var l=!0;else{var d=r(c);null!==d&&L(w,d.startTime-n),l=!1}return l}finally{h=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E=!1,C=null,k=-1,A=5,R=-1;function T(){return!(t.unstable_now()-R<A)}function P(){if(null!==C){var e=t.unstable_now();R=e;var n=!0;try{n=C(!0,e)}finally{n?x():(E=!1,C=null)}}else E=!1}if("function"==typeof b)x=function(){b(P)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,I=O.port2;O.port1.onmessage=P,x=function(){I.postMessage(null)}}else x=function(){v(P,0)};function N(e){C=e,E||(E=!0,x())}function L(e,n){k=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,N(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(y(k),k=-1):g=!0,L(w,o-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,N(S))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982(e,t,n){"use strict";e.exports=n(7463)},3176(e,t){"use strict";t.P=void 0;var n=new WeakMap;function r(e){var t,r,i;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,i=e.transform),function(){for(var e=[],o="",a=null,s=t?null:n,l=new Array(arguments.length),u=0;u<arguments.length;u++)l[u]=arguments[u];for(;l.length>0;){var c=l.pop();if(null!=c&&!1!==c)if(Array.isArray(c))for(var d=0;d<c.length;d++)l.push(c[d]);else{var h=null!=i?i(c):c;if(h.$$css){var f="";if(null!=s&&s.has(h)){var p=s.get(h);null!=p&&(f=p[0],e.push.apply(e,p[1]),s=p[2])}else{var m=[];for(var g in h){var v=h[g];"$$css"!==g&&("string"==typeof v||null===v?e.includes(g)||(e.push(g),null!=s&&m.push(g),"string"==typeof v&&(f+=f?" "+v:v)):console.error("styleq: ".concat(g," typeof ").concat(String(v),' is not "string" or "null".')))}if(null!=s){var y=new WeakMap;s.set(h,[f,m,y]),s=y}}f&&(o=o?f+" "+o:f)}else if(r)null==a&&(a={}),a=Object.assign({},h,a);else{var b=null;for(var _ in h){var w=h[_];void 0!==w&&(e.includes(_)||(null!=w&&(null==a&&(a={}),null==b&&(b={}),b[_]=w),e.push(_),s=null))}null!=b&&(a=Object.assign(b,a))}}}return[o,a]}}var i=r();t.P=i,i.factory=r},4336(e,t){"use strict";t.n=function(e,t){if(null!=e[r]){var o=t?1:0;if(n.has(e)){var a=n.get(e),s=a[o];return null==s&&(s=i(e,t),a[o]=s,n.set(e,a)),s}var l=i(e,t),u=new Array(2);return u[o]=l,n.set(e,u),l}return e};var n=new WeakMap,r="$$css$localize";function i(e,t){var n={};for(var i in e)if(i!==r){var o=e[i];Array.isArray(o)?n[i]=t?o[1]:o[0]:n[i]=o}return n}},4915(e){e.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}},8168(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},2555(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:()=>a})},8587(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},6e3(e,t,n){"use strict";n.d(t,{v4:()=>a});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],n+=6==t?o[15&e|64]:8==t?o[63&e|128]:o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},3172(e,t,n){"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{J:()=>r})},1635(e,t,n){"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>l,fX:()=>u,sH:()=>s});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},2510(e){"use strict";e.exports=JSON.parse('{"black":"#000000","silver":"#c0c0c0","gray":"#808080","white":"#ffffff","maroon":"#800000","red":"#ff0000","purple":"#800080","fuchsia":"#ff00ff","green":"#008000","lime":"#00ff00","olive":"#808000","yellow":"#ffff00","navy":"#000080","blue":"#0000ff","teal":"#008080","aqua":"#00ffff","orange":"#ffa500","aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","blanchedalmond":"#ffebcd","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","limegreen":"#32cd32","linen":"#faf0e6","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","oldlace":"#fdf5e6","olivedrab":"#6b8e23","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","whitesmoke":"#f5f5f5","yellowgreen":"#9acd32","rebeccapurple":"#663399"}')}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".chat-widget.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="vdb-ai-chat:",a.l=(e,t,i,o)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var h=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,u=0;if(o.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);u<o.length;u++)i=o[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkvdb_ai_chat=self.webpackChunkvdb_ai_chat||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=a(9697),t=a(6540),n=a(9176),r=a(7862),i=a(8997),o=a(5338),s=a(1635);function l(){return"undefined"!=typeof process&&process.env?process.env:{}}var u=a(9456),c=a(2321);function d(e,t,n,r){var i,o=[e,t,n,r],a=(0,c.Qd)(e)?e.event:e;if(!a||!(0,c.Kg)(a))throw new Error("Event missing");var s=(0,c.Qd)(e)?null!==(i=e.properties)&&void 0!==i?i:{}:(0,c.Qd)(t)?t:{},l={};return(0,c.Tn)(n)||(l=null!=n?n:{}),(0,c.Qd)(e)&&!(0,c.Tn)(t)&&(l=null!=t?t:{}),[a,s,l,o.find(c.Tn)]}function h(e,t,n,r,i){var o,a,s=null,l=null,u=[e,t,n,r,i],d=u.filter(c.Kg);1===d.length?(0,c.Kg)(u[1])?(l=u[1],s=null):(l=d[0],s=null):2===d.length&&("string"==typeof u[0]&&(s=u[0]),"string"==typeof u[1]&&(l=u[1]));var h=u.find(c.Tn),f=u.filter(c.Qd);return 1===f.length?(0,c.Qd)(u[2])?(a={},o=u[2]):(0,c.Qd)(u[3])?(o={},a=u[3]):(o=f[0],a={}):2===f.length&&(o=f[0],a=f[1]),[s,l,null!=o?o:o={},null!=a?a:a={},h]}var f=function(e){return function(){for(var t,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],l=0,u=i;l<u.length;l++){var d=u[l],h=s.pop();if("id"===h){if((0,c.Kg)(d)||(0,c.Et)(d)){a.id=d.toString();continue}if(null==d)continue;h=s.pop()}if("traits"!==h&&"options"!==h||null!=d&&!(0,c.Qd)(d)||(a[h]=d),(0,c.Tn)(d)){a.callback=d;break}}return[null!==(t=a.id)&&void 0!==t?t:e.id(),null!==(n=a.traits)&&void 0!==n?n:{},null!==(r=a.options)&&void 0!==r?r:{},a.callback]}};function p(e,t,n,r){(0,c.Et)(e)&&(e=e.toString()),(0,c.Et)(t)&&(t=t.toString());var i=[e,t,n,r],o=i.filter(c.Kg),a=o[0],s=void 0===a?e:a,l=o[1],u=void 0===l?null:l,d=i.filter(c.Qd)[0];return[s,u,void 0===d?{}:d,i.find(c.Tn)]}var m=a(7718),g=a(7977),v=a(6556);function y(e,t,n,r){return(0,s.sH)(this,void 0,void 0,function(){var i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return n.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return(null==r?void 0:r.callback)?[4,(0,v.w_)(o,r.callback,(s=i,l=r.timeout,u=Date.now()-s,Math.max((null!=l?l:300)-u,0)))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return(null==r?void 0:r.debug)&&o.flush(),[2,o]}var s,l,u})})}var b=a(2079),_=a(6e3),w=function(e,t,n,r,i,o){return{__t:"bpc",c:t,p:r,u:e,s:n,t:i,r:o}},S=Object.keys(w("","","","","",""));var x=function(e){var t,n,r=e.c,i=e.p,o=e.s,a=e.u,s=e.r,l=e.t,u=r?function(e){try{return new URL(e).pathname}catch(t){return"/"===e[0]?e:"/"+e}}(r):i,c=r?function(e,t){return e.indexOf("?")>-1?e:e+t}(r,o):-1===(n=(t=a).indexOf("#"))?t:t.slice(0,n);return{path:u,referrer:s,search:o,title:l,url:c}},E=function(){var e=document.querySelector("link[rel='canonical']");return w(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},C=function(e,t){void 0===t&&(t=x(E()));var n,r,i,o=e.context;"page"===e.type&&(n=e.properties&&(r=e.properties,i=Object.keys(t),Object.assign.apply(Object,(0,s.fX)([{}],i.map(function(e){var t;if(r&&Object.prototype.hasOwnProperty.call(r,e))return(t={})[e]=r[e],t}),!1))),e.properties=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),e.properties),e.name?{name:e.name}:{})),o.page=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),n),o.page)},k=a(3172),A=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,s.C6)(t,e),t}(Error),R="is not a string",T="is not an object";var P=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!==(t=e.onEventMethodCall)&&void 0!==t?t:function(){},this.onFinishedEvent=null!==(n=e.onFinishedEvent)&&void 0!==n?n:function(){}},O=function(){function e(e){this.settings=new P(e)}return e.prototype.track=function(e,t,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)}))},e.prototype.page=function(e,t,n,r,i){var o;this.settings.onEventMethodCall({type:"page",options:r});var a={type:"page",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(a.category=e,a.properties=null!==(o=a.properties)&&void 0!==o?o:{},a.properties.category=e),null!==t&&(a.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),a))},e.prototype.screen=function(e,t,n,r,i){this.settings.onEventMethodCall({type:"screen",options:r});var o={type:"screen",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(o.category=e),null!==t&&(o.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),o))},e.prototype.identify=function(e,t,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:r}))},e.prototype.group=function(e,t,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"group",traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var i={userId:e,type:"alias",options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)};return null!==t&&(i.previousId=t),void 0===e?this.normalize((0,s.Cl)((0,s.Cl)({},i),this.baseEvent())):this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),i))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),i=null!==(t=e.context)&&void 0!==t?t:{},o={};return r.forEach(function(t){"context"!==t&&(n.includes(t)?(0,k.J)(o,t,e[t]):(0,k.J)(i,t,e[t]))}),[i,o]},e.prototype.normalize=function(e){var t,n,r,i,o=Object.keys(null!==(t=e.integrations)&&void 0!==t?t:{}).reduce(function(t,n){var r,i;return(0,s.Cl)((0,s.Cl)({},t),((r={})[n]=Boolean(null===(i=e.integrations)||void 0===i?void 0:i[n]),r))},{});e.options=(r=e.options||{},i=function(e,t){return void 0!==t},Object.keys(r).filter(function(e){return i(0,r[e])}).reduce(function(e,t){return e[t]=r[t],e},{}));var a=(0,s.Cl)((0,s.Cl)({},o),null===(n=e.options)||void 0===n?void 0:n.integrations),l=e.options?this.context(e.options):[],u=l[0],d=l[1],h=e.options,f=(0,s.Tt)(e,["options"]),p=(0,s.Cl)((0,s.Cl)((0,s.Cl)((0,s.Cl)({timestamp:new Date},f),{context:u,integrations:a}),d),{messageId:h.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(p),function(e){!function(e){if(!(0,c.t2)(e))throw new A("Event","is nil");if("object"!=typeof e)throw new A("Event",T)}(e),function(e){if(!(0,c.Kg)(e.type))throw new A(".type",R)}(e),function(e){if(!(0,c.Kg)(e.messageId))throw new A(".messageId",R)}(e),"track"===e.type&&(function(e){if(!(0,c.Kg)(e.event))throw new A(".event",R)}(e),function(e){if(!(0,c.Qd)(e.properties))throw new A(".properties",T)}(e)),["group","identify"].includes(e.type)&&function(e){if(!(0,c.Qd)(e.traits))throw new A(".traits",T)}(e)}(p),p},e}(),I=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,_.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,s.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null==e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,i,o){var a=e.prototype.track.call(this,t,n,r,i);return C(a,o),a},t.prototype.page=function(t,n,r,i,o,a){var s=e.prototype.page.call(this,t,n,r,i,o);return C(s,a),s},t.prototype.screen=function(t,n,r,i,o,a){var s=e.prototype.screen.call(this,t,n,r,i,o);return C(s,a),s},t.prototype.identify=function(t,n,r,i,o){var a=e.prototype.identify.call(this,t,n,r,i);return C(a,o),a},t.prototype.group=function(t,n,r,i,o){var a=e.prototype.group.call(this,t,n,r,i);return C(a,o),a},t.prototype.alias=function(t,n,r,i,o){var a=e.prototype.alias.call(this,t,n,r,i);return C(a,o),a},t}(O),N=function(e){return"addMiddleware"in e&&"destination"===e.type},L=a(5881),D=a(6115),M=a(9952),F=a(4980),V=function(e){function t(t){var n,r,i,o=e.call(this)||this;return o.criticalTasks=(i=0,{done:function(){return n},run:function(e){var t,o=e();return"object"==typeof(t=o)&&null!==t&&"then"in t&&"function"==typeof t.then&&(1===++i&&(n=new Promise(function(e){return r=e})),o.finally(function(){return 0===--i&&r()})),o}}),o.plugins=[],o.failedInitializations=[],o.flushing=!1,o.queue=t,o.queue.on(D.g,function(){o.scheduleFlush(0)}),o}return(0,s.C6)(t,e),t.prototype.register=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r,i,o=this;return(0,s.YH)(this,function(a){switch(a.label){case 0:return this.plugins.push(t),r=function(n){o.failedInitializations.push(t.name),o.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),o.plugins=o.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(r),[3,4]);case 1:return a.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),r(i),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(e)&&(t.off("flush",r),n(i))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){var t;return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a;return(0,s.YH)(this,function(s){switch(s.label){case 0:return[4,this.criticalTasks.done()];case 1:s.sent(),n=Date.now(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=s.sent(),r=Date.now()-n,(i=e.failedDelivery())?(a=i.reason instanceof Error?i.reason:new Error(String(null!==(t=i.reason)&&void 0!==t?t:"Unknown delivery failure")),e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),[2,e]):(this.emit("delivery_success",e),e.stats.gauge("delivered",r),e.log("debug","Delivered",e.event),[2,e]);case 4:throw o=s.sent(),a=o,e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!(e instanceof M.d&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){var e,t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=r.sent(),t=!e.failedDelivery(),this.emit("flush",e,t),[3,4];case 3:return n=r.sent(),this.enqueuRetry(n,e)||(e.setFailedDelivery({reason:n}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,r=this.plugins.filter(function(t){var n,r,i;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var o=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(o=e[t])}),null!==(i=null!==(r=e[t.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)}),i=(t="type",n={},r.forEach(function(e){var r,i=void 0,o=e[t];void 0!==(i="string"!=typeof o?JSON.stringify(o):o)&&(n[i]=(0,s.fX)((0,s.fX)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[e],!1))}),n),o=i.before,a=void 0===o?[]:o,l=i.enrichment,u=void 0===l?[]:l,c=i.destination,d=void 0===c?[]:c,h=i.after;return{before:a,enrichment:u,destinations:d,after:void 0===h?[]:h}},t.prototype.flushOne=function(e){var t,n;return(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a,l,u,c,d,h,f,p,m,g,v;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),i=r.before,o=r.enrichment,a=0,l=i,s.label=1;case 1:return a<l.length?(u=l[a],[4,(0,F.D)(e,u)]):[3,4];case 2:(f=s.sent())instanceof M.j&&(e=f),this.emit("message_enriched",e,u),s.label=3;case 3:return a++,[3,1];case 4:c=0,d=o,s.label=5;case 5:return c<d.length?(h=d[c],[4,(0,F.C)(e,h)]):[3,8];case 6:(f=s.sent())instanceof M.j&&(e=f),this.emit("message_enriched",e,h),s.label=7;case 7:return c++,[3,5];case 8:return p=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),m=p.destinations,g=p.after,[4,new Promise(function(t,n){setTimeout(function(){var r=m.map(function(t){return(0,F.C)(e,t)});Promise.all(r).then(t).catch(n)},0)})];case 9:return s.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),v=g.map(function(t){return(0,F.C)(e,t)}),[4,Promise.all(v)];case 10:return s.sent(),[2,e]}})})},t}(b.v),z=function(e){function t(t){return e.call(this,"string"==typeof t?new L.x(4,t):t)||this}return(0,s.C6)(t,e),t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return(0,m.a)()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(V);function j(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&"function"==typeof o.value&&(e[i]=e[i].bind(e))}}return e}var B={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},H=function(e,t,n,r){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(n,'" | Err: ').concat(r))},$=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(t=i.get(e)))return t}catch(t){H(i,"get",e,t)}}return null},e.prototype.set=function(e,t){this.stores.forEach(function(n){try{n.set(e,t)}catch(t){H(n,"set",e,t)}})},e.prototype.clear=function(e){this.stores.forEach(function(t){try{t.remove(e)}catch(n){H(t,"remove",e,n)}})},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),W=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function U(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(e){return Object.values(B).includes(e)})}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var q=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=K({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",K({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,K({},this.attributes,t))},withConverter:function(t){return e(K({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Y=q;function G(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),r=0;r<n.length;++r){var i="__tld__",o=n[r],a={domain:"."+o};try{if(Y.set(i,"1",a),Y.get(i))return Y.remove(i,a),o}catch(e){return}}}var X=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,s.Cl)((0,s.Cl)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:G(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=Y.get(e);if(null==n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?Y.set(e,t,this.opts()):null===t?Y.remove(e,this.opts()):Y.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return Y.remove(e,this.opts())},e}(),J=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function Q(e){var t=e.map(function(e){var t,n;switch(function(e){return"object"==typeof e&&void 0!==e.name}(e)?(t=e.name,n=e.settings):t=e,t){case B.Cookie:return new X(n);case B.LocalStorage:return new J;case B.Memory:return new W;default:throw new Error("Unknown Store Type: ".concat(e))}});return t}function Z(e,t){return e.map(function(e){return t&&e===B.Cookie?{name:e,settings:t}:e})}var ee={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},te=function(){function e(e,t){void 0===e&&(e=ee);var n,r,i,o,a=this;this.options={},this.id=function(e){if(a.options.disable)return null;var t=a.identityStore.getAndSync(a.idKey);void 0!==e&&(a.identityStore.set(a.idKey,e),e!==t&&null!==t&&null!==e&&a.anonymousId(null));var n=a.identityStore.getAndSync(a.idKey);if(n)return n;var r=a.legacyUserStore.get(ee.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(a.options.disable)return null;if(void 0===e){var r=null!==(t=a.identityStore.getAndSync(a.anonKey))&&void 0!==t?t:null===(n=a.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(a.identityStore.set(a.anonKey,null),a.identityStore.getAndSync(a.anonKey)):(a.identityStore.set(a.anonKey,null!=e?e:(0,_.v4)()),a.identityStore.getAndSync(a.anonKey))},this.traits=function(e){var t;if(!a.options.disable)return null===e&&(e={}),e&&a.traitsStore.set(a.traitsKey,null!=e?e:{}),null!==(t=a.traitsStore.get(a.traitsKey))&&void 0!==t?t:{}},this.options=(0,s.Cl)((0,s.Cl)({},ee),e),this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:ee.cookie.key,this.traitsKey=null!==(o=null===(i=e.localStorage)||void 0===i?void 0:i.key)&&void 0!==o?o:ee.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,function(e){return e===B.Cookie}),this.traitsStore=this.createStorage(this.options,t,function(e){return e!==B.Cookie});var l=this.legacyUserStore.get(ee.cookie.oldKey);l&&"object"==typeof l&&(l.id&&this.id(l.id),l.traits&&this.traits(l.traits)),j(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();null!==n&&n!==e||(t=(0,s.Cl)((0,s.Cl)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[B.LocalStorage,B.Cookie,B.Memory];return e.disable?new $([]):e.persist?(void 0!==e.storage&&null!==e.storage&&U(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter(function(e){return e!==B.LocalStorage})),n&&(r=r.filter(n)),new $(Q(Z(r,t)))):new $([new W])},e.defaults=ee,e}(),ne={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},re=function(e){function t(t,n){void 0===t&&(t=ne);var r=e.call(this,(0,s.Cl)((0,s.Cl)({},ne),t),n)||this;return r.anonymousId=function(e){},j(r),r}return(0,s.C6)(t,e),t}(te),ie=a(8167),oe=a(2453),ae=a(472),se=a(1298),le=function(e,t,n){n.getAndRemove(e).forEach(function(e){ve(t,e).catch(console.error)})},ue=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("addSourceMiddleware"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ve(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},ce=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("register"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ve(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},de=le.bind(void 0,"on"),he=le.bind(void 0,"setAnonymousId"),fe=function(e){if(pe(e)){var t=e.pop();return x(t)}},pe=function(e){return function(e){if(t=e,"object"!==Object.prototype.toString.call(t).slice(8,-1).toLowerCase())return!1;var t;if("bpc"!==e.__t)return!1;for(var n in e)if(!S.includes(n))return!1;return!0}(e[e.length-1])},me=function(e,t,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=e,this.resolve=n,this.reject=r,this.called=!1,this.args=t},ge=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!==(t=this.calls[e])&&void 0!==t?t:[]},e.prototype.getAndRemove=function(e){var t=this.get(e);return this.calls[e]=[],t},e.prototype.add=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach(function(t){["track","screen","alias","group","page","identify"].includes(t.method)&&!pe(t.args)&&(t.args=(0,s.fX)((0,s.fX)([],t.args,!0),[E()],!1)),e.calls[t.method]?e.calls[t.method].push(t):e.calls[t.method]=[t]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,se.X)()){var e=(0,ae.kJ)();if(Array.isArray(e)){var t=e.splice(0,e.length).map(function(e){var t=e[0],n=e.slice(1);return new me(t,n)});this.add.apply(this,t)}}},e}();function ve(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,"object"==typeof(o=n=e[t.method].apply(e,t.args))&&null!==o&&"then"in o&&"function"==typeof o.then?[4,n]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}var o})})}var ye=function(){function e(e){var t=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=ie.r,this._preInitBuffer=new ge,this._promise=e(this._preInitBuffer),this._promise.then(function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r}).catch(function(){})}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.instance){var o=(n=t.instance)[e].apply(n,r);return Promise.resolve(o)}return new Promise(function(n,i){t._preInitBuffer.add(new me(e,r,n,i))})}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.add(new me(e,r)),t)}},e}(),be=a(5791),_e=a(524),we=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t)||this;return i.retryTimeout=n,i.isRetryableWithoutCount=r,i.name="RateLimitError",i}return(0,s.C6)(t,e),t}(Error),Se=function(e){return(0,s.Cl)({"Content-Type":"text/plain"},"function"==typeof e?e():e)},xe={408:"retry",410:"retry",429:"retry",460:"retry",501:"drop",505:"drop",511:"drop"};function Ee(e,t,n,r){var i=null!=e?e:t;return Math.min(Math.max(i,n),r)}function Ce(e,t){var n;if(429!==e.status)return null;var r=null===(n=e.headers)||void 0===n?void 0:n.get("Retry-After");if(!r)return null;var i=parseInt(r,10);return Number.isNaN(i)?null:{retryAfterMs:1e3*Math.max(0,Math.min(i,t.maxRetryInterval)),fromHeader:!0}}function ke(e,t){return t.statusCodeOverrides[String(e)]||(e>=500?t.default5xxBehavior:e>=400?t.default4xxBehavior:"drop")}function Ae(e,t){var n,r,i,o,a=e||t?{rateLimitConfig:(0,s.Cl)((0,s.Cl)({},null==e?void 0:e.rateLimitConfig),null==t?void 0:t.rateLimitConfig),backoffConfig:(0,s.Cl)((0,s.Cl)((0,s.Cl)({},null==e?void 0:e.backoffConfig),null==t?void 0:t.backoffConfig),{statusCodeOverrides:(0,s.Cl)((0,s.Cl)({},null===(n=null==e?void 0:e.backoffConfig)||void 0===n?void 0:n.statusCodeOverrides),null===(r=null==t?void 0:t.backoffConfig)||void 0===r?void 0:r.statusCodeOverrides)})}:void 0,l=null==a?void 0:a.rateLimitConfig,u=null==a?void 0:a.backoffConfig;return{rateLimitConfig:{maxRetryCount:Ee(null==l?void 0:l.maxRetryCount,10,0,100),maxRetryInterval:Ee(null==l?void 0:l.maxRetryInterval,300,.1,86400),maxRateLimitDuration:Ee(null==l?void 0:l.maxRateLimitDuration,43200,10,86400)},backoffConfig:{maxRetryCount:Ee(null==u?void 0:u.maxRetryCount,10,0,100),baseBackoffInterval:Ee(null==u?void 0:u.baseBackoffInterval,.5,.1,300),maxBackoffInterval:Ee(null==u?void 0:u.maxBackoffInterval,60,.1,86400),maxTotalBackoffDuration:Ee(null==u?void 0:u.maxTotalBackoffDuration,43200,60,604800),jitterPercent:Ee(null==u?void 0:u.jitterPercent,10,0,100),default4xxBehavior:null!==(i=null==u?void 0:u.default4xxBehavior)&&void 0!==i?i:"drop",default5xxBehavior:null!==(o=null==u?void 0:u.default5xxBehavior)&&void 0!==o?o:"retry",statusCodeOverrides:(0,s.Cl)((0,s.Cl)({},xe),null==u?void 0:u.statusCodeOverrides)}}}function Re(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function Te(e){return Re(e)>=450}function Pe(e,t){return{dispatch:function(n,r,i){var o=Se(null==e?void 0:e.headers),a=null==r?void 0:r.writeKey;if(a){var s=btoa(a+":");o.Authorization="Basic ".concat(s)}return i&&(o["X-Retry-Count"]=String(i)),(0,_e.h)(n,{credentials:null==e?void 0:e.credentials,keepalive:null==e?void 0:e.keepalive,headers:o,method:"post",body:JSON.stringify(r),priority:null==e?void 0:e.priority}).then(function(e){var n=e.status;if(!(n<400)){var r=null!=t?t:Ae(),i=ke(n,r.backoffConfig);if("drop"!==i){var o=Ce(e,r.rateLimitConfig);if(o)throw new we("Rate limit exceeded: ".concat(n),o.retryAfterMs,o.fromHeader)}if("retry"===i)throw new Error("Retryable error: ".concat(n));var a=new Error("Non-retryable error: ".concat(n));throw a.name="NonRetryableError",a}})}}}function Oe(e,t,n,r,i){var o,a=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||a.id(),t.anonymousId=t.anonymousId||a.anonymousId(),t.sentAt=new Date;var l=e.queue.failedInitializations||[];l.length>0&&(t._metadata={failedInitializations:l}),null!=i&&(i.attempts>1&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{retryCount:i.attempts})),i.attempts++);var u=[],c=[];for(var d in r){var h=r[d];"Segment.io"===d&&u.push(d),"bundled"===h.bundlingStatus&&u.push(d),"unbundled"===h.bundlingStatus&&c.push(d)}for(var f=0,p=(null==n?void 0:n.unbundledIntegrations)||[];f<p.length;f++){var m=p[f];c.includes(m)||c.push(m)}var g=null!==(o=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==o?o:{},v=[];return u.sort().forEach(function(e){var t;(null!==(t=g[e])&&void 0!==t?t:[]).forEach(function(e){v.push(e)})}),!1!==(null==n?void 0:n.addBundledMetadata)&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{bundled:u.sort(),unbundled:c.sort(),bundledIds:v})),t}Object.defineProperty(Pe,"name",{value:"default",configurable:!0});var Ie=a(2613);function Ne(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return n=[],(0,m.a)()?[2,t]:[4,(0,Ie._)(function(){return t.length>0&&!(0,m.a)()},function(){return(0,s.sH)(r,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return(r=t.pop())?[4,(0,F.C)(r,e)]:[2];case 1:return i.sent()instanceof g.o||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}function Le(e,t,n,r){var i=this;e||setTimeout(function(){return(0,s.sH)(i,void 0,void 0,function(){var e,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:return e=!0,[4,Ne(n,t)];case 1:return i=o.sent(),e=!1,t.todo>0&&r(e,i,n,r),[2]}})})},500*Math.random()+100)}var De=a(7947),Me=function(e){return"Segment.io"===e.name};function Fe(e,t,n){var r,i,o,a;window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(c)),c.clear()});var l=null!==(r=null==t?void 0:t.apiKey)&&void 0!==r?r:"",u=e.options.disableClientPersistence?new D.M(e.queue.queue.maxAttempts,[]):new L.x(e.queue.queue.maxAttempts,"".concat(l,":dest-Segment.io")),c=new Set,d=new WeakMap,h=!1,f=null!==(i=null==t?void 0:t.apiHost)&&void 0!==i?i:De.a,p=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",v="".concat(p,"://").concat(f),y=null===(a=null==n?void 0:n["Segment.io"])||void 0===a?void 0:a.httpConfig,b=Ae(null==t?void 0:t.httpConfig,y);!1!==e.options.retryQueue&&(u.maxAttempts=b.backoffConfig.maxRetryCount);var _=null==t?void 0:t.deliveryStrategy,w=_&&"strategy"in _&&"batching"===_.strategy?function(e,t,n,r){var i,o;void 0===r&&(r="https");var a,l,u,c=[],d=!1,h=null!==(i=null==t?void 0:t.size)&&void 0!==i?i:10,f=null!==(o=null==t?void 0:t.timeout)&&void 0!==o?o:5e3,p=null!=n?n:Ae(),m=0,v=0,y=!1,b=!1,_=0,w=0,S=0;function x(n,i){var o;if(0!==n.length){var a=null===(o=n[0])||void 0===o?void 0:o.writeKey,l=n.map(function(e){var t=e;return t.sentAt,(0,s.Tt)(t,["sentAt"])}),u=Se(null==t?void 0:t.headers);if(i>0&&(u["X-Retry-Count"]=String(i)),a){var c=btoa(a+":");u.Authorization="Basic ".concat(c)}var h=e.startsWith("http://")||e.startsWith("https://")?"":"".concat(r,"://");return(0,_e.h)("".concat(h).concat(e,"/b"),{credentials:null==t?void 0:t.credentials,keepalive:(null==t?void 0:t.keepalive)||d,headers:u,method:"post",body:JSON.stringify({writeKey:a,batch:l,sentAt:(new Date).toISOString()}),priority:null==t?void 0:t.priority}).then(function(e){var t=e.status;if(!(t<400)){var n=ke(t,p.backoffConfig);if("drop"!==n){var r=Ce(e,p.rateLimitConfig);if(r)throw new we("Rate limit exceeded: ".concat(t),r.retryAfterMs,r.fromHeader)}if("retry"===n)throw new Error("Retryable error: ".concat(t))}})}}function E(){c.length>0&&k(1)}function C(e){var n;return void 0===e&&(e=1),(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a;return(0,s.YH)(this,function(l){return y||(v=0,_=0,w=0,S=0),y=!1,b=!0,c.length?(r=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=(0,s.fX)((0,s.fX)([],t,!0),[r],!1);if(t.length>0&&Te(i))return{batch:t,remaining:e.slice(n)};t.push(r)}return{batch:t,remaining:[]}}(c),i=r.batch,o=r.remaining,0===i.length?(b=!1,[2]):(c=o,a=v,v+=1,[2,null===(n=x(i,a))||void 0===n?void 0:n.then(function(e){return c.length>0&&k(1),e}).catch(function(n){var r;g.o.system().log("error","Error sending batch",n);var o,a=null!==(r=null==t?void 0:t.maxRetries)&&void 0!==r?r:p.backoffConfig.maxRetryCount,l="RateLimitError"===n.name,u=l&&n.isRetryableWithoutCount;if(!(u||e<=a))return E();if(u){if(++_>p.rateLimitConfig.maxRetryCount)return E();var d=n.retryTimeout;S+=d;var h=1e3*p.rateLimitConfig.maxRateLimitDuration;if(S>h)return E();m=d}if(!l){o=function(e,t){var n=1e3*t.baseBackoffInterval,r=1e3*t.maxBackoffInterval,i=n*Math.pow(2,e-1),o=Math.min(i,r),a=1+2*(Math.random()-.5)*(t.jitterPercent/100);return Math.max(0,o*a)}(e,p.backoffConfig),w+=o;var f=1e3*p.backoffConfig.maxTotalBackoffDuration;if(w>f)return E()}c=(0,s.fX)((0,s.fX)([],i,!0),c,!0),i.forEach(function(t){if("_metadata"in t){var n=t;n._metadata=(0,s.Cl)((0,s.Cl)({},n._metadata),{retryCount:e})}}),y=!0,k(u?e:e+1,o)}).finally(function(){b=!1})])):(b=!1,[2])})})}function k(e,t){void 0===e&&(e=1),a||(a=setTimeout(function(){a=void 0,C(e).catch(console.error)},m||t||f),m=0)}return l=function(e){if((d=e)&&c.length){var t=function(e){var t=[],n=0;return e.forEach(function(e){Re(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t}(c).map(function(e){return x(e,0)});Promise.all(t).catch(console.error)}},u=!1,window.addEventListener("pagehide",function(){u||l(u=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(u)return;u=!0}else u=!1;l(u)}),{dispatch:function(e,n,r){return(0,s.sH)(this,void 0,void 0,function(){var e;return(0,s.YH)(this,function(r){return c.push(n),y?[2]:(e=c.length>=h||Te(c)||(null==t?void 0:t.keepalive)&&function(e){return Re(e)>=54}(c),e||d?[2,b?k():C()]:[2,k()])})})}}}(f,_.config,b,p):Pe(null==_?void 0:_.config,b);function S(r){return(0,s.sH)(this,void 0,void 0,function(){var i,o,a,l;return(0,s.YH)(this,function(s){return(0,m.a)()?(u.push(r),Le(h,u,x,Le),[2,r]):(c.add(r),i=r.event.type.charAt(0),o=(0,be.W)(r.event).json(),"track"===r.event.type&&delete o.traits,"alias"===r.event.type&&(o=function(e,t){var n,r,i,o,a=e.user();return t.previousId=null!==(i=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==i?i:a.anonymousId(),t.userId=null!==(o=t.userId)&&void 0!==o?o:t.to,delete t.from,delete t.to,t}(e,o)),(a=u.getAttempts(r))>=u.maxAttempts?(c.delete(r),l=new Error("Retry attempts exhausted (".concat(a,"/").concat(u.maxAttempts,")")),r.setFailedDelivery({reason:l}),e.emit("error",{code:"delivery_failure",reason:l,ctx:r}),[2,r]):[2,w.dispatch("".concat(v,"/").concat(i),Oe(e,o,t,n,r),a).then(function(){return r}).catch(function(t){var n;if(r.log("error","Error sending event",t),"RateLimitError"===t.name){var i=(null!==(n=d.get(r))&&void 0!==n?n:0)+1;if(d.set(r,i),i>b.rateLimitConfig.maxRetryCount)r.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:r});else{var o=t.retryTimeout;u.pushWithDelay(r,o)}}else"NonRetryableError"===t.name?(r.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:r})):u.pushWithBackoff(r);return Le(h,u,x,Le),r}).finally(function(){c.delete(r)})])})})}var x={metadata:{writeKey:l,apiHost:f,protocol:p},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:S,identify:S,page:S,alias:S,group:S,screen:S};return u.todo&&Le(h,u,x,Le),x}var Ve="This is being deprecated and will be not be available in future releases of Analytics JS",ze=(0,oe.m)(),je=null==ze?void 0:ze.analytics,Be=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null===(e=t.plugins.find(Me))||void 0===e?void 0:e.metadata},this.writeKey=e.writeKey,this.cdnSettings=null!==(n=e.cdnSettings)&&void 0!==n?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null===(t=null===(e=this._getSegmentPluginMetadata)||void 0===e?void 0:e.call(this))||void 0===t?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function He(){console.warn(Ve)}var $e,We=function(e){function t(t,n,r,i,o){var a,l,u=this;(u=e.call(this)||this)._debug=!1,u.initialized=!1,u.user=function(){return u._user},u.init=u.initialize.bind(u),u.log=He,u.addIntegrationMiddleware=He,u.listeners=He,u.addEventListener=He,u.removeAllListeners=He,u.removeListener=He,u.removeEventListener=He,u.hasListeners=He,u.add=He,u.addIntegration=He;var c=null==n?void 0:n.cookie,d=null!==(a=null==n?void 0:n.disableClientPersistence)&&void 0!==a&&a;u.queue=null!=r?r:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?10:1,i=n?new D.M(r,[]):new L.x(r,e);return new z(i)}("".concat(t.writeKey,":event-queue"),null==n?void 0:n.retryQueue,d),u.settings=new Be(t,u.queue);var h=null==n?void 0:n.storage;return u._universalStorage=u.createStore(d,h,c),u._user=null!=i?i:new te((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.user),c).load(),u._group=null!=o?o:new re((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.group),c).load(),u.eventFactory=new I(u._user),u.integrations=null!==(l=null==n?void 0:n.integrations)&&void 0!==l?l:{},u.options=null!=n?n:{},j(u),u}return(0,s.C6)(t,e),t.prototype.createStore=function(e,t,n){return e?new $([new W]):t&&U(t)?new $(Q(Z(t.stores,n))):new $(Q([B.LocalStorage,{name:B.Cookie,settings:n},B.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=d.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.track(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("track",r,e.event.properties,e.event.options),e})]})})},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=fe(e),n=h.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.page(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("page",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=f(this._user).apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],this._user.identify(r,i),l=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("identify",e.event.userId,e.event.traits,e.event.options),e})]})})},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=fe(t);if(0===t.length)return this._group;var i=f(this._group).apply(void 0,t),o=i[0],a=i[1],s=i[2],l=i[3];this._group.identify(o,a);var u=this._group.id(),c=this._group.traits(),d=this.eventFactory.group(u,c,s,this.integrations,r);return this._dispatch(d,l).then(function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t})},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=p.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.alias(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("alias",r,i,e.event.options),e})]})})},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=fe(e),n=h.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.screen(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("screen",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=g.o.system(),n=e.map(function(e){return r.queue.register(t,e,r)}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=g.o.system(),n=e.map(function(e){var n=r.queue.plugins.find(function(t){return t.name===e});if(n)return r.queue.deregister(t,n,r);t.log("warn","plugin ".concat(e," not found"))}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n;return(0,s.YH)(this,function(r){return(n=new g.o(e)).stats.increment("analytics_js.invoke",1,[e.type]),(0,m.a)()&&!this.options.retryQueue?[2,n]:[2,y(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,s.sH)(t,void 0,void 0,function(){var t,n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(a.bind(a,5939))];case 1:return t=i.sent().sourceMiddlewarePlugin,n={},this.queue.plugins.forEach(function(e){if("destination"===e.type)return n[e.name]=!0}),r=t(e,n),[4,this.register(r)];case 2:return i.sent(),[2]}})})})];case 1:return n.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter(N).forEach(function(n){"*"!==e&&n.name.toLowerCase()!==e.toLowerCase()||n.addMiddleware.apply(n,t)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,a.e(538).then(a.bind(a,2552))];case 1:return[2,(0,t.sent().queryString)(this,e)]}})})},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(e){return e.ready?e.ready():Promise.resolve()})).then(function(t){return e(t),t})]})})},t.prototype.noConflict=function(){return console.warn(Ve),(0,ae.Ud)(null!=je?je:this),this},t.prototype.normalize=function(e){return console.warn(Ve),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(Ve),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return ie.r},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){return console.warn(Ve),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return console.warn(Ve),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(Ve),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(Ve),this.queue.plugins.filter(function(e){return"destination"===e.type}).reduce(function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?(e[t.name]=i,e):(e[t.name]=r,e)},{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}(b.v),Ue=function(e){function t(){var t=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return(0,s.C6)(t,e),t}(We),Ke=a(1094),qe=a(6251),Ye=a(5770);function Ge(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}function Xe(){if($e)return $e;var e=G(window.location.href);return $e={expires:31536e6,secure:!1,path:"/"},e&&($e.domain=e),$e}var Je,Qe,Ze=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return(0,s.sH)(e,void 0,void 0,function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:this.instance=n,t.label=1;case 1:return t.trys.push([1,3,,4]),e=this,[4,Ge(this.instance.options.highEntropyValuesClientHints)];case 2:return e.userAgentData=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(t){var n,r,i=t.event.context,o=i.page.search||"",a="object"==typeof o?function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];Array.isArray(r)?r.forEach(function(e){return t.append(n,e)}):t.append(n,r)}),t.toString()}catch(e){return""}}(o):o;i.userAgent=navigator.userAgent,i.userAgentData=e.userAgentData;var l=navigator.userLanguage||navigator.language;void 0===i.locale&&void 0!==l&&(i.locale=l),null!==(n=i.library)&&void 0!==n||(i.library={name:"analytics.js",version:"".concat("web"===(0,se.X)()?"next":"npm:next","-").concat(ie.r)}),a&&!i.campaign&&(i.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1],o=void 0===i?"":i;if(r.includes("utm_")&&r.length>4){var a=r.slice(4);"campaign"===a&&(a="name"),e[a]=(0,Ye.p)(o)}return e},{})}(a));var u=function(){var e=Y.get("_ga");if(e&&e.startsWith("amp"))return e}();u&&(i.amp={id:u}),function(e,t,n){var r,i=new $(n?[]:[new X(Xe())]),o=i.get("s:context.referrer"),a=null!==(r=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var i=r[n].split("="),o=i[0],a=i[1];if(t[o])return{id:a,type:t[o]}}}(e))&&void 0!==r?r:o;a&&(t&&(t.referrer=(0,s.Cl)((0,s.Cl)({},t.referrer),a)),i.set("s:context.referrer",a))}(a,i,null!==(r=e.instance.options.disableClientPersistence)&&void 0!==r&&r);try{i.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},et=a(3357),tt=a(5939),nt=a(4757),rt=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,qe.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,(0,tt.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new M.d({retry:!1,reason:"dropped by destination middleware"})),[2,new g.o(t)]}})})},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,s.sH)(t,void 0,void 0,function(){var t,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw new Error("Something prevented the destination from getting ready");return(0,nt.y)(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](t)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,nt.y)(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];a.label=1;case 1:return a.trys.push([1,3,,4]),(0,nt.y)(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,t),i=(r=this.loadPromise).resolve,[4,n];case 2:return i.apply(r,[a.sent()]),[2,n];case 3:throw o=a.sent(),(0,nt.y)(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(o),o;case 4:return[2]}})})},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function it(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a,l;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,9,,10]),n=new RegExp("https://cdn.segment.(com|build)"),r=(0,u.I2)(),!t)return[3,6];i=e.url.split("/"),o=i[i.length-2],a=e.url.replace(o,btoa(o).replace(/=/g,"")),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,(0,et.k)(a.replace(n,r))];case 2:return s.sent(),[3,5];case 3:return s.sent(),[4,(0,et.k)(e.url.replace(n,r))];case 4:return s.sent(),[3,5];case 5:return[3,8];case 6:return[4,(0,et.k)(e.url.replace(n,r))];case 7:s.sent(),s.label=8;case 8:return"function"==typeof window[e.libraryName]?[2,window[e.libraryName]]:[3,10];case 9:throw l=s.sent(),console.error("Failed to create PluginFactory",e),l;case 10:return[2]}})})}function ot(e,t,n,r,i,o){var a,l,u;return(0,s.sH)(this,void 0,void 0,function(){var c,d,h,f=this;return(0,s.YH)(this,function(p){switch(p.label){case 0:return c=[],d=null!==(l=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==l?l:[],h=(null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map(function(e){return(0,s.sH)(f,void 0,void 0,function(){var a,l,u,h,f,p,m;return(0,s.YH)(this,function(v){switch(v.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];v.label=1;case 1:return v.trys.push([1,6,,7]),(l=null==o?void 0:o.find(function(t){return t.pluginName===e.name}))?[3,3]:[4,it(e,null==r?void 0:r.obfuscate)];case 2:l=v.sent(),v.label=3;case 3:return(a=l)?(u=n[e.name],[4,a((0,s.Cl)((0,s.Cl)({},e.settings),u))]):[3,5];case 4:h=v.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})}(f=Array.isArray(h)?h:[h]),p=d.filter(function(t){return t.destinationName===e.creationName}),f.forEach(function(t){var n=new rt(e.creationName,t);p.length&&i&&n.addMiddleware(i),c.push(n)}),v.label=5;case 5:return[3,7];case 6:return m=v.sent(),console.warn("Failed to load Remote Plugin",m),(0,nt.y)(g.o.system(),{integrationName:e.name,methodName:"load",type:"action",didError:!0}),[3,7];case 7:return[2]}})})}),[4,Promise.all(h)];case 1:return p.sent(),[2,c.filter(Boolean)]}})})}var at=null!==(Je=(Qe=(0,oe.m)()).__SEGMENT_INSPECTOR__)&&void 0!==Je?Je:Qe.__SEGMENT_INSPECTOR__={},st=a(4568);function lt(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,ut(e,t)];case 1:return r.sent(),function(e,t){Object.keys(t.calls).forEach(function(n){t.getAndRemove(n).forEach(function(t){setTimeout(function(){ve(e,t).catch(console.error)},0)})})}(e,n),[2]}})})}var ut=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){return(0,s.YH)(this,function(n){switch(n.label){case 0:return t.includes("ajs_")?[4,e.queryString(t).catch(console.error)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})};function ct(e,t,n,r,i,o,u){var c,d,h;return void 0===i&&(i=[]),(0,s.sH)(this,void 0,void 0,function(){var f,p,m,g,v,y,b,_,w,S,x,E,C,k,A=this;return(0,s.YH)(this,function(R){switch(R.label){case 0:return function(e,t){he(e,t),de(e,t)}(n,u),f=null==i?void 0:i.filter(function(e){return"object"==typeof e}),p=null==i?void 0:i.filter(function(e){return"function"==typeof e&&"string"==typeof e.pluginName}),function(e){var t,n,r;return"test"!==l().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,a.e(10).then(a.bind(a,6834)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return g=R.sent(),[3,3];case 2:g=void 0,R.label=3;case 3:return m=g,T=t,"test"!==l().NODE_ENV&&Object.keys(T.integrations).length>1||o.length>0?[4,a.e(50).then(a.bind(a,365)).then(function(i){return i.ajsDestinations(e,t,n.integrations,r,m,o)})]:[3,5];case 4:return y=R.sent(),[3,6];case 5:y=[],R.label=6;case 6:return v=y,t.legacyVideoPluginsEnabled?[4,a.e(694).then(a.bind(a,4503)).then(function(e){return e.loadLegacyVideoPlugins(n)})]:[3,8];case 7:R.sent(),R.label=8;case 8:return(null===(c=r.plan)||void 0===c?void 0:c.track)?[4,a.e(104).then(a.bind(a,681)).then(function(e){var n;return e.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,t)})]:[3,10];case 9:return _=R.sent(),[3,11];case 10:_=void 0,R.label=11;case 11:return b=_,w=(0,Ke.J)(t,r),[4,ot(t,n.integrations,w,r,m,p).catch(function(e){return console.error("Failed to load remote plugins",e),[]})];case 12:return S=R.sent(),x=(0,s.fX)((0,s.fX)([Ze],v,!0),S,!0),b&&x.push(b),!1===(null===(d=r.integrations)||void 0===d?void 0:d.All)&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]?[3,14]:(C=(E=x).push,[4,Fe(n,w["Segment.io"],t.integrations)]);case 13:C.apply(E,[R.sent()]),R.label=14;case 14:return[4,n.register.apply(n,(0,s.fX)((0,s.fX)([],x,!1),f,!1))];case 15:return k=R.sent(),[4,ce(n,u)];case 16:return R.sent(),Object.entries(null!==(h=t.enabledMiddleware)&&void 0!==h?h:{}).some(function(e){return e[1]})?[4,a.e(521).then(a.bind(a,6904)).then(function(e){var i=e.remoteMiddlewares;return(0,s.sH)(A,void 0,void 0,function(){var e,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return[4,i(k,t,r.obfuscate)];case 1:return e=a.sent(),o=e.map(function(e){return n.addSourceMiddleware(e)}),[2,Promise.all(o)]}})})})]:[3,18];case 17:R.sent(),R.label=18;case 18:return[4,ue(n,u)];case 19:return R.sent(),[2,k]}var T})})}var dt=function(e){function t(){var t=this,n=(0,qe.u)(),r=n.promise,i=n.resolve;return t=e.call(this,function(e){return r.then(function(t){return function(e,t,n){var r,i,o,a,l,c,d,h,f;return void 0===t&&(t={}),(0,s.sH)(this,void 0,void 0,function(){var p,m,v,y,b,_,w,S,x,E;return(0,s.YH)(this,function(C){switch(C.label){case 0:return!0===t.disable?[2,[new Ue,g.o.system()]]:(t.globalAnalyticsKey&&(0,ae.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,u.qQ)(e.cdnURL),t.initialPageview&&n.add(new me("page",[])),p=function(){var e,t,n=null!==(e=window.location.hash)&&void 0!==e?e:"",r=null!==(t=window.location.search)&&void 0!==t?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")}(),m=null!==(r=e.cdnURL)&&void 0!==r?r:(0,u.I2)(),null===(i=e.cdnSettings)||void 0===i?[3,1]:(y=i,[3,3]));case 1:return[4,(k=e.writeKey,A=m,(0,_e.h)("".concat(A,"/v1/projects/").concat(k,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw new Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:y=C.sent(),C.label=3;case 3:return v=y,t.updateCDNSettings&&(v=t.updateCDNSettings(v)),"function"!=typeof t.disable?[3,5]:[4,t.disable(v)];case 4:if(C.sent())return[2,[new Ue,g.o.system()]];C.label=5;case 5:return b=null===(a=null===(o=v.integrations["Segment.io"])||void 0===o?void 0:o.retryQueue)||void 0===a||a,t=(0,s.Cl)({retryQueue:b},t),function(e){var t;null===(t=at.attach)||void 0===t||t.call(at,e)}(_=new We((0,s.Cl)((0,s.Cl)({},e),{cdnSettings:v,cdnURL:m}),t)),w=null!==(l=e.plugins)&&void 0!==l?l:[],S=null!==(c=e.classicIntegrations)&&void 0!==c?c:[],x=null===(d=t.integrations)||void 0===d?void 0:d["Segment.io"],st.U.initRemoteMetrics((0,s.Cl)((0,s.Cl)({},v.metrics),{host:null!==(h=null==x?void 0:x.apiHost)&&void 0!==h?h:null===(f=v.metrics)||void 0===f?void 0:f.host,protocol:null==x?void 0:x.protocol})),[4,ct(e.writeKey,v,_,t,w,S,n)];case 6:return E=C.sent(),_.initialized=!0,_.emit("initialize",e,t),[4,lt(_,p,n)];case 7:return C.sent(),[2,[_,E]]}var k,A})})}(t[0],t[1],e)})})||this,t._resolveLoadStart=function(e,t){return i([e,t])},t}return(0,s.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(ye);const ht=(0,t.createContext)(void 0),ft=e=>{let{client:n,children:r}=e;return t.createElement(ht.Provider,{value:n},r)};var pt=a(7068),mt=a(5470),gt=a(4951),vt=a(2869),yt=a(728),bt=a(7608);const _t=Object.freeze([]),wt=Object.freeze({});function St(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const xt=new WeakSet,Et={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ct(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Et||e.startsWith("--")?String(t).trim():t+"px"}function kt(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}function At(e){return"function"==typeof e}const Rt=Symbol.for("sc-keyframes");function Tt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Pt(e){return"object"==typeof e&&"styledComponentId"in e}const Ot=e=>null==e||!1===e||""===e,It=Symbol.for("react.client.reference");function Nt(e){return e.$$typeof===It}function Lt(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!Ot(r)&&(Array.isArray(r)&&xt.has(r)||At(r)?t.push(kt(n)+":",r,";"):Tt(r)?(t.push(n+" {"),Lt(r,t),t.push("}")):t.push(kt(n)+": "+Ct(n,r)+";"))}}function Dt(e,t,n,r,i=[]){if(Ot(e))return i;const o=typeof e;if("string"===o)return i.push(e),i;if("function"===o)return Nt(e)?i:!At(a=e)||a.prototype&&a.prototype.isReactComponent||!t?(i.push(e),i):Dt(e(t),t,n,r,i);var a;if(Array.isArray(e)){for(let o=0;o<e.length;o++)Dt(e[o],t,n,r,i);return i}return Pt(e)?(i.push(`.${e.styledComponentId}`),i):function(e){return"object"==typeof e&&null!==e&&Rt in e}(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):Nt(e)?i:Tt(e)?(Lt(e,i),i):(i.push(e.toString()),i)}function Mt(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const Ft=e=>(xt.add(e),e);function Vt(e,...t){if(At(e)||Tt(e))return Ft(Dt(Mt(_t,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Dt(n):Ft(Dt(Mt(n,t)))}function zt(e,t,n=wt){if(!t)throw St(1,t);const r=(r,...i)=>e(t,n,Vt(r,...i));return r.attrs=r=>zt(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>zt(e,t,Object.assign(Object.assign({},n),r)),r}var jt,Bt;function Ht(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}"undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process),Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(Bt=null!==(jt=Ht("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==jt?jt:Ht("SC_DISABLE_SPEEDY"))&&void 0!==Bt?Bt:"undefined"==typeof process||void 0===process.env||!1);const $t=t.createContext(void 0);function Wt(){const e=t.useContext($t);if(!e)throw St(18);return e}function Ut(e){const n=t.useContext($t),r=t.useMemo(()=>function(e,t){if(!e)throw St(14);if(At(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw St(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,n),[e.theme,n]);return e.children?t.createElement($t.Provider,{value:r},e.children):null}$t.Consumer;const Kt=Symbol.for("react.memo"),qt=Symbol.for("react.forward_ref"),Yt={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Gt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jt={[qt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Kt]:Xt};function Qt(e){return("type"in(t=e)&&t.type.$$typeof)===Kt?Xt:"$$typeof"in e?Jt[e.$$typeof]:Yt;var t}const Zt=Object.defineProperty,en=Object.getOwnPropertyNames,tn=Object.getOwnPropertySymbols,nn=Object.getOwnPropertyDescriptor,rn=Object.getPrototypeOf,on=Object.prototype;function an(e,t,n){if("string"!=typeof t){const r=rn(t);r&&r!==on&&an(e,r,n);const i=en(t).concat(tn(t)),o=Qt(e),a=Qt(t);for(let r=0;r<i.length;++r){const s=i[r];if(!(s in Gt||n&&n[s]||a&&s in a||o&&s in o)){const n=nn(t,s);try{Zt(e,s,n)}catch(e){}}}}return e}const sn=/(a)(d)/gi,ln=e=>String.fromCharCode(e+(e>25?39:97));const un=["fit-content","min-content","max-content"];let cn={};function dn(e){return function(e){return"string"==typeof e&&!0}(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}function hn(e,t,n=!1){if(!n&&!Tt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=hn(e[n],t[n]);else if(Tt(t))for(const n in t)e[n]=hn(e[n],t[n]);return e}const fn=Object.prototype.hasOwnProperty,pn=a(6864);var mn;const gn=(mn=pn.StyleSheet,yn=class{constructor(e){this.rules=e}generateStyleObject(e){return function(e,t){const n=function(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ln(t%52)+n;return(ln(t%52)+n).replace(sn,"$1-$2")}(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,e)>>>0);if(!cn[n]){const r=[];for(const[t,n]of function(e){const t=function(e){if(-1===e.indexOf("/*"))return e;let t="",n=0,r=0;const i=e.length;for(;n<i;){const i=e.charCodeAt(n);if(r){if(92===i){t+=e.substring(n,n+2),n+=2;continue}i===r&&(r=0),t+=e[n],n++}else if(34===i||39===i)r=i,t+=e[n],n++;else if(47===i&&42===e.charCodeAt(n+1)){const t=e.indexOf("*/",n+2);if(-1===t)break;n=t+2}else t+=e[n],n++}return t}(e),n=[],r=t.length;let i=0;for(;i<r;){for(;i<r;){const e=t[i];if(" "===e||"\n"===e||"\r"===e||"\t"===e||";"===e||"}"===e)i++;else{if("{"!==e)break;{let e=1;for(i++;i<r&&e>0;)"{"===t[i]?e++:"}"===t[i]&&e--,i++}}}if(i>=r)break;const e=t.indexOf(":",i);if(-1===e)break;const o=t.substring(i,e).trim();let a=0,s=0,l=e+1;for(;l<r;){const e=t.charCodeAt(l);if(s)92===e?l++:e===s&&(s=0);else if(34===e||39===e)s=e;else if(40===e)a++;else if(41===e)a>0&&a--;else if(59===e&&0===a)break;l++}if(l>=r&&(0!==s||a>0)){const n=t.indexOf(";",e+1);i=-1!==n?n+1:r;continue}const u=t.substring(e+1,l).trim();if(o&&u){if("@"===o[0]||-1!==o.indexOf("{")){let e=0,n=l;for(let n=i;n<l;n++)"{"===t[n]?e++:"}"===t[n]&&e--;for(;n<r&&e>0;)"{"===t[n]?e++:"}"===t[n]&&e--,n++;i=n;continue}n.push([o,u])}i=l+1}return n}(e))!un.includes(n)&&r.push([t,n]);const i=(0,bt.Ay)(r,["borderWidth","borderColor"]);cn[n]=t.create({generated:i}).generated}return cn[n]}(function(e,t){return e.join(t||"")}(Dt(this.rules,e)),mn)}},(e,n,r)=>{const i=Pt(e),o=e,{displayName:a=dn(e),attrs:s=_t}=n,l=i&&o.attrs?o.attrs.concat(s).filter(Boolean):s;let u=n.shouldForwardProp;if(i&&o.shouldForwardProp){const e=o.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;u=(n,r)=>e(n,r)&&t(n,r)}else u=e}const c=(e,n)=>function(e,n,r){const{attrs:i,inlineStyle:o,defaultProps:a,shouldForwardProp:s,target:l}=e,u=t.useContext?t.useContext($t):void 0,c=function(e,t,n=wt){return e.theme!==n.theme&&e.theme||t||n.theme}(n,u,a)||wt;let d,h;const f=t.useRef?t.useRef(null):{current:null},p=f.current;if(null!==p&&p[1]===c&&function(e,t,n){const r=e,i=t;let o=0;for(const e in i)if(fn.call(i,e)&&(o++,r[e]!==i[e]))return!1;return o===n}(p[0],n,p[2]))d=p[3],h=p[4];else{d=function(e=wt,t,n){const r=Object.assign(Object.assign({},t),{theme:e});for(let e=0;e<n.length;e++){const t=At(n[e])?n[e](Object.assign({},r)):n[e];for(const e in t)r[e]=t[e]}return r}(c,n,i),h=o.generateStyleObject(d);let e=0;for(const t in n)fn.call(n,t)&&e++;f.current=[n,c,e,d,h]}const m=d.as||n.as||l,g=function(e,t,n){const r={};for(const i in e)"$"!==i[0]&&"as"!==i&&"theme"!==i&&("forwardedAs"===i?r.as=e[i]:n&&!n(i,t)||(r[i]=e[i]));return r}(d,m,s);return g.style=t.useMemo?t.useMemo(()=>At(n.style)?e=>[h].concat(n.style(e)):n.style?[h].concat(n.style):h,[n.style,h]):At(n.style)?e=>[h].concat(n.style(e)):n.style?[h].concat(n.style):h,r&&(g.ref=r),(0,t.createElement)(m,g)}(d,e,n);c.displayName=a;let d=t.forwardRef(c);return d.attrs=l,d.inlineStyle=new yn(i?o.inlineStyle.rules.concat(r):r),d.displayName=a,d.shouldForwardProp=u,d.styledComponentId=!0,d.target=i?o.target:e,Object.defineProperty(d,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)hn(e,n,!0);return e}({},o.defaultProps,e):e}}),an(d,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),d}),vn=e=>zt(gn,e);var yn;["ActivityIndicator","Button","FlatList","Image","ImageBackground","InputAccessoryView","KeyboardAvoidingView","Modal","Pressable","RefreshControl","SafeAreaView","ScrollView","SectionList","StatusBar","Switch","Text","TextInput","TouchableHighlight","TouchableNativeFeedback","TouchableOpacity","TouchableWithoutFeedback","View","VirtualizedList"].forEach(e=>Object.defineProperty(vn,e,{enumerable:!0,configurable:!1,get(){if(e in pn&&pn[e])return vn(pn[e]);throw new Error(`${e} is not available in the currently-installed version of react-native`)}}));const bn=e=>"string"==typeof e,_n=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},wn=e=>null==e?"":""+e,Sn=/###/g,xn=e=>e&&e.indexOf("###")>-1?e.replace(Sn,"."):e,En=e=>!e||bn(e),Cn=(e,t,n)=>{const r=bn(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(En(e))return{};const t=xn(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return En(e)?{}:{obj:e,k:xn(r[i])}},kn=(e,t,n)=>{const{obj:r,k:i}=Cn(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=Cn(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Cn(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},An=(e,t)=>{const{obj:n,k:r}=Cn(e,t);if(n)return n[r]},Rn=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?bn(e[r])||e[r]instanceof String||bn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Rn(e[r],t[r],n):e[r]=t[r]);return e},Tn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Pn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const On=e=>bn(e)?e.replace(/[&<>"'\/]/g,e=>Pn[e]):e,In=[" ",",","?","!",";"],Nn=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Ln=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},Dn=e=>e&&e.replace("_","-"),Mn={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Fn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Mn,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(bn(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Fn(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Fn(this.logger,e)}}var Vn=new Fn;class zn{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])})}}class jn extends zn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):bn(n)&&i?a.push(...n.split(i)):a.push(n)));const s=An(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&bn(n)?Ln(this.data&&this.data[e]&&this.data[e][t],n,i):s}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),kn(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)(bn(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=An(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Rn(s,n,i):s={...s,...n},kn(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Bn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};const Hn={};class $n extends zn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Vn.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=In.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=Nn.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:bn(i)?[i]:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:bn(i)?[i]:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const c=this.resolve(e,t);let d=c&&c.res;const h=c&&c.usedKey||o,f=c&&c.exactUsedKey||o,p=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!bn(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(g&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0)||bn(m)&&Array.isArray(d))if(g&&bn(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const u=void 0!==t.count&&!bn(t.count),h=$n.hasDefaultValue(t),f=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&h&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=h&&g!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?g:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.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.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=h&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{r([e],o+n,t[`defaultValue${n}`]||g)})}):r(e,o,g))}d=this.extendTranslation(d,e,t,c,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?f:h;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=d[e])}d=n}}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=bn(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&!bn(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s=bn(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Bn.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bn(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==a.count&&!bn(a.count),d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==a.context&&(bn(a.context)||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(o=e,!Hn[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Hn[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" 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!!!")),f.forEach(n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),h){const n=`${l}${this.options.contextSeparator}${a.context}`;o.push(n),c&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!bn(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}const Wn=e=>e.charAt(0).toUpperCase()+e.slice(1);class Un{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vn.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Dn(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Dn(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(bn(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Wn(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Wn(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Wn(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),bn(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return bn(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):bn(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}let Kn=[{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}],qn={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const Yn=["v1","v2","v3"],Gn=["v4"],Xn={zero:0,one:1,two:2,few:3,many:4,other:5};class Jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Vn.create("pluralResolver"),this.options.compatibilityJSON&&!Gn.includes(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=(()=>{const e={};return Kn.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:qn[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=Dn("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Xn[e]-Xn[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Yn.includes(this.options.compatibilityJSON)}}const Qn=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=((e,t,n)=>{const r=An(e,n);return void 0!==r?r:An(t,n)})(e,t,n);return!o&&i&&bn(n)&&(o=Ln(e,n,r),void 0===o&&(o=Ln(t,n,r))),o},Zn=e=>e.replace(/\$/g,"$$$$");class er{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Vn.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:On,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Tn(i):o||"{{",this.suffix=a?Tn(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Tn(d):h||Tn("$t("),this.nestingSuffix=f?Tn(f):p||Tn(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=Qn(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(Qn(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,c=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Zn(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Zn(this.escape(e)):Zn(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof u){const t=u(e,i,r);o=bn(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(c){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else bn(o)||this.useRawValueToEscape||(o=wn(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),c?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&!bn(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&!bn(r))return r;bn(r)||(r=wn(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const tr=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(Dn(r),i),t[a]=s),s(n)}};class nr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Vn.create("formatter"),this.options=e,this.formats={number:tr((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:tr((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:tr((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:tr((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:tr((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=tr(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}const o=i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e);return o}}class rr extends zn{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Vn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:i}=Cn(e,t,Object);r[i]=r[i]||[],r[i].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();bn(e)&&(e=this.languageUtils.toResolveHierarchy(e)),bn(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const ir=()=>({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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),bn(e[1])&&(t.defaultValue=e[1]),bn(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),or=e=>(bn(e.ns)&&(e.ns=[e.ns]),bn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),bn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ar=()=>{};class sr extends zn{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=or(e),this.services={},this.logger=Vn,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(bn(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=ir();this.options={...r,...this.options,...or(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Vn.init(i(this.modules.logger),this.options):Vn.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=nr);const n=new Un(this.options);this.store=new jn(this.options.resources,this.options);const o=this.services;o.logger=Vn,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Jn(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new er(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new rr(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new $n(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ar),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[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(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const o=_n(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar;const n=bn(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=_n();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ar),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Bn.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=_n();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n=bn(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{o(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);const u=r.options.keySeparator||".";let c;return c=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${u}${e}`):o.keyPrefix?`${o.keyPrefix}${u}${e}`:e,r.t(c,o)};return bn(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=_n();return this.options.ns?(bn(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=_n();bn(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Un(ir());return["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(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new sr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new sr(r);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new jn(this.store.data,r),i.services.resourceStore=i.store),i.translator=new $n(i.services,r),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const lr=sr.createInstance();lr.createInstance=sr.createInstance,lr.createInstance,lr.dir,lr.init,lr.loadResources,lr.reloadResources,lr.use,lr.changeLanguage,lr.getFixedT,lr.t,lr.exists,lr.setDefaultNamespace,lr.hasLoadedNamespace,lr.loadNamespaces,lr.loadLanguages,a(4915),Object.create(null);const ur={},cr=(e,t,n,r)=>{pr(n)&&ur[n]||(pr(n)&&(ur[n]=new Date),((e,t,n,r)=>{const i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);pr(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,n,r))},dr=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},hr=(e,t,n)=>{e.loadNamespaces(t,dr(e,n))},fr=(e,t,n,r)=>{if(pr(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return hr(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,dr(e,r))},pr=e=>"string"==typeof e,mr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,gr={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},vr=e=>gr[e];let yr,br={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(mr,vr)};const _r={type:"3rdParty",init(e){((e={})=>{br={...br,...e}})(e.options.react),(e=>{yr=e})(e)}},wr=(0,t.createContext)();class Sr{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const xr=(e,t,n,r)=>e.getFixedT(t,n,r),Er=JSON.parse('{"chat.placeholder.text":"Describe the diamond you\'re looking for...","chat.send.text":"Send","chat.thinking.text":"Thinking","chat.error.text":"Sorry, something went wrong. Please try again.","chat.authError.text":"Chat is unavailable (missing user authentication).","chat.loadingOlder.text":"Loading older messages...","chat.chatStartedAt.text":"Chat Started at {{time}}","results.found.text":"Found","results.matchPreferences.text":"that match your preferences:","results.noResultsSuggestion.text":"Try modifying your search criteria to explore more options.","results.viewAll.text":"View All {{total}} diamonds","results.showMore.text":"Show more","results.showLess.text":"Show less","results.loading.text":"Loading...","product.labGrownDiamond.text":"Lab-Grown Diamond","product.naturalDiamond.text":"Natural Diamond","product.pair.text":"Pair","product.diamonds.text":"diamonds","product.pricePerCarat.text":"p/ct","product.total.text":"total","product.depth.text":"D","product.table.text":"T","product.pluralSuffix.text":"s","header.title.text":"AI Search","header.beta.text":"Beta","header.clearChat.text":"Clear Chat","header.minimize.text":"Minimize","beta.notice.text":"This beta feature uses AI-generated results that should be verified.","chat.welcome.message.text":"Describe the diamond you\'re looking for — for example, \\"2ct F VS2 under $10,000\\" or \\"1–2ct D–F VS pear\\" — and I\'ll take it from there.","time.am.text":"am","time.pm.text":"pm","search.fancyColor.text":"Fancy Color","search.fcOvertone.text":"FC Overtone","search.cut.text":"Cut","search.polish.text":"Pol","search.symmetry.text":"Sym","search.fluorescence.text":"Flour","search.lab.text":"Lab","search.depth.text":"Depth","search.tableLabel.text":"table","search.measLength.text":"Meas Length","search.measWidth.text":"Meas Width","search.measDepth.text":"Meas Depth","search.ratio.text":"Ratio","search.totalPrice.text":"Total","search.pricePerCarat.text":"PPC","search.itemLocation.text":"Item Loc","search.supplier.text":"Supplier","search.parcel.text":"Parcel","search.threeX.text":"3X","search.heartsAndArrows.text":"H&A","search.colorEnhanced.text":"Color Enhanced","search.noBgm.text":"No BGM","search.threeVgPlus.text":"3VG+","search.eightX.text":"8X","search.crown.text":"Crown","search.pavilion.text":"Pavilion","search.more.text":"+ {{count}} more","search.carat.text":"ct."}');function Cr(){return"undefined"!=typeof window&&window.localStorage?window.localStorage:null}const kr={getItem:async e=>{try{if("persist:searchFilters"===e){const t="undefined"!=typeof window&&window.sessionStorage?window.sessionStorage:null;return t?t.getItem(e):null}const t=Cr();return t?t.getItem(e):null}catch{return null}},setItem:async(e,t)=>{try{const n=Cr();n&&n.setItem(e,t)}catch{}},removeItem:async e=>{try{const t=Cr();t&&t.removeItem(e)}catch{}}};let Ar=!1;const Rr={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}};function Tr(){return"web"===r.A.OS?kr:(Ar||(console.warn("[vdb-ai-chat] AsyncStorage not initialized. Call initStorage(AsyncStorage) at app startup."),Ar=!0),Rr)}const Pr=async e=>Tr().getItem(e),Or=async(e,t)=>Tr().setItem(e,t),Ir=async e=>Tr().removeItem(e),Nr=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{const n=await Tr().getItem(e);return n?JSON.parse(n):t}catch{return t}},Lr=async(e,t)=>{try{await Tr().setItem(e,JSON.stringify(t))}catch{}},Dr=lr.createInstance(),Mr=(()=>{const e={};for(const[t,n]of Object.entries(Er)){const r=t.split(".");let i=e;for(let e=0;e<r.length-1;e++){const t=r[e];t in i||(i[t]={}),i=i[t]}i[r[r.length-1]]=n}return e})();Dr.use(_r).init({compatibilityJSON:"v3",lng:"en",fallbackLng:"en",resources:{en:{translation:Mr}},interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Fr=e=>{const t={};for(const[n,r]of Object.entries(e)){const e=n.split(".");let i=t;for(let t=0;t<e.length-1;t++){const n=e[t];n in i||(i[n]={}),i=i[n]}i[e[e.length-1]]=r}return t},Vr=async()=>{try{const e=await Pr("persist:root");if(!e)return null;const t=JSON.parse(e),n="string"==typeof t?.globalData?JSON.parse(t.globalData):t?.globalData,r=n?.ai_chat_bot;return r?.translations||null}catch{return null}},zr=(e,t)=>e&&Object.keys(e).length>0?e:t&&Object.keys(t).length>0?t:Er,jr=async e=>{const t=e?.locale||"en",n=await Vr(),r=e?.translations,i=zr(n,r),o=Fr(i);Dr.addResourceBundle(t,"translation",o,!0,!0),Dr.language!==t&&await Dr.changeLanguage(t)},Br=()=>((e,n={})=>{const{i18n:r}=n,{i18n:i,defaultNS:o}=(0,t.useContext)(wr)||{},a=r||i||yr;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Sr),!a){cr(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return pr(t)?t:"object"==typeof(n=t)&&null!==n&&pr(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&cr(a,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...br,...a.options.react,...n},{useSuspense:l,keyPrefix:u}=s;let c=e||o||a.options?.defaultNS;c=pr(c)?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces?.(c);const d=(a.isInitialized||a.initializedStoreOnce)&&c.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(cr(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,a,s)),h=((e,n,r,i)=>(0,t.useCallback)(xr(e,n,r,i),[e,n,r,i]))(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),f=()=>h,p=()=>xr(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),[m,g]=(0,t.useState)(f);let v=c.join();n.lng&&(v=`${n.lng}${v}`);const y=((e,n)=>{const r=(0,t.useRef)();return(0,t.useEffect)(()=>{r.current=e},[e,n]),r.current})(v),b=(0,t.useRef)(!0);(0,t.useEffect)(()=>{const{bindI18n:e,bindI18nStore:t}=s;b.current=!0,d||l||(n.lng?fr(a,n.lng,c,()=>{b.current&&g(p)}):hr(a,c,()=>{b.current&&g(p)})),d&&y&&y!==v&&b.current&&g(p);const r=()=>{b.current&&g(p)};return e&&a?.on(e,r),t&&a?.store.on(t,r),()=>{b.current=!1,a&&e&&e?.split(" ").forEach(e=>a.off(e,r)),t&&a&&t.split(" ").forEach(e=>a.store.off(e,r))}},[a,v]),(0,t.useEffect)(()=>{b.current&&d&&g(f)},[a,u,d]);const _=[m,a,d];if(_.t=m,_.i18n=a,_.ready=d,d)return _;if(!d&&!l)return _;throw new Promise(e=>{n.lng?fr(a,n.lng,c,()=>e()):hr(a,c,()=>e())})})("translation",{i18n:Dr});let Hr=yt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(Hr=e)}catch{Hr=yt.A}const $r=e=>{let{disabled:n,isEmpty:r}=e;const i=n||r,o=Wt();return t.createElement(Hr,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/send.svg"},resizeMode:"contain",style:{...Yr.buttonIcon,tintColor:i?o["core-04"]||"#ACACB3":o["core-05"]||"#020001",cursor:i?"auto":"pointer"}})},Wr=e=>{let{value:n,onChangeText:r,onSend:i,disabled:o,placeholder:a,inputRef:s}=e;const l=Wt(),{t:u}=Br();return t.createElement(Ur,{theme:l},t.createElement(Kr,{ref:s,id:"chat-input",style:[Yr.inputWeb],autoComplete:"off",placeholder:a||u("chat.placeholder.text","Describe the diamond you're looking for..."),placeholderTextColor:l["core-06"]||"#999",value:n,onChangeText:r,onSubmitEditing:i,editable:!o,autoFocus:!l.isTablet}),t.createElement(qr,{onPress:i,disabled:o},t.createElement($r,{disabled:o,isEmpty:""===n.trim()})))},Ur=vn.View`
2
+ (()=>{var e,t,n,r,i={6556(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(i),n(e)}).catch(r)})}function i(e,t,n){var i;return(i=n,new Promise(function(e){return setTimeout(e,i)})).then(function(){return r(function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}(),1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}n.d(t,{s2:()=>r,w_:()=>i})},9952(e,t,n){"use strict";n.d(t,{d:()=>l,j:()=>u});var r=n(6e3),i=n(3172),o=n(1635),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,i,a=(0,o.Cl)((0,o.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},e),((n={})[s]=a,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),s=n(6490),l=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},u=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new s.r),void 0===i&&(i=new a),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new l({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,i.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},6115(e,t,n){"use strict";n.d(t,{g:()=>o,M:()=>a});var r=n(1635),i=n(2079),o="onRemoveFromFuture",a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map(function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t)||(e.queue.push(t),0))});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e,t){if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var n=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,i=e.factor,o=void 0===i?2:i,a=e.attempt,s=e.maxTimeout,l=void 0===s?1/0:s;return Math.min(t*r*Math.pow(o,a),l)}({attempt:this.getAttempts(e)});return t>0&&n<t&&(n=t),this.scheduleItem(e,n)},t.prototype.pushWithDelay=function(e,t){return this.scheduleItem(e,t)},t.prototype.scheduleItem=function(e,t){var n=this;return!(this.updateAttempts(e)>this.maxAttempts||this.includes(e)||(setTimeout(function(){n.queue.push(e),n.future=n.future.filter(function(t){return t.id!==e.id}),n.emit(o)},t),this.future.push(e),0))},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find(function(t){return t.id===e.id}))||Boolean(this.future.find(function(t){return t.id===e.id}))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.v)},4980(e,t,n){"use strict";n.d(t,{C:()=>o,D:()=>a});var r=n(1635),i=n(9952);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):function(){return(0,r.sH)(this,void 0,void 0,function(){var n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o.apply(t,[e])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}})})}().then(function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof i.d&&"middleware_cancellation"===n.type)throw n;return n instanceof i.d?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)})}function a(e,t){return o(e,t).then(function(t){if(t instanceof i.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},6490(e,t,n){"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(1635),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t})},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},2321(e,t,n){"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function o(e){return"function"==typeof e}function a(e){return null!=e}function s(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>i,Kg:()=>r,Qd:()=>s,Tn:()=>o,t2:()=>a})},6251(e,t,n){"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise(function(r,i){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,i.apply(void 0,e)}});return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}}},2079(e,t,n){"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(e,r),t.apply(n,i)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter(function(e){return e!==t});return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach(function(e){e.apply(n,r)}),this},e}()},7718(e,t,n){"use strict";n.d(t,{a:()=>o,s:()=>i});var r=n(9839);function i(){return!(0,r.B)()||window.navigator.onLine}function o(){return!i()}},7947(e,t,n){"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},7977(e,t,n){"use strict";n.d(t,{o:()=>a});var r=n(1635),i=n(9952),o=n(4568),a=function(e){function t(t,n){return e.call(this,t,n,new o.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i.j)},9839(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{B:()=>r,S:()=>i})},5770(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})},4568(e,t,n){"use strict";n.d(t,{U:()=>h});var r=n(1635),i=n(6490),o=n(524),a=n(8167),s=n(1298),l=n(7947);function u(e){console.error("Error sending segment performance metrics",e)}var c,d=function(){function e(e){var t,n,r,i,o,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:l.a,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var s=!1,c=function(){s||(s=!0,a.flush().catch(u),s=!1,setTimeout(c,a.flushTimer))};c()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var i=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},i),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}}(e,t,(0,s.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(u)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,function(){var e=this;return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(t){u(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t,n;return(0,r.YH)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,o.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){c=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==c||c.increment(t,null!=r?r:[])},t}(i.p)},4757(e,t,n){"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,i=t.type,o=t.didError,a=void 0!==o&&o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(t,{y:()=>r})},8167(e,t,n){"use strict";n.d(t,{r:()=>r});var r="1.84.0"},524(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}n.d(t,{h:()=>o}),Object.defineProperty(r,"name",{value:"default",configurable:!0});var i=n(2453),o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.m)();return(n&&n.fetch||r).apply(void 0,e)}},2453(e,t,n){"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},472(e,t,n){"use strict";n.d(t,{Ud:()=>a,kJ:()=>i,rY:()=>o});var r="analytics";function i(){return window[r]}function o(e){r=e}function a(e){window[r]=e}},3357(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function i(e,t){var n=r(e);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(e,t){n.addEventListener("load",function(){return e(n)}),n.addEventListener("error",function(e){return t(e)})})}return new Promise(function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});a<s.length;a++){var l=s[a],u=l[0],c=l[1];o.setAttribute(u,c)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var d=window.document.querySelector("script");d?null===(i=d.parentElement)||void 0===i||i.insertBefore(o,d):window.document.head.appendChild(o)})}function o(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{d:()=>o,k:()=>i})},1094(e,t,n){"use strict";n.d(t,{J:()=>i});var r=n(1635);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce(function(e,t){var n,i,o=t[0],a=t[1];return"object"==typeof a?(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=a,n)):(0,r.Cl)((0,r.Cl)({},e),((i={})[o]={},i))},{});return Object.entries(e.integrations).reduce(function(e,t){var n,o=t[0],a=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=(0,r.Cl)((0,r.Cl)({},a),i[o]),n))},{})}},2613(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(1635),i=function(e,t){return(0,r.sH)(void 0,void 0,void 0,function(){var n;return(0,r.YH)(this,function(i){return n=function(i){return(0,r.sH)(void 0,void 0,void 0,function(){var o;return(0,r.YH)(this,function(r){switch(r.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})}},9456(e,t,n){"use strict";n.d(t,{I2:()=>s,YM:()=>l,qQ:()=>a});var r,i=n(472),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,i.kJ)();t&&(t._cdn=e),r=e},s=function(){var e,t=null!=r?r:null===(e=(0,i.kJ)())||void 0===e?void 0:e._cdn;if(t)return t;var n,a=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(e){var t,r=null!==(t=e.getAttribute("src"))&&void 0!==t?t:"",i=o.exec(r);i&&i[1]&&(n=i[1])}),n);return a||"https://cdn.segment.com"},l=function(){var e=s();return"".concat(e,"/next-integrations")}},5881(e,t,n){"use strict";n.d(t,{x:()=>h});var r=n(1635),i=n(6115),o=n(7977),a=n(9839),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.B)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function l(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o.o(e.event,e.id)})}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function c(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||function(e){return(new Date).getTime()>e}(o);if(a)return s.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void s.removeItem(r);!a&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var h=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),h=[],f={};return d(n,function(){try{h=l(o),f=u(a),c(o),c(a),i.queue=(0,r.fX)((0,r.fX)([],h,!0),i.queue,!0),i.seen=(0,r.Cl)((0,r.Cl)({},f),i.seen)}catch(e){console.error(e)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.fX)((0,r.fX)([],i.queue,!0),i.future,!0);try{d(n,function(){!function(e,t){var n=l(e),i=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))},{});s.setItem(e,JSON.stringify(Object.values(i)))}(o,e),function(e,t){var n=u(e);s.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(a,i.seen)})}catch(e){console.error(e)}}}),i}return(0,r.C6)(t,e),t}(i.M)},5791(e,t,n){"use strict";n.d(t,{W:()=>i});var r=n(1476);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},1298(e,t,n){"use strict";n.d(t,{X:()=>r});function r(){return"npm"}},5939(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>s});var r=n(1635),i=n(9952),o=n(5791);function a(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){function i(t,n){return(0,r.sH)(this,void 0,void 0,function(){var i,a,s;return(0,r.YH)(this,function(l){switch(l.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return l.sent(),i||null===a||(a.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((s={})[e]=!1,s))),[2,a]}})})}var a,s,l,u,c;return(0,r.YH)(this,function(e){switch(e.label){case 0:a=(0,o.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,l=n,e.label=1;case 1:return s<l.length?(u=l[s],[4,i(a,u)]):[3,4];case 2:if(null===(c=e.sent()))return[2,null];a=c,e.label=3;case 3:return s++,[3,1];case 4:return[2,a]}})})}function s(e,t){function n(n){return(0,r.sH)(this,void 0,void 0,function(){var a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return a=!1,[4,e({payload:(0,o.W)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){a=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!a)throw new i.d({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,screen:n,identify:n,alias:n,group:n}}},2572(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(6041));function o(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=o("postalCode","zip"),e.country=o("country"),e.street=o("street"),e.state=o("state"),e.city=o("city"),e.region=o("region")}},2360(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Alias=a,i.default(a,o.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},4857(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},7697(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},4500(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(2572)),o=n(4857),a=r(n(8822)),s=r(n(5316)),l=r(n(6041)),u=r(n(7631));function c(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?s.default(e.timestamp):new Date,t.traverse&&u.default(e),this.opts=t,this.obj=e}t.Facade=c;var d=c.prototype;function h(e){return o.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=l.default(n,t.join("."))),this.opts.clone?h(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?h(t):t},c.proxy=function(e){return function(){return this.proxy(e)}},c.field=function(e){return function(){return this.field(e)}},c.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},c.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||l.default(r,e);return"object"!=typeof i&&(i=l.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=c.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");"object"==typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},3335(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(6698)),o=r(n(6659)),a=r(n(5316)),s=n(4500);function l(e,t){s.Facade.call(this,e,t)}t.Group=l,i.default(l,s.Facade);var u=l.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=s.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return o.default(t)?t:void 0},u.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},u.name=s.Facade.proxy("traits.name"),u.industry=s.Facade.proxy("traits.industry"),u.employees=s.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},7538(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(4500),o=r(n(6041)),a=r(n(6698)),s=r(n(6659)),l=r(n(5316)),u=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,a.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return l.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return l.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),n=this.lastName();return t&&n?u(t+" "+n):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");return"string"==typeof t?u(t).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=u(t).indexOf(" ");if(-1!==n)return u(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},1476(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(4500);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(2360);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return o.Alias}});var a=n(3335);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.Group}});var s=n(7538);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return s.Identify}});var l=n(3863);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return l.Track}});var u=n(5525);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return u.Page}});var c=n(2542);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return c.Screen}});var d=n(7697);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},i.Facade),{Alias:o.Alias,Group:a.Group,Identify:s.Identify,Track:l.Track,Page:u.Page,Screen:c.Screen,Delete:d.Delete})},6659(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},8822(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},5525(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(6698)),o=n(4500),a=n(3863),s=r(n(6659));function l(e,t){o.Facade.call(this,e,t)}t.Page=l,i.default(l,o.Facade);var u=l.prototype;u.action=function(){return"page"},u.type=u.action,u.category=o.Facade.field("category"),u.name=o.Facade.field("name"),u.title=o.Facade.proxy("properties.title"),u.path=o.Facade.proxy("properties.path"),u.url=o.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t},u.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},u.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},2542(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(6698)),o=n(5525),a=n(3863);function s(e,t){o.Page.call(this,e,t)}t.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},s.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},3863(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(6698)),o=n(4500),a=n(7538),s=r(n(6659)),l=r(n(6041));function u(e,t){o.Facade.call(this,e,t)}t.Track=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"track"},c.type=c.action,c.event=o.Facade.field("event"),c.value=o.Facade.proxy("properties.value"),c.category=o.Facade.proxy("properties.category"),c.id=o.Facade.proxy("properties.id"),c.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},c.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},c.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},c.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},c.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},c.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},c.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},c.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},c.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},c.sku=o.Facade.proxy("properties.sku"),c.tax=o.Facade.proxy("properties.tax"),c.name=o.Facade.proxy("properties.name"),c.price=o.Facade.proxy("properties.price"),c.total=o.Facade.proxy("properties.total"),c.repeat=o.Facade.proxy("properties.repeat"),c.coupon=o.Facade.proxy("properties.coupon"),c.shipping=o.Facade.proxy("properties.shipping"),c.discount=o.Facade.proxy("properties.discount"),c.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},c.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},c.description=o.Facade.proxy("properties.description"),c.plan=o.Facade.proxy("properties.plan"),c.subtotal=function(){var e=l.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},c.products=function(){var e=this.properties(),t=l.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},c.quantity=function(){return(this.obj.properties||{}).quantity||1},c.currency=function(){return(this.obj.properties||{}).currency||"USD"},c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.query=o.Facade.proxy("options.query"),c.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},c.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},c.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},c.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e){if("number"==typeof e)return e;if("string"==typeof e)return e=e.replace(/\$/g,""),e=parseFloat(e),isNaN(e)?void 0:e}}(e)},c.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},c.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},7631(e,t,n){"use strict";var r=n(1042);e.exports=function e(t,n){return void 0===n&&(n=!0),t&&"object"==typeof t?function(t,n){return Object.keys(t).forEach(function(r){t[r]=e(t[r],n)}),t}(t,n):Array.isArray(t)?function(t,n){return t.forEach(function(r,i){t[i]=e(r,n)}),t}(t,n):r.is(t,n)?r.parse(t):t}},1042(e,t){"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var o,a=0;o=t[a];a++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var s=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(s)},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},5493(e){"use strict";function t(e){return e&&"object"==typeof e?i(e)||o(e)?e:r(e)?function(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}(e,t):function(e,t,n){if(e.reduce)return e.reduce(t,n);for(var r=0;r<e.length;r++)n=t(n,e[r]);return n}(s(e),function(r,i){return r[n(i)]=t(e[i]),r},{}):e}function n(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=function(e){return"string"==typeof e?n(e):t(e)};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){return"[object Date]"===Object.prototype.toString.call(e)},o=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},a=Object.prototype.hasOwnProperty,s=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},2473(e,t,n){"use strict";e.exports=n(2510)},5486(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e.filter(function(t,n){return e.lastIndexOf(t)===n})}function s(e){for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;++t){var o=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var l in o){var u=o[l],c=e[l];if(c&&u){if(Array.isArray(c)){e[l]=a(c.concat(u));continue}if(Array.isArray(u)){e[l]=a([c].concat(i(u)));continue}if("object"===r(u)){e[l]=s({},c,u);continue}}e[l]=u}}return e}n.r(t),n.d(t,{assignStyle:()=>s,camelCaseProperty:()=>h,cssifyDeclaration:()=>m,cssifyObject:()=>g,hyphenateProperty:()=>p,isPrefixedProperty:()=>y,isPrefixedValue:()=>_,isUnitlessProperty:()=>O,normalizeProperty:()=>L,resolveArrayValue:()=>D,unprefixProperty:()=>N,unprefixValue:()=>F});var l=/-([a-z])/g,u=/^Ms/g,c={};function d(e){return e[1].toUpperCase()}function h(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(l,d).replace(u,"ms");return c[e]=t,t}var f=n(5685);function p(e){return(0,f.default)(e)}function m(e,t){return p(e)+":"+t}function g(e){var t="";for(var n in e){var r=e[n];"string"!=typeof r&&"number"!=typeof r||(t&&(t+=";"),t+=m(n,r))}return t}var v=/^(Webkit|Moz|O|ms)/;function y(e){return v.test(e)}var b=/-webkit-|-moz-|-ms-/;function _(e){return"string"==typeof e&&b.test(e)}var w={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],x=["Webkit","ms","Moz","O"];function E(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var C=0,k=S.length;C<k;++C){var A=S[C];w[A]=!0;for(var R=0,T=x.length;R<T;++R)w[E(x[R],A)]=!0}for(var P in w)w[p(P)]=!0;function O(e){return w.hasOwnProperty(e)}var I=/^(ms|Webkit|Moz|O)/;function N(e){var t=e.replace(I,"");return t.charAt(0).toLowerCase()+t.slice(1)}function L(e){return N(h(e))}function D(e,t){return t.join(";"+p(e)+":")}var M=/(-ms-|-webkit-|-moz-|-o-)/g;function F(e){return"string"==typeof e?e.replace(M,""):e}},5721(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var r,i=(r=n(5685))&&r.__esModule?r:{default:r}},4014(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/},8907(e,t){"use strict";t.Y=function(e,t){return function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),o=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!o&&"not"===o.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}}),l})}(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var i=e.expressions.every(function(e){var n=e.feature,r=e.modifier,i=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=u(i),o=u(o);break;case"resolution":i=l(i),o=l(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=s(i),o=s(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=i;case"max":return o<=i;default:return o===i}});return i&&!n||!i&&n})};var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function l(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},7608(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(5482),o=r(i),a=r(n(5493)),s=r(n(2473)),l=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,u=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,c=function(e){return function(t){return e(t)?"<token>":null}},d=function(e,t){return void 0===t&&(t=String),function(n){if("word"!==n.type)return null;var r=n.value.match(e);return null===r?null:t(r[1])}},h=c(function(e){return"space"===e.type}),f=c(function(e){return"div"===e.type&&"/"===e.value}),p=c(function(e){return"div"===e.type&&","===e.value}),m=function(e){return"word"===e.type?e.value:null},g=d(/^(none)$/i),v=d(/^(auto)$/i),y=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,Number),b=d(/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,Number),_=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i),w=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,function(e){return e.toLowerCase()}),S=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i),x=d(/(^-?[_a-z][_a-z0-9-]*$)/i),E=function(e){return"string"!==e.type?null:e.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/\\/g,"")},C=function(e){return"word"===e.type&&(l.test(e.value)||e.value in s||"transparent"===e.value)?e.value:"function"===e.type&&u.test(e.value)?i.stringify(e):null},k=d(/^(none|underline|line-through)$/i),A=d(/^(solid|dashed|dotted)$/),R=function(e){var t=e.types,n=void 0===t?[b,_,S]:t,r=e.directions,i=void 0===r?["Top","Right","Bottom","Left"]:r,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;return function(e){var t,r=[];for(r.push(e.expect.apply(e,n));r.length<4&&e.hasTokens();)e.expect(h),r.push(e.expect.apply(e,n));e.expectEmpty();var o=r[0],s=r[1],u=void 0===s?o:s,c=r[2],d=void 0===c?o:c,f=r[3],p=void 0===f?u:f,m=function(e){return""+a+i[e]+l};return(t={})[m(0)]=o,t[m(1)]=u,t[m(2)]=d,t[m(3)]=p,t}},T=function(e){var t=e.expect(b),n=e.matches(h)?e.expect(b):t;return e.expectEmpty(),{width:t,height:n}},P=function(e){var t,n,r,i;if(e.matches(g))return e.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var o=!1;e.hasTokens();)o&&e.expect(h),void 0===t&&e.matches(b,_)?(t=e.lastValue,e.expect(h),n=e.expect(b,_),e.saveRewindPoint(),e.matches(h)&&e.matches(b,_)?r=e.lastValue:e.rewind()):void 0===i&&e.matches(C)?i=e.lastValue:e.throw(),o=!0;return void 0===t&&e.throw(),{offset:{width:t,height:n},radius:void 0!==r?r:0,color:void 0!==i?i:"black"}},O=d(/(nowrap|wrap|wrap-reverse)/),I=d(/(row|row-reverse|column|column-reverse)/),N=function(e){var t;if(e.matches(E))t=e.lastValue;else for(t=e.expect(x);e.hasTokens();)e.expect(h),t+=" "+e.expect(x);return e.expectEmpty(),{fontFamily:t}},L=d(/^(normal)$/),D=d(/^(italic)$/),M=d(/^([1-9]00|bold)$/),F=d(/^(small-caps)$/),V=[],z=d(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),j=d(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),B=d(/^(solid|double|dotted|dashed)$/),H=function(e){return function(t){var n=t.expect(e);return t.expectEmpty(),n}},$=H(y),W=H(b),U=H(w),K=function(e){return function(t,n){return function(r){var i,o,a,s=r.expect(e);if(r.hasTokens())r.expect(p),a=r.expect(e);else{if(void 0===n)return s;a=n}return r.expectEmpty(),[(i={},i[t+"Y"]=a,i),(o={},o[t+"X"]=s,o)]}}},q=K(y),Y=K(b),G=K(w),X={perspective:$,scale:q("scale"),scaleX:$,scaleY:$,translate:Y("translate",0),translateX:W,translateY:W,rotate:U,rotateX:U,rotateY:U,rotateZ:U,skewX:U,skewY:U,skew:G("skew","0deg")},J=R({types:[C],prefix:"border",suffix:"Color"}),Q=R({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),Z=R({prefix:"border",suffix:"Width"}),ee=R({types:[b,_,S,v],prefix:"margin"}),te=R({prefix:"padding"}),ne={aspectRatio:function(e){var t=e.expect(y);return e.hasTokens()&&(e.expect(f),t/=e.expect(y)),{aspectRatio:t}},background:function(e){return{backgroundColor:e.expect(C)}},border:function(e){var t,n,r;if(e.matches(g))return e.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var i=0;i<3&&e.hasTokens();)0!==i&&e.expect(h),void 0===t&&e.matches(b,_)?t=e.lastValue:void 0===n&&e.matches(C)?n=e.lastValue:void 0===r&&e.matches(A)?r=e.lastValue:e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n="black"),void 0===r&&(r="solid"),{borderWidth:t,borderColor:n,borderStyle:r}},borderColor:J,borderRadius:Q,borderWidth:Z,boxShadow:function(e){var t=P(e);return{shadowOffset:t.offset,shadowRadius:t.radius,shadowColor:t.color,shadowOpacity:1}},flex:function(e){var t,n,r;if(e.matches(g))return e.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(e.saveRewindPoint(),e.matches(v)&&!e.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};e.rewind();for(var i=0;i<2&&e.hasTokens();)0!==i&&e.expect(h),void 0===t&&e.matches(y)?(t=e.lastValue,e.saveRewindPoint(),e.matches(h)&&e.matches(y)?n=e.lastValue:e.rewind()):void 0===r&&e.matches(b,_,S)?r=e.lastValue:void 0===r&&e.matches(v)?r="auto":e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=0),{flexGrow:t,flexShrink:n,flexBasis:r}},flexFlow:function(e){for(var t,n,r=0;r<2&&e.hasTokens();)0!==r&&e.expect(h),void 0===t&&e.matches(O)?t=e.lastValue:void 0===n&&e.matches(I)?n=e.lastValue:e.throw(),r+=1;return e.expectEmpty(),void 0===t&&(t="nowrap"),void 0===n&&(n="row"),{flexWrap:t,flexDirection:n}},font:function(e){for(var t,n,r,i,o=0;o<3&&e.hasTokens();){if(e.matches(L));else if(void 0===t&&e.matches(D))t=e.lastValue;else if(void 0===n&&e.matches(M))n=e.lastValue;else{if(void 0!==r||!e.matches(F))break;r=[e.lastValue]}e.expect(h),o+=1}var a=e.expect(b,_);e.matches(f)&&(i=e.expect(b,_)),e.expect(h);var s=N(e).fontFamily;void 0===t&&(t="normal"),void 0===n&&(n="normal"),void 0===r&&(r=V);var l={fontStyle:t,fontWeight:n,fontVariant:r,fontSize:a,fontFamily:s};return void 0!==i&&(l.lineHeight=i),l},fontFamily:N,fontVariant:function(e){for(var t=[e.expect(x)];e.hasTokens();)e.expect(h),t.push(e.expect(x));return{fontVariant:t}},fontWeight:function(e){return{fontWeight:e.expect(m)}},margin:ee,padding:te,placeContent:function(e){var t,n=e.expect(z);return e.hasTokens()?(e.expect(h),t=e.expect(j)):t="stretch",e.expectEmpty(),{alignContent:n,justifyContent:t}},shadowOffset:function(e){return{shadowOffset:T(e)}},textShadow:function(e){var t=P(e);return{textShadowOffset:t.offset,textShadowRadius:t.radius,textShadowColor:t.color}},textShadowOffset:function(e){return{textShadowOffset:T(e)}},textDecoration:function(e){for(var t,n,r,i=!1;e.hasTokens();){if(i&&e.expect(h),void 0===t&&e.matches(k)){var o=[e.lastValue.toLowerCase()];e.saveRewindPoint(),"none"!==o[0]&&e.matches(h)&&e.matches(k)?(o.push(e.lastValue.toLowerCase()),o.sort().reverse()):e.rewind(),t=o.join(" ")}else void 0===n&&e.matches(B)?n=e.lastValue:void 0===r&&e.matches(C)?r=e.lastValue:e.throw();i=!0}return{textDecorationLine:void 0!==t?t:"none",textDecorationColor:void 0!==r?r:"black",textDecorationStyle:void 0!==n?n:"solid"}},textDecorationLine:function(e){for(var t=[],n=!1;e.hasTokens();)n&&e.expect(h),t.push(e.expect(k).toLowerCase()),n=!0;return t.sort().reverse(),{textDecorationLine:t.join(" ")}},transform:function(e){for(var t=[],n=!1;e.hasTokens();){n&&e.expect(h);var r,i=e.expectFunction(),o=i.functionName,a=X[o](i);Array.isArray(a)||(a=[(r={},r[o]=a,r)]),t=a.concat(t),n=!0}return{transform:t}}},re="SYMBOL_MATCH",ie=function(){function e(e,t){this.index=0,this.nodes=e,this.functionName=null!=t?t.value:null,this.lastValue=null,this.rewindIndex=-1}var t=e.prototype;return t.hasTokens=function(){return this.index<=this.nodes.length-1},t[re]=function(){if(!this.hasTokens())return null;for(var e=this.nodes[this.index],t=0;t<arguments.length;t+=1){var n=(t<0||arguments.length<=t?void 0:arguments[t])(e);if(null!==n)return this.index+=1,this.lastValue=n,n}return null},t.matches=function(){return null!==this[re].apply(this,arguments)},t.expect=function(){var e=this[re].apply(this,arguments);return null!==e?e:this.throw()},t.matchesFunction=function(){var t=this.nodes[this.index];if("function"!==t.type)return null;var n=new e(t.nodes,t);return this.index+=1,this.lastValue=null,n},t.expectFunction=function(){var e=this.matchesFunction();return null!==e?e:this.throw()},t.expectEmpty=function(){this.hasTokens()&&this.throw()},t.throw=function(){throw new Error("Unexpected token type: "+this.nodes[this.index].type)},t.saveRewindPoint=function(){this.rewindIndex=this.index},t.rewind=function(){if(-1===this.rewindIndex)throw new Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},e}(),oe=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,ae=/^true|false$/i,se=/^null$/i,le=/^undefined$/i,ue=function(e,t,n){var r,i=!1===n||!(e in ne),a=t.trim();return i?((r={})[e]=function(e,t){var n=t.match(oe);if(null!==n)return Number(n[1]);var r=t.match(ae);return null!==r?"true"===r[0].toLowerCase():null!==t.match(se)?null:null===t.match(le)?t:void 0}(0,a),r):function(e,t){var n=o(t),r=new ie(n.nodes);return ne[e](r)}(e,a)};t.Ay=function(e,t){return void 0===t&&(t=[]),e.reduce(function(e,n){var r,i=(r=n[0],/^--\w+/.test(r)?r:a(r)),o=n[1],s=-1===t.indexOf(i);return Object.assign(e,ue(i,o,s))},{})}},9395(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},646(e){"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw o.framesToPop=1,o}}},4594(e,t,n){"use strict";var r=n(9395);e.exports=r},5685(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},6698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6485(e,t,n){"use strict";t.A=function(e){var t=e.prefixMap,n=e.plugins;return function e(s){for(var l in s){var u=s[l];if((0,a.default)(u))s[l]=e(u);else if(Array.isArray(u)){for(var c=[],d=0,h=u.length;d<h;++d){var f=(0,i.default)(n,l,u[d],s,t);(0,o.default)(c,f||u[d])}c.length>0&&(s[l]=c)}else{var p=(0,i.default)(n,l,u,s,t);p&&(s[l]=p),s=(0,r.default)(t,l,s)}}return s}};var r=s(n(2049)),i=s(n(7971)),o=s(n(9863)),a=s(n(1099));function s(e){return e&&e.__esModule?e:{default:e}}},4217(e,t){"use strict";t.A=function(){return null}},1261(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return o.map(function(e){return t.replace(i,e+"cross-fade(")})};var r=n(5486),i=/cross-fade\(/g,o=["-webkit-",""]},8041(e,t){"use strict";t.A=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},7033(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return o.map(function(e){return t.replace(i,e+"filter(")})};var r=n(5486),i=/filter\(/g,o=["-webkit-",""]},6852(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("image-set(")>-1)return o.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,i=(r=n(4014))&&r.__esModule?r:{default:r},o=["-webkit-",""]},20(e,t){"use strict";t.A=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var i=n[e],o=0,a=i.length;o<a;++o)r[i[o]]=t};var n={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]}},9996(e,t){"use strict";t.A=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}},5129(e,t){"use strict";t.A=function(e,t){if(r.hasOwnProperty(e)&&i.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},508(e,t,n){"use strict";t.A=function(e,t,n,a){if("string"==typeof t&&s.hasOwnProperty(e)){var u=function(e,t){if((0,i.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),o=0,a=n.length;o<a;++o){var s=n[o],u=[s];for(var c in t){var d=(0,r.default)(c);if(s.indexOf(d)>-1&&"order"!==d)for(var h=t[c],f=0,p=h.length;f<p;++f)u.unshift(s.replace(d,l[h[f]]+d))}n[o]=u.join(",")}return n.join(",")}(t,a),c=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return c;var d=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,o.default)(e)]=c,n["Moz"+(0,o.default)(e)]=d,u)}};var r=a(n(5721)),i=a(n(4014)),o=a(n(7091));function a(e){return e&&e.__esModule?e:{default:e}}var s={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},9863(e,t){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,i=t.length;r<i;++r)n(e,t[r]);else n(e,t)}},7091(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},1099(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},2049(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];if(r&&n.hasOwnProperty(t))for(var o=(0,i.default)(t),a=0;a<r.length;++a){var s=r[a]+o;n[s]||(n[s]=n[t])}return n};var r,i=(r=n(7091))&&r.__esModule?r:{default:r}},7971(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){for(var o=0,a=e.length;o<a;++o){var s=e[o](t,n,r,i);if(s)return s}}},7918(e,t,n){"use strict";var r=n(8907).Y,i="undefined"!=typeof window?window.matchMedia:null;function o(e,t,n){var o,a=this;function s(e){a.matches=e.matches,a.media=e.media}i&&!n&&(o=i.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(s)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){o&&o.addListener(e)},this.removeListener=function(e){o&&o.removeListener(e)},this.dispose=function(){o&&o.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},5316(e,t,n){"use strict";var r=n(1042),i=n(356),o=n(4385),a=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===a.call(t)?e:function(e){return"[object Number]"===a.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e);var t,n}},356(e,t){"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},4385(e,t){"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},801(e){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},6041(e){function t(e){return function(t,n,r,o){var a,s=o&&function(e){return"function"==typeof e}(o.normalizer)?o.normalizer:i;n=s(n);for(var l=!1;!l;)u();function u(){for(a in t){var e=s(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[a];return null==i?void(l=!0):n.length?void(t=i):void(l=!0)}}}a=void 0,l=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,i,o){return t(r).call(this,e,n,i,o),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},5482(e,t,n){var r=n(8809),i=n(8449),o=n(9063);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(e,t){return i(this.nodes,e,t),this},a.unit=n(2882),a.walk=i,a.stringify=o,e.exports=a},8809(e){var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),u="*".charCodeAt(0),c="u".charCodeAt(0),d="U".charCodeAt(0),h="+".charCodeAt(0),f=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var p,m,g,v,y,b,_,w,S,x=[],E=e,C=0,k=E.charCodeAt(C),A=E.length,R=[{nodes:x}],T=0,P="",O="",I="";C<A;)if(k<=32){p=C;do{p+=1,k=E.charCodeAt(p)}while(k<=32);v=E.slice(C,p),g=x[x.length-1],k===n&&T?I=v:g&&"div"===g.type?(g.after=v,g.sourceEndIndex+=v.length):k===s||k===l||k===a&&E.charCodeAt(p+1)!==u&&(!S||S&&"function"===S.type&&"calc"!==S.value)?O=v:x.push({type:"space",sourceIndex:C,sourceEndIndex:p,value:v}),C=p}else if(k===r||k===i){p=C,v={type:"string",sourceIndex:C,quote:m=k===r?"'":'"'};do{if(y=!1,~(p=E.indexOf(m,p+1)))for(b=p;E.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(E+=m).length-1,v.unclosed=!0}while(y);v.value=E.slice(C+1,p),v.sourceEndIndex=v.unclosed?p:p+1,x.push(v),C=p+1,k=E.charCodeAt(C)}else if(k===a&&E.charCodeAt(C+1)===u)v={type:"comment",sourceIndex:C,sourceEndIndex:(p=E.indexOf("*/",C))+2},-1===p&&(v.unclosed=!0,p=E.length,v.sourceEndIndex=p),v.value=E.slice(C+2,p),x.push(v),C=p+2,k=E.charCodeAt(C);else if(k!==a&&k!==u||!S||"function"!==S.type||"calc"!==S.value)if(k===a||k===s||k===l)v=E[C],x.push({type:"div",sourceIndex:C-O.length,sourceEndIndex:C+v.length,value:v,before:O,after:""}),O="",C+=1,k=E.charCodeAt(C);else if(t===k){p=C;do{p+=1,k=E.charCodeAt(p)}while(k<=32);if(w=C,v={type:"function",sourceIndex:C-P.length,value:P,before:E.slice(w+1,p)},C=p,"url"===P&&k!==r&&k!==i){p-=1;do{if(y=!1,~(p=E.indexOf(")",p+1)))for(b=p;E.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(E+=")").length-1,v.unclosed=!0}while(y);_=p;do{_-=1,k=E.charCodeAt(_)}while(k<=32);w<_?(v.nodes=C!==_+1?[{type:"word",sourceIndex:C,sourceEndIndex:_+1,value:E.slice(C,_+1)}]:[],v.unclosed&&_+1!==p?(v.after="",v.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:p,value:E.slice(_+1,p)})):(v.after=E.slice(_+1,p),v.sourceEndIndex=p)):(v.after="",v.nodes=[]),C=p+1,v.sourceEndIndex=v.unclosed?p:C,k=E.charCodeAt(C),x.push(v)}else T+=1,v.after="",v.sourceEndIndex=C+1,x.push(v),R.push(v),x=v.nodes=[],S=v;P=""}else if(n===k&&T)C+=1,k=E.charCodeAt(C),S.after=I,S.sourceEndIndex+=I.length,I="",T-=1,R[R.length-1].sourceEndIndex=C,R.pop(),x=(S=R[T]).nodes;else{p=C;do{k===o&&(p+=1),p+=1,k=E.charCodeAt(p)}while(p<A&&!(k<=32||k===r||k===i||k===s||k===l||k===a||k===t||k===u&&S&&"function"===S.type&&"calc"===S.value||k===a&&"function"===S.type&&"calc"===S.value||k===n&&T));v=E.slice(C,p),t===k?P=v:c!==v.charCodeAt(0)&&d!==v.charCodeAt(0)||h!==v.charCodeAt(1)||!f.test(v.slice(2))?x.push({type:"word",sourceIndex:C,sourceEndIndex:p,value:v}):x.push({type:"unicode-range",sourceIndex:C,sourceEndIndex:p,value:v}),C=p}else v=E[C],x.push({type:"word",sourceIndex:C-O.length,sourceEndIndex:C+v.length,value:v}),C+=1,k=E.charCodeAt(C);for(C=R.length-1;C;C-=1)R[C].unclosed=!0,R[C].sourceEndIndex=E.length;return R[0].nodes}},9063(e){function t(e,t){var r,i,o=e.type,a=e.value;return t&&void 0!==(i=t(e))?i:"word"===o||"space"===o?a:"string"===o?(r=e.quote||"")+a+(e.unclosed?"":r):"comment"===o?"/*"+a+(e.unclosed?"":"*/"):"div"===o?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes,t),"function"!==o?r:a+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):a}function n(e,n){var r,i;if(Array.isArray(e)){for(r="",i=e.length-1;~i;i-=1)r=t(e[i],n)+r;return r}return t(e,n)}e.exports=n},2882(e){var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);e.exports=function(e){var a,s,l,u=0,c=e.length;if(0===c||!function(e){var i,o=e.charCodeAt(0);if(o===n||o===t){if((i=e.charCodeAt(1))>=48&&i<=57)return!0;var a=e.charCodeAt(2);return i===r&&a>=48&&a<=57}return o===r?(i=e.charCodeAt(1))>=48&&i<=57:o>=48&&o<=57}(e))return!1;for((a=e.charCodeAt(u))!==n&&a!==t||u++;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),a===r&&s>=48&&s<=57)for(u+=2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),l=e.charCodeAt(u+2),(a===i||a===o)&&(s>=48&&s<=57||(s===n||s===t)&&l>=48&&l<=57))for(u+=s===n||s===t?3:2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;return{number:e.slice(0,u),unit:e.slice(u)}}},8449(e){e.exports=function e(t,n,r){var i,o,a,s;for(i=0,o=t.length;i<o;i+=1)a=t[i],r||(s=n(a,i,t)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,i,t)}},2694(e,t,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551(e,t,n){"use strict";var r=n(6540),i=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,F=Object.assign;function V(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function j(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function B(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return j(e.type,!1);case 11:return j(e.type.render,!1);case 1:return j(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case C:return"Profiler";case E:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){J(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,Ee=null;function Ce(e){if(e=bi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function ke(e){xe?Ee?Ee.push(e):Ee=[e]:xe=e}function Ae(){if(xe){var e=xe,t=Ee;if(Ee=xe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Re(e,t){return e(t)}function Te(){}var Pe=!1;function Oe(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Re(e,t,n)}finally{Pe=!1,(null!==xe||null!==Ee)&&(Te(),Ae())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Ne=!1}function De(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Fe=null,Ve=!1,ze=null,je={onError:function(e){Me=!0,Fe=e}};function Be(e,t,n,r,i,o,a,s,l){Me=!1,Fe=null,De.apply(je,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(o(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return We(i),e;if(a===r)return We(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Je=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,xt,Et,Ct,kt=!1,At=[],Rt=null,Tt=null,Pt=null,Ot=new Map,It=new Map,Nt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ct(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function zt(e,t,n){Vt(e)&&n.delete(t)}function jt(){kt=!1,null!==Rt&&Vt(Rt)&&(Rt=null),null!==Tt&&Vt(Tt)&&(Tt=null),null!==Pt&&Vt(Pt)&&(Pt=null),Ot.forEach(zt),It.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<At.length){Bt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Bt(Rt,e),null!==Tt&&Bt(Tt,e),null!==Pt&&Bt(Pt,e),Ot.forEach(t),It.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Nt.shift()}var $t=_.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Kt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=i,$t.transition=o}}function qt(e,t,n,r){if(Wt){var i=Gt(e,t,n,r);if(null===i)Wr(e,t,r,Yt,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Rt=Mt(Rt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return Pt=Mt(Pt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ot.set(o,Mt(Ot.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Wr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Gt(e,t,n,r){if(Yt=null,null!==(e=yi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Qt,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=F({},un,{view:0,detail:0}),hn=on(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(fn),mn=on(F({},fn,{dataTransfer:0})),gn=on(F({},dn,{relatedTarget:0})),vn=on(F({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(F({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return En}var kn=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(kn),Rn=on(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=on(F({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(On),Nn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Dn,Fn=c&&(!Ln||Dn&&8<Dn&&11>=Dn),Vn=String.fromCharCode(32),zn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,$n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=Kr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Yn(e){Vr(e,0)}function Gn(e){if(q(_i(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Qn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Qn=Zn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),qn=Kn=null)}function nr(e){if("value"===e.propertyName&&Gn(qn)){var t=[];Un(t,qn,e,we(e)),Oe(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(qn)}function or(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||(r="selectionStart"in(r=gr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Er={};function Cr(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return xr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=Cr("animationend"),Ar=Cr("animationiteration"),Rr=Cr("animationstart"),Tr=Cr("transitionend"),Pr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Pr.set(e,t),l(t,[e])}for(var Nr=0;Nr<Or.length;Nr++){var Lr=Or[Nr];Ir(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Ir(kr,"onAnimationEnd"),Ir(Ar,"onAnimationIteration"),Ir(Rr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Fe;Me=!1,Fe=null,Ve||(Ve=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Vr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}}}if(Ve)throw e=ze,Ve=!1,ze=null,e}function zr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach(function(t){"selectionchange"!==t&&(Mr.has(t)||jr(t,!1,e),jr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,jr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Xt(t)){case 1:var i=Ut;break;case 4:i=Kt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=o,i=we(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Ar:case Rr:l=vn;break;case Tr:l=Pn;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&null!=(m=Ie(p,h))&&c.push(Ur(p,m,f))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:_i(l),f=null==u?s:_i(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,yi(i)===r&&((c=new c(h,p+"enter",u,n,i)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,p=0,f=c=l;f;f=qr(f))p++;for(f=0,m=h;m;m=qr(m))f++;for(;0<p-f;)c=qr(c),p--;for(;0<f-p;)h=qr(h),f--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=qr(c),h=qr(h)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Wn(s))if(Jn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Un(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?_i(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Qt="value"in(Jt=i)?Jt.value:Jt.textContent,Hn=!0)),0<(v=Kr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:v}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,Vn);case"textInput":return(e=t.data)===Vn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&jn(e,t)?(e=en(),Zt=Qt=Jt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Kr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Vr(a,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(Ur(e,o,i)),null!=(o=Ie(e,t))&&r.push(Ur(e,o,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Ie(n,o))&&a.unshift(Ur(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Qr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[hi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[fi]||null}var Si=[],xi=-1;function Ei(e){return{current:e}}function Ci(e){0>xi||(e.current=Si[xi],Si[xi]=null,xi--)}function ki(e,t){xi++,Si[xi]=e.current,e.current=t}var Ai={},Ri=Ei(Ai),Ti=Ei(!1),Pi=Ai;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!=e.childContextTypes}function Ni(){Ci(Ti),Ci(Ri)}function Li(e,t,n){if(Ri.current!==Ai)throw Error(o(168));ki(Ri,t),ki(Ti,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return F({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Pi=Ri.current,ki(Ri,e),ki(Ti,Ti.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ti),Ci(Ri),ki(Ri,e)):Ci(Ti),ki(Ti,n)}var Vi=null,zi=!1,ji=!1;function Bi(e){null===Vi?Vi=[e]:Vi.push(e)}function Hi(){if(!ji&&null!==Vi){ji=!0;var e=0,t=bt;try{var n=Vi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vi=null,zi=!1}catch(t){throw null!==Vi&&(Vi=Vi.slice(e+1)),qe(Ze,Hi),t}finally{bt=t,ji=!1}}return null}var $i=[],Wi=0,Ui=null,Ki=0,qi=[],Yi=0,Gi=null,Xi=1,Ji="";function Qi(e,t){$i[Wi++]=Ki,$i[Wi++]=Ui,Ui=e,Ki=t}function Zi(e,t,n){qi[Yi++]=Xi,qi[Yi++]=Ji,qi[Yi++]=Gi,Gi=e;var r=Xi;e=Ji;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Ji=o+e}else Xi=1<<o|n<<i|r,Ji=e}function eo(e){null!==e.return&&(Qi(e,1),Zi(e,1,0))}function to(e){for(;e===Ui;)Ui=$i[--Wi],$i[Wi]=null,Ki=$i[--Wi],$i[Wi]=null;for(;e===Gi;)Gi=qi[--Yi],qi[Yi]=null,Ji=qi[--Yi],qi[Yi]=null,Xi=qi[--Yi],qi[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Pu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Xi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=_.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function _o(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Iu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case S:return(t=Fu(t,e.mode,n)).return=e,t;case I:return h(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Lu(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case I:return f(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),io&&Qi(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Qi(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(g=p(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),io&&Qi(i,m),u}function g(i,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Qi(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return io&&Qi(i,g),c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),io&&Qi(i,g),c}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===I&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=vo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=Lu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Nu(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case S:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fu(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(D(a))return g(r,o,a,l);yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Mu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=_o(!0),So=_o(!1),xo=Ei(null),Eo=null,Co=null,ko=null;function Ao(){ko=Co=Eo=null}function Ro(e){var t=xo.current;Ci(xo),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){Eo=e,ko=Co=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===Co){if(null===Eo)throw Error(o(308));Co=e,Eo.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return t}var Io=null;function No(e){null===Io?Io=[e]:Io.push(e)}function Lo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,No(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return null===(i=r.interleaved)?(t.next=t,No(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var h=s.lane,f=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(h=t,f=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=m.payload)?p.call(f,d,h):p))break e;d=F({},d,h);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function Wo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Uo={},Ko=Ei(Uo),qo=Ei(Uo),Yo=Ei(Uo);function Go(e){if(e===Uo)throw Error(o(174));return e}function Xo(e,t){switch(ki(Yo,t),ki(qo,e),ki(Ko,Uo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(Ko),ki(Ko,t)}function Jo(){Ci(Ko),Ci(qo),Ci(Yo)}function Qo(e){Go(Yo.current);var t=Go(Ko.current),n=le(t,e.type);t!==n&&(ki(qo,e),ki(Ko,n))}function Zo(e){qo.current===e&&(Ci(Ko),Ci(qo))}var ea=Ei(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=_.ReactCurrentDispatcher,oa=_.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,ha=0,fa=0;function pa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Za:es,e=n(r,i),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Qa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function va(){var e=0!==ha;return ha=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function _a(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h,sa.lanes|=d,Dl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Dl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Ea(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Oa(9,ka.bind(null,n,r,i,t),void 0,null),null===Rl)throw Error(o(349));30&aa||Ca(n,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&Ta(e)}function Aa(e,t,n){return n(function(){Ra(t)&&Ta(e)})}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ta(e){var t=Do(e,1);null!==t&&tu(t,e,1,-1)}function Pa(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ba().memoizedState}function Na(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}sa.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Da(e,t){return Na(8390656,8,e,t)}function Ma(e,t){return La(2048,8,e,t)}function Fa(e,t){return La(4,2,e,t)}function Va(e,t){return La(4,4,e,t)}function za(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ja(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,za.bind(null,t,e),n)}function Ba(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ua(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Ka(){return ba().memoizedState}function qa(e,t,n){var r=eu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Xa(t,n):null!==(n=Lo(e,t,n,r))&&(tu(n,e,r,Zl()),Ja(n,t,r))}function Ya(e,t,n){var r=eu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,No(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Lo(e,t,i,r))&&(tu(n,e,r,i=Zl()),Ja(n,t,r))}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Qa={readContext:Oo,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Za={readContext:Oo,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Na(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Pa,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Ua.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Rl)throw Error(o(349));30&aa||Ca(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Da(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Oa(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(io){var n=Ji;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=ha++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Fa,useLayoutEffect:Va,useMemo:$a,useReducer:wa,useRef:Ia,useState:function(){return wa(_a)},useDebugValue:Ba,useDeferredValue:function(e){return Wa(ba(),la.memoizedState,e)},useTransition:function(){return[wa(_a)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:Ka,unstable_isNewReconciler:!1},ts={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Fa,useLayoutEffect:Va,useMemo:$a,useReducer:Sa,useRef:Ia,useState:function(){return Sa(_a)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[Sa(_a)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:Ka,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=eu(e),o=zo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,i))&&(tu(t,e,i,r),Bo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=eu(e),o=zo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,i))&&(tu(t,e,i,r),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zl(),r=eu(e),i=zo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=jo(e,i,r))&&(tu(t,e,r,n),Bo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function as(e,t,n){var r=!1,i=Ai,o=t.contextType;return"object"==typeof o&&null!==o?o=Oo(o):(i=Ii(t)?Pi:Ri.current,o=(r=null!=(r=t.contextTypes))?Oi(e,i):Ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Fo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Oo(o):(o=Ii(t)?Pi:Ri.current,i.context=Oi(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var hs="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,Wl=r),ds(0,t)},n}function ps(e,t,n){(n=zo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Ul?Ul=new Set([this]):Ul.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zo(-1,1)).tag=2,jo(n,t,1))),n.lanes|=1),e)}var ys=_.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?So(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ou(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return $s(e,t,i)}return t.flags|=1,(e=Iu(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,$s(e,t,i);131072&e.flags&&(bs=!0)}}return ks(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Il,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Il,Ol),Ol|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Il,Ol),Ol|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Il,Ol),Ol|=r;return _s(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Ii(n)?Pi:Ri.current;return o=Oi(t,o),Po(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function As(e,t,n,r,i){if(Ii(n)){var o=!0;Mi(t)}else o=!1;if(Po(t,i),null===t.stateNode)Hs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Oo(u):Oi(t,u=Ii(n)?Pi:Ri.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Mo=!1;var h=t.memoizedState;a.state=h,$o(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Ti.current||Mo?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,h,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Vo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,h=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Oo(l):Oi(t,l=Ii(n)?Pi:Ri.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,a,r,l),Mo=!1,h=t.memoizedState,a.state=h,$o(t,r,a,i);var p=t.memoizedState;s!==d||h!==p||Ti.current||Mo?("function"==typeof f&&(rs(t,n,f,r),p=t.memoizedState),(u=Mo||os(t,n,u,r,h,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,o,i)}function Rs(e,t,n,r,i,o){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Fi(t,n,!1),$s(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):_s(e,t,s,o),t.memoizedState=r.state,i&&Fi(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Xo(e,t.containerInfo)}function Ps(e,t,n,r,i){return po(),mo(i),t.flags|=256,_s(e,t,n,r),t.child}var Os,Is,Ns,Ls={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Du(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Lu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ls,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Du({mode:"visible",children:r.children},i,0,null),(a=Lu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&wo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ls,a);if(!(1&t.mode))return Vs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Vs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Rl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(e,i),tu(r,e,i,-1))}return pu(),Vs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=ku.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(qi[Yi++]=Xi,qi[Yi++]=Ji,qi[Yi++]=Gi,Xi=e.id,Ji=e.overflow,Gi=t),(t=Fs(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==r?s=Iu(r,s):(s=Lu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ls,i}return e=(s=e.child).sibling,i=Iu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,n,r){return null!==r&&mo(r),wo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function js(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_s(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),js(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}js(t,!0,n,null,o);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Us(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Us(t),null;case 1:case 17:return Ii(t.type)&&Ni(),Us(t),null;case 3:return r=t.stateNode,Jo(),Ci(Ti),Ci(Ri),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(ou(oo),oo=null))),Us(t),null;case 5:Zo(t);var i=Go(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Us(t),null}if(e=Go(Ko.current),ho(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[hi]=t,r[fi]=a,e=!!(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)zr(Dr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":X(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":K(r),Z(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[fi]=r,Os(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)zr(Dr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":X(e,r),i=G(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":K(e),Z(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Us(t),null;case 6:if(e&&null!=t.stateNode)Ns(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Go(Yo.current),Go(Ko.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Us(t),null;case 13:if(Ci(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&1&t.mode&&!(128&t.flags))fo(),po(),t.flags|=98560,a=!1;else if(a=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hi]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Us(t),a=!1}else null!==oo&&(ou(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Nl&&(Nl=3):pu())),null!==t.updateQueue&&(t.flags|=4),Us(t),null);case 4:return Jo(),null===e&&Hr(t.stateNode.containerInfo),Us(t),null;case 10:return Ro(t.type._context),Us(t),null;case 19:if(Ci(ea),null===(a=t.memoizedState))return Us(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Ws(a,!1);else{if(0!==Nl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ws(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>Bl&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Us(t),null}else 2*Je()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(Us(t),null);case 22:case 23:return cu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ol)&&(Us(t),6&t.subtreeFlags&&(t.flags|=8192)):Us(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function qs(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jo(),Ci(Ti),Ci(Ri),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(Ci(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(ea),null;case 4:return Jo(),null;case 10:return Ro(t.type._context),null;case 22:case 23:return cu(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Go(Ko.current);var o,a=null;switch(n){case"input":i=G(e,i),r=G(e,r),a=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Gs=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Qs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xu(e,t,n)}else n.current=null}function Zs(e,t,n){try{n()}catch(n){xu(e,t,n)}}var el=!1;function tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Zs(t,n,o)}i=i.next}while(i!==r)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[gi],delete t[vi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var ul=null,cl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Gs||Qs(n,t);case 6:var r=ul,i=cl;ul=null,dl(e,t,n),cl=i,null!==(ul=r)&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(ul,n.stateNode));break;case 4:r=ul,i=cl,ul=n.stateNode.containerInfo,cl=!0,dl(e,t,n),ul=r,cl=i;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Zs(n,t,a),i=i.next}while(i!==r)}dl(e,t,n);break;case 1:if(!Gs&&(Qs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xu(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,dl(e,t,n),Gs=r):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function pl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,cl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,cl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));hl(a,s,i),ul=null,cl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){xu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pl(t,e),gl(e),4&r){try{tl(3,e,e.return),nl(3,e)}catch(t){xu(e,e.return,t)}try{tl(5,e,e.return)}catch(t){xu(e,e.return,t)}}break;case 1:pl(t,e),gl(e),512&r&&null!==n&&Qs(n,n.return);break;case 5:if(pl(t,e),gl(e),512&r&&null!==n&&Qs(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){xu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&J(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ge(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):b(i,d,h,c)}switch(l){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[fi]=a}catch(t){xu(e,e.return,t)}}break;case 6:if(pl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){xu(e,e.return,t)}}break;case 3:if(pl(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){xu(e,e.return,t)}break;case 4:default:pl(t,e),gl(e);break;case 13:pl(t,e),gl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(jl=Je())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||d,pl(t,e),Gs=c):pl(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(p=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:tl(4,f,f.return);break;case 1:Qs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xu(r,n,e)}}break;case 5:Qs(f,f.return);break;case 22:if(null!==f.memoizedState){_l(h);continue}}null!==p?(p.return=f,Js=p):_l(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){xu(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){xu(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:pl(t,e),gl(e),4&r&&fl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),ll(e,al(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;sl(e,al(e),a);break;default:throw Error(o(161))}}catch(t){xu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=Ys;var u=Gs;if(Ys=a,(Gs=l)&&!u)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?wl(i):null!==l?(l.return=a,Js=l):wl(i);for(;null!==o;)Js=o,yl(o,t,n),o=o.sibling;Js=i,Ys=s,Gs=u}bl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):bl(e)}}function bl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Gs||nl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ht(h)}}}break;default:throw Error(o(163))}Gs||512&t.flags&&rl(t)}catch(e){xu(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(e){xu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){xu(t,i,e)}}var o=t.return;try{rl(t)}catch(e){xu(t,o,e)}break;case 5:var a=t.return;try{rl(t)}catch(e){xu(t,a,e)}}}catch(e){xu(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Sl,xl=Math.ceil,El=_.ReactCurrentDispatcher,Cl=_.ReactCurrentOwner,kl=_.ReactCurrentBatchConfig,Al=0,Rl=null,Tl=null,Pl=0,Ol=0,Il=Ei(0),Nl=0,Ll=null,Dl=0,Ml=0,Fl=0,Vl=null,zl=null,jl=0,Bl=1/0,Hl=null,$l=!1,Wl=null,Ul=null,Kl=!1,ql=null,Yl=0,Gl=0,Xl=null,Jl=-1,Ql=0;function Zl(){return 6&Al?Je():-1!==Jl?Jl:Jl=Je()}function eu(e){return 1&e.mode?2&Al&&0!==Pl?Pl&-Pl:null!==go.transition?(0===Ql&&(Ql=mt()),Ql):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function tu(e,t,n,r){if(50<Gl)throw Gl=0,Xl=null,Error(o(185));vt(e,n,r),2&Al&&e===Rl||(e===Rl&&(!(2&Al)&&(Ml|=n),4===Nl&&au(e,Pl)),nu(e,r),1===n&&0===Al&&!(1&t.mode)&&(Bl=Je()+500,zi&&Hi()))}function nu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ht(e,e===Rl?Pl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zi=!0,Bi(e)}(su.bind(null,e)):Bi(su.bind(null,e)),ai(function(){!(6&Al)&&Hi()}),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Jl=-1,Ql=0,6&Al)throw Error(o(327));var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=ht(e,e===Rl?Pl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var i=Al;Al|=2;var a=fu();for(Rl===e&&Pl===t||(Hl=null,Bl=Je()+500,du(e,t));;)try{vu();break}catch(t){hu(e,t)}Ao(),El.current=a,Al=i,null!==Tl?t=0:(Rl=null,Pl=0,t=Nl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=iu(e,i)),1===t)throw n=Ll,du(e,0),au(e,r),nu(e,Je()),n;if(6===t)au(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=mu(e,r),2===t&&(a=pt(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=Ll,du(e,0),au(e,r),nu(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_u(e,zl,Hl);break;case 3:if(au(e,r),(130023424&r)===r&&10<(t=jl+500-Je())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Zl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_u.bind(null,e,zl,Hl),t);break}_u(e,zl,Hl);break;case 4:if(au(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xl(r/1960))-r)){e.timeoutHandle=ri(_u.bind(null,e,zl,Hl),r);break}_u(e,zl,Hl);break;default:throw Error(o(329))}}}return nu(e,Je()),e.callbackNode===n?ru.bind(null,e):null}function iu(e,t){var n=Vl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=zl,zl=n,null!==t&&ou(t)),e}function ou(e){null===zl?zl=e:zl.push.apply(zl,e)}function au(e,t){for(t&=~Fl,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(6&Al)throw Error(o(327));wu();var t=ht(e,0);if(!(1&t))return nu(e,Je()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Ll,du(e,0),au(e,t),nu(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,zl,Hl),nu(e,Je()),null}function lu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Bl=Je()+500,zi&&Hi())}}function uu(e){null!==ql&&0===ql.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=kl.transition,r=bt;try{if(kl.transition=null,bt=1,e)return e()}finally{bt=r,kl.transition=n,!(6&(Al=t))&&Hi()}}function cu(){Ol=Il.current,Ci(Il)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ni();break;case 3:Jo(),Ci(Ti),Ci(Ri),ra();break;case 5:Zo(r);break;case 4:Jo();break;case 13:case 19:Ci(ea);break;case 10:Ro(r.type._context);break;case 22:case 23:cu()}n=n.return}if(Rl=e,Tl=e=Iu(e.current,null),Pl=Ol=t,Nl=0,Ll=null,Fl=Ml=Dl=0,zl=Vl=null,null!==Io){for(t=0;t<Io.length;t++)if(null!==(r=(n=Io[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Io=null}return e}function hu(e,t){for(;;){var n=Tl;try{if(Ao(),ia.current=Qa,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,ha=0,Cl.current=null,null===n||null===n.return){Nl=1,Ll=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Pl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&ms(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(a,c,t),pu();break e}u=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(us(u,l));break e}}a=u=us(u,l),4!==Nl&&(Nl=2),null===Vl?Vl=[a]:Vl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ul&&Ul.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}bu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function fu(){var e=El.current;return El.current=Qa,null===e?Qa:e}function pu(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||!(268435455&Dl)&&!(268435455&Ml)||au(Rl,Pl)}function mu(e,t){var n=Al;Al|=2;var r=fu();for(Rl===e&&Pl===t||(Hl=null,du(e,t));;)try{gu();break}catch(t){hu(e,t)}if(Ao(),Al=n,El.current=r,null!==Tl)throw Error(o(261));return Rl=null,Pl=0,Nl}function gu(){for(;null!==Tl;)yu(Tl)}function vu(){for(;null!==Tl&&!Ge();)yu(Tl)}function yu(e){var t=Sl(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?bu(e):Tl=t,Cl.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=qs(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Nl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Ol)))return void(Tl=n);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Nl&&(Nl=5)}function _u(e,t,n){var r=bt,i=kl.transition;try{kl.transition=null,bt=1,function(e,t,n,r){do{wu()}while(null!==ql);if(6&Al)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Rl&&(Tl=Rl=null,Pl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Kl||(Kl=!0,Ru(tt,function(){return wu(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=kl.transition,kl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,Cl.current=null,function(e,t){if(ei=Wt,fr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(l=s+i),h!==a||0!==r&&3!==h.nodeType||(u=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++c===i&&(l=s),f===a&&++d===r&&(u=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){xu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=el,el=!1}(e,n),ml(n,e),pr(ti),Wt=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Al=l,bt=s,kl.transition=a}else e.current=n;if(Kl&&(Kl=!1,ql=e,Yl=i),0===(a=e.pendingLanes)&&(Ul=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nu(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if($l)throw $l=!1,e=Wl,Wl=null,e;!!(1&Yl)&&0!==e.tag&&wu(),1&(a=e.pendingLanes)?e===Xl?Gl++:(Gl=0,Xl=e):Gl=0,Hi()}(e,t,n,r)}finally{kl.transition=i,bt=r}return null}function wu(){if(null!==ql){var e=_t(Yl),t=kl.transition,n=bt;try{if(kl.transition=null,bt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Yl=0,6&Al)throw Error(o(331));var i=Al;for(Al|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:tl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var f=(d=Js).sibling,p=d.return;if(il(d),d===c){Js=null;break}if(null!==f){f.return=p,Js=f;break}Js=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:tl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var _=(s=Js).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Js=_;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){xu(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Al=i,Hi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,kl.transition=t}}return!1}function Su(e,t,n){e=jo(e,t=fs(0,t=us(n,t),1),1),t=Zl(),null!==e&&(vt(e,1,t),nu(e,t))}function xu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ul||!Ul.has(r))){t=jo(t,e=ps(t,e=us(n,e),1),1),e=Zl(),null!==t&&(vt(t,1,e),nu(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zl(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Pl&n)===n&&(4===Nl||3===Nl&&(130023424&Pl)===Pl&&500>Je()-jl?du(e,0):Fl|=n),nu(e,t)}function Cu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=Zl();null!==(e=Do(e,t))&&(vt(e,t,n),nu(e,n))}function ku(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Au(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cu(e,n)}function Ru(e,t){return qe(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,t,n,r){return new Tu(e,t,n,r)}function Ou(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Ou(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Lu(n.children,i,a,t);case E:s=8,i|=8;break;case C:return(e=Pu(12,n,t,2|i)).elementType=C,e.lanes=a,e;case T:return(e=Pu(13,n,t,i)).elementType=T,e.lanes=a,e;case P:return(e=Pu(19,n,t,i)).elementType=P,e.lanes=a,e;case N:return Du(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case A:s=9;break e;case R:s=11;break e;case O:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Lu(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,i,o,a,s,l){return e=new Vu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Pu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fo(o),e}function ju(e){if(!e)return Ai;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Di(e,n,t)}return t}function Bu(e,t,n,r,i,o,a,s,l){return(e=zu(n,r,!0,e,0,o,0,s,l)).context=ju(null),n=e.current,(o=zo(r=Zl(),i=eu(n))).callback=null!=t?t:null,jo(n,o,i),e.current.lanes=i,vt(e,i,r),nu(e,r),e}function Hu(e,t,n,r){var i=t.current,o=Zl(),a=eu(i);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=zo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=jo(i,t,a))&&(tu(e,i,a,o),Bo(e,i,a)),a}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),po();break;case 5:Qo(t);break;case 1:Ii(t.type)&&Mi(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(xo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(ki(ea,1&ea.current),null!==(e=$s(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return $s(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,io&&1048576&t.flags&&Zi(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=Oi(t,Ri.current);Po(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Fo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),_s(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ou(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===O)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Vo(e,t),$o(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ps(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=So(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=$s(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return Qo(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Cs(e,t),_s(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Ms(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(xo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=$s(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=zo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),To(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),r=r(i=Oo(i)),t.flags|=1,_s(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Ss(e,t,r,i=ns(r.type,i),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Hs(e,t),t.tag=1,Ii(r)?(e=!0,Mi(t)):e=!1,Po(t,n),as(t,r,i),ls(t,r,i,n),Rs(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Es(e,t,n)}throw Error(o(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Qu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=$u(a);s.call(e)}}Hu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=$u(a);o.call(e)}}var a=Bu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),uu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=$u(l);s.call(e)}}var l=zu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[pi]=l.current,Hr(8===e.nodeType?e.parentNode:e),uu(function(){Hu(t,l,n,r)}),l}(n,t,e,i,r);return $u(a)}Yu.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hu(e,t,null,null)},Yu.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uu(function(){Hu(null,e,null,null)}),t[pi]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),nu(t,Je()),!(6&Al)&&(Bl=Je()+500,Hi()))}break;case 13:uu(function(){var t=Do(e,1);if(null!==t){var n=Zl();tu(t,e,1,n)}}),Uu(e,1)}},St=function(e){if(13===e.tag){var t=Do(e,134217728);null!==t&&tu(t,e,134217728,Zl()),Uu(e,134217728)}},xt=function(e){if(13===e.tag){var t=eu(e),n=Do(e,t);null!==n&&tu(n,e,t,Zl()),Uu(e,t)}},Et=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));q(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=lu,Te=uu;var Zu={usingClientEntryPoint:!1,Events:[bi,_i,wi,ke,Ae,lu]},ec={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{it=nc.inject(tc),ot=nc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(o(299));var n=!1,r="",i=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return uu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(o(200));return Qu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(o(200));return Qu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(o(40));return!!e._reactRootContainer&&(uu(function(){Qu(null,null,e,!1,function(){e._reactRootContainer=null,e[pi]=null})}),!0)},t.unstable_batchedUpdates=lu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Qu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338(e,t,n){"use strict";var r=n(961);t.H=r.createRoot,t.c=r.hydrateRoot},961(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},2869(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(8168),i=n(8587),o=n(6540),a=n(8997),s=n(9176),l=["animating","color","hidesWhenStopped","size","style"],u=e=>o.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),c=o.forwardRef((e,t)=>{var n=e.animating,a=void 0===n||n,c=e.color,f=void 0===c?"#1976D2":c,p=e.hidesWhenStopped,m=void 0===p||p,g=e.size,v=void 0===g?"small":g,y=e.style,b=(0,i.A)(e,l),_=o.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},u({stroke:f,opacity:.2}),u({stroke:f,strokeDasharray:80,strokeDashoffset:60}));return o.createElement(s.A,(0,r.A)({},b,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[d.container,y]}),o.createElement(s.A,{children:_,style:["number"==typeof v?{height:v,width:v}:h[v],d.animation,!a&&d.animationPause,!a&&m&&d.hidesWhenStopped]}))});c.displayName="ActivityIndicator";var d=a.A.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),h=a.A.create({small:{width:20,height:20},large:{width:36,height:36}});const f=c},9697(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(5725).A},3384(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(646),i=n.n(r),o=n(7162),a={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},s={},l=o.A;function u(){if(o.A){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var i=n.document.documentElement;e=i.clientHeight,t=i.clientWidth}a.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},a.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function c(){u(),Array.isArray(s.change)&&s.change.forEach(e=>e(a))}class d{static get(e){return l&&(l=!1,u()),i()(a[e],"No dimension set for key "+e),a[e]}static set(e){e&&(o.A?i()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(a.screen=e.screen),null!=e.window&&(a.window=e.window)))}static addEventListener(e,t){return s[e]=s[e]||[],s[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(s[e])&&(s[e]=s[e].filter(e=>e!==t))}}o.A&&(window.visualViewport?window.visualViewport.addEventListener("resize",c,!1):window.addEventListener("resize",c,!1))},728(e,t,n){"use strict";n.d(t,{A:()=>I});var r=n(2555),i=n(8168),o=n(8587),a=n(6540),s=n(3642),l=[];function u(e){return l[e-1]}var c=n(6927),d=/^data:/;class h{static has(e){var t=h._entries;return d.test(e)||Boolean(t[e])}static add(e){var t=h._entries,n=Date.now();t[e]?(t[e].lastUsedTimestamp=n,t[e].refCount+=1):t[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var t=h._entries;t[e]&&(t[e].refCount-=1),h._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,t,n=h._entries,r=Object.keys(n);r.length+1>h._maximumEntries&&(r.forEach(r=>{var i=n[r];(!t||i.lastUsedTimestamp<t.lastUsedTimestamp)&&0===i.refCount&&(e=r,t=i)}),e&&delete n[e])}}h._maximumEntries=256,h._entries={};var f=0,p={},m={abort(e){var t=p[""+e];t&&(t.onerror=null,t.onload=null,t=null,delete p[""+e])},getSize(e,t,n){var r=!1,i=setInterval(a,16),o=m.load(e,a,function(){"function"==typeof n&&n(),m.abort(o),clearInterval(i)});function a(){var e=p[""+o];if(e){var n=e.naturalHeight,a=e.naturalWidth;n&&a&&(t(a,n),r=!0)}r&&(m.abort(o),clearInterval(i))}},has:e=>h.has(e),load(e,t,n){f+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});"function"==typeof r.decode?r.decode().then(n,n):setTimeout(n,0)},r.src=e,p[""+f]=r,f},prefetch:e=>new Promise((t,n)=>{m.load(e,()=>{h.add(e),h.remove(e),t()},n)}),queryCache(e){var t={};return e.forEach(e=>{h.has(e)&&(t[e]="disk/memory")}),Promise.resolve(t)}};const g=m;var v=n(9518),y=n(8997),b=n(5243),_=n(9176),w=n(4078),S=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],x="LOADED",E="LOADING",C=0,k=/^(data:image\/svg\+xml;utf8,)(.*)/;function A(e){var t=null;if("number"==typeof e){var n=u(e);if(null==n)throw new Error('Image: asset with ID "'+e+'" could not be found. Please check the image source or packager.');var r=n.scales[0];if(n.scales.length>1){var i=v.A.get();r=n.scales.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e)}var o=1!==r?"@"+r+"x":"";t=n?n.httpServerLocation+"/"+n.name+o+"."+n.type:""}else"string"==typeof e?t=e:e&&"string"==typeof e.uri&&(t=e.uri);if(t){var a=t.match(k);if(a){var s=a[1],l=a[2];return""+s+encodeURIComponent(l)}}return t}var R=a.forwardRef((e,t)=>{var n=e["aria-label"],r=e.accessibilityLabel,l=e.blurRadius,d=e.defaultSource,h=e.draggable,f=e.onError,p=e.onLayout,m=e.onLoad,v=e.onLoadEnd,k=e.onLoadStart,R=e.pointerEvents,T=e.source,I=e.style,N=(0,o.A)(e,S),L=n||r,D=a.useState(()=>{var e=A(T);return null!=e&&g.has(e)?x:"IDLE"}),M=D[0],F=D[1],V=a.useState({}),z=V[0],j=V[1],B=a.useContext(b.A),H=a.useRef(null),$=a.useRef(C++),W=a.useRef(null),U=M===x||M===E&&null==d,K=function(e,t,n,r){var i=y.A.flatten(e),o=i.filter,a=i.resizeMode,s=i.shadowOffset,l=i.tintColor;i.resizeMode&&(0,w.m)("Image.style.resizeMode","Image: style.resizeMode is deprecated. Please use props.resizeMode."),i.tintColor&&(0,w.m)("Image.style.tintColor","Image: style.tintColor is deprecated. Please use props.tintColor.");var u=[],d=null;if(o&&u.push(o),t&&u.push("blur("+t+"px)"),s){var h=(0,c.l5)(i);h&&u.push("drop-shadow("+h+")")}return(r||l)&&null!=n&&u.push("url(#tint-"+n+")"),u.length>0&&(d=u.join(" ")),[a,d,l]}(I,l,$.current,e.tintColor),q=K[0],Y=K[1],G=K[2],X=e.resizeMode||q||"cover",J=e.tintColor||G,Q=U?T:d,Z=A(Q),ee=function(e){if("number"==typeof e){var t=u(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"==typeof e)return{height:e.height,width:e.width}}(Q),te=Z?'url("'+Z+'")':null,ne=function(){if(null!=H.current&&("center"===X||"repeat"===X)){var e=H.current,t=e.naturalHeight,n=e.naturalWidth,r=z.height,i=z.width;if(t&&n&&r&&i){var o=Math.min(1,i/n,r/t);return Math.ceil(o*n)+"px "+Math.ceil(o*t)+"px"}}}(),re=Z?(0,s.A)("img",{alt:L||"",style:P.accessibilityImage$raw,draggable:h||!1,ref:H,src:Z}):null,ie=A(T);return a.useEffect(()=>{function e(){null!=W.current&&(g.abort(W.current),W.current=null)}return e(),null!=ie&&(F(E),k&&k(),W.current=g.load(ie,function(e){F(x),m&&m(e),v&&v()},function(){F("ERRORED"),f&&f({nativeEvent:{error:"Failed to load resource "+ie}}),v&&v()})),e},[ie,W,F,f,m,v,k]),a.createElement(_.A,(0,i.A)({},N,{"aria-label":L,onLayout:function(e){if("center"===X||"repeat"===X||p){var t=e.nativeEvent.layout;p&&p(e),j(t)}},pointerEvents:R,ref:t,style:[P.root,B&&P.inline,ee,I,P.undo,{boxShadow:null}]}),a.createElement(_.A,{style:[P.image,O[X],{backgroundImage:te,filter:Y},null!=ne&&{backgroundSize:ne}],suppressHydrationWarning:!0}),re,function(e,t){return e&&null!=t?a.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},a.createElement("defs",null,a.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},a.createElement("feFlood",{floodColor:""+e,key:e}),a.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}(J,$.current))});R.displayName="Image";var T=R;T.getSize=function(e,t,n){g.getSize(e,t,n)},T.prefetch=function(e){return g.prefetch(e)},T.queryCache=function(e){return g.queryCache(e)};var P=y.A.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),O=y.A.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const I=T},7068(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3116);const i={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,r.A)()},removeAllListeners(){},removeListener(){}}},5470(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(8168),i=n(8587),o=n(6540),a=n(9176),s=["behavior","contentContainerStyle","keyboardVerticalOffset"];class l extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,i.A)(e,s));return o.createElement(a.A,(0,r.A)({onLayout:this.onLayout},t))}}const u=l},9518(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3384);class i{static get(){return r.A.get("window").scale}static getFontScale(){return r.A.get("window").fontScale||i.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*i.get())}static roundToNearestPixel(e){var t=i.get();return Math.round(e*t)/t}}},7862(e,t,n){"use strict";n.d(t,{A:()=>r});const r={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}}},4129(e,t,n){"use strict";n.d(t,{A:()=>te});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(7162),l=()=>{},u=function(){var e=!1;if(s.A)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function c(){return this.cancelBubble}function d(){return this.defaultPrevented}function h(e,t,n,r){var i=function(e){return null!=e&&(u?e:Boolean(e.capture))}(r),o=e=>{return n(((t=e).nativeEvent=t,t.persist=l,t.isDefaultPrevented=d,t.isPropagationStopped=c,t));var t};return e.addEventListener(t,o,i),function(){null!=e&&e.removeEventListener(t,o,i)}}var f,p,m="keyboard",g="keyboard",v=!1,y=new Set,b="keyboard",_="mouse",w="touch",S="contextmenu",x="mousedown",E="mousemove",C="mouseup",k="pointerdown",A="pointermove",R="scroll",T="selectionchange",P="touchcancel",O="touchmove",I="touchstart",N={passive:!0},L={capture:!0,passive:!0};function D(){null==f&&null==p||(null!=f&&(g=f,f=null),null!=p&&(m=p,p=null),F())}function M(e){var t=e.type;if("undefined"!=typeof window&&null!=window.PointerEvent){if(t===k)return void(m!==e.pointerType&&(g=e.pointerType,m=e.pointerType,F()));if(t===A)return void(g!==e.pointerType&&(g=e.pointerType,F()))}else{if(v||(t===x&&m!==_&&(g=_,m=_,F()),t===E&&g!==_&&(g=_,F())),t===I)return v=!0,e.touches&&e.touches.length>1&&(v=!1),void(m!==w&&(g=w,m=w,F()));t!==S&&t!==C&&t!==T&&t!==R&&t!==P&&t!==O||(v=!1)}}function F(){var e={activeModality:m,modality:g};y.forEach(t=>{t(e)})}s.A&&(h(window,"blur",function(){f=g,p=m,m=b,g=b,F(),v=!1},N),h(window,"focus",function(){D()},N),h(document,"keydown",function(e){e.metaKey||e.altKey||e.ctrlKey||g!==b&&(g=b,m=b,F())},L),h(document,"visibilitychange",function(){"hidden"!==document.visibilityState&&D()},L),h(document,k,M,L),h(document,A,M,L),h(document,S,M,L),h(document,x,M,L),h(document,E,M,L),h(document,C,M,L),h(document,P,M,L),h(document,O,M,L),h(document,I,M,L),h(document,T,M,L),h(document,R,M,L));var V=n(8425),z=n(9241);function j(e,t){var n=(0,z.A)(()=>new Map),r=(0,z.A)(()=>(r,i)=>{var o=n.get(r);null!=o&&o(),null==i&&(n.delete(r),i=()=>{});var a=h(r,e,i,t);return n.set(r,a),a});return(0,V.A)(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}var B={},H={passive:!0},$="react-gui:hover:lock",W="react-gui:hover:unlock";function U(e,t,n){var r=document.createEvent("CustomEvent"),i=n||B,o=i.bubbles,a=void 0===o||o,s=i.cancelable,l=void 0===s||s,u=i.detail;r.initCustomEvent(t,a,l,u),e.dispatchEvent(r)}function K(e){var t=e.pointerType;return null!=t?t:g}var q=n(6533),Y=n(8997),G=n(9176),X=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function J(e,t){var n=e.children,s=e.delayLongPress,l=e.delayPressIn,u=e.delayPressOut,c=e.disabled,d=e.onBlur,h=e.onContextMenu,f=e.onFocus,p=e.onHoverIn,m=e.onHoverOut,g=e.onKeyDown,v=e.onLongPress,y=e.onPress,b=e.onPressMove,_=e.onPressIn,w=e.onPressOut,S=e.style,x=e.tabIndex,E=e.testOnly_hovered,C=e.testOnly_pressed,k=(0,i.A)(e,X),A=Q(!0===E),R=A[0],T=A[1],P=Q(!1),O=P[0],I=P[1],N=Q(!0===C),L=N[0],D=N[1],M=(0,o.useRef)(null),F=(0,a.A)(t,M),z=(0,o.useMemo)(()=>({delayLongPress:s,delayPressStart:l,delayPressEnd:u,disabled:c,onLongPress:v,onPress:y,onPressChange:D,onPressStart:_,onPressMove:b,onPressEnd:w}),[s,l,u,c,v,y,_,b,w,D]),B=(0,q.A)(M,z),Y=B.onContextMenu,J=B.onKeyDown;!function(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,o=t.onHoverChange,a=t.onHoverUpdate,s=t.onHoverEnd,l=!("undefined"==typeof window||null==window.PointerEvent),u=j(l?"pointermove":"mousemove",H),c=j(l?"pointerenter":"mouseenter",H),d=j(l?"pointerleave":"mouseleave",H),h=j($,H),f=j(W,H);(0,V.A)(()=>{var t=e.current;if(null!==t){var l=function(e){null!=s&&s(e),null!=o&&o(!1),u(t,null),d(t,null)},p=function(t){var r=e.current;null!=r&&"touch"!==K(t)&&(n&&U(r,W),l(t))},m=function(e){"touch"!==K(e)&&null!=a&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),a(e))},g=function(e){null!=i&&i(e),null!=o&&o(!0),null!=a&&u(t,r?null:m),d(t,r?null:p)};c(t,r?null:function(t){var i=e.current;null!=i&&"touch"!==K(t)&&(n&&U(i,$),g(t),h(i,r?null:function(e){e.target!==i&&l(t)}),f(i,r?null:function(e){e.target!==i&&g(t)}))})}},[c,u,d,h,f,n,r,i,o,a,s,e])}(M,{contain:!0,disabled:c,onHoverChange:T,onHoverStart:p,onHoverEnd:m});var ee,te={hovered:R,focused:O,pressed:L},ne=o.useCallback(e=>{e.nativeEvent.target===M.current&&(I(!1),null!=d&&d(e))},[M,I,d]),re=o.useCallback(e=>{e.nativeEvent.target===M.current&&(I(!0),null!=f&&f(e))},[M,I,f]),ie=o.useCallback(e=>{null!=Y&&Y(e),null!=h&&h(e)},[h,Y]),oe=o.useCallback(e=>{null!=J&&J(e),null!=g&&g(e)},[g,J]);return ee=void 0!==x?x:c?-1:0,o.createElement(G.A,(0,r.A)({},k,B,{"aria-disabled":c,onBlur:ne,onContextMenu:ie,onFocus:re,onKeyDown:oe,ref:F,style:[c?Z.disabled:Z.active,"function"==typeof S?S(te):S],tabIndex:ee}),"function"==typeof n?n(te):n)}function Q(e){var t=(0,o.useState)(!1);return[t[0]||e,t[1]]}var Z=Y.A.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),ee=(0,o.memo)((0,o.forwardRef)(J));ee.displayName="Pressable";const te=ee},4951(e,t,n){"use strict";n.d(t,{A:()=>O});var r=n(2555),i=n(8168),o=n(8587),a=n(3384),s=n(3116),l=n(646),u=n.n(l),c=n(87),d=n(7862),h=n(6540),f=n(8997),p=n(9176),m=n(1804),g=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function v(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var y=h.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,a=e.onWheel,s=e.scrollEnabled,l=void 0===s||s,u=e.scrollEventThrottle,c=void 0===u?0:u,d=e.showsHorizontalScrollIndicator,f=e.showsVerticalScrollIndicator,y=e.style,_=(0,o.A)(e,g),w=h.useRef({isScrolling:!1,scrollLastTick:0}),S=h.useRef(null),x=h.useRef(null);function E(e){return t=>{l&&e&&e(t)}}function C(e){w.current.scrollLastTick=Date.now(),n&&n(v(e))}var k=!1===d||!1===f;return h.createElement(p.A,(0,i.A)({},_,{onScroll:function(e){var t,r,i;e.stopPropagation(),e.target===x.current&&(e.persist(),null!=S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{!function(e){w.current.isScrolling=!1,n&&n(v(e))}(e)},100),w.current.isScrolling?(t=w.current.scrollLastTick,r=c,i=Date.now()-t,r>0&&i>=r&&C(e)):function(e){w.current.isScrolling=!0,C(e)}(e))},onTouchMove:E(r),onWheel:E(a),ref:(0,m.A)(x,t),style:[y,!l&&b.scrollDisabled,k&&b.hideScrollbar]}))}),b=f.A.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});const _=y;var w=n(8865),S=n(8683),x=n(4594),E=n.n(x),C=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],k={};class A extends h.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=w.A.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),w.A.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;e=r.x,t=r.y,n=r.animated}var i=this.getScrollableNode(),o=e||0,a=t||0;null!=i&&("function"==typeof i.scroll?i.scroll({top:a,left:o,behavior:n?"smooth":"auto"}):(i.scrollLeft=o,i.scrollTop=a))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==d.A.OS&&u()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,S.A.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var i=a.A.get("window").height;this.keyboardWillOpenTo&&(i=this.keyboardWillOpenTo.endCoordinates.screenY);var o=t-i+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(o=Math.max(0,o)),this.scrollResponderScrollTo({x:0,y:o,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),i=n?r.scrollWidth:0,o=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:i,y:o,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&(0,s.A)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.A)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){E()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,a=e.onContentSizeChange,s=e.refreshControl,l=e.stickyHeaderIndices,c=e.pagingEnabled,d=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),f=(0,o.A)(e,C),m={};a&&(m={onLayout:this._handleContentOnLayout});var g=!n&&Array.isArray(l),v=g||c?h.Children.map(this.props.children,(e,t)=>{var n=g&&l.indexOf(t)>-1;return null!=e&&(n||c)?h.createElement(p.A,{style:[n&&T.stickyHeader,c&&T.pagingEnabledChild]},e):e}):this.props.children,y=h.createElement(p.A,(0,i.A)({},m,{children:v,collapsable:!1,ref:this._setInnerViewRef,style:[n&&T.contentContainerHorizontal,d&&T.contentContainerCenterContent,t]})),b=n?T.baseHorizontal:T.baseVertical,w=n?T.pagingEnabledHorizontal:T.pagingEnabledVertical,S=(0,r.A)((0,r.A)({},f),{},{style:[b,c&&w,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),x=_;u()(void 0!==x,"ScrollViewClass must not be undefined");var E=h.createElement(x,(0,i.A)({},S,{ref:this._setScrollNodeRef}),y);return s?h.cloneElement(s,{style:S.style},E):E}}var R={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},T=f.A.create({baseVertical:(0,r.A)((0,r.A)({},R),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,r.A)((0,r.A)({},R),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),P=h.forwardRef((e,t)=>h.createElement(A,(0,i.A)({},e,{forwardedRef:t})));P.displayName="ScrollView";const O=P},6610(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2901);const i=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&(e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("))(e))return e;var n=(0,r.A)(e);if(null!=n)return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+((n>>24&255)/255*t).toFixed(2)+")"}}},1747(e,t,n){"use strict";n.d(t,{A:()=>l});var r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"];Object.keys(r).forEach(e=>{i.forEach(t=>{r[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=r[e]})});const o=r;var a=n(6610),s={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function l(e,t){var n=e;return null!=t&&o[t]||"number"!=typeof e?null!=t&&s[t]&&(n=(0,a.A)(e)):n=e+"px",n}},3748(e,t,n){"use strict";n.d(t,{_:()=>p});var r=n(7162);function i(e,t,n){if(r.A){var i=null!=t?t:document,o=i.getElementById(e);if(null==o)if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),i instanceof ShadowRoot)i.insertBefore(o,i.firstChild);else{var a=i.head;a&&a.insertBefore(o,a.firstChild)}return o.sheet}return null}var o=Array.prototype.slice;function a(e){var t,n={},r={};function i(e,t,r){var i=l(n),o=i.indexOf(t)+1,a=i[o],s=null!=a&&null!=n[a].start?n[a].start:e.cssRules.length,u=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,s);if(u){null==n[t].start&&(n[t].start=s);for(var c=o;c<i.length;c+=1){var d=i[c],h=n[d].start||0;n[d].start=h+1}}return u}null!=e&&o.call(e.cssRules).forEach((e,i)=>{var o=e.cssText;if(o.indexOf("stylesheet-group")>-1)t=function(e){return Number(e.selectorText.split(s)[1])}(e),n[t]={start:i,rules:[o]};else{var a=c(o);null!=a&&(r[a]=!0,n[t].rules.push(o))}});var a={getTextContent:()=>l(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,o){var a=Number(o);if(null==n[a]){var s=function(e){return'[stylesheet-group="'+e+'"]{}'}(a);n[a]={start:null,rules:[s]},null!=e&&i(e,a,s)}var l=c(t);null!=l&&null==r[l]&&(r[l]=!0,n[a].rules.push(t),null!=e&&(i(e,a,t)||n[a].rules.pop()))}};return a}var s=/["']/g;function l(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var u=/\s*([,])\s*/g;function c(e){var t=e.split("{")[0].trim();return""!==t?t.replace(u,"$1"):null}var d=new WeakMap,h=[],f=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function p(e,t){var n;if(void 0===t&&(t="react-native-stylesheet"),r.A){var o=null!=e?e.getRootNode():document;if(0===h.length)n=a(i(t)),f.forEach(e=>{n.insert(e,0)}),d.set(o,h.length),h.push(n);else{var s=d.get(o);if(null==s){var l=h[0],u=null!=l?l.getTextContent():"";n=a(i(t,o,u)),d.set(o,h.length),h.push(n)}else n=h[s]}}else 0===h.length?(n=a(i(t)),f.forEach(e=>{n.insert(e,0)}),h.push(n)):n=h[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){h.forEach(n=>{n.insert(e,t)})}}}},8997(e,t,n){"use strict";n.d(t,{A:()=>me});var r=n(2555),i=n(8587),o=n(1747),a=n(7162),s={},l=!a.A||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),u='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',c={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]};const d=(e,t)=>{if(!e)return s;var n={},r=function(){var r=e[i];if(null==r)return"continue";if("backgroundClip"===i)"text"===r&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if("flex"===i)-1===r?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=r;else if("font"===i)n[i]=r.replace("System",u);else if("fontFamily"===i)if(r.indexOf("System")>-1){var a=r.split(/,\s*/);a[a.indexOf("System")]=u,n[i]=a.join(",")}else n[i]="monospace"===r?"monospace,monospace":r;else if("textDecorationLine"===i)l?n.textDecorationLine=r:n.textDecoration=r;else if("writingDirection"===i)n.direction=r;else{var s=(0,o.A)(e[i],i),d=c[i];t&&"inset"===i?(null==e.insetInline&&(n.left=s,n.right=s),null==e.insetBlock&&(n.top=s,n.bottom=s)):t&&"margin"===i?(null==e.marginInline&&(n.marginLeft=s,n.marginRight=s),null==e.marginBlock&&(n.marginTop=s,n.marginBottom=s)):t&&"padding"===i?(null==e.paddingInline&&(n.paddingLeft=s,n.paddingRight=s),null==e.paddingBlock&&(n.paddingTop=s,n.paddingBottom=s)):d?d.forEach((t,r)=>{null==e[t]&&(n[t]=s)}):n[i]=s}};for(var i in e)r();return n};var h=/[A-Z]/g,f=/^ms-/,p={};function m(e){return"-"+e.toLowerCase()}var g=n(6485),v=n(4217),y=n(1261),b=n(8041),_=n(7033),w=n(6852),S=n(20),x=n(9996),E=n(5129),C=n(508),k=["Webkit"],A=["Webkit","ms"];const R={plugins:[v.A,y.A,b.A,_.A,w.A,S.A,x.A,E.A,C.A],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:A,textEmphasis:A,textEmphasisStyle:A,textEmphasisColor:A,boxDecorationBreak:A,clipPath:k,maskImage:A,maskMode:A,maskRepeat:A,maskPosition:A,maskClip:A,maskOrigin:A,maskSize:A,maskComposite:A,mask:A,maskBorderSource:A,maskBorderMode:A,maskBorderSlice:A,maskBorderWidth:A,maskBorderOutset:A,maskBorderRepeat:A,maskBorder:A,maskType:A,textDecorationStyle:k,textDecorationSkip:k,textDecorationLine:k,textDecorationColor:k,filter:k,breakAfter:k,breakBefore:k,breakInside:k,columnCount:k,columnFill:k,columnGap:k,columnRule:k,columnRuleColor:k,columnRuleStyle:k,columnRuleWidth:k,columns:k,columnSpan:k,columnWidth:k,backdropFilter:k,hyphens:k,flowInto:k,flowFrom:k,regionFragment:k,textOrientation:k,tabSize:["Moz"],fontKerning:k,textSizeAdjust:k}},T=(0,g.A)(R);var P=["animationKeyframes"],O=new Map,I={},N={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},L="borderTopLeftRadius",D="borderTopRightRadius",M="borderBottomLeftRadius",F="borderBottomRightRadius",V="borderLeftColor",z="borderLeftStyle",j="borderLeftWidth",B="borderRightColor",H="borderRightStyle",$="borderRightWidth",W="right",U="marginLeft",K="marginRight",q="paddingLeft",Y="paddingRight",G="left",X={[L]:D,[D]:L,[M]:F,[F]:M,[V]:B,[z]:H,[j]:$,[B]:V,[H]:z,[$]:j,[G]:W,[U]:K,[K]:U,[q]:Y,[Y]:q,[W]:G},J={borderStartStartRadius:L,borderStartEndRadius:D,borderEndStartRadius:M,borderEndEndRadius:F,borderInlineStartColor:V,borderInlineStartStyle:z,borderInlineStartWidth:j,borderInlineEndColor:B,borderInlineEndStyle:H,borderInlineEndWidth:$,insetInlineEnd:W,insetInlineStart:G,marginInlineStart:U,marginInlineEnd:K,paddingInlineStart:q,paddingInlineEnd:Y},Q=["clear","float","textAlign"];function Z(e){var t=T(d(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=function(e){if(e in p)return p[e];var t=e.replace(h,m);return p[e]=f.test(t)?"-"+t:t}(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function ee(e,t,n){return e+"-"+function(e){for(var t,n=e.length,r=1^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}(t+n).toString(36)}function te(e){if("number"==typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r=function(e){var t=ee("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map(t=>""+t+Z(e[t])).join("")+"}",r=["-webkit-",""].map(e=>"@"+e+"keyframes "+t+n);return[t,r]}(e),i=r[0],o=r[1];t.push(i),n.push(...o)}}),[t,n]}var ne=n(3748),re=n(4336),ie=n(6927),oe=n(3176),ae=["writingDirection"],se=new WeakMap,le=(0,ne._)(),ue={shadow:!0,textShadow:!0};function ce(e){e.forEach(e=>{var t=e[0],n=e[1];null!=le&&t.forEach(e=>{le.insert(e,n)})})}var de={position:"absolute",left:0,right:0,top:0,bottom:0},he=fe({x:(0,r.A)({},de)}).x;function fe(e){return Object.keys(e).forEach(t=>{var n,a,s,l,u=e[t];null!=u&&!0!==u.$$css&&(t.indexOf("$raw")>-1?n=function(e,t){var n=function(e,t){var n,o={$$css:!0},a=[],s=e.animationKeyframes,l=(0,i.A)(e,P),u=ee("css",t,JSON.stringify(e)),c="."+u;if(null!=s){var d=te(s),h=d[0],f=d[1];n=h.join(","),a.push(...f)}var p=Z((0,r.A)((0,r.A)({},l),{},{animationName:n}));return a.push(""+c+p),o[u]=u,[o,[[a,1]]]}(e,t),o=n[0];return ce(n[1]),o}(u,t.split("$raw")[0]):(a=u,s=function(e){var t={$$css:!0},n=[];function r(e,t,r){var i,a=function(e,t){var n=(0,o.A)(e,t);return"string"!=typeof n?JSON.stringify(n||""):n}(r,t),s=t+a,l=O.get(s);if(null!=l)i=l[0],n.push(l[1]);else{i=ee("r",e,e!==t?s:a);var u=N[e]||3,c=function(e,t,n){var r=[],i="."+e;switch(t){case"animationKeyframes":var o=te(n),a=o[0],s=o[1],l=Z({animationName:a.join(",")});r.push(""+i+l,...s);break;case"placeholderTextColor":var u=Z({color:n,opacity:1});r.push(i+"::-webkit-input-placeholder"+u,i+"::-moz-placeholder"+u,i+":-ms-input-placeholder"+u,i+"::placeholder"+u);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=Z({pointerEvents:"none"});r.push(i+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var h=Z({pointerEvents:"auto"});r.push(i+">*"+h)}var f=Z({pointerEvents:c});r.push(""+i+f);break;case"scrollbarWidth":"none"===n&&r.push(i+"::-webkit-scrollbar{display:none}");var p=Z({scrollbarWidth:n});r.push(""+i+p);break;default:var m=Z({[t]:n});r.push(""+i+m)}return r}(i,t,r),d=[c,u];n.push(d),O.set(s,[i,d])}return i}return Object.keys(e).sort().forEach(n=>{var i=e[n];if(null!=i){var o;if(Q.indexOf(n)>-1){var a=r(n,n,"left"),s=r(n,n,"right");"start"===i?o=[a,s]:"end"===i&&(o=[s,a])}var l=J[n];if(null!=l){var u=r(n,l,i),c=r(n,X[l],i);o=[u,c]}if("transitionProperty"===n){for(var d=Array.isArray(i)?i:[i],h=[],f=0;f<d.length;f++){var p=d[f];"string"==typeof p&&null!=J[p]&&h.push(f)}if(h.length>0){var m=[...d],g=[...d];h.forEach(e=>{var t=m[e];if("string"==typeof t){var i=J[t],a=X[i];m[e]=i,g[e]=a;var s=r(n,n,m),l=r(n,n,g);o=[s,l]}})}}null==o?o=r(n,n,i):t.$$css$localize=!0,t[n]=o}}),[t,n]}((0,ie.vk)(a,ue)),l=s[0],ce(s[1]),n=l),se.set(u,n))}),e}function pe(e,t){void 0===t&&(t={});var n="rtl"===t.writingDirection,o=function(e,t){void 0===t&&(t={});var n=t,o=n.writingDirection,a=(0,i.A)(n,ae),s="rtl"===o;return oe.P.factory({transform(e){var t=se.get(e);return null!=t?(0,re.n)(t,s):(0,ie.vk)(e,(0,r.A)((0,r.A)({},ue),a))}})(e)}(e,t);return Array.isArray(o)&&null!=o[1]&&(o[1]=function(e,t){var n=e||I,r={},i={},o=function(){var e=n[a],o=a,s=e;if(!Object.prototype.hasOwnProperty.call(n,a)||null==e)return"continue";Q.indexOf(a)>-1&&("start"===e?s=t?"right":"left":"end"===e&&(s=t?"left":"right"));var l=J[a];if(null!=l&&(o=t?X[l]:l),"transitionProperty"===a){var u=Array.isArray(e)?e:[e];u.forEach((e,n)=>{if("string"==typeof e){var r=J[e];null!=r&&(u[n]=t?X[r]:r,s=u.join(" "))}})}r[o]||(i[o]=s),o===a&&(r[o]=!0)};for(var a in n)o();return d(i,!0)}(o[1],n)),o}pe.absoluteFill=he,pe.absoluteFillObject=de,pe.create=fe,pe.compose=function(e,t){return[e,t]},pe.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.flat(1/0),i={},o=0;o<r.length;o++){var a=r[o];null!=a&&"object"==typeof a&&Object.assign(i,a)}return i},pe.getSheet=function(){return{id:le.id,textContent:le.getTextContent()}},pe.hairlineWidth=1,a.A&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=pe.flatten);const me=pe},6927(e,t,n){"use strict";n.d(t,{l5:()=>l,vk:()=>f});var r=n(6610),i=n(1747),o=n(4078),a={},s={height:0,width:0},l=e=>{var t=e.shadowColor,n=e.shadowOffset,o=e.shadowOpacity,a=e.shadowRadius,l=n||s,u=l.height,c=l.width,d=(0,i.A)(c),h=(0,i.A)(u),f=(0,i.A)(a||0),p=(0,r.A)(t||"black",o);if(null!=p&&null!=d&&null!=h&&null!=f)return d+" "+h+" "+f+" "+p},u=e=>{var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+(0,i.A)(n,t)+")"},c=e=>e.map(u).join(" "),d={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},h={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},f=function(e,t){void 0===t&&(t={});var n=e||a,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,o.m)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var u=l(n);if(null!=u&&null==r.boxShadow){var f=n.boxShadow,p=f?f+", "+u:u;r.boxShadow=p}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,o.m)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var m=(e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||s,a=o.height,l=o.width,u=r||0,c=(0,i.A)(l),d=(0,i.A)(a),h=(0,i.A)(u),f=(0,i.A)(t,"textShadowColor");if(f&&(0!==a||0!==l||0!==u)&&null!=c&&null!=d&&null!=h)return c+" "+d+" "+h+" "+f})(n);if(null!=m&&null==r.textShadow){var g=n.textShadow,v=g?g+", "+m:m;r.textShadow=v}}for(var y in n)if(null==h[y]&&"shadowColor"!==y&&"shadowOffset"!==y&&"shadowOpacity"!==y&&"shadowRadius"!==y&&"textShadowColor"!==y&&"textShadowOffset"!==y&&"textShadowRadius"!==y){var b=n[y],_=d[y]||y,w=b;!Object.prototype.hasOwnProperty.call(n,y)||_!==y&&null!=n[_]||("aspectRatio"===_&&"number"==typeof w?r[_]=w.toString():"fontVariant"===_?(Array.isArray(w)&&w.length>0&&(w=w.join(" ")),r[_]=w):"textAlignVertical"===_?null==n.verticalAlign&&(r.verticalAlign="center"===w?"middle":w):"transform"===_?(Array.isArray(w)&&(w=c(w)),r.transform=w):r[_]=w)}return r}},5243(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(6540).createContext)(!1)},8506(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(2555),i=n(8587),o=n(6540),a=n(3642),s=n(8697),l=n(254),u=n(2008),c=n(1804),d=n(6177),h=n(3098),f=n(8997),p=n(5243),m=n(1420),g=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],v=Object.assign({},s.Gs,s.Fh,s.DY,s.l3,s.Aw,s.k2,s.CD,s.eO,{href:!0,lang:!0,pointerEvents:!0}),y=o.forwardRef((e,t)=>{var n=e.hrefAttrs,r=e.numberOfLines,s=e.onClick,f=e.onLayout,y=e.onPress,b=e.onMoveShouldSetResponder,w=e.onMoveShouldSetResponderCapture,S=e.onResponderEnd,x=e.onResponderGrant,E=e.onResponderMove,C=e.onResponderReject,k=e.onResponderRelease,A=e.onResponderStart,R=e.onResponderTerminate,T=e.onResponderTerminationRequest,P=e.onScrollShouldSetResponder,O=e.onScrollShouldSetResponderCapture,I=e.onSelectionChangeShouldSetResponder,N=e.onSelectionChangeShouldSetResponderCapture,L=e.onStartShouldSetResponder,D=e.onStartShouldSetResponderCapture,M=e.selectable,F=(0,i.A)(e,g),V=o.useContext(p.A),z=o.useRef(null),j=(0,m.PZ)().direction;(0,u.A)(z,f),(0,h.A)(z,{onMoveShouldSetResponder:b,onMoveShouldSetResponderCapture:w,onResponderEnd:S,onResponderGrant:x,onResponderMove:E,onResponderReject:C,onResponderRelease:k,onResponderStart:A,onResponderTerminate:R,onResponderTerminationRequest:T,onScrollShouldSetResponder:P,onScrollShouldSetResponderCapture:O,onSelectionChangeShouldSetResponder:I,onSelectionChangeShouldSetResponderCapture:N,onStartShouldSetResponder:L,onStartShouldSetResponderCapture:D});var B=o.useCallback(e=>{null!=s?s(e):null!=y&&(e.stopPropagation(),y(e))},[s,y]),H=V?"span":"div",$=null!=e.lang?(0,m.il)(e.lang):null,W=e.dir||$,U=W||j,K=(e=>(0,l.A)(e,v))(F);if(K.dir=W,V||(K.dir=null!=W?W:"auto"),(s||y)&&(K.onClick=B),K.style=[null!=r&&r>1&&{WebkitLineClamp:r},!0===V?_.textHasAncestor$raw:_.text$raw,1===r&&_.textOneLine,null!=r&&r>1&&_.textMultiLine,e.style,!0===M&&_.selectable,!1===M&&_.notSelectable,y&&_.pressable],null!=e.href&&(H="a",null!=n)){var q=n.download,Y=n.rel,G=n.target;null!=q&&(K.download=q),null!=Y&&(K.rel=Y),"string"==typeof G&&(K.target="_"!==G.charAt(0)?"_"+G:G)}var X=(0,d.A)(K),J=(0,c.A)(z,X,t);K.ref=J;var Q=(0,a.A)(H,K,{writingDirection:U});return V?Q:o.createElement(p.A.Provider,{value:!0},Q)});y.displayName="Text";var b={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},_=f.A.create({text$raw:b,textHasAncestor$raw:(0,r.A)((0,r.A)({},b),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const w=y},6413(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(6533),l=n(8997),u=n(9176),c=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function d(e,t){var n=e.activeOpacity,l=e.delayPressIn,d=e.delayPressOut,f=e.delayLongPress,p=e.disabled,m=e.focusable,g=e.onLongPress,v=e.onPress,y=e.onPressIn,b=e.onPressOut,_=e.rejectResponderTermination,w=e.style,S=(0,i.A)(e,c),x=(0,o.useRef)(null),E=(0,a.A)(t,x),C=(0,o.useState)("0s"),k=C[0],A=C[1],R=(0,o.useState)(null),T=R[0],P=R[1],O=(0,o.useCallback)((e,t)=>{P(e),A(t?t/1e3+"s":"0s")},[P,A]),I=(0,o.useCallback)(e=>{O(null!=n?n:.2,e)},[n,O]),N=(0,o.useCallback)(e=>{O(null,e)},[O]),L=(0,o.useMemo)(()=>({cancelable:!_,disabled:p,delayLongPress:f,delayPressStart:l,delayPressEnd:d,onLongPress:g,onPress:v,onPressStart(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;I(t?0:150),null!=y&&y(e)},onPressEnd(e){N(250),null!=b&&b(e)}}),[f,l,d,p,g,v,y,b,_,I,N]),D=(0,s.A)(x,L);return o.createElement(u.A,(0,r.A)({},S,D,{accessibilityDisabled:p,focusable:!p&&!1!==m,pointerEvents:p?"box-none":void 0,ref:E,style:[h.root,!p&&h.actionable,w,null!=T&&{opacity:T},{transitionDuration:k}]}))}var h=l.A.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),f=o.memo(o.forwardRef(d));f.displayName="TouchableOpacity";const p=f},8683(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(1968),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=["ms","Moz","O","Webkit"];Object.keys(i).forEach(e=>{o.forEach(t=>{i[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=i[e]})});const a=i,s=function(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||a.hasOwnProperty(e)&&a[e]?(""+t).trim():t+"px"},l=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--"),o=s(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}};var u=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:i-=window.scrollY,left:r-=window.scrollX}},c=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=u(r),i=u(e),o=i.height,a=i.left,s=i.top,l=i.width,c=a-t.left,d=s-t.top;n(c,d,l,o,a,s)}},0)},d={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};const h={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==d[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){c(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=(0,r.A)(e),i=n.height,o=n.left,a=n.top,s=n.width;t(o,a,s,i)},0)},measureLayout(e,t,n,r){c(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":l(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},9176(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(8587),i=n(6540),o=n(3642),a=n(8697),s=n(254),l=n(2008),u=n(1804),c=n(6177),d=n(3098),h=n(8997),f=n(5243),p=n(1420),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],g=Object.assign({},a.Gs,a.Fh,a.DY,a.l3,a.Aw,a.k2,a.CD,a.eO,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),v=i.forwardRef((e,t)=>{var n=e.hrefAttrs,a=e.onLayout,h=e.onMoveShouldSetResponder,v=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,_=e.onResponderGrant,w=e.onResponderMove,S=e.onResponderReject,x=e.onResponderRelease,E=e.onResponderStart,C=e.onResponderTerminate,k=e.onResponderTerminationRequest,A=e.onScrollShouldSetResponder,R=e.onScrollShouldSetResponderCapture,T=e.onSelectionChangeShouldSetResponder,P=e.onSelectionChangeShouldSetResponderCapture,O=e.onStartShouldSetResponder,I=e.onStartShouldSetResponderCapture,N=(0,r.A)(e,m),L=i.useContext(f.A),D=i.useRef(null),M=(0,p.PZ)().direction;(0,l.A)(D,a),(0,d.A)(D,{onMoveShouldSetResponder:h,onMoveShouldSetResponderCapture:v,onResponderEnd:b,onResponderGrant:_,onResponderMove:w,onResponderReject:S,onResponderRelease:x,onResponderStart:E,onResponderTerminate:C,onResponderTerminationRequest:k,onScrollShouldSetResponder:A,onScrollShouldSetResponderCapture:R,onSelectionChangeShouldSetResponder:T,onSelectionChangeShouldSetResponderCapture:P,onStartShouldSetResponder:O,onStartShouldSetResponderCapture:I});var F="div",V=null!=e.lang?(0,p.il)(e.lang):null,z=e.dir||V,j=z||M,B=(e=>(0,s.A)(e,g))(N);if(B.dir=z,B.style=[y.view$raw,L&&y.inline,e.style],null!=e.href&&(F="a",null!=n)){var H=n.download,$=n.rel,W=n.target;null!=H&&(B.download=H),null!=$&&(B.rel=$),"string"==typeof W&&(B.target="_"!==W.charAt(0)?"_"+W:W)}var U=(0,c.A)(B),K=(0,u.A)(D,U,t);return B.ref=K,(0,o.A)(F,B,{writingDirection:j})});v.displayName="View";var y=h.A.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});const b=v},3642(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(8285),i=n(2555),o=n(8587),a=n(8997),s=n(4078),l=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],u={},c=Object.prototype.hasOwnProperty,d=Array.isArray,h=/[A-Z]/g;function f(e){return"-"+e.toLowerCase()}function p(e){return e.replace(h,f)}function m(e){return d(e)?e.join(" "):e}var g=a.A.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});var v=n(6540),y=n(1420);const b=(e,t,n)=>{var d;e&&e.constructor===String&&(d=r.A.propsToAccessibilityComponent(t));var h=d||e,f=((e,t,n)=>{t||(t=u);var d=t,h=d["aria-activedescendant"],f=d.accessibilityActiveDescendant,v=d["aria-atomic"],y=d.accessibilityAtomic,b=d["aria-autocomplete"],_=d.accessibilityAutoComplete,w=d["aria-busy"],S=d.accessibilityBusy,x=d["aria-checked"],E=d.accessibilityChecked,C=d["aria-colcount"],k=d.accessibilityColumnCount,A=d["aria-colindex"],R=d.accessibilityColumnIndex,T=d["aria-colspan"],P=d.accessibilityColumnSpan,O=d["aria-controls"],I=d.accessibilityControls,N=d["aria-current"],L=d.accessibilityCurrent,D=d["aria-describedby"],M=d.accessibilityDescribedBy,F=d["aria-details"],V=d.accessibilityDetails,z=d["aria-disabled"],j=d.accessibilityDisabled,B=d["aria-errormessage"],H=d.accessibilityErrorMessage,$=d["aria-expanded"],W=d.accessibilityExpanded,U=d["aria-flowto"],K=d.accessibilityFlowTo,q=d["aria-haspopup"],Y=d.accessibilityHasPopup,G=d["aria-hidden"],X=d.accessibilityHidden,J=d["aria-invalid"],Q=d.accessibilityInvalid,Z=d["aria-keyshortcuts"],ee=d.accessibilityKeyShortcuts,te=d["aria-label"],ne=d.accessibilityLabel,re=d["aria-labelledby"],ie=d.accessibilityLabelledBy,oe=d["aria-level"],ae=d.accessibilityLevel,se=d["aria-live"],le=d.accessibilityLiveRegion,ue=d["aria-modal"],ce=d.accessibilityModal,de=d["aria-multiline"],he=d.accessibilityMultiline,fe=d["aria-multiselectable"],pe=d.accessibilityMultiSelectable,me=d["aria-orientation"],ge=d.accessibilityOrientation,ve=d["aria-owns"],ye=d.accessibilityOwns,be=d["aria-placeholder"],_e=d.accessibilityPlaceholder,we=d["aria-posinset"],Se=d.accessibilityPosInSet,xe=d["aria-pressed"],Ee=d.accessibilityPressed,Ce=d["aria-readonly"],ke=d.accessibilityReadOnly,Ae=d["aria-required"],Re=d.accessibilityRequired,Te=(d.role,d.accessibilityRole,d["aria-roledescription"]),Pe=d.accessibilityRoleDescription,Oe=d["aria-rowcount"],Ie=d.accessibilityRowCount,Ne=d["aria-rowindex"],Le=d.accessibilityRowIndex,De=d["aria-rowspan"],Me=d.accessibilityRowSpan,Fe=d["aria-selected"],Ve=d.accessibilitySelected,ze=d["aria-setsize"],je=d.accessibilitySetSize,Be=d["aria-sort"],He=d.accessibilitySort,$e=d["aria-valuemax"],We=d.accessibilityValueMax,Ue=d["aria-valuemin"],Ke=d.accessibilityValueMin,qe=d["aria-valuenow"],Ye=d.accessibilityValueNow,Ge=d["aria-valuetext"],Xe=d.accessibilityValueText,Je=d.dataSet,Qe=d.focusable,Ze=d.id,et=d.nativeID,tt=d.pointerEvents,nt=d.style,rt=d.tabIndex,it=d.testID,ot=(0,o.A)(d,l),at=z||j,st=r.A.propsToAriaRole(t),lt=null!=h?h:f;null!=lt&&(ot["aria-activedescendant"]=lt);var ut=null!=v?h:y;null!=ut&&(ot["aria-atomic"]=ut);var ct=null!=b?b:_;null!=ct&&(ot["aria-autocomplete"]=ct);var dt=null!=w?w:S;null!=dt&&(ot["aria-busy"]=dt);var ht=null!=x?x:E;null!=ht&&(ot["aria-checked"]=ht);var ft=null!=C?C:k;null!=ft&&(ot["aria-colcount"]=ft);var pt=null!=A?A:R;null!=pt&&(ot["aria-colindex"]=pt);var mt=null!=T?T:P;null!=mt&&(ot["aria-colspan"]=mt);var gt=null!=O?O:I;null!=gt&&(ot["aria-controls"]=m(gt));var vt=null!=N?N:L;null!=vt&&(ot["aria-current"]=vt);var yt=null!=D?D:M;null!=yt&&(ot["aria-describedby"]=m(yt));var bt=null!=F?F:V;null!=bt&&(ot["aria-details"]=bt),!0===at&&(ot["aria-disabled"]=!0,"button"!==e&&"form"!==e&&"input"!==e&&"select"!==e&&"textarea"!==e||(ot.disabled=!0));var _t=null!=B?B:H;null!=_t&&(ot["aria-errormessage"]=_t);var wt=null!=$?$:W;null!=wt&&(ot["aria-expanded"]=wt);var St=null!=U?U:K;null!=St&&(ot["aria-flowto"]=m(St));var xt=null!=q?q:Y;null!=xt&&(ot["aria-haspopup"]=xt);var Et=null!=G?G:X;!0===Et&&(ot["aria-hidden"]=Et);var Ct=null!=J?J:Q;null!=Ct&&(ot["aria-invalid"]=Ct);var kt=null!=Z?Z:ee;null!=kt&&(ot["aria-keyshortcuts"]=m(kt));var At=null!=te?te:ne;null!=At&&(ot["aria-label"]=At);var Rt=null!=re?re:ie;null!=Rt&&(ot["aria-labelledby"]=m(Rt));var Tt=null!=oe?oe:ae;null!=Tt&&(ot["aria-level"]=Tt);var Pt=null!=se?se:le;null!=Pt&&(ot["aria-live"]="none"===Pt?"off":Pt);var Ot=null!=ue?ue:ce;null!=Ot&&(ot["aria-modal"]=Ot);var It=null!=de?de:he;null!=It&&(ot["aria-multiline"]=It);var Nt=null!=fe?fe:pe;null!=Nt&&(ot["aria-multiselectable"]=Nt);var Lt=null!=me?me:ge;null!=Lt&&(ot["aria-orientation"]=Lt);var Dt=null!=ve?ve:ye;null!=Dt&&(ot["aria-owns"]=m(Dt));var Mt=null!=be?be:_e;null!=Mt&&(ot["aria-placeholder"]=Mt);var Ft=null!=we?we:Se;null!=Ft&&(ot["aria-posinset"]=Ft);var Vt=null!=xe?xe:Ee;null!=Vt&&(ot["aria-pressed"]=Vt);var zt=null!=Ce?Ce:ke;null!=zt&&(ot["aria-readonly"]=zt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.readOnly=!0));var jt=null!=Ae?Ae:Re;null!=jt&&(ot["aria-required"]=jt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.required=Re)),null!=st&&(ot.role="none"===st?"presentation":st);var Bt=null!=Te?Te:Pe;null!=Bt&&(ot["aria-roledescription"]=Bt);var Ht=null!=Oe?Oe:Ie;null!=Ht&&(ot["aria-rowcount"]=Ht);var $t=null!=Ne?Ne:Le;null!=$t&&(ot["aria-rowindex"]=$t);var Wt=null!=De?De:Me;null!=Wt&&(ot["aria-rowspan"]=Wt);var Ut=null!=Fe?Fe:Ve;null!=Ut&&(ot["aria-selected"]=Ut);var Kt=null!=ze?ze:je;null!=Kt&&(ot["aria-setsize"]=Kt);var qt=null!=Be?Be:He;null!=qt&&(ot["aria-sort"]=qt);var Yt=null!=$e?$e:We;null!=Yt&&(ot["aria-valuemax"]=Yt);var Gt=null!=Ue?Ue:Ke;null!=Gt&&(ot["aria-valuemin"]=Gt);var Xt=null!=qe?qe:Ye;null!=Xt&&(ot["aria-valuenow"]=Xt);var Jt=null!=Ge?Ge:Xe;if(null!=Jt&&(ot["aria-valuetext"]=Jt),null!=Je)for(var Qt in Je)if(c.call(Je,Qt)){var Zt=p(Qt),en=Je[Qt];null!=en&&(ot["data-"+Zt]=en)}0===rt||"0"===rt||-1===rt||"-1"===rt?ot.tabIndex=rt:(!1===Qe&&(ot.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?!1!==Qe&&!0!==j||(ot.tabIndex="-1"):"button"===st||"checkbox"===st||"link"===st||"radio"===st||"textbox"===st||"switch"===st?!1!==Qe&&(ot.tabIndex="0"):!0===Qe&&(ot.tabIndex="0")),null!=tt&&(0,s.m)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var tn=(0,a.A)([nt,tt&&g[tt]],(0,i.A)({writingDirection:"ltr"},n)),nn=tn[0],rn=tn[1];nn&&(ot.className=nn),rn&&(ot.style=rn);var on=null!=Ze?Ze:et;return null!=on&&(ot.id=on),null!=it&&(ot["data-testid"]=it),null==ot.type&&"button"===e&&(ot.type="button"),ot})(h,t,n),b=v.createElement(h,f);return f.dir?v.createElement(y.YO,{children:b,direction:f.dir,locale:f.lang}):b}},2901(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(1515),i=n.n(r);const o=e=>{if(null==e)return e;var t=i()(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0}},6864(e,t,n){"use strict";n.r(t),n.d(t,{AccessibilityInfo:()=>w,ActivityIndicator:()=>$r.A,Alert:()=>S,Animated:()=>qn,AppRegistry:()=>or,AppState:()=>hr,Appearance:()=>Xn,BackHandler:()=>pr,Button:()=>qr,CheckBox:()=>Jr,Clipboard:()=>gr,DeviceEventEmitter:()=>va.A,Dimensions:()=>vr.A,Easing:()=>Cn,FlatList:()=>Fe,I18nManager:()=>yr,Image:()=>Mt.A,ImageBackground:()=>ti,InteractionManager:()=>Z,Keyboard:()=>br.A,KeyboardAvoidingView:()=>ni.A,LayoutAnimation:()=>xr,Linking:()=>Cr,LogBox:()=>ga,Modal:()=>Ai,NativeEventEmitter:()=>kr,NativeModules:()=>m,PanResponder:()=>Vr,Picker:()=>Ni,PixelRatio:()=>zr.A,Platform:()=>E.A,Pressable:()=>Li.A,ProgressBar:()=>Vi,RefreshControl:()=>M,SafeAreaView:()=>$i,ScrollView:()=>F.A,SectionList:()=>Ut,Share:()=>jr,StatusBar:()=>Ki,StyleSheet:()=>T.A,Switch:()=>ro,Text:()=>qt.A,TextInput:()=>go,Touchable:()=>Xo,TouchableHighlight:()=>ia,TouchableNativeFeedback:()=>la,TouchableOpacity:()=>Wr.A,TouchableWithoutFeedback:()=>ha,UIManager:()=>p.A,Vibration:()=>Hr,View:()=>R.A,VirtualizedList:()=>fa,YellowBox:()=>ma,findNodeHandle:()=>o,processColor:()=>a.A,render:()=>f,unmountComponentAtNode:()=>l,unstable_createElement:()=>r.A,useColorScheme:()=>ya,useLocaleContext:()=>ba,useWindowDimensions:()=>_a});var r=n(3642),i=n(961);const o=e=>{var t;try{t=(0,i.findDOMNode)(e)}catch(e){}return t};var a=n(2901),s=n(5338);const l=i.unmountComponentAtNode;var u=n(3748);function c(e,t){return(0,u._)(t),(0,s.c)(t,e)}function d(e,t){(0,u._)(t);var n=(0,s.H)(t);return n.render(e),n}function h(e,t,n){return(0,u._)(t),(0,i.hydrate)(e,t,n),{unmount:function(){return l(t)}}}function f(e,t,n){return(0,u._)(t),(0,i.render)(e,t,n),{unmount:function(){return l(t)}}}var p=n(8683);const m={UIManager:p.A};var g=n(7162);function v(){return new Promise((e,t)=>{e(!0)})}var y=g.A&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null,b={},_={isScreenReaderEnabled:v,isReduceMotionEnabled:function(){return new Promise((e,t)=>{e(!y||y.matches)})},fetch:v,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!y)return;var n=e=>{t(e.matches)};r=n,null!=y&&(null!=y.addEventListener?y.addEventListener("change",r):y.addListener(r)),b[t]=n}var r;return{remove:()=>_.removeEventListener(e,t)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=b[t];if(!n||!y)return;r=n,null!=y&&(null!=y.removeEventListener?y.removeEventListener("change",r):y.removeListener(r))}var r}};const w=_,S=class{static alert(){}};var x=n(2555),E=n(7862),C=n(8168),k=n(6540),A=n(8587),R=n(9176),T=n(8997);const P=function e(t,n,r){if(void 0===r&&(r=-1),0===r)return!0;if(t===n)return!1;if("function"==typeof t&&"function"==typeof n)return!1;if("object"!=typeof t||null===t)return t!==n;if("object"!=typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(n.length!==i)return!0;for(var o=0;o<i;o++)if(e(t[o],n[o],r-1))return!0}else{for(var a in t)if(e(t[a],n[a],r-1))return!0;for(var s in n)if(void 0===t[s]&&void 0!==n[s])return!0}return!1};var O=n(646),I=n.n(O);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var D=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];const M=function(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var t=(0,A.A)(e,D);return k.createElement(R.A,t)};var F=n(4951);var V=n(1603),z=g.A&&void 0!==window.requestIdleCallback,j=z?window.requestIdleCallback:function(e,t){return setTimeout(()=>{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};z&&window.cancelIdleCallback;const B=j;var H=new V.A,$={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise(n=>{J(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),q.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{q.cancelTasks(t)}}},createInteractionHandle(){J();var e=++G;return U.add(e),e},clearInteractionHandle(e){I()(!!e,"Must provide a handle to clear."),J(),U.delete(e),K.add(e)},addListener:H.addListener.bind(H),setDeadline(e){X=e}},W=new Set,U=new Set,K=new Set,q=new class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>(0,x.A)((0,x.A)({},t),{},{tasks:t.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(I()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,n=this._queueStack[t];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}({onMoreTasks:J}),Y=0,G=0,X=-1;function J(){Y||(Y=X>0?setTimeout(Q):B(Q))}function Q(){Y=0;var e=W.size;U.forEach(e=>W.add(e)),K.forEach(e=>W.delete(e));var t=W.size;if(0!==e&&0===t?H.emit($.Events.interactionComplete):0===e&&0!==t&&H.emit($.Events.interactionStart),0===t)for(var n=Date.now();q.hasTasksToProcess();)if(q.processNext(),X>0&&Date.now()-n>=X){J();break}U.clear(),K.clear()}const Z=$,ee=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=Z.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}},te=function(e,t,n){return t<e?e:t>n?n:t};class ne{constructor(e){I()(e>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=e,this._regions=0===e?[]:[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if(I()(e.first>=0&&e.first<this._numCells&&e.last>=-1&&e.last<this._numCells&&e.last>=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.last<e.first)){var t=this._findRegion(e.first),n=t[0],r=t[1],i=this._findRegion(e.last),o=i[0],a=i[1];if(r!==a||n.isSpacer){var s=[],l=[],u=(0,x.A)((0,x.A)({},e),{},{isSpacer:!1});n.first<u.first&&(n.isSpacer?s.push({first:n.first,last:u.first-1,isSpacer:!0}):u.first=n.first),o.last>u.last&&(o.isSpacer?l.push({first:u.last+1,last:o.last,isSpacer:!0}):u.last=o.last);var c=[...s,u,...l],d=a-r+1;this._regions.splice(r,d,...c)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every((t,n)=>t.first===e._regions[n].first&&t.last===e._regions[n].last&&t.isSpacer===e._regions[n].isSpacer)}_findRegion(e){for(var t=0,n=this._regions.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this._regions[r];if(e>=i.first&&e<=i.last)return[i,r];e<i.first?n=r-1:e>i.last&&(t=r+1)}I()(!1,"A region was not found containing cellIdx "+e)}}class re{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,t){var n;I()(!this._childrenToCellKey.has(e),"Trying to add already present child list");var r=null!==(n=this._cellKeyToChildren.get(t))&&void 0!==n?n:new Set;r.add(e),this._cellKeyToChildren.set(t,r),this._childrenToCellKey.set(e,t)}remove(e){var t=this._childrenToCellKey.get(e);I()(null!=t,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(t);I()(n,"_cellKeyToChildren should contain cellKey"),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(t)}forEach(e){for(var t,n=L(this._cellKeyToChildren.values());!(t=n()).done;)for(var r,i=L(t.value);!(r=i()).done;)e(r.value)}forEachInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)t(r.value)}anyInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)if(t(r.value))return!0;return!1}size(){return this._childrenToCellKey.size}}class ie{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var oe=[],ae=10,se=null;const le=class{static addListener(e){return null===se&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),oe.push(e),{remove:()=>{oe=oe.filter(t=>e!==t)}}}static setSampleRate(e){se=e}static setMinSampleCount(e){ae=e}constructor(e){this._anyBlankStartTime=null,this._enabled=!1,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(se||0)>Math.random(),this._resetData()}activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=n.g.performance.now())}deactivateAndFlush(){if(this._enabled){var e=this._samplesStartTime;if(null!=e)if(this._info.sample_count<ae)this._resetData();else{var t=n.g.performance.now()-e,r=(0,x.A)((0,x.A)({},this._info),{},{total_time_spent:t});oe.forEach(e=>e(r)),this._resetData()}}}computeBlankness(e,t,r){if(!this._enabled||0===e.getItemCount(e.data)||t.last<t.first||null==this._samplesStartTime)return 0;var i=r.dOffset,o=r.offset,a=r.velocity,s=r.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(s),this._info.pixels_scrolled+=Math.round(Math.abs(i));var l=Math.round(1e3*Math.abs(a)),u=n.g.performance.now();null!=this._anyBlankStartTime&&(this._info.any_blank_ms+=u-this._anyBlankStartTime),this._anyBlankStartTime=null,null!=this._mostlyBlankStartTime&&(this._info.mostly_blank_ms+=u-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var c=0,d=t.first,h=this._getFrameMetrics(d,e);d<=t.last&&(!h||!h.inLayout);)h=this._getFrameMetrics(d,e),d++;h&&d>0&&(c=Math.min(s,Math.max(0,h.offset-o)));for(var f=0,p=t.last,m=this._getFrameMetrics(p,e);p>=t.first&&(!m||!m.inLayout);)m=this._getFrameMetrics(p,e),p--;if(m&&p<e.getItemCount(e.data)-1){var g=m.offset+m.length;f=Math.min(s,Math.max(0,o+s-g))}var v=Math.round(c+f),y=v/s;return y>0?(this._anyBlankStartTime=u,this._info.any_blank_speed_sum+=l,this._info.any_blank_count++,this._info.pixels_blank+=v,y>.5&&(this._mostlyBlankStartTime=u,this._info.mostly_blank_count++)):(l<.01||Math.abs(i)<1)&&this.deactivateAndFlush(),y}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null}};class ue extends k.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,t){"function"==typeof e?super.setState((t,n)=>{var r;this._inAsyncStateUpdate=!0;try{r=e(t,n)}catch(e){throw e}finally{this._inAsyncStateUpdate=!1}return r},t):super.setState(e,t)}_installSetStateHooks(){var e=this,t=this.props,n=this.state;Object.defineProperty(this,"props",{get:()=>(I()(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),t),set(e){t=e}}),Object.defineProperty(this,"state",{get:()=>(I()(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n),set(e){n=e}})}}function ce(e,t,n,r,i,o){if(function(e,t,n){return e>=0&&t<=n&&t>e}(n,r,i))return!0;var a=function(e,t,n){var r=Math.min(t,n)-Math.max(e,0);return Math.max(0,r)}(n,r,i);return 100*(e?a/i:a/o)>=t}const de=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,r,i){var o=e.getItemCount(e.data),a=this._config,s=a.itemVisiblePercentThreshold,l=a.viewAreaCoveragePercentThreshold,u=null!=l,c=u?l:s;I()(null!=c&&null!=s!=(null!=l),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var d=[];if(0===o)return d;var h=-1,f=i||{first:0,last:o-1},p=f.first,m=f.last;if(m>=o)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:i,itemCount:o})),[];for(var g=p;g<=m;g++){var v=r(g,e);if(v){var y=v.offset-t,b=y+v.length;if(y<n&&b>0)h=g,ce(u,c,y,b,n,v.length)&&d.push(g);else if(h>=0)break}}return d}onUpdate(e,t,n,r,i,o,a){var s=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==s&&r(0,e)){var l=[];if(s&&(l=this.computeViewableItems(e,t,n,r,a)),this._viewableIndices.length!==l.length||!this._viewableIndices.every((e,t)=>e===l[t]))if(this._viewableIndices=l,this._config.minimumViewTime){var u=setTimeout(()=>{this._timers.delete(u),this._onUpdateSync(e,l,o,i)},this._config.minimumViewTime);this._timers.add(u)}else this._onUpdateSync(e,l,o,i)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,t,n,r){t=t.filter(e=>this._viewableIndices.includes(e));for(var i,o=this._viewableItems,a=new Map(t.map(t=>{var n=r(t,!0,e);return[n.key,n]})),s=[],l=L(a);!(i=l()).done;){var u=i.value,c=u[0],d=u[1];o.has(c)||s.push(d)}for(var h,f=L(o);!(h=f()).done;){var p=h.value,m=p[0],g=p[1];a.has(m)||s.push((0,x.A)((0,x.A)({},g),{},{isViewable:!1}))}s.length>0&&(this._viewableItems=a,n({viewableItems:Array.from(a.values()),changed:s,viewabilityConfig:this._config}))}};var he=k.createContext(null);function fe(e){var t=e.children,n=e.value,r=(0,k.useMemo)(()=>({cellKey:null,getScrollMetrics:n.getScrollMetrics,horizontal:n.horizontal,getOutermostParentListRef:n.getOutermostParentListRef,registerAsNestedChild:n.registerAsNestedChild,unregisterAsNestedChild:n.unregisterAsNestedChild}),[n.getScrollMetrics,n.horizontal,n.getOutermostParentListRef,n.registerAsNestedChild,n.unregisterAsNestedChild]);return k.createElement(he.Provider,{value:r},t)}function pe(e){var t=e.cellKey,n=e.children,r=(0,k.useContext)(he),i=(0,k.useMemo)(()=>null==r?null:(0,x.A)((0,x.A)({},r),{},{cellKey:t}),[r,t]);return k.createElement(he.Provider,{value:i},n)}class me extends k.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!1})},updateProps:(e,t)=>{var n=this.props,r=n.cellKey,i=n.prevCellKey;this.props.onUpdateSeparators(["leading"===e?i:r],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,x.A)((0,x.A)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(t=>({separatorProps:(0,x.A)((0,x.A)({},t.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,n,r){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?k.createElement(t,{item:n,index:r,separators:this._separators}):e?e({item:n,index:r,separators:this._separators}):void I()(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}render(){var e=this.props,t=e.CellRendererComponent,n=e.ItemSeparatorComponent,r=e.ListItemComponent,i=e.cellKey,o=e.horizontal,a=e.item,s=e.index,l=e.inversionStyle,u=e.onCellFocusCapture,c=e.onCellLayout,d=e.renderItem,h=this._renderElement(d,r,a,s),f=k.isValidElement(n)?n:n&&k.createElement(n,this.state.separatorProps),p=l?o?[ge.rowReverse,l]:[ge.columnReverse,l]:o?[ge.row,l]:l,m=t?k.createElement(t,(0,C.A)({cellKey:i,index:s,item:a,style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),h,f):k.createElement(R.A,(0,C.A)({style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),h,f);return k.createElement(pe,{cellKey:this.props.cellKey},m)}}var ge=T.A.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}});function ve(e,t){return"object"==typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"==typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}var ye=n(801),be=n.n(ye),_e=!1,we="";function Se(e){return null!=e&&e}function xe(e){return null!=e?e:10}function Ee(e){return null!=e?e:2}function Ce(e,t){return e*t/2}function ke(e){return null!=e?e:21}class Ae extends ue{scrollToEnd(e){var t=!e||e.animated,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var r=this.__getFrameMetricsApprox(n,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}scrollToIndex(e){var t=this.props,n=t.data,r=t.horizontal,i=t.getItemCount,o=t.getItemLayout,a=t.onScrollToIndexFailed,s=e.animated,l=e.index,u=e.viewOffset,c=e.viewPosition;if(I()(l>=0,"scrollToIndex out of range: requested index "+l+" but minimum is 0"),I()(i(n)>=1,"scrollToIndex out of range: item length "+i(n)+" but minimum is 1"),I()(l<i(n),"scrollToIndex out of range: requested index "+l+" is out of 0 to "+(i(n)-1)),!o&&l>this._highestMeasuredFrameIndex)return I()(!!a,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void a({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:l});var d=this.__getFrameMetricsApprox(Math.floor(l),this.props),h=Math.max(0,this._getOffsetApprox(l,this.props)-(c||0)*(this._scrollMetrics.visibleLength-d.length))-(u||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:h,animated:s}:{y:h,animated:s}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}scrollToItem(e){for(var t=e.item,n=this.props,r=n.data,i=n.getItem,o=(0,n.getItemCount)(r),a=0;a<o;a++)if(i(r,a)===t){this.scrollToIndex((0,x.A)((0,x.A)({},e),{},{index:a}));break}}scrollToOffset(e){var t=e.animated,n=e.offset;null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}recordInteraction(){this._nestedChildLists.forEach(e=>{e.recordInteraction()}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||"rootList"}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach(e=>{var n=null!=e&&this._cellRefs[e];n&&n.updateSeparatorProps(t)})},this._getSpacerKey=e=>e?"height":"width",this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new re,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,n=e.onRefresh;return this._isNestedWithSameOrientation()?k.createElement(R.A,e):n?(I()("boolean"==typeof e.refreshing,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:"undefined")+"`"),k.createElement(F.A,(0,C.A)({},e,{refreshControl:null==e.refreshControl?k.createElement(M,{refreshing:e.refreshing,onRefresh:n,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):k.createElement(F.A,e)},this._onCellLayout=(e,t,n)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:n,inLayout:!0},o=this._frames[t];o&&i.offset===o.offset&&i.length===o.length&&n===o.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(o?o.length:0),this._totalCellsMeasured+=o?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,n),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,x.A)((0,x.A)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:be()(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t),this._scrollMetrics.contentLength=this._selectLength({height:t,width:e}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=e=>{var t=e.offset-this._offsetFromParentVirtualizedList,n=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:n,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach(t=>{t._onScroll(e)}),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,n=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),o=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var a=this._convertParentScrollMetrics({visibleLength:n,offset:i});n=a.visibleLength,r=a.contentLength,i=a.offset,o=a.dOffset}var s=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,l=o/s;s>500&&this._scrollMetrics.dt>500&&r>5*n&&!this._hasWarned.perf&&(function(){console.log(...arguments)}("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:s,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var u=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:s,dOffset:o,offset:i,timestamp:t,velocity:l,visibleLength:n,zoomScale:u},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==l&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollBeginDrag(e)}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollBegin(e)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollEnd(e)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((e,t)=>{var n=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),r=Ae._createRenderMask(t,n,this._getNonViewportRenderRegions(t));return n.first===e.cellsAroundViewport.first&&n.last===e.cellsAroundViewport.last&&r.equals(e.renderMask)?null:{cellsAroundViewport:n,renderMask:r}})},this._createViewToken=(e,t,n)=>{var r=n.data,i=(0,n.getItem)(r,e);return{index:e,item:i,key:this._keyExtractor(i,e,n),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var n=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return n.offset+r*n.length},this.__getFrameMetricsApprox=(e,t)=>{var n=this._getFrameMetrics(e,t);if(n&&n.index===e)return n;var r=t.data,i=t.getItemCount,o=t.getItemLayout;return I()(e>=0&&e<i(r),"Tried to get frame for out of range index "+e),I()(!o,"Should not have to estimate frames when a measurement metrics function is provided"),{length:this._averageCellLength,offset:this._averageCellLength*e}},this._getFrameMetrics=(e,t)=>{var n=t.data,r=t.getItem,i=t.getItemCount,o=t.getItemLayout;I()(e>=0&&e<i(n),"Tried to get frame for out of range index "+e);var a=r(n,e),s=this._frames[this._keyExtractor(a,e,t)];return s&&s.index===e||!o?s:o(n,e)},this._getNonViewportRenderRegions=e=>{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,n=e.getItemCount(e.data);if(t>=n||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,o=r-1;o>=0&&i<this._scrollMetrics.visibleLength;o--)r--,i+=this.__getFrameMetricsApprox(o,e).length;for(var a=t,s=0,l=a+1;l<n&&s<this._scrollMetrics.visibleLength;l++)a++,s+=this.__getFrameMetricsApprox(l,e).length;return[{first:r,last:a}]},this._checkProps(e),this._fillRateHelper=new le(this._getFrameMetrics),this._updateCellsToRenderBatcher=new ee(this._updateCellsToRender,null!==(t=this.props.updateCellsBatchingPeriod)&&void 0!==t?t:50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityHelper:new de(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}));else{var n=this.props,r=n.onViewableItemsChanged,i=n.viewabilityConfig;r&&this._viewabilityTuples.push({viewabilityHelper:new de(i),onViewableItemsChanged:r})}var o=Ae._initialRenderRegion(e);this.state={cellsAroundViewport:o,renderMask:Ae._createRenderMask(e,o)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,n=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=n>r,o=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,a=o;i&&(a=o<0?Math.min(o+t,0):Math.max(o-(n-r-t),0));var s=o-a;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var l=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=s;var u=l.scrollLeft-a;l.scrollLeft=this.props.getItemLayout?u:Math.min(u,this._totalCellLength)}else{e.target.scrollTop+=s;var c=l.scrollTop-a;l.scrollTop=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,n=e.windowSize,r=e.getItemCount,i=e.data,o=e.initialScrollIndex;I()(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),I()(ke(n)>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),I()(r,'VirtualizedList: The "getItemCount" prop must be provided');var a=r(i);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||a>0&&o>=a)||this._hasWarned.initialScrollIndex||(console.warn('initialScrollIndex "'+o+'" is not valid (list has '+a+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,n){var r=e.getItemCount(e.data);I()(t.first>=0&&t.last>=t.first-1&&t.last<r,'Invalid cells around viewport "['+t.first+", "+t.last+']" was passed to VirtualizedList._createRenderMask');var i=new ne(r);if(r>0){for(var o=0,a=[t,...null!=n?n:[]];o<a.length;o++){var s=a[o];i.addCells(s)}if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var l=Ae._initialRenderRegion(e);i.addCells(l)}var u=new Set(e.stickyHeaderIndices);Ae._ensureClosestStickyHeader(e,u,i,t.first)}return i}static _initialRenderRegion(e){var t,n,r=e.getItemCount(e.data),i=Math.max(0,Math.min(r-1,Math.floor(null!==(t=e.initialScrollIndex)&&void 0!==t?t:0)));return{first:i,last:Math.min(r,i+(null!=(n=e.initialNumToRender)?n:10))-1}}static _ensureClosestStickyHeader(e,t,n,r){for(var i=e.ListHeaderComponent?1:0,o=r-1;o>=0;o--)if(t.has(o+i)){n.addCells({first:o,last:o});break}}_adjustCellsAroundViewport(e,t){var n,r=e.data,i=e.getItemCount,o=Ee(e.onEndReachedThreshold),a=this._scrollMetrics,s=a.contentLength,l=a.offset,u=a.visibleLength,c=s-u-l;if(u<=0||s<=0)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;if(e.disableVirtualization){var d=c<o*u?xe(e.maxToRenderPerBatch):0;n={first:0,last:Math.min(t.last+d,i(r)-1)}}else{if(e.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(c)>=Number.EPSILON)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;n=function(e,t,n,r,i,o){var a=e.getItemCount(e.data);if(0===a)return{first:0,last:-1};var s=o.offset,l=o.velocity,u=o.visibleLength,c=o.zoomScale,d=void 0===c?1:c,h=Math.max(0,s),f=h+u,p=(n-1)*u,m=l>1?"after":l<-1?"before":"none",g=Math.max(0,h-.5*p),v=Math.max(0,f+.5*p);if(i(a-1,e).offset*d<g)return{first:Math.max(0,a-1-t),last:a-1};var y=function(e,t,n,r){void 0===r&&(r=1);for(var i=t.getItemCount(t.data),o=[],a=0;a<e.length;a++)for(var s=e[a],l=0,u=i-1;l<=u;){var c=l+(u-l>>>1),d=n(c,t),h=d.offset*r,f=(d.offset+d.length)*r;if(0===c&&s<h||0!==c&&s<=h)u=c-1;else{if(!(s>f)){o[a]=c;break}l=c+1}}return o}([g,h,f,v],e,i,d),b=y[0],_=y[1],w=y[2],S=y[3];b=null==b?0:b,S=null==S?a-1:S;for(var x={first:_=null==_?Math.max(0,b):_,last:w=null==w?Math.min(S,_+t-1):w},E=function(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}(r,x);!(_<=b&&w>=S);){var C=E>=t,k=_<=r.first||_>r.last,A=_>b&&(!C||!k),R=w>=r.last||w<r.first,T=w<S&&(!C||!R);if(C&&!A&&!T)break;!A||"after"===m&&T&&R||(k&&E++,_--),!T||"before"===m&&A&&k||(R&&E++,w++)}if(!(w>=_&&_>=0&&w<a&&_>=b&&w<=S&&_<=x.first&&w>=x.last))throw new Error("Bad window calculation "+JSON.stringify({first:_,last:w,itemCount:a,overscanFirst:b,overscanLast:S,visible:x}));return{first:_,last:w}}(e,xe(e.maxToRenderPerBatch),ke(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),I()(n.last<i(r),"computeWindowedRenderLimits() should return range in-bounds")}if(this._nestedChildLists.size()>0){var h=this._findFirstChildWithMore(n.first,n.last);n.last=null!=h?h:n.last}return n}_findFirstChildWithMore(e,t){for(var n=e;n<=t;n++){var r=this._indicesToKeys.get(n);if(null!=r&&this._nestedChildLists.anyInCell(r,e=>e.hasMore()))return n}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler):setTimeout(()=>this.setupWebWheelHandler(),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var n=Ae._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:n,renderMask:Ae._createRenderMask(e,n)}}_pushCells(e,t,n,r,i,o){var a,s=this,l=this.props,u=l.CellRendererComponent,c=l.ItemSeparatorComponent,d=l.ListHeaderComponent,h=l.ListItemComponent,f=l.data,p=l.debug,m=l.getItem,g=l.getItemCount,v=l.getItemLayout,y=l.horizontal,b=l.renderItem,_=d?1:0,w=g(f)-1;i=Math.min(w,i);for(var S=function(){var r=m(f,x),i=s._keyExtractor(r,x,s.props);s._indicesToKeys.set(x,i),n.has(x+_)&&t.push(e.length);var l=null==v||p||s._fillRateHelper.enabled();e.push(k.createElement(me,(0,C.A)({CellRendererComponent:u,ItemSeparatorComponent:x<w?c:void 0,ListItemComponent:h,cellKey:i,horizontal:y,index:x,inversionStyle:o,item:r,key:i,prevCellKey:a,onUpdateSeparators:s._onUpdateSeparators,onCellFocusCapture:e=>s._onCellFocusCapture(i),onUnmount:s._onCellUnmount,ref:e=>{s._cellRefs[i]=e},renderItem:b},l&&{onCellLayout:s._onCellLayout}))),a=i},x=r;x<=i;x++)S()}static _constrainToItemCount(e,t){var n=t.getItemCount(t.data),r=Math.min(n-1,e.last),i=xe(t.maxToRenderPerBatch);return{first:te(0,n-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==Se(this.props.horizontal))}_keyExtractor(e,t,n){if(null!=n.keyExtractor)return n.keyExtractor(e,t);var r=ve(e,t);return r===String(t)&&(_e=!0,e.type&&e.type.displayName&&(we=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,t=e.ListEmptyComponent,n=e.ListFooterComponent,r=e.ListHeaderComponent,i=this.props,o=i.data,a=i.horizontal,s=this.props.inverted?Se(this.props.horizontal)?Re.horizontallyInverted:Re.verticallyInverted:null,l=[],u=new Set(this.props.stickyHeaderIndices),c=[];if(r){u.has(0)&&c.push(0);var d=k.isValidElement(r)?r:k.createElement(r,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-header",key:"$header"},k.createElement(R.A,{onLayout:this._onLayoutHeader,style:[s,this.props.ListHeaderComponentStyle]},d)))}var h=this.props.getItemCount(o);if(0===h&&t){var f=k.isValidElement(t)?t:k.createElement(t,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-empty",key:"$empty"},k.cloneElement(f,{onLayout:e=>{this._onLayoutEmpty(e),f.props.onLayout&&f.props.onLayout(e)},style:[s,f.props.style]})))}if(h>0){_e=!1,we="";for(var p,m=this._getSpacerKey(!a),g=this.state.renderMask.enumerateRegions(),v=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}(g,e=>e.isSpacer),y=L(g);!(p=y()).done;){var b=p.value;if(b.isSpacer){if(this.props.disableVirtualization)continue;var _=b!==v||this.props.getItemLayout?b.last:te(b.first-1,b.last,this._highestMeasuredFrameIndex),w=this.__getFrameMetricsApprox(b.first,this.props),S=this.__getFrameMetricsApprox(_,this.props),E=S.offset+S.length-w.offset;l.push(k.createElement(R.A,{key:"$spacer-"+b.first,style:{[m]:E}}))}else this._pushCells(l,c,u,b.first,b.last,s)}!this._hasWarned.keys&&_e&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",we),this._hasWarned.keys=!0)}if(n){var C=k.isValidElement(n)?n:k.createElement(n,null);l.push(k.createElement(pe,{cellKey:this._getFooterCellKey(),key:"$footer"},k.createElement(R.A,{onLayout:this._onLayoutFooter,style:[s,this.props.ListFooterComponentStyle]},C)))}var A,T=(0,x.A)((0,x.A)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(A=this.props.scrollEventThrottle,null!=A?A:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:c,style:s?[s,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<h-1;var P=k.createElement(fe,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:Se(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}},k.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(T),{ref:this._captureScrollRef},l));return this.props.debug?k.createElement(R.A,{style:Re.debug},P,this._renderDebugOverlay()):P}componentDidUpdate(e){var t=this.props,n=t.data,r=t.extraData;n===e.data&&r===e.extraData||this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.resetViewableIndices()});var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,e=>{e.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,t,n,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:n,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach(e=>{e.measureLayoutRelativeToContainingList()}))},e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")})}catch(e){console.warn("measureLayoutRelativeToContainingList threw an error",e.stack)}}_getFooterCellKey(){return this._getCellKey()+"-footer"}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],n=this.props.getItemCount(this.props.data),r=0;r<n;r++){var i=this.__getFrameMetricsApprox(r,this.props);i.inLayout&&t.push(i)}var o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,a=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),s=a.offset+a.length-o,l=this._scrollMetrics.offset,u=this._scrollMetrics.visibleLength;return k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlay]},t.map((t,n)=>k.createElement(R.A,{key:"f"+n,style:[Re.debugOverlayBase,Re.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]})),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameLast,{top:o*e,height:s*e}]}),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameVis,{top:l*e,height:u*e}]}))}_selectLength(e){return Se(this.props.horizontal)?e.width:e.height}_selectOffset(e){return Se(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,n=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,o=e.onEndReached,a=e.onEndReachedThreshold,s=e.initialScrollIndex,l=this._scrollMetrics,u=l.contentLength,c=l.visibleLength,d=l.offset,h=d,f=u-c-d;h<.001&&(h=0),f<.001&&(f=0);var p=h<=(null!=i?i*c:2),m=f<=(null!=a?a*c:2);o&&this.state.cellsAroundViewport.last===n(t)-1&&m&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,o({distanceFromEnd:f})):null!=r&&0===this.state.cellsAroundViewport.first&&p&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?s&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:h})):(this._sentStartForContentLength=p?this._sentStartForContentLength:0,this._sentEndForContentLength=m?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,n=e.last,r=this._scrollMetrics,i=r.offset,o=r.visibleLength,a=r.velocity,s=this.props.getItemCount(this.props.data),l=!1,u=function(e){return null!=e?e:2}(this.props.onStartReachedThreshold),c=Ee(this.props.onEndReachedThreshold);if(t>0){var d=i-this.__getFrameMetricsApprox(t,this.props).offset;l=d<0||a<-2&&d<Ce(u,o)}if(!l&&n>=0&&n<s-1){var h=this.__getFrameMetricsApprox(n,this.props).offset-(i+o);l=h<0||a>2&&h<Ce(c,o)}if(l&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,t){this._viewabilityTuples.forEach(n=>{n.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,n.onViewableItemsChanged,t)})}}Ae.contextType=he;var Re=T.A.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}});const Te=Ae;var Pe=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Oe(e,t){return e===t||!(!Pe(e)||!Pe(t))}function Ie(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Oe(e[n],t[n]))return!1;return!0}var Ne=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function Le(e){return null!=e?e:1}class De extends k.PureComponent{scrollToEnd(e){this._listRef&&this._listRef.scrollToEnd(e)}scrollToIndex(e){this._listRef&&this._listRef.scrollToIndex(e)}scrollToItem(e){this._listRef&&this._listRef.scrollToItem(e)}scrollToOffset(e){this._listRef&&this._listRef.scrollToOffset(e)}recordInteraction(){this._listRef&&this._listRef.recordInteraction()}flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()}getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()}getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()}getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()}constructor(e){super(e),this._virtualizedListPairs=[],this._captureRef=e=>{this._listRef=e},this._getItem=(e,t)=>{var n=Le(this.props.numColumns);if(n>1){for(var r=[],i=0;i<n;i++){var o=t*n+i;if(o<e.length){var a=e[o];r.push(a)}}return r}return e[t]},this._getItemCount=e=>{if(null!=e&&function(e){return"number"==typeof Object(e).length}(e)){var t=Le(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ve;return r>1?(I()(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map((e,n)=>i(e,t*r+n)).join(":")):i(e,t)},this._renderer=(e,t,n,r,i)=>{var o=Le(r),a=n=>e?k.createElement(e,n):t?t(n):null,s=e=>{if(o>1){var t=e.item,r=e.index;return I()(Array.isArray(t),"Expected array of items with numColumns > 1"),k.createElement(R.A,{style:[Me.row,n]},t.map((t,n)=>{var i=a({item:t,index:r*o+n,separators:e.separators});return null!=i?k.createElement(k.Fragment,{key:n},i):null}))}return a(e)};return e?{ListItemComponent:s}:{renderItem:s}},this._memoizedRenderer=function(e,t){void 0===t&&(t=Ie);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){I()(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),I()(e.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),I()(!P(e.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),I()(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,"Changing viewabilityConfigCallbackPairs on the fly is not supported"),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,n=e.getItemCount,r=e.horizontal,i=e.columnWrapperStyle,o=e.onViewableItemsChanged,a=e.viewabilityConfigCallbackPairs,s=Le(this.props.numColumns);I()(!t&&!n,"FlatList does not support custom data formats."),s>1?I()(!r,"numColumns does not support horizontal."):I()(!i,"columnWrapperStyle not supported for single column lists"),I()(!(o&&a),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,t){var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ve;t.item.forEach((n,o)=>{I()(null!=t.index,"Missing index!");var a=t.index*r+o;e.push((0,x.A)((0,x.A)({},t),{},{item:n,key:i(n,a),index:a}))})}_createOnViewableItemsChanged(e){return t=>{var n=Le(this.props.numColumns);if(e)if(n>1){var r=[],i=[];t.viewableItems.forEach(e=>this._pushMultiColumnViewable(i,e)),t.changed.forEach(e=>this._pushMultiColumnViewable(r,e)),e({viewableItems:i,changed:r})}else e(t)}}render(){var e,t=this.props,n=t.numColumns,r=t.columnWrapperStyle,i=t.removeClippedSubviews,o=t.strictMode,a=void 0!==o&&o,s=(0,A.A)(t,Ne),l=a?this._memoizedRenderer:this._renderer;return k.createElement(Te,(0,C.A)({},s,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=i,null!=e?e:"android"===E.A.OS)},l(this.props.ListItemComponent,this.props.renderItem,r,n,this.props.extraData)))}}var Me=T.A.create({row:{flexDirection:"row"}});const Fe=De;var Ve=n(5725);class ze{constructor(e){"ios"===E.A.OS&&(I()(null!=e,"`new NativeEventEmitter()` requires a non-null argument."),this._nativeModule=e)}addListener(e,t,n){var r;null==(r=this._nativeModule)||r.addListener(e);var i=Ve.A.addListener(e,t,n);return{remove:()=>{var e;null!=i&&(null==(e=this._nativeModule)||e.removeListeners(1),i.remove(),i=null)}}}removeListener(e,t){var n;null==(n=this._nativeModule)||n.removeListeners(1),Ve.A.removeListener(e,t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ve.A.emit(e,...n)}removeAllListeners(e){var t;I()(null!=e,"`NativeEventEmitter.removeAllListener()` requires a non-null argument."),null==(t=this._nativeModule)||t.removeListeners(this.listenerCount(e)),Ve.A.removeAllListeners(e)}listenerCount(e){return Ve.A.listenerCount(e)}}const je=E.A,Be=()=>!1,He=()=>!1;var $e,We=("ios"===je.OS&&n.g.RN$Bridgeless,null),Ue=1,Ke=1,qe=new Set,Ye=!1,Ge=[];"android"===je.OS&&null!=We&&We.queueAndExecuteBatchedOperations&&He();var Xe=null,Je=We,Qe={getValue:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.getValue,e,t)},setWaitingForIdentifier:function(e){qe.add(e),Ye=!0,Be()&&Xe&&clearTimeout(Xe)},unsetWaitingForIdentifier:function(e){qe.delete(e),0===qe.size&&(Ye=!1,Qe.disableQueue())},disableQueue:function(){I()(Je,"Native animated module is not available"),Be()?(clearImmediate(Xe),Xe=setImmediate(Qe.flushQueue)):Qe.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ye||0!==Ge.length?Ge.push(()=>e(...n)):e(...n)},createAnimatedNode:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){I()(Je,"Native animated module is not available")},startListeningToAnimatedNodeValue:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,r){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.startAnimatingNode,e,t,n,r)},stopAnimation:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.stopAnimation,e)},setAnimatedNodeValue:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){I()(Je,"Native animated module is not available"),null!=Je.restoreDefaultValues&&Qe.queueOperation(Je.restoreDefaultValues,e)},dropAnimatedNode:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.addAnimatedEventToView,e,t,n)},removeAnimatedEventFromView(e,t,n){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.removeAnimatedEventFromView,e,t,n)}},Ze={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},et=(0,x.A)((0,x.A)({},Ze),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),tt={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},nt={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function rt(e){return et.hasOwnProperty(e)}function it(e){return tt.hasOwnProperty(e)}function ot(e){return nt.hasOwnProperty(e)}function at(){return Ke++}var st=!1;function lt(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||We?e.useNativeDriver||!1:(st||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),st=!0),!1)}const ut={API:Qe,isSupportedColorStyleProp:function(e){return Ze.hasOwnProperty(e)},isSupportedStyleProp:rt,isSupportedTransformProp:it,isSupportedInterpolationParam:ot,addWhitelistedStyleProp:function(e){et[e]=!0},addWhitelistedTransformProp:function(e){tt[e]=!0},addWhitelistedInterpolationParam:function(e){nt[e]=!0},validateStyles:function(e){for(var t in e)if(!rt(t))throw new Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach(e=>{if(!it(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})},validateInterpolation:function(e){for(var t in e)if(!ot(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return Ue++},generateNewAnimationId:at,assertNativeAnimatedModule:function(){I()(We,"Native animated module is not available")},shouldUseNativeDriver:lt,transformDataType:function(e){return"string"!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e},get nativeEventEmitter(){return $e||($e=new ze("ios"!==je.OS?null:We)),$e}};var ct=ut.API,dt=1;const ht=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(ut.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(dt++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),ct.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=ut.nativeEventEmitter.addListener("onAnimatedValueUpdate",e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,ct.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;ut.assertNativeAnimatedModule(),I()(this.__isNative,'Attempt to get native tag from node not marked as "native"');var t=null!==(e=this.__nativeTag)&&void 0!==e?e:ut.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=t;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),ut.API.createAnimatedNode(t,n),this.__shouldUpdateListenersForNewNativeTag=!0}return t}__getNativeConfig(){throw new Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}},ft=class extends ht{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__makeNative(e),ut.API.connectAnimatedNodes(this.__getNativeTag(),r.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),ut.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&ut.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__getValue&&r.__callListeners(r.__getValue())}}};var pt=n(1515),mt=n.n(pt),gt=e=>e;function vt(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return function(e){var t=e.outputRange;I()(t.length>=2,"Bad output range"),function(e){for(var t=e[0].replace(bt,""),n=1;n<e.length;++n)I()(t===e[n].replace(bt,""),"invalid pattern "+e[0]+" and "+e[n])}(t=t.map(yt));var n=t[0].match(bt).map(()=>[]);t.forEach(e=>{e.match(bt).forEach((e,t)=>{n[t].push(+e)})});var r,i=t[0].match(bt).map((t,r)=>vt((0,x.A)((0,x.A)({},e),{},{outputRange:n[r]}))),o="string"==typeof(r=t[0])&&r.startsWith("rgb");return e=>{var n=0;return t[0].replace(bt,()=>{var t=+i[n++](e);return o&&(t=n<4?Math.round(t):Math.round(1e3*t)/1e3),String(t)})}}(e);var t=e.outputRange,n=e.inputRange,r=e.easing||gt,i="extend";void 0!==e.extrapolateLeft?i=e.extrapolateLeft:void 0!==e.extrapolate&&(i=e.extrapolate);var o="extend";return void 0!==e.extrapolateRight?o=e.extrapolateRight:void 0!==e.extrapolate&&(o=e.extrapolate),e=>{I()("number"==typeof e,"Cannot interpolation an input which is not a number");var a=function(e,t){var n;for(n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,n);return function(e,t,n,r,i,o,a,s){var l=e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,n[a],n[a+1],t[a],t[a+1],r,i,o)}}function yt(e){var t=mt()(e);return null===t||"number"!=typeof t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var bt=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;class _t extends ft{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=vt(t)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return I()("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new _t(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(ut.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}_t.__createInterpolation=vt;const wt=_t;var St=ut.API;const xt=class extends ft{constructor(e,t){if(super(),"number"!=typeof e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null,t&&t.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&St.getValue(this.__getNativeTag(),e=>{this._value=e-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){var t,n;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&(t=this.__getNativeTag().toString(),n=()=>St.setAnimatedNodeValue(this.__getNativeTag(),e),St.setWaitingForIdentifier(t),n(),St.unsetWaitingForIdentifier(t))}setOffset(e){this._offset=e,this.__isNative&&St.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&St.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&St.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?St.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&St.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new wt(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=Z.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,e=>{this._updateValue(e,!0)},e=>{this._animation=null,null!==n&&Z.clearInteractionHandle(n),t&&t(e)},r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,t){if(void 0===e)throw new Error("AnimatedValue: Attempting to set value to undefined");var n;this._value=e,t&&(n=new Set,function e(t){"function"==typeof t.update?n.add(t):t.__getChildren().forEach(e)}(this),n.forEach(e=>e.update())),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}};function Et(e,t,n){var r=[],i=(e,t)=>{if(e instanceof xt)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if("object"==typeof e)for(var n in e)i(e[n],t.concat(n))};return I()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]),null!=e&&r.forEach(n=>{ut.API.addAnimatedEventToView(e,t,n)}),{detach(){null!=e&&r.forEach(n=>{ut.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)})}}}class Ct{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn("Animated.event now requires a second argument for options"),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=lt(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){I()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=Et(e,t,this._argMapping)}__detach(e,t){I()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;return this.__isNative?this._callListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(e,t,n)=>{if(e instanceof xt)"number"==typeof t&&e.setValue(t);else if("object"==typeof e)for(var r in e)i(e[r],t[r],r)};e._argMapping.forEach((e,t)=>{i(e,n[t],"arg"+t)}),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._listeners.forEach(e=>e(...t))}}const kt=class extends ft{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ht?r.__getValue():r}return t})}__getAnimatedValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ht?r.__getAnimatedValue():r}return t})}__attach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(t=>{for(var n in t){var r=t[n];r instanceof ht?e.push({type:"animated",property:n,nodeTag:r.__getNativeTag()}):e.push({type:"static",property:n,value:ut.transformDataType(r)})}}),ut.validateTransform(e),{type:"transform",transforms:e}}};var At=T.A.flatten;function Rt(e){var t=At(e),n={};for(var r in t){var i=t[r];"transform"===r&&Array.isArray(i)?n[r]=new kt(i):i instanceof ht?n[r]=i:i&&!Array.isArray(i)&&"object"==typeof i&&(n[r]=Rt(i))}return n}const Tt=class extends ft{constructor(e){super(),this._inputStyle=e,this._style=Rt(e)}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof ht?r.__isNative||(t[n]=r.__getValue()):r&&!Array.isArray(r)&&"object"==typeof r?t[n]=this._walkStyleAndGetValues(r):t[n]=r}return t}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof ht?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&"object"==typeof r&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof ht){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return ut.validateStyles(e),{type:"style",style:e}}},Pt=class extends ht{constructor(e,t){super(),e.style&&(e=(0,x.A)((0,x.A)({},e),{},{style:new Tt(e.style)})),this._props=e,this._callback=t,this.__attach()}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht?(!n.__isNative||n instanceof Tt)&&(e[t]=n.__getValue()):e[t]=n instanceof Ct?n.__getHandler():n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof ht&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var t=this._props[e];t instanceof ht&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof ht&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){I()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;I()(null!=e,"Unable to locate attached view in the native tree"),ut.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){I()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;I()(null!=e,"Unable to locate attached view in the native tree"),ut.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&ut.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:"props",props:e}}};var Ot=n(8425);function It(e){return(0,x.A)((0,x.A)({},e.__getValue()),{},{collapsable:!1})}var Nt=["style"];function Lt(e){return k.forwardRef((t,n)=>{var r=function(e){var t=(0,k.useReducer)(e=>e+1,0)[1],n=(0,k.useRef)(null),r=(0,k.useMemo)(()=>new Pt(e,()=>null==n.current?void 0:n.current()),[e]);!function(e){var t=(0,k.useRef)(null),n=(0,k.useRef)(!1);(0,k.useEffect)(()=>{ut.API.flushQueue()}),(0,Ot.A)(()=>(n.current=!1,()=>{n.current=!0}),[]),(0,Ot.A)(()=>{if(e.__attach(),null!=t.current){var r=t.current;r.__restoreDefaultValues(),r.__detach(),t.current=null}return()=>{n.current?e.__detach():t.current=e}},[e])}(r);var i,o,a=(0,k.useCallback)(i=>{r.setNativeView(i),n.current=()=>{t()};var o=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}(i),a=[];for(var s in e){var l=e[s];l instanceof Ct&&l.__isNative&&(l.__attach(o,s),a.push([s,l]))}return()=>{n.current=null;for(var e=0,t=a;e<t.length;e++){var r=t[e],i=r[0];r[1].__detach(o,i)}}},[e,r]),s=(i=a,o=(0,k.useRef)(void 0),(0,k.useCallback)(e=>{o.current&&(o.current(),o.current=void 0),null!=e&&(o.current=i(e))},[i]));return[It(r),s]}(t),i=r[0],o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,k.useCallback)(e=>{for(var n=0,r=t;n<r.length;n++){var i=r[n];null!=i&&("function"==typeof i?i(e):i.current=e)}},[...t])}(r[1],n),a=i.passthroughAnimatedPropExplicitValues,s=i.style,l=null!=a?a:{},u=l.style,c=(0,A.A)(l,Nt),d=[s,u];return k.createElement(e,(0,C.A)({},i,c,{style:d,ref:o}))})}const Dt=Lt(k.forwardRef((e,t)=>k.createElement(Fe,(0,C.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var Mt=n(728);const Ft=Lt(Mt.A),Vt=Lt(k.forwardRef((e,t)=>k.createElement(F.A,(0,C.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var zt=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class jt extends k.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var n=this._subExtractor(t);return n&&n.key||String(t)},this._convertViewable=e=>{var t;I()(null!=e.index,"Received a broken ViewToken");var n=this._subExtractor(e.index);if(!n)return null;var r=n.section.keyExtractor,i=this.props.keyExtractor||ve,o=null!=r?r(e.item,n.index):i(e.item,null!==(t=n.index)&&void 0!==t?t:0);return(0,x.A)((0,x.A)({},e),{},{index:n.index,key:o,section:n.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,n=e.changed,r=this.props.onViewableItemsChanged;null!=r&&r({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var n=t.item,r=t.index,i=this._subExtractor(r);if(!i)return null;var o=i.index;if(null==o){var a=i.section;if(!0===i.header){var s=this.props.renderSectionHeader;return s?s({section:a}):null}var l=this.props.renderSectionFooter;return l?l({section:a}):null}var u=i.section.renderItem||this.props.renderItem,c=this._getSeparatorComponent(r,i,e);return I()(u,"no renderItem!"),k.createElement(Bt,{SeparatorComponent:c,LeadingSeparatorComponent:0===o?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:o,item:n,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(r-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:u,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var n=this._updatePropsMap[e];null!=n&&n(t)},this._updateHighlightFor=(e,t)=>{var n=this._updateHighlightMap[e];null!=n&&n(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,n=0;n<e.sectionIndex;n++)t+=this.props.getItemCount(this.props.sections[n].data)+2;var r=e.viewOffset||0;if(null!=this._listRef){e.itemIndex>0&&this.props.stickySectionHeadersEnabled&&(r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length);var i=(0,x.A)((0,x.A)({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}getListRef(){return this._listRef}render(){for(var e,t=this.props,n=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,A.A)(t,zt)),r=this.props.ListHeaderComponent?1:0,i=this.props.stickySectionHeadersEnabled?[]:void 0,o=0,a=L(this.props.sections);!(e=a()).done;){var s=e.value;null!=i&&i.push(o+r),o+=2,o+=this.props.getItemCount(s.data)}var l=this._renderItem(o);return k.createElement(Te,(0,C.A)({},n,{keyExtractor:this._keyExtractor,stickyHeaderIndices:i,renderItem:l,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>o,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,n){if(!t)return null;for(var r=n-1,i=0;i<t.length;i++){var o=t[i],a=o.data,s=e.getItemCount(a);if(-1===r||r===s)return o;if(r<s)return e.getItem(a,r);r-=s+2}return null}_subExtractor(e){for(var t=e,n=this.props,r=n.getItem,i=n.getItemCount,o=n.keyExtractor,a=n.sections,s=0;s<a.length;s++){var l=a[s],u=l.data,c=l.key||String(s);if(!((t-=1)>=i(u)+1))return-1===t?{section:l,key:c+":header",index:null,header:!0,trailingSection:a[s+1]}:t===i(u)?{section:l,key:c+":footer",index:null,header:!1,trailingSection:a[s+1]}:{section:l,key:c+":"+(l.keyExtractor||o||ve)(r(u,t),t),index:t,leadingItem:r(u,t-1),leadingSection:a[s-1],trailingItem:r(u,t+1),trailingSection:a[s+1]};t-=i(u)+1}}_getSeparatorComponent(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}function Bt(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,r=e.cellKey,i=e.prevCellKey,o=e.setSelfHighlightCallback,a=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,l=e.updatePropsFor,u=e.item,c=e.index,d=e.section,h=e.inverted,f=k.useState(!1),p=f[0],m=f[1],g=k.useState(!1),v=g[0],y=g[1],b=k.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),_=b[0],w=b[1],S=k.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),E=S[0],A=S[1];k.useEffect(()=>(o(r,y),s(r,A),()=>{s(r,null),o(r,null)}),[r,o,A,s]);var T={highlight:()=>{m(!0),y(!0),null!=i&&a(i,!0)},unhighlight:()=>{m(!1),y(!1),null!=i&&a(i,!1)},updateProps:(e,r)=>{"leading"===e?null!=t?w((0,x.A)((0,x.A)({},_),r)):null!=i&&l(i,(0,x.A)((0,x.A)({},_),r)):"trailing"===e&&null!=n&&A((0,x.A)((0,x.A)({},E),r))}},P=e.renderItem({item:u,index:c,section:d,separators:T}),O=null!=t&&k.createElement(t,(0,C.A)({highlighted:p},_)),I=null!=n&&k.createElement(n,(0,C.A)({highlighted:v},E));return O||I?k.createElement(R.A,null,!1===h?O:I,P,!1===h?I:O):P}const Ht=jt;var $t=["stickySectionHeadersEnabled"];class Wt extends k.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,n=(0,A.A)(e,$t),r=null!=t?t:"ios"===E.A.OS;return k.createElement(Ht,(0,C.A)({},n,{stickySectionHeadersEnabled:r,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}const Ut=Wt,Kt=Lt(k.forwardRef((e,t)=>k.createElement(Ut,(0,C.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var qt=n(8506);const Yt=Lt(qt.A),Gt=Lt(R.A),Xt=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Jt=class extends ft{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new wt(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}},Qt=class extends ft{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof ht&&0===t.__getValue())&&console.error("Detected potential division by zero in AnimatedDivision"),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Zt=class extends ft{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}},en=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},tn=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},nn=class extends ht{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=lt(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,x.A)((0,x.A)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass((0,x.A)((0,x.A)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:"tracking",animationId:at(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}};var rn=1;const on=class extends ft{constructor(e){super();var t=e||{x:0,y:0};"number"==typeof t.x&&"number"==typeof t.y?(this.x=new xt(t.x),this.y=new xt(t.y)):(I()(t.x instanceof xt&&t.y instanceof xt,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(rn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}};var an=1;const sn=class{start(e,t,n,r,i){}stop(){this.__nativeId&&ut.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error("This animation type cannot be offloaded to native")}__debouncedOnEnd(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)}__startNativeAnimation(e){var t=an+":startAnimation";an+=1,ut.API.setWaitingForIdentifier(t);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=ut.generateNewAnimationId(),ut.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(e){throw e}finally{ut.API.unsetWaitingForIdentifier(t)}}},ln=class extends sn{constructor(e){var t,n,r;super(),this._deceleration=null!==(t=e.deceleration)&&void 0!==t?t:.998,this._velocity=e.velocity,this._useNativeDriver=lt(e),this.__isInteraction=null!==(n=e.isInteraction)&&void 0!==n?n:!this._useNativeDriver,this.__iterations=null!==(r=e.iterations)&&void 0!==r?r:1}__getNativeAnimationConfig(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,t,n,r,i){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));this._onUpdate(t),Math.abs(this._lastValue-t)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};function un(e){return 3.62*(e-30)+194}function cn(e){return 3*(e-8)+25}const dn=function(e,t){return{stiffness:un(e),damping:cn(t)}},hn=function(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}var i=n(e/1.7,0,20);i=r(i,0,.8);var o,a,s,l=r(n(t/1.7,0,20),.5,200),u=function(e,t){return.01*e+(1-e)*t}(2*(o=i)-o*o,(a=l)<=18?(s=a,7e-4*Math.pow(s,3)-.031*Math.pow(s,2)+.64*s+1.28):a>18&&a<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(a):function(e){return 45e-8*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(a));return{stiffness:un(l),damping:cn(u)}};class fn extends sn{constructor(e){var t,n,r,i,o,a,s,l,u,c,d;if(super(),this._overshootClamping=null!==(t=e.overshootClamping)&&void 0!==t&&t,this._restDisplacementThreshold=null!==(n=e.restDisplacementThreshold)&&void 0!==n?n:.001,this._restSpeedThreshold=null!==(r=e.restSpeedThreshold)&&void 0!==r?r:.001,this._initialVelocity=null!==(i=e.velocity)&&void 0!==i?i:0,this._lastVelocity=null!==(o=e.velocity)&&void 0!==o?o:0,this._toValue=e.toValue,this._delay=null!==(a=e.delay)&&void 0!==a?a:0,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(s=e.isInteraction)&&void 0!==s?s:!this._useNativeDriver,this.__iterations=null!==(l=e.iterations)&&void 0!==l?l:1,void 0!==e.stiffness||void 0!==e.damping||void 0!==e.mass)I()(void 0===e.bounciness&&void 0===e.speed&&void 0===e.tension&&void 0===e.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),this._stiffness=null!==(u=e.stiffness)&&void 0!==u?u:100,this._damping=null!==(c=e.damping)&&void 0!==c?c:10,this._mass=null!==(d=e.mass)&&void 0!==d?d:1;else if(void 0!==e.bounciness||void 0!==e.speed){var h,f;I()(void 0===e.tension&&void 0===e.friction&&void 0===e.stiffness&&void 0===e.damping&&void 0===e.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var p=hn(null!==(h=e.bounciness)&&void 0!==h?h:8,null!==(f=e.speed)&&void 0!==f?f:12);this._stiffness=p.stiffness,this._damping=p.damping,this._mass=1}else{var m,g,v=dn(null!==(m=e.tension)&&void 0!==m?m:40,null!==(g=e.friction)&&void 0!==g?g:7);this._stiffness=v.stiffness,this._damping=v.damping,this._mass=1}I()(this._stiffness>0,"Stiffness value must be greater than 0"),I()(this._damping>0,"Damping value must be greater than 0"),I()(this._mass>0,"Mass value must be greater than 0")}__getNativeAnimationConfig(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(e=this._initialVelocity)&&void 0!==e?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=t,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,r instanceof fn){var o=r.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var a=()=>{this._useNativeDriver?this.__startNativeAnimation(i):this.onUpdate()};this._delay?this._timeout=setTimeout(a,this._delay):a()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=Date.now();e>this._lastTime+64&&(e=this._lastTime+64);var t=(e-this._lastTime)/1e3;this._frameTime+=t;var n=this._damping,r=this._mass,i=this._stiffness,o=-this._initialVelocity,a=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),l=s*Math.sqrt(1-a*a),u=this._toValue-this._startPosition,c=0,d=0,h=this._frameTime;if(a<1){var f=Math.exp(-a*s*h);c=this._toValue-f*((o+a*s*u)/l*Math.sin(l*h)+u*Math.cos(l*h)),d=a*s*f*(Math.sin(l*h)*(o+a*s*u)/l+u*Math.cos(l*h))-f*(Math.cos(l*h)*(o+a*s*u)-l*u*Math.sin(l*h))}else{var p=Math.exp(-s*h);c=this._toValue-p*(u+(o+s*u)*h),d=p*(o*(h*s-1)+h*u*(s*s))}if(this._lastTime=e,this._lastPosition=c,this._lastVelocity=d,this._onUpdate(c),this.__active){var m=!1;this._overshootClamping&&0!==this._stiffness&&(m=this._startPosition<this._toValue?c>this._toValue:c<this._toValue);var g=Math.abs(d)<=this._restSpeedThreshold,v=!0;if(0!==this._stiffness&&(v=Math.abs(this._toValue-c)<=this._restDisplacementThreshold),m||g&&v)return 0!==this._stiffness&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),void this.__debouncedOnEnd({finished:!0});this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}const pn=fn;var mn,gn=.1,vn="function"==typeof Float32Array;function yn(e,t){return 1-3*t+3*e}function bn(e,t){return 3*t-6*e}function _n(e){return 3*e}function wn(e,t,n){return((yn(t,n)*e+bn(t,n))*e+_n(t))*e}function Sn(e,t,n){return 3*yn(t,n)*e*e+2*bn(t,n)*e+_n(t)}function xn(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var i=vn?new Float32Array(11):new Array(11);if(e!==t||n!==r)for(var o=0;o<11;++o)i[o]=wn(o*gn,e,n);return function(o){return e===t&&n===r?o:0===o?0:1===o?1:wn(function(t){for(var r=0,o=1;10!==o&&i[o]<=t;++o)r+=gn;--o;var a=r+(t-i[o])/(i[o+1]-i[o])*gn,s=Sn(a,e,n);return s>=.001?function(e,t,n,r){for(var i=t,o=0;o<4;++o){var a=Sn(i,n,r);if(0===a)return i;i-=(wn(i,n,r)-e)/a}return i}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0,l=t,u=n;do{(o=wn(a=l+(u-l)/2,r,i)-e)>0?u=a:l=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+gn,e,n)}(o),t,r)}}class En{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return mn||(mn=En.bezier(.42,0,1,1)),mn(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>Math.pow(t,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){void 0===e&&(e=1);var t=e*Math.PI;return e=>1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}static back(e){return void 0===e&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){return xn(e,t,n,r)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e(2*(1-t))/2}}const Cn=En;var kn;const An=class extends sn{constructor(e){var t,n,r,i,o;super(),this._toValue=e.toValue,this._easing=null!==(t=e.easing)&&void 0!==t?t:(kn||(kn=Cn.inOut(Cn.ease)),kn),this._duration=null!==(n=e.duration)&&void 0!==n?n:500,this._delay=null!==(r=e.delay)&&void 0!==r?r:0,this.__iterations=null!==(i=e.iterations)&&void 0!==i?i:1,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(o=e.isInteraction)&&void 0!==o?o:!this._useNativeDriver}__getNativeAnimationConfig(){for(var e=[],t=Math.round(this._duration/(1e3/60)),n=0;n<t;n++)e.push(this._easing(n/t));return e.push(this._easing(1)),{type:"frames",frames:e,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var o=()=>{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(o,this._delay):o()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};var Rn=ut.API,Tn={r:0,g:0,b:0,a:1},Pn=1;function On(e){if(null==e)return null;if(In(e))return e;var t=mt()(e);if(null==t)return null;if("object"==typeof t){if(null!=t)return t}else if("number"==typeof t)return{r:(4278190080&t)>>>24,g:(16711680&t)>>>16,b:(65280&t)>>>8,a:(255&t)/255};return null}function In(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}class Nn extends ft{constructor(e,t){super(),this._listeners={};var n=null!=e?e:Tn;if(function(e){return e&&e.r instanceof xt&&e.g instanceof xt&&e.b instanceof xt&&e.a instanceof xt}(n)){var r=n;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var i,o=null!==(i=On(n))&&void 0!==i?i:Tn,a=Tn;In(o)?a=o:this.nativeColor=o,this.r=new xt(a.r),this.g=new xt(a.g),this.b=new xt(a.b),this.a=new xt(a.a)}(this.nativeColor||t&&t.useNativeDriver)&&this.__makeNative()}setValue(e){var t,n=!1;if(this.__isNative){var r=this.__getNativeTag();Rn.setWaitingForIdentifier(r.toString())}var i=null!==(t=On(e))&&void 0!==t?t:Tn;if(In(i)){var o=i;this.r.setValue(o.r),this.g.setValue(o.g),this.b.setValue(o.b),this.a.setValue(o.a),null!=this.nativeColor&&(this.nativeColor=null,n=!0)}else{var a=i;this.nativeColor!==a&&(this.nativeColor=a,n=!0)}if(this.__isNative){var s=this.__getNativeTag();n&&Rn.updateAnimatedNodeConfig(s,this.__getNativeConfig()),Rn.unsetWaitingForIdentifier(s.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var t=String(Pn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},t}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}var Ln=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},Dn=function(e,t,n){if(e instanceof on){var r=(0,x.A)({},t),i=(0,x.A)({},t);for(var o in t){var a=t[o],s=a.x,l=a.y;void 0!==s&&void 0!==l&&(r[o]=s,i[o]=l)}var u=n(e.x,r),c=n(e.y,i);return Vn([u,c],{stopTogether:!1})}if(e instanceof Nn){var d=(0,x.A)({},t),h=(0,x.A)({},t),f=(0,x.A)({},t),p=(0,x.A)({},t);for(var m in t){var g=t[m],v=g.r,y=g.g,b=g.b,_=g.a;void 0!==v&&void 0!==y&&void 0!==b&&void 0!==_&&(d[m]=v,h[m]=y,f[m]=b,p[m]=_)}var w=n(e.r,d),S=n(e.g,h),E=n(e.b,f),C=n(e.a,p);return Vn([w,S,E,C],{stopTogether:!1})}return null},Mn=function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ht?r.track(new nn(r,t.toValue,An,i,n)):r.animate(new An(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},Fn=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start(function r(i){i.finished&&++t!==e.length?e[t].start(r):n&&n(i)})},stop:function(){t<e.length&&e[t].stop()},reset:function(){e.forEach((e,n)=>{n<=t&&e.reset()}),t=0},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},Vn=function(e,t){var n=0,r={},i=!(t&&!1===t.stopTogether),o={start:function(t){n!==e.length?e.forEach((a,s)=>{var l=function(a){if(r[s]=!0,++n===e.length)return n=0,void(t&&t(a));!a.finished&&i&&o.stop()};a?a.start(l):l({finished:!0})}):t&&t({finished:!0})},stop:function(){e.forEach((e,t)=>{!r[t]&&e.stop(),r[t]=!0})},reset:function(){e.forEach((e,t)=>{e.reset(),r[t]=!1,n=0})},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return o},zn=function(e){return Mn(new xt(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})};const jn={Value:xt,ValueXY:on,Color:Nn,Interpolation:wt,Node:ht,decay:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),r.animate(new ln(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},timing:Mn,spring:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ht?r.track(new nn(r,t.toValue,pn,i,n)):r.animate(new pn(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},add:function(e,t){return new Xt(e,t)},subtract:function(e,t){return new tn(e,t)},divide:function(e,t){return new Qt(e,t)},multiply:function(e,t){return new en(e,t)},modulo:function(e,t){return new Zt(e,t)},diffClamp:function(e,t,n){return new Jt(e,t,n)},delay:zn,sequence:Fn,parallel:Vn,stagger:function(e,t){return Vn(t.map((t,n)=>Fn([zn(e*n),t])))},loop:function(e,t){var n=void 0===t?{}:t,r=n.iterations,i=void 0===r?-1:r,o=n.resetBeforeIteration,a=void 0===o||o,s=!1,l=0;return{start:function(t){e&&0!==i?e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){void 0===r&&(r={finished:!0}),s||l===i||!1===r.finished?t&&t(r):(l++,a&&e.reset(),e.start(n))}():t&&t({finished:!0})},stop:function(){s=!0,e.stop()},reset:function(){l=0,s=!1,e.reset()},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}},event:function(e,t){var n=new Ct(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:Lt,attachNativeEvent:Et,forkEvent:function(e,t){return e?e instanceof Ct?(e.__addListener(t),e):function(){"function"==typeof e&&e(...arguments),t(...arguments)}:t},unforkEvent:function(e,t){e&&e instanceof Ct&&e.__removeListener(t)},Event:Ct};var Bn=!1;function Hn(e){return t=>{var n=null==t?t:function(){if(Bn)console.warn("Ignoring recursive animation callback when running mock animations");else{Bn=!0;try{t(...arguments)}finally{Bn=!1}}};e(n)}}var $n={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},Wn=e=>(0,x.A)((0,x.A)({},$n),{},{start:Hn(t=>{e.forEach(e=>e.start()),null==t||t({finished:!0})})});const Un={Value:xt,ValueXY:on,Color:Nn,Interpolation:wt,Node:ht,decay:function(e,t){return $n},timing:function(e,t){var n=e;return(0,x.A)((0,x.A)({},$n),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},spring:function(e,t){var n=e;return(0,x.A)((0,x.A)({},$n),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},add:jn.add,subtract:jn.subtract,divide:jn.divide,multiply:jn.multiply,modulo:jn.modulo,diffClamp:jn.diffClamp,delay:function(e){return $n},sequence:function(e){return Wn(e)},parallel:function(e,t){return Wn(e)},stagger:function(e,t){return Wn(t)},loop:function(e,t){return(void 0===t?{}:t).iterations,$n},event:jn.event,createAnimatedComponent:Lt,attachNativeEvent:Et,forkEvent:jn.forkEvent,unforkEvent:jn.unforkEvent,Event:Ct};var Kn=E.A.isTesting?Un:jn;const qn=(0,x.A)({FlatList:Dt,Image:Ft,ScrollView:Vt,SectionList:Kt,Text:Yt,View:Gt},Kn);var Yn=g.A&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,Gn=new WeakMap;const Xn={getColorScheme:()=>Yn&&Yn.matches?"dark":"light",addChangeListener(e){var t=Gn.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?"dark":"light"})},Gn.set(e,t)),Yn&&Yn.addListener(t),{remove:function(){var t=Gn.get(e);Yn&&t&&Yn.removeListener(t),Gn.delete(e)}}}};var Jn=k.createContext(null),Qn=k.forwardRef((e,t)=>{var n=e.children,r=e.WrapperComponent,i=k.createElement(R.A,{children:n,key:1,style:tr.appContainer});return r&&(i=k.createElement(r,null,i)),k.createElement(Jn.Provider,{value:e.rootTag},k.createElement(R.A,{ref:t,style:tr.appContainer},i))});Qn.displayName="AppContainer";const Zn=Qn;var er,tr=T.A.create({appContainer:{flex:1,pointerEvents:"box-none"}}),nr={},rr={},ir=e=>e();class or{static getAppKeys(){return Object.keys(rr)}static getApplication(e,t){return I()(rr[e]&&rr[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),rr[e].getApplication(t)}static registerComponent(e,t){return rr[e]={getApplication:e=>{return n=ir(t),r=e?e.initialProps:nr,i=er&&er(e),{element:k.createElement(Zn,{WrapperComponent:i,rootTag:{}},k.createElement(n,r)),getStyleElement:e=>{var t=T.A.getSheet();return k.createElement("style",(0,C.A)({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}};var n,r,i},run:e=>{return n=ir(t),r=er&&er(e),i=e.callback,a=(o={hydrate:e.hydrate||!1,initialProps:e.initialProps||nr,mode:e.mode||"concurrent",rootTag:e.rootTag}).initialProps,s=o.mode,l=o.rootTag,u=o.hydrate?"concurrent"===s?c:h:"concurrent"===s?d:f,I()(l,"Expect to have a valid rootTag, instead got ",l),u(k.createElement(Zn,{WrapperComponent:r,ref:i,rootTag:l},k.createElement(n,a)),l);var n,r,i,o,a,s,l,u}},e}static registerConfig(e){e.forEach(e=>{var t=e.appKey,n=e.component,r=e.run;r?or.registerRunnable(t,r):(I()(n,"No component provider passed in"),or.registerComponent(t,n))})}static registerRunnable(e,t){return rr[e]={run:t},e}static runApplication(e,t){return I()(rr[e]&&rr[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),rr[e].run(t)}static setComponentProviderInstrumentationHook(e){ir=e}static setWrapperComponentProvider(e){er=e}static unmountApplicationComponentAtRootTag(e){l(e)}}var ar=g.A&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),sr=["change","memoryWarning"],lr=ar?"webkitvisibilitychange":"visibilitychange",ur=ar?"webkitVisibilityState":"visibilityState",cr="active",dr=null;class hr{static get currentState(){if(!hr.isAvailable)return cr;switch(document[ur]){case"hidden":case"prerender":case"unloaded":return"background";default:return cr}}static addEventListener(e,t){if(hr.isAvailable&&(I()(-1!==sr.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e))return dr||(dr=new V.A,document.addEventListener(lr,()=>{dr&&dr.emit("change",hr.currentState)},!1)),dr.addListener(e,t)}}function fr(){}hr.isAvailable=g.A&&!!document[ur];const pr={exitApp:fr,addEventListener:()=>(console.error("BackHandler is not supported on web and should not be used."),{remove:fr}),removeEventListener:fr};var mr;class gr{static isAvailable(){return void 0===mr&&(mr="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),mr}static getString(){return Promise.resolve("")}static setString(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var o=document.createRange();o.selectNodeContents(r),i.addRange(o);try{document.execCommand("copy"),t=!0}catch(e){}i.removeAllRanges(),n.removeChild(r)}return t}}var vr=n(3384);const yr={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})};var br=n(7068);function _r(e,t){E.A.isTesting||p.A.configureNextLayoutAnimation(e,null!=t?t:function(){},function(){})}function wr(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var Sr={easeInEaseOut:wr(300,"easeInEaseOut","opacity"),linear:wr(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}};const xr={configureNext:_r,create:wr,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:Sr,easeInEaseOut:_r.bind(null,Sr.easeInEaseOut),linear:_r.bind(null,Sr.linear),spring:_r.bind(null,Sr.spring)};var Er=g.A?window.location.href:"";const Cr=new class{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this._eventCallbacks[e];null!=i&&Array.isArray(i)&&i.map(e=>{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var r=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=r}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(Er)}openURL(e,t){1===arguments.length&&(t="_blank");try{return((e,t)=>{if(g.A){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}})(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){I()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),I()(e,"Invalid URL: cannot be empty")}},kr=ze;var Ar={centroidDimension:function(e,t,n,r){var i=e.touchBank,o=0,a=0,s=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==s)s.touchActive&&s.currentTimeStamp>t&&(o+=r&&n?s.currentPageX:r&&!n?s.currentPageY:!r&&n?s.previousPageX:s.previousPageY,a=1);else for(var l=0;l<i.length;l++){var u=i[l];null!=u&&u.touchActive&&u.currentTimeStamp>=t&&(o+=r&&n?u.currentPageX:r&&!n?u.currentPageY:!r&&n?u.previousPageX:u.previousPageY,a++)}return a>0?o/a:Ar.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return Ar.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return Ar.centroidDimension(e,0,!1,!0)},noCentroid:-1};const Rr=Ar;var Tr=Rr.currentCentroidXOfTouchesChangedAfter,Pr=Rr.currentCentroidYOfTouchesChangedAfter,Or=Rr.previousCentroidXOfTouchesChangedAfter,Ir=Rr.previousCentroidYOfTouchesChangedAfter,Nr=Rr.currentCentroidX,Lr=Rr.currentCentroidY,Dr={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Tr(t,e._accountsForMovesUpTo),e.moveY=Pr(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=Or(t,n),i=Tr(t,n),o=Ir(t,n),a=Pr(t,n),s=e.dx+(i-r),l=e.dy+(a-o),u=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(s-e.dx)/u,e.vy=(l-e.dy)/u,e.dx=s,e.dy=l,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&Dr._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:r=>(t.handle||(t.handle=Z.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=Nr(r.touchHistory),n.y0=Lr(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)),onResponderReject(r){Mr(t,e.onPanResponderReject,r,n)},onResponderRelease(r){Mr(t,e.onPanResponderRelease,r,n),Fr(t),Dr._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var i=r.touchHistory;n.numberActiveTouches=i.numberActiveTouches,Mr(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){Mr(t,e.onPanResponderTerminate,r,n),Fr(t),Dr._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function Mr(e,t,n,r){e.handle&&(Z.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function Fr(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}const Vr=Dr;var zr=n(9518);const jr=class{static share(e,t){return void 0===t&&(t={}),I()("object"==typeof e&&null!==e,"Content to share must be a valid object"),I()("string"==typeof e.url||"string"==typeof e.message,"At least one of URL and message is required"),I()("object"==typeof t&&null!==t,"Options must be a valid object"),I()(!e.title||"string"==typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}};var Br=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)};const Hr={cancel(){Br(0)},vibrate(e){void 0===e&&(e=400),Br(e)}};var $r=n(2869),Wr=n(6413),Ur=k.forwardRef((e,t)=>{var n=e.accessibilityLabel,r=e.color,i=e.disabled,o=e.onPress,a=e.testID,s=e.title;return k.createElement(Wr.A,{accessibilityLabel:n,accessibilityRole:"button",disabled:i,focusable:!i,onPress:o,ref:t,style:[Kr.button,r&&{backgroundColor:r},i&&Kr.buttonDisabled],testID:a},k.createElement(qt.A,{style:[Kr.text,i&&Kr.textDisabled]},s))});Ur.displayName="Button";var Kr=T.A.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}});const qr=Ur;var Yr=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],Gr=k.forwardRef((e,t)=>{var n=e["aria-readonly"],i=e.color,o=e.disabled,a=e.onChange,s=e.onValueChange,l=e.readOnly,u=e.style,c=e.value,d=(0,A.A)(e,Yr),h=k.createElement(R.A,{style:[Xr.fakeControl,c&&Xr.fakeControlChecked,c&&i&&{backgroundColor:i,borderColor:i},o&&Xr.fakeControlDisabled,c&&o&&Xr.fakeControlCheckedAndDisabled]}),f=(0,r.A)("input",{checked:c,disabled:o,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,a&&a(e),s&&s(t)},readOnly:!0===l||!0===n||!0===d.accessibilityReadOnly,ref:t,style:[Xr.nativeControl,Xr.cursorInherit],type:"checkbox"});return k.createElement(R.A,(0,C.A)({},d,{"aria-disabled":o,"aria-readonly":n,style:[Xr.root,u,o&&Xr.cursorDefault]}),h,f)});Gr.displayName="CheckBox";var Xr=T.A.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:(0,x.A)((0,x.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const Jr=Gr;var Qr=["children","style","imageStyle","imageRef"],Zr={},ei=(0,k.forwardRef)((e,t)=>{var n=e.children,r=e.style,i=void 0===r?Zr:r,o=e.imageStyle,a=e.imageRef,s=(0,A.A)(e,Qr),l=T.A.flatten(i),u=l.height,c=l.width;return k.createElement(R.A,{ref:t,style:i},k.createElement(Mt.A,(0,C.A)({},s,{ref:a,style:[{width:c,height:u,zIndex:-1},T.A.absoluteFill,o]})),n)});ei.displayName="ImageBackground";const ti=ei;var ni=n(5470);const ri=function(e){var t=e.children,n=k.useRef(null);if(g.A&&!n.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),n.current=r)}return k.useEffect(()=>{if(g.A)return()=>{document.body&&n.current&&(document.body.removeChild(n.current),n.current=null)}},[]),n.current&&g.A?i.createPortal(t,n.current):null};function ii(e,t){return"slide"===e?t?ai:si:"fade"===e?t?li:ui:t?oi.container:oi.hidden}var oi=T.A.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"300ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:"300ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),ai=[oi.container,oi.animatedIn,oi.slideIn],si=[oi.container,oi.animatedOut,oi.slideOut],li=[oi.container,oi.animatedIn,oi.fadeIn],ui=[oi.container,oi.animatedOut,oi.fadeOut];const ci=function(e){var t=e.animationType,n=e.children,i=e.onDismiss,o=e.onShow,a=e.visible,s=k.useState(!1),l=s[0],u=s[1],c=k.useRef(!1),d=k.useRef(!1),h=t&&"none"!==t,f=k.useCallback(e=>{e&&e.currentTarget!==e.target||(a?o&&o():u(!1))},[o,a]);return k.useEffect(()=>{d.current&&!l&&i&&i(),d.current=l},[l,i]),k.useEffect(()=>{a&&u(!0),a===c.current||h||f(),c.current=a},[h,a,f]),l||a?(0,r.A)("div",{style:l?ii(t,a):oi.hidden,onAnimationEnd:f,children:n}):null};var di=["active","children","onRequestClose","transparent"],hi=k.forwardRef((e,t)=>{var n=e.active,r=e.children,i=e.onRequestClose,o=e.transparent,a=(0,A.A)(e,di);k.useEffect(()=>{if(g.A){var e=e=>{n&&"Escape"===e.key&&(e.stopPropagation(),i&&i())};return document.addEventListener("keyup",e,!1),()=>document.removeEventListener("keyup",e,!1)}},[n,i]);var s=k.useMemo(()=>[fi.modal,o?fi.modalTransparent:fi.modalOpaque],[o]);return k.createElement(R.A,(0,C.A)({},a,{"aria-modal":!0,ref:t,role:n?"dialog":null,style:s}),k.createElement(R.A,{style:fi.container},r))}),fi=T.A.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}});const pi=hi;var mi=()=>(0,r.A)("div",{role:"none",tabIndex:0,style:_i.focusBracket});function gi(e){if(!g.A)return!1;try{e.focus()}catch(e){}return document.activeElement===e}function vi(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(gi(n)||vi(n))return!0}return!1}function yi(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(gi(n)||yi(n))return!0}return!1}const bi=e=>{var t=e.active,n=e.children,r=k.useRef(),i=k.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return k.useEffect(()=>{if(g.A){var e=()=>{if(null!=r.current&&!i.current.trapFocusInProgress&&t){try{if(i.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var e=vi(r.current);i.current.lastFocusedElement===document.activeElement&&(e=yi(r.current)),!e&&null!=r.current&&document.activeElement&&p.A.focus(r.current)}}finally{i.current.trapFocusInProgress=!1}i.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener("focus",e,!0),()=>document.removeEventListener("focus",e,!0)}},[t]),k.useEffect(function(){if(g.A){var e=document.activeElement;return function(){e&&document.contains(e)&&p.A.focus(e)}}},[]),k.createElement(k.Fragment,null,k.createElement(mi,null),k.createElement(R.A,{ref:r},n),k.createElement(mi,null))};var _i=T.A.create({focusBracket:{outlineStyle:"none"}}),wi=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],Si=0,xi=[],Ei={};function Ci(){if(0!==xi.length){var e=xi[xi.length-1];xi.forEach(t=>{t in Ei&&Ei[t](t===e)})}}function ki(e){e in Ei&&(Ei[e](!1),delete Ei[e]);var t=xi.indexOf(e);-1!==t&&(xi.splice(t,1),Ci())}const Ai=k.forwardRef((e,t)=>{var n=e.animationType,r=e.children,i=e.onDismiss,o=e.onRequestClose,a=e.onShow,s=e.transparent,l=e.visible,u=void 0===l||l,c=(0,A.A)(e,wi),d=k.useMemo(()=>Si++,[]),h=k.useState(!1),f=h[0],p=h[1],m=k.useCallback(()=>{ki(d),i&&i()},[d,i]),g=k.useCallback(()=>{!function(e,t){ki(e),xi.push(e),Ei[e]=t,Ci()}(d,p),a&&a()},[d,a]);return k.useEffect(()=>()=>ki(d),[d]),k.createElement(ri,null,k.createElement(ci,{animationType:n,onDismiss:m,onShow:g,visible:u},k.createElement(bi,{active:f},k.createElement(pi,(0,C.A)({},c,{active:f,onRequestClose:o,ref:t,transparent:s}),r))))});var Ri=n(1804),Ti=n(6177),Pi=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],Oi=k.forwardRef((e,t)=>{var n=e.children,i=e.enabled,o=e.onValueChange,a=e.selectedValue,s=e.style,l=e.testID,u=(e.itemStyle,e.mode,e.prompt,(0,A.A)(e,Pi)),c=k.useRef(null),d=(0,x.A)({children:n,disabled:!1===i||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;o&&o(r,n)},style:[Ii.initial,s],testID:l,value:a},u),h=(0,Ti.A)(d),f=(0,Ri.A)(c,h,t);return d.ref=f,(0,r.A)("select",d)});Oi.Item=function(e){var t=e.color,n=e.label,i=e.testID,o=e.value,a={color:t};return(0,r.A)("option",{children:n,style:a,testID:i,value:o})};var Ii=T.A.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}});const Ni=Oi;var Li=n(4129),Di=["color","indeterminate","progress","trackColor","style"],Mi=k.forwardRef((e,t)=>{var n=e.color,r=void 0===n?"#1976D2":n,i=e.indeterminate,o=void 0!==i&&i,a=e.progress,s=void 0===a?0:a,l=e.trackColor,u=void 0===l?"transparent":l,c=e.style,d=(0,A.A)(e,Di),h=100*s,f=o?"25%":h+"%";return k.createElement(R.A,(0,C.A)({},d,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o?null:h,ref:t,role:"progressbar",style:[Fi.track,c,{backgroundColor:u}]}),k.createElement(R.A,{style:[{backgroundColor:r,width:f},Fi.progress,o&&Fi.animation]}))});Mi.displayName="ProgressBar";var Fi=T.A.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}});const Vi=Mi;var zi=["style"],ji=g.A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",Bi=k.forwardRef((e,t)=>{var n=e.style,r=(0,A.A)(e,zi);return k.createElement(R.A,(0,C.A)({},r,{ref:t,style:[Hi.root,n]}))});Bi.displayName="SafeAreaView";var Hi=T.A.create({root:{paddingTop:ji+"(safe-area-inset-top)",paddingRight:ji+"(safe-area-inset-right)",paddingBottom:ji+"(safe-area-inset-bottom)",paddingLeft:ji+"(safe-area-inset-left)"}});const $i=Bi;var Wi=()=>{};function Ui(){return null}Ui.setBackgroundColor=Wi,Ui.setBarStyle=Wi,Ui.setHidden=Wi,Ui.setNetworkActivityIndicatorVisible=Wi,Ui.setTranslucent=Wi;const Ki=Ui;var qi=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;const Yi=(e,t)=>{var n;return"string"==typeof e?""+parseFloat(e)*t+e.match(qi)[1]:(n=e,!isNaN(parseFloat(n))&&isFinite(n)?e*t:void 0)};var Gi=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],Xi={},Ji="0px 1px 3px rgba(0,0,0,0.5)",Qi=Ji+", 0 0 0 10px rgba(0,0,0,0.1)",Zi="#D5D5D5",eo="#BDBDBD",to=k.forwardRef((e,t)=>{var n=e["aria-label"],i=e.accessibilityLabel,o=e.activeThumbColor,a=e.activeTrackColor,s=e.disabled,l=void 0!==s&&s,u=e.onValueChange,c=e.style,d=void 0===c?Xi:c,h=e.thumbColor,f=e.trackColor,p=e.value,m=void 0!==p&&p,g=(0,A.A)(e,Gi),v=k.useRef(null);function y(e){var t="focus"===e.nativeEvent.type?Qi:Ji;null!=v.current&&(v.current.style.boxShadow=t)}var b=T.A.flatten(d),_=b.height,w=b.width,S=_||"20px",x=Yi(S,2),E=w>x?w:x,P=Yi(S,.5),O=!0===m?null!=f&&"object"==typeof f?f.true:null!=a?a:"#A3D3CF":null!=f&&"object"==typeof f?f.false:null!=f?f:"#939393",I=m?null!=o?o:"#009688":null!=h?h:"#FAFAFA",N=S,L=N,D=[no.root,d,l&&no.cursorDefault,{height:S,width:E}],M=!0===m?"string"==typeof a&&null!=a||"object"==typeof f&&null!=f&&f.true?O:Zi:"string"==typeof f&&null!=f||"object"==typeof f&&null!=f&&f.false?O:Zi,F=!0===m?null==o?eo:I:null==h?eo:I,V=[no.track,{backgroundColor:l?M:O,borderRadius:P}],z=[no.thumb,m&&no.thumbActive,{backgroundColor:l?F:I,height:N,marginStart:m?Yi(L,-1):0,width:L}],j=(0,r.A)("input",{"aria-label":n||i,checked:m,disabled:l,onBlur:y,onChange:function(e){null!=u&&u(e.nativeEvent.target.checked)},onFocus:y,ref:t,style:[no.nativeControl,no.cursorInherit],type:"checkbox",role:"switch"});return k.createElement(R.A,(0,C.A)({},g,{style:D}),k.createElement(R.A,{style:V}),k.createElement(R.A,{ref:v,style:z}),j)});to.displayName="Switch";var no=T.A.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:(0,x.A)((0,x.A)({forcedColorAdjust:"none"},T.A.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:Ji,start:"0%",transform:"translateZ(0)",transitionDuration:"0.1s"},thumbActive:{insetInlineStart:"100%"},nativeControl:(0,x.A)((0,x.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const ro=to;var io=n(8697),oo=n(254),ao=n(2008),so=n(3098),lo=n(1420),uo=n(8865),co=(e,t)=>{if(((e,t)=>{var n=e.selectionEnd,r=e.selectionStart,i=t.start,o=t.end;return i!==r||o!==n})(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(e){}}},ho=Object.assign({},io.Gs,io.Fh,io.DY,io.l3,io.Aw,io.k2,io.CD,io.eO,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),fo=null,po=k.forwardRef((e,t)=>{var n,i,o=e.autoCapitalize,a=void 0===o?"sentences":o,s=e.autoComplete,l=e.autoCompleteType,u=e.autoCorrect,c=void 0===u||u,d=e.blurOnSubmit,h=e.caretHidden,f=e.clearTextOnFocus,p=e.dir,m=e.editable,g=e.enterKeyHint,v=e.inputMode,y=e.keyboardType,b=e.multiline,_=void 0!==b&&b,w=e.numberOfLines,S=e.onBlur,x=e.onChange,E=e.onChangeText,C=e.onContentSizeChange,A=e.onFocus,R=e.onKeyPress,T=e.onLayout,P=e.onMoveShouldSetResponder,O=e.onMoveShouldSetResponderCapture,I=e.onResponderEnd,N=e.onResponderGrant,L=e.onResponderMove,D=e.onResponderReject,M=e.onResponderRelease,F=e.onResponderStart,V=e.onResponderTerminate,z=e.onResponderTerminationRequest,j=e.onScrollShouldSetResponder,B=e.onScrollShouldSetResponderCapture,H=e.onSelectionChange,$=e.onSelectionChangeShouldSetResponder,W=e.onSelectionChangeShouldSetResponderCapture,U=e.onStartShouldSetResponder,K=e.onStartShouldSetResponderCapture,q=e.onSubmitEditing,Y=e.placeholderTextColor,G=e.readOnly,X=void 0!==G&&G,J=e.returnKeyType,Q=e.rows,Z=e.secureTextEntry,ee=void 0!==Z&&Z,te=e.selection,ne=e.selectTextOnFocus,re=e.showSoftInputOnFocus,ie=e.spellCheck;if(null!=v)i=v,n="email"===v?"email":"tel"===v?"tel":"search"===v?"search":"url"===v?"url":"text";else if(null!=y)switch(y){case"email-address":n="email";break;case"number-pad":case"numeric":i="numeric";break;case"decimal-pad":i="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}ee&&(n="password");var oe=k.useRef({height:null,width:null}),ae=k.useRef(null),se=k.useRef(null),le=k.useRef(!1);k.useEffect(()=>{ae.current&&se.current&&co(ae.current,se.current),le.current=ee},[ee]);var ue=k.useCallback(e=>{if(_&&C&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===oe.current.height&&n===oe.current.width||(oe.current.height=t,oe.current.width=n,C({nativeEvent:{contentSize:{height:oe.current.height,width:oe.current.width}}}))}},[_,C]),ce=k.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&uo.A.currentlyFocusedField()===e},ue(e))},[ue]);(0,Ot.A)(()=>{var e=ae.current;null!=e&&null!=te&&co(e,te),document.activeElement===e&&(uo.A._currentlyFocusedNode=e)},[ae,te]);var de=_?"textarea":"input";(0,ao.A)(ae,T),(0,so.A)(ae,{onMoveShouldSetResponder:P,onMoveShouldSetResponderCapture:O,onResponderEnd:I,onResponderGrant:N,onResponderMove:L,onResponderReject:D,onResponderRelease:M,onResponderStart:F,onResponderTerminate:V,onResponderTerminationRequest:z,onScrollShouldSetResponder:j,onScrollShouldSetResponderCapture:B,onSelectionChangeShouldSetResponder:$,onSelectionChangeShouldSetResponderCapture:W,onStartShouldSetResponder:U,onStartShouldSetResponderCapture:K});var he=(0,lo.PZ)().direction,fe=(e=>(0,oo.A)(e,ho))(e);fe.autoCapitalize=a,fe.autoComplete=s||l||"on",fe.autoCorrect=c?"on":"off",fe.dir=void 0!==p?p:"auto",fe.enterKeyHint=g||J,fe.inputMode=i,fe.onBlur=function(e){uo.A._currentlyFocusedNode=null,S&&(e.nativeEvent.text=e.target.value,S(e))},fe.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,ue(t),x&&x(e),E&&E(n)},fe.onFocus=function(e){var t=e.target;A&&(e.nativeEvent.text=t.value,A(e)),null!=t&&(uo.A._currentlyFocusedNode=t,f&&(t.value=""),ne&&(null!=fo&&clearTimeout(fo),fo=setTimeout(()=>{null!=t&&document.activeElement===t&&t.select()},0)))},fe.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==d?!_:d,r=e.nativeEvent,i=function(e){return e.isComposing||229===e.keyCode}(r);R&&R(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||(!d&&_||!q||(e.preventDefault(),r.text=e.target.value,q(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},fe.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};H&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,H(e)),le.current===ee&&(se.current=n)}catch(e){}},fe.readOnly=!0===X||!1===m,fe.rows=_?null!=Q?Q:w:1,fe.spellCheck=null!=ie?ie:c,fe.style=[{"--placeholderTextColor":Y},mo.textinput$raw,mo.placeholder,e.style,h&&mo.caretHidden],fe.type=_?void 0:n,fe.virtualkeyboardpolicy=!1===re?"manual":"auto";var pe=(0,Ti.A)(fe),me=(0,Ri.A)(ae,pe,ce,t);fe.ref=me;var ge=null!=e.lang?(0,lo.il)(e.lang):null,ve=e.dir||ge||he;return(0,r.A)(de,fe,{writingDirection:ve})});po.displayName="TextInput",po.State=uo.A;var mo=T.A.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}});const go=po;var vo=n(8285),yo=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},bo=function(e){var t=this;e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},_o=yo;const wo=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||_o,n.poolSize||(n.poolSize=10),n.release=bo,n},So=yo;var xo=So;function Eo(e,t){this.width=e,this.height=t}Eo.prototype.destructor=function(){this.width=null,this.height=null},Eo.getPooledFromElement=function(e){return Eo.getPooled(e.offsetWidth,e.offsetHeight)},wo(Eo,xo);const Co=Eo;var ko=So;function Ao(e,t){this.left=e,this.top=t}Ao.prototype.destructor=function(){this.left=null,this.top=null},wo(Ao,ko);const Ro=Ao;var To=n(4078),Po=e=>{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},Oo="NOT_RESPONDER",Io="RESPONDER_INACTIVE_PRESS_IN",No="RESPONDER_INACTIVE_PRESS_OUT",Lo="RESPONDER_ACTIVE_PRESS_IN",Do="RESPONDER_ACTIVE_PRESS_OUT",Mo="RESPONDER_ACTIVE_LONG_PRESS_IN",Fo="RESPONDER_ACTIVE_LONG_PRESS_OUT",Vo="ERROR",zo={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},jo=(0,x.A)((0,x.A)({},zo),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Bo=(0,x.A)((0,x.A)({},zo),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Ho=(0,x.A)((0,x.A)({},zo),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),$o="RESPONDER_RELEASE",Wo="RESPONDER_TERMINATED",Uo="LONG_PRESS_DETECTED",Ko={NOT_RESPONDER:{DELAY:Vo,RESPONDER_GRANT:Io,RESPONDER_RELEASE:Vo,RESPONDER_TERMINATED:Vo,ENTER_PRESS_RECT:Vo,LEAVE_PRESS_RECT:Vo,LONG_PRESS_DETECTED:Vo},RESPONDER_INACTIVE_PRESS_IN:{DELAY:Lo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Io,LEAVE_PRESS_RECT:No,LONG_PRESS_DETECTED:Vo},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:Do,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Io,LEAVE_PRESS_RECT:No,LONG_PRESS_DETECTED:Vo},RESPONDER_ACTIVE_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Lo,LEAVE_PRESS_RECT:Do,LONG_PRESS_DETECTED:Mo},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Lo,LEAVE_PRESS_RECT:Do,LONG_PRESS_DETECTED:Vo},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Mo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Mo},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Mo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Vo},error:{DELAY:Oo,RESPONDER_GRANT:Io,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Oo,LEAVE_PRESS_RECT:Oo,LONG_PRESS_DETECTED:Oo}},qo={componentDidMount:function(){(0,To.m)("TouchableMixin","TouchableMixin is deprecated. Please use Pressable.");var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==Oo&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=Oo,this.state.touchable.responderID=t,this._receiveSignal("RESPONDER_GRANT",e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(n=isNaN(n)?130:n)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;r=isNaN(r)?370:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal($o,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(Wo,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},i=r.left,o=r.top,a=r.right,s=r.bottom,l=this.touchableGetHitSlop?this.touchableGetHitSlop():null;l&&(i+=l.left||0,o+=l.top||0,a+=l.right||0,s+=l.bottom||0);var u=Po(e.nativeEvent),c=u&&u.pageX,d=u&&u.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(c,d,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout(),c>t.left-i&&d>t.top-o&&c<t.left+n.width+a&&d<t.top+n.height+s){var h=this.state.touchable.touchState;this._receiveSignal("ENTER_PRESS_RECT",e),this.state.touchable.touchState===Io&&h!==Io&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal("LEAVE_PRESS_RECT",e)}},touchableHandleFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},touchableHandleBlur:function(e){this.props.onBlur&&this.props.onBlur(e)},_remeasureMetricsOnActivation:function(){var e=this.state.touchable.responderID;null!=e&&p.A.measure(e,this._handleQueryLayout)},_handleQueryLayout:function(e,t,n,r,i,o){(e||t||n||r||i||o)&&(this.state.touchable.positionOnActivate&&Ro.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&Co.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=Ro.getPooled(i,o),this.state.touchable.dimensionsOnActivate=Co.getPooled(n,r))},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal("DELAY",e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==Lo&&t!==Mo?console.error("Attempted to transition from state `"+t+"` to `"+Mo+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(Uo,e)},_receiveSignal:function(e,t){var n=this.state.touchable.responderID,r=this.state.touchable.touchState,i=Ko[r]&&Ko[r][e];if(n||e!==$o){if(!i)throw new Error("Unrecognized signal `"+e+"` or state `"+r+"` for Touchable responder `"+n+"`");if(i===Vo)throw new Error("Touchable cannot transition from `"+r+"` to `"+e+"` for responder `"+n+"`");r!==i&&(this._performSideEffectsForTransition(r,i,e,t),this.state.touchable.touchState=i)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===Lo||e===Mo},_savePressInLocation:function(e){var t=Po(e.nativeEvent),n=t&&t.pageX,r=t&&t.pageY,i=t&&t.locationX,o=t&&t.locationY;this.pressInLocation={pageX:n,pageY:r,locationX:i,locationY:o}},_getDistanceBetweenPoints:function(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},_performSideEffectsForTransition:function(e,t,n,r){var i=this._isHighlight(e),o=this._isHighlight(t);(n===Wo||n===$o)&&this._cancelLongPressDelayTimeout();var a=e===Oo&&t===Io,s=!jo[e]&&jo[t];if((a||s)&&this._remeasureMetricsOnActivation(),Bo[e]&&n===Uo&&this.touchableHandleLongPress&&this.touchableHandleLongPress(r),o&&!i?this._startHighlight(r):!o&&i&&this._endHighlight(r),Bo[e]&&n===$o){var l=!!this.props.onLongPress,u=Ho[e]&&(!l||!this.touchableLongPressCancelsPress());(!Ho[e]||u)&&this.touchableHandlePress&&(o||i||(this._startHighlight(r),this._endHighlight(r)),this.touchableHandlePress(r))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){p.A.playTouchSound()},_startHighlight:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(e)},_endHighlight:function(e){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;"Enter"!==n&&" "!==n||("keydown"===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==Oo||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):"keyup"===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==Oo&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),"Enter"===n&&"link"===vo.A.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}},Yo=(qo.touchableHandleFocus,qo.touchableHandleBlur,(0,A.A)(qo,["touchableHandleFocus","touchableHandleBlur"]));qo.withoutDefaultFocusAndBlur=Yo;var Go={Mixin:qo,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!Go.TOUCH_TARGET_DEBUG)return null;var r={};for(var i in n=n||{top:0,bottom:0,left:0,right:0})r[i]=-n[i];var o=mt()(t);if("number"!=typeof o)return null;var a="#"+("00000000"+o.toString(16)).substr(-8);return k.createElement(R.A,{pointerEvents:"none",style:(0,x.A)({position:"absolute",borderColor:a.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:a.slice(0,-2)+"0F"},r)})}};const Xo=Go;var Jo=n(6533),Qo=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function Zo(e,t){return{child:{opacity:null!=e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function ea(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}function ta(e,t){var n=e.activeOpacity,r=e.children,i=e.delayPressIn,o=e.delayPressOut,a=e.delayLongPress,s=e.disabled,l=e.focusable,u=e.onHideUnderlay,c=e.onLongPress,d=e.onPress,h=e.onPressIn,f=e.onPressOut,p=e.onShowUnderlay,m=e.rejectResponderTermination,g=e.style,v=e.testOnly_pressed,y=e.underlayColor,b=(0,A.A)(e,Qo),_=(0,k.useRef)(null),w=(0,Ri.A)(t,_),S=(0,k.useState)(!0===v?Zo(n,y):null),x=S[0],E=S[1],T=(0,k.useCallback)(()=>{ea(e)&&(E(Zo(n,y)),null!=p&&p())},[n,p,e,y]),P=(0,k.useCallback)(()=>{!0!==v&&ea(e)&&(E(null),null!=u&&u())},[u,e,v]),O=(0,k.useMemo)(()=>({cancelable:!m,disabled:s,delayLongPress:a,delayPressStart:i,delayPressEnd:o,onLongPress:c,onPress:d,onPressStart(e){T(),null!=h&&h(e)},onPressEnd(e){P(),null!=f&&f(e)}}),[a,i,o,s,c,d,h,f,m,T,P]),I=(0,Jo.A)(_,O),N=k.Children.only(r);return k.createElement(R.A,(0,C.A)({},b,I,{accessibilityDisabled:s,focusable:!s&&!1!==l,pointerEvents:s?"box-none":void 0,ref:w,style:[na.root,g,!s&&na.actionable,x&&x.underlay]}),k.cloneElement(N,{style:[N.props.style,x&&x.child]}))}var na=T.A.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),ra=k.memo(k.forwardRef(ta));ra.displayName="TouchableHighlight";const ia=ra;var oa=["style"],aa={};const sa=function(e){var t=e.style,n=(0,A.A)(e,oa);return k.createElement(R.A,(0,C.A)({},n,{style:[aa,t]}))},la=sa;var ua={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0};function ca(e,t){(0,To.m)("TouchableWithoutFeedback","TouchableWithoutFeedback is deprecated. Please use Pressable.");var n=e.delayPressIn,r=e.delayPressOut,i=e.delayLongPress,o=e.disabled,a=e.focusable,s=e.onLongPress,l=e.onPress,u=e.onPressIn,c=e.onPressOut,d=e.rejectResponderTermination,h=(0,k.useRef)(null),f=(0,k.useMemo)(()=>({cancelable:!d,disabled:o,delayLongPress:i,delayPressStart:n,delayPressEnd:r,onLongPress:s,onPress:l,onPressStart:u,onPressEnd:c}),[o,n,r,i,s,l,u,c,d]),p=(0,Jo.A)(h,f),m=k.Children.only(e.children),g=[m.props.children],v=(e=>(0,oo.A)(e,ua))(e);v.accessibilityDisabled=o,v.focusable=!o&&!1!==a,v.ref=(0,Ri.A)(t,h,m.ref);var y=Object.assign(v,p);return k.cloneElement(m,y,...g)}var da=k.memo(k.forwardRef(ca));da.displayName="TouchableWithoutFeedback";const ha=da,fa=Te;function pa(e){return k.createElement(sa,e)}pa.ignoreWarnings=()=>{};const ma=pa,ga={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}};var va=n(9697);function ya(){var e=k.useState(Xn.getColorScheme()),t=e[0],n=e[1];return k.useEffect(()=>Xn.addChangeListener(function(e){n(e.colorScheme)}).remove),t}const ba=lo.PZ;function _a(){var e=(0,k.useState)(()=>vr.A.get("window")),t=e[0],n=e[1];return(0,k.useEffect)(()=>{function e(e){var t=e.window;null!=t&&n(t)}return vr.A.addEventListener("change",e),n(vr.A.get("window")),()=>{vr.A.removeEventListener("change",e)}},[]),t}},8285(e,t,n){"use strict";n.d(t,{A:()=>s});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null};const i=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var i=r[n];if(null!==i)return i||n}};var o={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},a={};const s={isDisabled:e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1,propsToAccessibilityComponent:function(e){if(void 0===e&&(e=a),"label"===(e.role||e.accessibilityRole))return"label";var t=i(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return o[t]}},propsToAriaRole:i}},8865(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8683);const i={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.A.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.A.blur(e))}}},7162(e,t,n){"use strict";n.d(t,{A:()=>r});const r=!("undefined"==typeof window||!window.document||!window.document.createElement)},3116(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8865);const i=()=>{r.A.blurTextInput(r.A.currentlyFocusedField())}},8697(e,t,n){"use strict";n.d(t,{Aw:()=>s,CD:()=>u,DY:()=>o,Fh:()=>i,Gs:()=>r,eO:()=>c,k2:()=>l,l3:()=>a});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},i={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},o={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},a={onBlur:!0,onFocus:!0},s={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},1968(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()}},87(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(t=>{null!=t&&("function"!=typeof t?"object"!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=e:t(e))})}}n.d(t,{A:()=>r}),n(6540)},254(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,{A:()=>r})},2008(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(8425),i=n(8683),o=n(7162),a="__reactLayoutHandler",s=(o.A,null);function l(e,t){var n=(o.A&&void 0!==window.ResizeObserver&&null==s&&(s=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[a];"function"==typeof n&&i.A.measure(t,(t,r,i,o,a,s)=>{var l={nativeEvent:{layout:{x:t,y:r,width:i,height:o,left:a,top:s}},timeStamp:Date.now()};Object.defineProperty(l.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(l)})})})),s);(0,r.A)(()=>{var n=e.current;null!=n&&(n[a]=t)},[e,t]),(0,r.A)(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[a]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}},8425(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(6540);const i=n(7162).A?r.useLayoutEffect:r.useEffect},1420(e,t,n){"use strict";n.d(t,{YO:()=>c,il:()=>u,PZ:()=>d});var r=n(6540),i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),a=new Map,s={direction:"ltr",locale:"en-US"},l=(0,r.createContext)(s);function u(e){return function(e){var t=a.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=i.has(r)}catch(t){var s=e.split("-")[0];n=o.has(s)}else{var l=e.split("-")[0];n=o.has(l)}return a.set(e,n),n}(e)?"rtl":"ltr"}function c(e){var t=e.direction,n=e.locale,i=e.children;return t||n?r.createElement(l.Provider,{children:i,value:{direction:n?u(n):t,locale:n}}):i}function d(){return(0,r.useContext)(l)}},1804(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6540),i=n(87);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo(()=>(0,i.A)(...t),[...t])}},6177(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8683),i=n(9241);function o(e){return e.pointerEvents,e.style,(0,i.A)(()=>e=>{null!=e&&(e.measure=t=>r.A.measure(e,t),e.measureLayout=(t,n,i)=>r.A.measureLayout(e,t,i,n),e.measureInWindow=t=>r.A.measureInWindow(e,t))})}},6533(e,t,n){"use strict";n.d(t,{A:()=>x});var r="DELAY",i="ERROR",o="LONG_PRESS_DETECTED",a="NOT_RESPONDER",s="RESPONDER_ACTIVE_LONG_PRESS_START",l="RESPONDER_ACTIVE_PRESS_START",u="RESPONDER_INACTIVE_PRESS_START",c="RESPONDER_RELEASE",d="RESPONDER_TERMINATED",h=Object.freeze({NOT_RESPONDER:{DELAY:i,RESPONDER_GRANT:u,RESPONDER_RELEASE:i,RESPONDER_TERMINATED:i,LONG_PRESS_DETECTED:i},RESPONDER_INACTIVE_PRESS_START:{DELAY:l,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:i},RESPONDER_ACTIVE_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},ERROR:{DELAY:a,RESPONDER_GRANT:u,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:a}}),f=e=>e.getAttribute("role"),p=e=>e.tagName.toLowerCase(),m=e=>e===l||e===s,g=e=>"button"===f(e),v=e=>e===u||e===l||e===s,y=e=>{var t=e.key,n=e.target,r=" "===t||"Spacebar"===t,i="button"===p(n)||g(n);return"Enter"===t||r&&i};class b{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=a,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=a,this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=_(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(r,e)},n):this._receiveSignal(r,e);var i=_(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},i+n)},t=e=>{this._receiveSignal(c,e)},n=e=>{var r=this._config.onPress,i=e.target;if(this._touchState!==a&&y(e)){t(e),document.removeEventListener("keyup",n);var o=i.getAttribute("role"),s=p(i),l="link"===o||"a"===s||"button"===s||"input"===s||"select"===s||"textarea"===s,u=this._responderElement===i;null!=r&&!l&&u&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&g(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,o=t.target;if(!r&&y(t)){this._touchState===a&&(e(t,!1),this._responderElement=o,document.addEventListener("keyup",n));var s=" "===i||"Spacebar"===i,l=f(o);s&&("button"===l||"menuitem"===l)&&"button"!==p(o)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=w(e);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(d,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return!(!r&&null!=i&&this._isPointerTouch&&"contextmenu"===e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?g(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?g(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;null!=h[n]&&(r=h[n][e]),this._touchState===a&&e===c||(null==r||r===i?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if((e=>e===d||e===c)(n)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),v(e)&&n===o){var i=this._config.onLongPress;null!=i&&null==r.nativeEvent.key&&(i(r),this._longPressDispatched=!0)}var a=m(e),l=m(t);if(!a&&l?this._activate(r):a&&!l&&this._deactivate(r),v(e)&&n===c){var u=this._config,h=u.onLongPress;null!=u.onPress&&(null!=h&&e===s||l||a||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=w(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var o=_(this._config.delayPressEnd);o>0?this._pressOutDelayTimeout=setTimeout(()=>{i()},o):i()}_handleLongPress(e){this._touchState!==l&&this._touchState!==s||this._receiveSignal(o,e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function _(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!=e?e:n)}function w(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var S=n(6540);function x(e,t){var n=(0,S.useRef)(null);null==n.current&&(n.current=new b(t));var r=n.current;return(0,S.useEffect)(()=>{r.configure(t)},[t,r]),(0,S.useEffect)(()=>()=>{r.reset()},[r]),(0,S.useDebugValue)(t),r.getEventHandlers()}},3098(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(6540),i=n(1968),o=()=>{},a={},s=[];function l(e){return e>20?e%20:e}function u(e,t){var n,r,u,c=!1,d=e.changedTouches,h=e.type,f=!0===e.metaKey,p=!0===e.shiftKey,m=d&&d[0].force||0,g=l(d&&d[0].identifier||0),v=d&&d[0].clientX||e.clientX,y=d&&d[0].clientY||e.clientY,b=d&&d[0].pageX||e.pageX,_=d&&d[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):o,S=e.timeStamp;function x(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:l(e.identifier),get locationX(){return k(e.clientX)},get locationY(){return A(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:S}))}if(null!=d)r=x(d),u=x(e.touches);else{var E=[{force:m,identifier:g,get locationX(){return k(v)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S}];r=E,u="mouseup"===h||"dragstart"===h?s:E}var C={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:a,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>c,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:f,shiftKey:p,changedTouches:r,force:m,identifier:g,get locationX(){return k(v)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S,touches:u,type:h},persist:o,preventDefault:w,stopPropagation(){c=!0},target:e.target,timeStamp:S,touchHistory:t.touchHistory};function k(e){if(n=n||(0,i.A)(C.currentTarget))return e-n.left}function A(e){if(n=n||(0,i.A)(C.currentTarget))return e-n.top}return C}function c(e){return"touchstart"===e||"mousedown"===e}function d(e){return"touchmove"===e||"mousemove"===e}function h(e){return"touchend"===e||"mouseup"===e||f(e)}function f(e){return"touchcancel"===e||"dragstart"===e}var p="__reactResponderId";function m(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function g(e){return null!=e?e[p]:null}function v(e){return e.timeStamp||e.timestamp}function y(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function b(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:v(e)})}function _(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}var w=n(7162),S={},x=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],E=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],C={touchstart:x,mousedown:x,touchmove:E,mousemove:E,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},k={id:null,idPath:null,node:null},A=new Map,R=!1,T=0,P={id:null,node:null,idPath:null},O=new class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(d(e))t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[y(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=v(e),t.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+b(e)+"\n","Touch Bank: "+_(t))}(e,n));else if(c(e))t.changedTouches.forEach(e=>function(e,t){var n=y(e),r=t.touchBank[n];r?function(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=v(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=v(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=v(t)}(r,e):t.touchBank[n]=function(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:v(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:v(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:v(e)}}(e),t.mostRecentTimeStamp=v(e)}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(h(e)&&(t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[y(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=v(e),t.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+b(e)+"\n","Touch Bank: "+_(t))}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,i=0;i<r.length;i++){var o=r[i];if(null!=o&&o.touchActive){n.indexOfSingleActiveTouch=i;break}}}get touchHistory(){return this._touchHistory}};function I(e){P=e}function N(e){var t=A.get(e);return null!=t?t:S}function L(e){var t=e.type,n=e.target;if("touchstart"===t&&(R=!0),("touchmove"===t||T>1)&&(R=!1),!("mousedown"===t&&R||"mousemove"===t&&R||"mousemove"===t&&T<1))if(R&&"mouseup"===t)0===T&&(R=!1);else{var r=c(t)&&function(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,o=e.type,a=!1===t&&!1===i;return!!("touchstart"===o||"touchmove"===o||"mousedown"===o&&(0===n||1===r)&&a||"mousemove"===o&&1===r&&a)}(e),i=d(t),o=h(t),a=function(e){return"scroll"===e}(t),s=function(e){return"select"===e||"selectionchange"===e}(t),l=u(e,O);(r||i||o)&&(e.touches?T=e.touches.length:r?T=1:o&&(T=0),O.recordTouchTrack(t,l.nativeEvent));var p,v=function(e){for(var t=[],n=[],r=function(e){return"selectionchange"===e.type?m(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():m(e.target)}(e),i=0;i<r.length;i++){var o=r[i],a=g(o);null!=a&&(t.push(a),n.push(o))}return{idPath:t,nodePath:n}}(e),y=!1;if(r||i||a&&T>0){var b=P.idPath,_=v.idPath;if(null!=b&&null!=_){var w=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var i=e[0],o=0,a=t[0],s=0;n-r>0&&(i=e[o=n-r],n=r),r-n>0&&(a=t[s=r-n],r=n);for(var l=n;l--;){if(i===a)return i;i=e[o++],a=t[s++]}return null}(b,_);if(null!=w){var S=_.indexOf(w)+(w===P.id?1:0);v={idPath:_.slice(S),nodePath:v.nodePath.slice(S)}}else v=null}null!=v&&(p=function(e,t,n){var r=C[t.type];if(null!=r){for(var i=e.idPath,o=e.nodePath,a=r[0],s=r[1],l=r[2].bubbles,u=function(e,t,r){var o=N(e)[r];if(null!=o&&(n.currentTarget=t,!0===o(n)))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},c=i.length-1;c>=0;c--){var d=u(i[c],o[c],a);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(l)for(var h=0;h<i.length;h++){var f=u(i[h],o[h],s);if(null!=f)return f;if(!0===n.isPropagationStopped())return}else{var p=i[0],m=o[0];if(t.target===m)return u(p,m,s)}}}(v,e,l),null!=p&&(function(e,t){var n=P,r=n.id,i=n.node,o=t.id,a=t.node,s=N(o),l=s.onResponderGrant,u=s.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=a,null==r)null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),I(t);else{var c=N(r),d=c.onResponderTerminate,h=c.onResponderTerminationRequest,f=!0;null!=h&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminationRequest",!1===h(e)&&(f=!1)),f?(null!=d&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminate",d(e)),null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),I(t)):null!=u&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderReject",u(e))}}(l,p),y=!0))}if(null!=P.id&&null!=P.node){var x=P,E=x.id,A=x.node,L=N(E),D=L.onResponderStart,M=L.onResponderMove,F=L.onResponderEnd,V=L.onResponderRelease,z=L.onResponderTerminate,j=L.onResponderTerminationRequest;if(l.bubbles=!1,l.cancelable=!1,l.currentTarget=A,r)null!=D&&(l.dispatchConfig.registrationName="onResponderStart",D(l));else if(i)null!=M&&(l.dispatchConfig.registrationName="onResponderMove",M(l));else{var B=f(t)||"contextmenu"===t||"blur"===t&&n===window||"blur"===t&&n.contains(A)&&e.relatedTarget!==A||a&&0===T||a&&n.contains(A)&&n!==A||s&&function(e){return"selectionchange"===e.type?(n=(t=window.getSelection()).toString(),r=t.anchorNode,i=t.focusNode,o=r&&r.nodeType===window.Node.TEXT_NODE||i&&i.nodeType===window.Node.TEXT_NODE,n.length>=1&&"\n"!==n&&o):"select"===e.type;var t,n,r,i,o}(e),H=o&&!B&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;n<t.length;n++){var r=t[n].target;if(null!=r&&e.contains(r))return!0}return!1}(A,e.touches);if(o&&null!=F&&(l.dispatchConfig.registrationName="onResponderEnd",F(l)),H&&(null!=V&&(l.dispatchConfig.registrationName="onResponderRelease",V(l)),I(k)),B){var $=!0;"contextmenu"!==t&&"scroll"!==t&&"selectionchange"!==t||(y?$=!1:null!=j&&(l.dispatchConfig.registrationName="onResponderTerminationRequest",!1===j(l)&&($=!1))),$&&(null!=z&&(l.dispatchConfig.registrationName="onResponderTerminate",z(l)),I(k),R=!1,T=0)}}}}}var D=["blur","scroll"],M=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function F(e){P.id===e&&function(){var e=P,t=e.id,n=e.node;if(null!=t&&null!=n){var r=N(t).onResponderTerminate;if(null!=r){var i=u({},O);i.currentTarget=n,r(i)}I(k)}R=!1,T=0}(),A.has(e)&&A.delete(e)}var V={},z=0;function j(e,t){void 0===t&&(t=V);var n,i,o=(n=()=>z++,null==(i=r.useRef(null)).current&&(i.current=n()),i.current),a=r.useRef(!1);r.useEffect(()=>(w.A&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",L),M.forEach(e=>{document.addEventListener(e,L)}),D.forEach(e=>{document.addEventListener(e,L,!0)}),window.__reactResponderSystemActive=!0),()=>{F(o)}),[o]),r.useEffect(()=>{var n=t,r=n.onMoveShouldSetResponder,i=n.onMoveShouldSetResponderCapture,s=n.onScrollShouldSetResponder,l=n.onScrollShouldSetResponderCapture,u=n.onSelectionChangeShouldSetResponder,c=n.onSelectionChangeShouldSetResponderCapture,d=n.onStartShouldSetResponder,h=n.onStartShouldSetResponderCapture,f=null!=r||null!=i||null!=s||null!=l||null!=u||null!=c||null!=d||null!=h,m=e.current;f?(function(e,t,n){!function(e,t){null!=e&&(e[p]=t)}(t,e),A.set(e,n)}(o,m,t),a.current=!0):a.current&&(F(o),a.current=!1)},[t,e,o]),r.useDebugValue({isResponder:e.current===P.node}),r.useDebugValue(t)}},9241(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6540),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function o(e){var t=r.useRef(i);return t.current===i&&(t.current=e()),t.current}},4078(e,t,n){"use strict";function r(e,t){}n.d(t,{m:()=>r})},5725(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new(n(1603).A)},1603(e,t,n){"use strict";n.d(t,{A:()=>r});class r{constructor(){this._registry={}}addListener(e,t,n){var r=function(e,t){var n=e[t];return null==n&&(n=new Set,e[t]=n),n}(this._registry,e),i={context:n,listener:t,remove(){r.delete(i)}};return r.add(i),i}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0,a=[...t];o<a.length;o++){var s=a[o];s.listener.apply(s.context,r)}}}removeAllListeners(e){null==e?this._registry={}:delete this._registry[e]}listenerCount(e){var t=this._registry[e];return null==t?0:t.size}}},1515(e){"use strict";function t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,n,r){const i=r<.5?r*(1+n):r+n-r*n,o=2*r-i,a=t(o,i,e+1/3),s=t(o,i,e),l=t(o,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*l)<<8}const r="[-+]?\\d*\\.?\\d+",i=r+"%";function o(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let l;function u(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function h(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;const f=(void 0===l&&(l={rgb:new RegExp("rgb"+o(r,r,r)),rgba:new RegExp("rgba("+s(r,r,r,r)+"|"+a(r,r,r,r)+")"),hsl:new RegExp("hsl"+o(r,i,i)),hsla:new RegExp("hsla("+s(r,i,i,r)+"|"+a(r,i,i,r)+")"),hwb:new RegExp("hwb"+o(r,i,i)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),l);let p;if(p=f.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;const m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=f.rgb.exec(e))?(u(p[1])<<24|u(p[2])<<16|u(p[3])<<8|255)>>>0:(p=f.rgba.exec(e))?void 0!==p[6]?(u(p[6])<<24|u(p[7])<<16|u(p[8])<<8|d(p[9]))>>>0:(u(p[2])<<24|u(p[3])<<16|u(p[4])<<8|d(p[5]))>>>0:(p=f.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=f.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=f.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=f.hsl.exec(e))?(255|n(c(p[1]),h(p[2]),h(p[3])))>>>0:(p=f.hsla.exec(e))?void 0!==p[6]?(n(c(p[6]),h(p[7]),h(p[8]))|d(p[9]))>>>0:(n(c(p[2]),h(p[3]),h(p[4]))|d(p[5]))>>>0:(p=f.hwb.exec(e))?(255|function(e,n,r){if(n+r>=1){const e=Math.round(255*n/(n+r));return e<<24|e<<16|e<<8}const i=t(0,1,e+1/3)*(1-n-r)+n,o=t(0,1,e)*(1-n-r)+n,a=t(0,1,e-1/3)*(1-n-r)+n;return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}(c(p[1]),h(p[2]),h(p[3])))>>>0:null}},5287(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var _=b.prototype=new y;_.constructor=b,m(_,v.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:x.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+R(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),T(a,t,i,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+R(s=e[u],u);l+=T(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,c=o+R(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},L={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:x};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},6540(e,t,n){"use strict";e.exports=n(5287)},7463(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,_(e),!m)if(null!==r(u))m=!0,N(S);else{var t=r(c);null!==t&&L(w,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(k),k=-1),p=!0;var o=f;try{for(_(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!T());){var a=h.callback;if("function"==typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===r(u)&&i(u),_(n)}else i(u);h=r(u)}if(null!==h)var l=!0;else{var d=r(c);null!==d&&L(w,d.startTime-n),l=!1}return l}finally{h=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E=!1,C=null,k=-1,A=5,R=-1;function T(){return!(t.unstable_now()-R<A)}function P(){if(null!==C){var e=t.unstable_now();R=e;var n=!0;try{n=C(!0,e)}finally{n?x():(E=!1,C=null)}}else E=!1}if("function"==typeof b)x=function(){b(P)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,I=O.port2;O.port1.onmessage=P,x=function(){I.postMessage(null)}}else x=function(){v(P,0)};function N(e){C=e,E||(E=!0,x())}function L(e,n){k=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,N(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(y(k),k=-1):g=!0,L(w,o-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,N(S))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982(e,t,n){"use strict";e.exports=n(7463)},3176(e,t){"use strict";t.P=void 0;var n=new WeakMap;function r(e){var t,r,i;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,i=e.transform),function(){for(var e=[],o="",a=null,s=t?null:n,l=new Array(arguments.length),u=0;u<arguments.length;u++)l[u]=arguments[u];for(;l.length>0;){var c=l.pop();if(null!=c&&!1!==c)if(Array.isArray(c))for(var d=0;d<c.length;d++)l.push(c[d]);else{var h=null!=i?i(c):c;if(h.$$css){var f="";if(null!=s&&s.has(h)){var p=s.get(h);null!=p&&(f=p[0],e.push.apply(e,p[1]),s=p[2])}else{var m=[];for(var g in h){var v=h[g];"$$css"!==g&&("string"==typeof v||null===v?e.includes(g)||(e.push(g),null!=s&&m.push(g),"string"==typeof v&&(f+=f?" "+v:v)):console.error("styleq: ".concat(g," typeof ").concat(String(v),' is not "string" or "null".')))}if(null!=s){var y=new WeakMap;s.set(h,[f,m,y]),s=y}}f&&(o=o?f+" "+o:f)}else if(r)null==a&&(a={}),a=Object.assign({},h,a);else{var b=null;for(var _ in h){var w=h[_];void 0!==w&&(e.includes(_)||(null!=w&&(null==a&&(a={}),null==b&&(b={}),b[_]=w),e.push(_),s=null))}null!=b&&(a=Object.assign(b,a))}}}return[o,a]}}var i=r();t.P=i,i.factory=r},4336(e,t){"use strict";t.n=function(e,t){if(null!=e[r]){var o=t?1:0;if(n.has(e)){var a=n.get(e),s=a[o];return null==s&&(s=i(e,t),a[o]=s,n.set(e,a)),s}var l=i(e,t),u=new Array(2);return u[o]=l,n.set(e,u),l}return e};var n=new WeakMap,r="$$css$localize";function i(e,t){var n={};for(var i in e)if(i!==r){var o=e[i];Array.isArray(o)?n[i]=t?o[1]:o[0]:n[i]=o}return n}},4915(e){e.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}},8168(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},2555(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:()=>a})},8587(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},6e3(e,t,n){"use strict";n.d(t,{v4:()=>a});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],n+=6==t?o[15&e|64]:8==t?o[63&e|128]:o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},3172(e,t,n){"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{J:()=>r})},1635(e,t,n){"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>l,fX:()=>u,sH:()=>s});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},2510(e){"use strict";e.exports=JSON.parse('{"black":"#000000","silver":"#c0c0c0","gray":"#808080","white":"#ffffff","maroon":"#800000","red":"#ff0000","purple":"#800080","fuchsia":"#ff00ff","green":"#008000","lime":"#00ff00","olive":"#808000","yellow":"#ffff00","navy":"#000080","blue":"#0000ff","teal":"#008080","aqua":"#00ffff","orange":"#ffa500","aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","blanchedalmond":"#ffebcd","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","limegreen":"#32cd32","linen":"#faf0e6","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","oldlace":"#fdf5e6","olivedrab":"#6b8e23","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","whitesmoke":"#f5f5f5","yellowgreen":"#9acd32","rebeccapurple":"#663399"}')}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".chat-widget.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="vdb-ai-chat:",a.l=(e,t,i,o)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var h=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,u=0;if(o.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);u<o.length;u++)i=o[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkvdb_ai_chat=self.webpackChunkvdb_ai_chat||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=a(9697),t=a(6540),n=a(9176),r=a(7862),i=a(8997),o=a(5338),s=a(1635);function l(){return"undefined"!=typeof process&&process.env?process.env:{}}var u=a(9456),c=a(2321);function d(e,t,n,r){var i,o=[e,t,n,r],a=(0,c.Qd)(e)?e.event:e;if(!a||!(0,c.Kg)(a))throw new Error("Event missing");var s=(0,c.Qd)(e)?null!==(i=e.properties)&&void 0!==i?i:{}:(0,c.Qd)(t)?t:{},l={};return(0,c.Tn)(n)||(l=null!=n?n:{}),(0,c.Qd)(e)&&!(0,c.Tn)(t)&&(l=null!=t?t:{}),[a,s,l,o.find(c.Tn)]}function h(e,t,n,r,i){var o,a,s=null,l=null,u=[e,t,n,r,i],d=u.filter(c.Kg);1===d.length?(0,c.Kg)(u[1])?(l=u[1],s=null):(l=d[0],s=null):2===d.length&&("string"==typeof u[0]&&(s=u[0]),"string"==typeof u[1]&&(l=u[1]));var h=u.find(c.Tn),f=u.filter(c.Qd);return 1===f.length?(0,c.Qd)(u[2])?(a={},o=u[2]):(0,c.Qd)(u[3])?(o={},a=u[3]):(o=f[0],a={}):2===f.length&&(o=f[0],a=f[1]),[s,l,null!=o?o:o={},null!=a?a:a={},h]}var f=function(e){return function(){for(var t,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],l=0,u=i;l<u.length;l++){var d=u[l],h=s.pop();if("id"===h){if((0,c.Kg)(d)||(0,c.Et)(d)){a.id=d.toString();continue}if(null==d)continue;h=s.pop()}if("traits"!==h&&"options"!==h||null!=d&&!(0,c.Qd)(d)||(a[h]=d),(0,c.Tn)(d)){a.callback=d;break}}return[null!==(t=a.id)&&void 0!==t?t:e.id(),null!==(n=a.traits)&&void 0!==n?n:{},null!==(r=a.options)&&void 0!==r?r:{},a.callback]}};function p(e,t,n,r){(0,c.Et)(e)&&(e=e.toString()),(0,c.Et)(t)&&(t=t.toString());var i=[e,t,n,r],o=i.filter(c.Kg),a=o[0],s=void 0===a?e:a,l=o[1],u=void 0===l?null:l,d=i.filter(c.Qd)[0];return[s,u,void 0===d?{}:d,i.find(c.Tn)]}var m=a(7718),g=a(7977),v=a(6556);function y(e,t,n,r){return(0,s.sH)(this,void 0,void 0,function(){var i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return n.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return(null==r?void 0:r.callback)?[4,(0,v.w_)(o,r.callback,(s=i,l=r.timeout,u=Date.now()-s,Math.max((null!=l?l:300)-u,0)))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return(null==r?void 0:r.debug)&&o.flush(),[2,o]}var s,l,u})})}var b=a(2079),_=a(6e3),w=function(e,t,n,r,i,o){return{__t:"bpc",c:t,p:r,u:e,s:n,t:i,r:o}},S=Object.keys(w("","","","","",""));var x=function(e){var t,n,r=e.c,i=e.p,o=e.s,a=e.u,s=e.r,l=e.t,u=r?function(e){try{return new URL(e).pathname}catch(t){return"/"===e[0]?e:"/"+e}}(r):i,c=r?function(e,t){return e.indexOf("?")>-1?e:e+t}(r,o):-1===(n=(t=a).indexOf("#"))?t:t.slice(0,n);return{path:u,referrer:s,search:o,title:l,url:c}},E=function(){var e=document.querySelector("link[rel='canonical']");return w(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},C=function(e,t){void 0===t&&(t=x(E()));var n,r,i,o=e.context;"page"===e.type&&(n=e.properties&&(r=e.properties,i=Object.keys(t),Object.assign.apply(Object,(0,s.fX)([{}],i.map(function(e){var t;if(r&&Object.prototype.hasOwnProperty.call(r,e))return(t={})[e]=r[e],t}),!1))),e.properties=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),e.properties),e.name?{name:e.name}:{})),o.page=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),n),o.page)},k=a(3172),A=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,s.C6)(t,e),t}(Error),R="is not a string",T="is not an object";var P=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!==(t=e.onEventMethodCall)&&void 0!==t?t:function(){},this.onFinishedEvent=null!==(n=e.onFinishedEvent)&&void 0!==n?n:function(){}},O=function(){function e(e){this.settings=new P(e)}return e.prototype.track=function(e,t,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)}))},e.prototype.page=function(e,t,n,r,i){var o;this.settings.onEventMethodCall({type:"page",options:r});var a={type:"page",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(a.category=e,a.properties=null!==(o=a.properties)&&void 0!==o?o:{},a.properties.category=e),null!==t&&(a.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),a))},e.prototype.screen=function(e,t,n,r,i){this.settings.onEventMethodCall({type:"screen",options:r});var o={type:"screen",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(o.category=e),null!==t&&(o.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),o))},e.prototype.identify=function(e,t,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:r}))},e.prototype.group=function(e,t,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"group",traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var i={userId:e,type:"alias",options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)};return null!==t&&(i.previousId=t),void 0===e?this.normalize((0,s.Cl)((0,s.Cl)({},i),this.baseEvent())):this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),i))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),i=null!==(t=e.context)&&void 0!==t?t:{},o={};return r.forEach(function(t){"context"!==t&&(n.includes(t)?(0,k.J)(o,t,e[t]):(0,k.J)(i,t,e[t]))}),[i,o]},e.prototype.normalize=function(e){var t,n,r,i,o=Object.keys(null!==(t=e.integrations)&&void 0!==t?t:{}).reduce(function(t,n){var r,i;return(0,s.Cl)((0,s.Cl)({},t),((r={})[n]=Boolean(null===(i=e.integrations)||void 0===i?void 0:i[n]),r))},{});e.options=(r=e.options||{},i=function(e,t){return void 0!==t},Object.keys(r).filter(function(e){return i(0,r[e])}).reduce(function(e,t){return e[t]=r[t],e},{}));var a=(0,s.Cl)((0,s.Cl)({},o),null===(n=e.options)||void 0===n?void 0:n.integrations),l=e.options?this.context(e.options):[],u=l[0],d=l[1],h=e.options,f=(0,s.Tt)(e,["options"]),p=(0,s.Cl)((0,s.Cl)((0,s.Cl)((0,s.Cl)({timestamp:new Date},f),{context:u,integrations:a}),d),{messageId:h.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(p),function(e){!function(e){if(!(0,c.t2)(e))throw new A("Event","is nil");if("object"!=typeof e)throw new A("Event",T)}(e),function(e){if(!(0,c.Kg)(e.type))throw new A(".type",R)}(e),function(e){if(!(0,c.Kg)(e.messageId))throw new A(".messageId",R)}(e),"track"===e.type&&(function(e){if(!(0,c.Kg)(e.event))throw new A(".event",R)}(e),function(e){if(!(0,c.Qd)(e.properties))throw new A(".properties",T)}(e)),["group","identify"].includes(e.type)&&function(e){if(!(0,c.Qd)(e.traits))throw new A(".traits",T)}(e)}(p),p},e}(),I=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,_.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,s.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null==e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,i,o){var a=e.prototype.track.call(this,t,n,r,i);return C(a,o),a},t.prototype.page=function(t,n,r,i,o,a){var s=e.prototype.page.call(this,t,n,r,i,o);return C(s,a),s},t.prototype.screen=function(t,n,r,i,o,a){var s=e.prototype.screen.call(this,t,n,r,i,o);return C(s,a),s},t.prototype.identify=function(t,n,r,i,o){var a=e.prototype.identify.call(this,t,n,r,i);return C(a,o),a},t.prototype.group=function(t,n,r,i,o){var a=e.prototype.group.call(this,t,n,r,i);return C(a,o),a},t.prototype.alias=function(t,n,r,i,o){var a=e.prototype.alias.call(this,t,n,r,i);return C(a,o),a},t}(O),N=function(e){return"addMiddleware"in e&&"destination"===e.type},L=a(5881),D=a(6115),M=a(9952),F=a(4980),V=function(e){function t(t){var n,r,i,o=e.call(this)||this;return o.criticalTasks=(i=0,{done:function(){return n},run:function(e){var t,o=e();return"object"==typeof(t=o)&&null!==t&&"then"in t&&"function"==typeof t.then&&(1===++i&&(n=new Promise(function(e){return r=e})),o.finally(function(){return 0===--i&&r()})),o}}),o.plugins=[],o.failedInitializations=[],o.flushing=!1,o.queue=t,o.queue.on(D.g,function(){o.scheduleFlush(0)}),o}return(0,s.C6)(t,e),t.prototype.register=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r,i,o=this;return(0,s.YH)(this,function(a){switch(a.label){case 0:return this.plugins.push(t),r=function(n){o.failedInitializations.push(t.name),o.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),o.plugins=o.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(r),[3,4]);case 1:return a.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),r(i),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(e)&&(t.off("flush",r),n(i))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){var t;return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a;return(0,s.YH)(this,function(s){switch(s.label){case 0:return[4,this.criticalTasks.done()];case 1:s.sent(),n=Date.now(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=s.sent(),r=Date.now()-n,(i=e.failedDelivery())?(a=i.reason instanceof Error?i.reason:new Error(String(null!==(t=i.reason)&&void 0!==t?t:"Unknown delivery failure")),e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),[2,e]):(this.emit("delivery_success",e),e.stats.gauge("delivered",r),e.log("debug","Delivered",e.event),[2,e]);case 4:throw o=s.sent(),a=o,e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!(e instanceof M.d&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){var e,t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=r.sent(),t=!e.failedDelivery(),this.emit("flush",e,t),[3,4];case 3:return n=r.sent(),this.enqueuRetry(n,e)||(e.setFailedDelivery({reason:n}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,r=this.plugins.filter(function(t){var n,r,i;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var o=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(o=e[t])}),null!==(i=null!==(r=e[t.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)}),i=(t="type",n={},r.forEach(function(e){var r,i=void 0,o=e[t];void 0!==(i="string"!=typeof o?JSON.stringify(o):o)&&(n[i]=(0,s.fX)((0,s.fX)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[e],!1))}),n),o=i.before,a=void 0===o?[]:o,l=i.enrichment,u=void 0===l?[]:l,c=i.destination,d=void 0===c?[]:c,h=i.after;return{before:a,enrichment:u,destinations:d,after:void 0===h?[]:h}},t.prototype.flushOne=function(e){var t,n;return(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a,l,u,c,d,h,f,p,m,g,v;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),i=r.before,o=r.enrichment,a=0,l=i,s.label=1;case 1:return a<l.length?(u=l[a],[4,(0,F.D)(e,u)]):[3,4];case 2:(f=s.sent())instanceof M.j&&(e=f),this.emit("message_enriched",e,u),s.label=3;case 3:return a++,[3,1];case 4:c=0,d=o,s.label=5;case 5:return c<d.length?(h=d[c],[4,(0,F.C)(e,h)]):[3,8];case 6:(f=s.sent())instanceof M.j&&(e=f),this.emit("message_enriched",e,h),s.label=7;case 7:return c++,[3,5];case 8:return p=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),m=p.destinations,g=p.after,[4,new Promise(function(t,n){setTimeout(function(){var r=m.map(function(t){return(0,F.C)(e,t)});Promise.all(r).then(t).catch(n)},0)})];case 9:return s.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),v=g.map(function(t){return(0,F.C)(e,t)}),[4,Promise.all(v)];case 10:return s.sent(),[2,e]}})})},t}(b.v),z=function(e){function t(t){return e.call(this,"string"==typeof t?new L.x(4,t):t)||this}return(0,s.C6)(t,e),t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return(0,m.a)()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(V);function j(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&"function"==typeof o.value&&(e[i]=e[i].bind(e))}}return e}var B={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},H=function(e,t,n,r){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(n,'" | Err: ').concat(r))},$=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(t=i.get(e)))return t}catch(t){H(i,"get",e,t)}}return null},e.prototype.set=function(e,t){this.stores.forEach(function(n){try{n.set(e,t)}catch(t){H(n,"set",e,t)}})},e.prototype.clear=function(e){this.stores.forEach(function(t){try{t.remove(e)}catch(n){H(t,"remove",e,n)}})},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),W=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function U(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(e){return Object.values(B).includes(e)})}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var q=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=K({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",K({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,K({},this.attributes,t))},withConverter:function(t){return e(K({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Y=q;function G(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),r=0;r<n.length;++r){var i="__tld__",o=n[r],a={domain:"."+o};try{if(Y.set(i,"1",a),Y.get(i))return Y.remove(i,a),o}catch(e){return}}}var X=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,s.Cl)((0,s.Cl)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:G(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=Y.get(e);if(null==n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?Y.set(e,t,this.opts()):null===t?Y.remove(e,this.opts()):Y.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return Y.remove(e,this.opts())},e}(),J=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function Q(e){var t=e.map(function(e){var t,n;switch(function(e){return"object"==typeof e&&void 0!==e.name}(e)?(t=e.name,n=e.settings):t=e,t){case B.Cookie:return new X(n);case B.LocalStorage:return new J;case B.Memory:return new W;default:throw new Error("Unknown Store Type: ".concat(e))}});return t}function Z(e,t){return e.map(function(e){return t&&e===B.Cookie?{name:e,settings:t}:e})}var ee={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},te=function(){function e(e,t){void 0===e&&(e=ee);var n,r,i,o,a=this;this.options={},this.id=function(e){if(a.options.disable)return null;var t=a.identityStore.getAndSync(a.idKey);void 0!==e&&(a.identityStore.set(a.idKey,e),e!==t&&null!==t&&null!==e&&a.anonymousId(null));var n=a.identityStore.getAndSync(a.idKey);if(n)return n;var r=a.legacyUserStore.get(ee.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(a.options.disable)return null;if(void 0===e){var r=null!==(t=a.identityStore.getAndSync(a.anonKey))&&void 0!==t?t:null===(n=a.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(a.identityStore.set(a.anonKey,null),a.identityStore.getAndSync(a.anonKey)):(a.identityStore.set(a.anonKey,null!=e?e:(0,_.v4)()),a.identityStore.getAndSync(a.anonKey))},this.traits=function(e){var t;if(!a.options.disable)return null===e&&(e={}),e&&a.traitsStore.set(a.traitsKey,null!=e?e:{}),null!==(t=a.traitsStore.get(a.traitsKey))&&void 0!==t?t:{}},this.options=(0,s.Cl)((0,s.Cl)({},ee),e),this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:ee.cookie.key,this.traitsKey=null!==(o=null===(i=e.localStorage)||void 0===i?void 0:i.key)&&void 0!==o?o:ee.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,function(e){return e===B.Cookie}),this.traitsStore=this.createStorage(this.options,t,function(e){return e!==B.Cookie});var l=this.legacyUserStore.get(ee.cookie.oldKey);l&&"object"==typeof l&&(l.id&&this.id(l.id),l.traits&&this.traits(l.traits)),j(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();null!==n&&n!==e||(t=(0,s.Cl)((0,s.Cl)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[B.LocalStorage,B.Cookie,B.Memory];return e.disable?new $([]):e.persist?(void 0!==e.storage&&null!==e.storage&&U(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter(function(e){return e!==B.LocalStorage})),n&&(r=r.filter(n)),new $(Q(Z(r,t)))):new $([new W])},e.defaults=ee,e}(),ne={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},re=function(e){function t(t,n){void 0===t&&(t=ne);var r=e.call(this,(0,s.Cl)((0,s.Cl)({},ne),t),n)||this;return r.anonymousId=function(e){},j(r),r}return(0,s.C6)(t,e),t}(te),ie=a(8167),oe=a(2453),ae=a(472),se=a(1298),le=function(e,t,n){n.getAndRemove(e).forEach(function(e){ve(t,e).catch(console.error)})},ue=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("addSourceMiddleware"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ve(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},ce=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("register"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ve(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},de=le.bind(void 0,"on"),he=le.bind(void 0,"setAnonymousId"),fe=function(e){if(pe(e)){var t=e.pop();return x(t)}},pe=function(e){return function(e){if(t=e,"object"!==Object.prototype.toString.call(t).slice(8,-1).toLowerCase())return!1;var t;if("bpc"!==e.__t)return!1;for(var n in e)if(!S.includes(n))return!1;return!0}(e[e.length-1])},me=function(e,t,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=e,this.resolve=n,this.reject=r,this.called=!1,this.args=t},ge=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!==(t=this.calls[e])&&void 0!==t?t:[]},e.prototype.getAndRemove=function(e){var t=this.get(e);return this.calls[e]=[],t},e.prototype.add=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach(function(t){["track","screen","alias","group","page","identify"].includes(t.method)&&!pe(t.args)&&(t.args=(0,s.fX)((0,s.fX)([],t.args,!0),[E()],!1)),e.calls[t.method]?e.calls[t.method].push(t):e.calls[t.method]=[t]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,se.X)()){var e=(0,ae.kJ)();if(Array.isArray(e)){var t=e.splice(0,e.length).map(function(e){var t=e[0],n=e.slice(1);return new me(t,n)});this.add.apply(this,t)}}},e}();function ve(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,"object"==typeof(o=n=e[t.method].apply(e,t.args))&&null!==o&&"then"in o&&"function"==typeof o.then?[4,n]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}var o})})}var ye=function(){function e(e){var t=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=ie.r,this._preInitBuffer=new ge,this._promise=e(this._preInitBuffer),this._promise.then(function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r}).catch(function(){})}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.instance){var o=(n=t.instance)[e].apply(n,r);return Promise.resolve(o)}return new Promise(function(n,i){t._preInitBuffer.add(new me(e,r,n,i))})}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.add(new me(e,r)),t)}},e}(),be=a(5791),_e=a(524),we=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t)||this;return i.retryTimeout=n,i.isRetryableWithoutCount=r,i.name="RateLimitError",i}return(0,s.C6)(t,e),t}(Error),Se=function(e){return(0,s.Cl)({"Content-Type":"text/plain"},"function"==typeof e?e():e)},xe={408:"retry",410:"retry",429:"retry",460:"retry",501:"drop",505:"drop",511:"drop"};function Ee(e,t,n,r){var i=null!=e?e:t;return Math.min(Math.max(i,n),r)}function Ce(e,t){var n;if(429!==e.status)return null;var r=null===(n=e.headers)||void 0===n?void 0:n.get("Retry-After");if(!r)return null;var i=parseInt(r,10);return Number.isNaN(i)?null:{retryAfterMs:1e3*Math.max(0,Math.min(i,t.maxRetryInterval)),fromHeader:!0}}function ke(e,t){return t.statusCodeOverrides[String(e)]||(e>=500?t.default5xxBehavior:e>=400?t.default4xxBehavior:"drop")}function Ae(e,t){var n,r,i,o,a=e||t?{rateLimitConfig:(0,s.Cl)((0,s.Cl)({},null==e?void 0:e.rateLimitConfig),null==t?void 0:t.rateLimitConfig),backoffConfig:(0,s.Cl)((0,s.Cl)((0,s.Cl)({},null==e?void 0:e.backoffConfig),null==t?void 0:t.backoffConfig),{statusCodeOverrides:(0,s.Cl)((0,s.Cl)({},null===(n=null==e?void 0:e.backoffConfig)||void 0===n?void 0:n.statusCodeOverrides),null===(r=null==t?void 0:t.backoffConfig)||void 0===r?void 0:r.statusCodeOverrides)})}:void 0,l=null==a?void 0:a.rateLimitConfig,u=null==a?void 0:a.backoffConfig;return{rateLimitConfig:{maxRetryCount:Ee(null==l?void 0:l.maxRetryCount,10,0,100),maxRetryInterval:Ee(null==l?void 0:l.maxRetryInterval,300,.1,86400),maxRateLimitDuration:Ee(null==l?void 0:l.maxRateLimitDuration,43200,10,86400)},backoffConfig:{maxRetryCount:Ee(null==u?void 0:u.maxRetryCount,10,0,100),baseBackoffInterval:Ee(null==u?void 0:u.baseBackoffInterval,.5,.1,300),maxBackoffInterval:Ee(null==u?void 0:u.maxBackoffInterval,60,.1,86400),maxTotalBackoffDuration:Ee(null==u?void 0:u.maxTotalBackoffDuration,43200,60,604800),jitterPercent:Ee(null==u?void 0:u.jitterPercent,10,0,100),default4xxBehavior:null!==(i=null==u?void 0:u.default4xxBehavior)&&void 0!==i?i:"drop",default5xxBehavior:null!==(o=null==u?void 0:u.default5xxBehavior)&&void 0!==o?o:"retry",statusCodeOverrides:(0,s.Cl)((0,s.Cl)({},xe),null==u?void 0:u.statusCodeOverrides)}}}function Re(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function Te(e){return Re(e)>=450}function Pe(e,t){return{dispatch:function(n,r,i){var o=Se(null==e?void 0:e.headers),a=null==r?void 0:r.writeKey;if(a){var s=btoa(a+":");o.Authorization="Basic ".concat(s)}return i&&(o["X-Retry-Count"]=String(i)),(0,_e.h)(n,{credentials:null==e?void 0:e.credentials,keepalive:null==e?void 0:e.keepalive,headers:o,method:"post",body:JSON.stringify(r),priority:null==e?void 0:e.priority}).then(function(e){var n=e.status;if(!(n<400)){var r=null!=t?t:Ae(),i=ke(n,r.backoffConfig);if("drop"!==i){var o=Ce(e,r.rateLimitConfig);if(o)throw new we("Rate limit exceeded: ".concat(n),o.retryAfterMs,o.fromHeader)}if("retry"===i)throw new Error("Retryable error: ".concat(n));var a=new Error("Non-retryable error: ".concat(n));throw a.name="NonRetryableError",a}})}}}function Oe(e,t,n,r,i){var o,a=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||a.id(),t.anonymousId=t.anonymousId||a.anonymousId(),t.sentAt=new Date;var l=e.queue.failedInitializations||[];l.length>0&&(t._metadata={failedInitializations:l}),null!=i&&(i.attempts>1&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{retryCount:i.attempts})),i.attempts++);var u=[],c=[];for(var d in r){var h=r[d];"Segment.io"===d&&u.push(d),"bundled"===h.bundlingStatus&&u.push(d),"unbundled"===h.bundlingStatus&&c.push(d)}for(var f=0,p=(null==n?void 0:n.unbundledIntegrations)||[];f<p.length;f++){var m=p[f];c.includes(m)||c.push(m)}var g=null!==(o=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==o?o:{},v=[];return u.sort().forEach(function(e){var t;(null!==(t=g[e])&&void 0!==t?t:[]).forEach(function(e){v.push(e)})}),!1!==(null==n?void 0:n.addBundledMetadata)&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{bundled:u.sort(),unbundled:c.sort(),bundledIds:v})),t}Object.defineProperty(Pe,"name",{value:"default",configurable:!0});var Ie=a(2613);function Ne(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return n=[],(0,m.a)()?[2,t]:[4,(0,Ie._)(function(){return t.length>0&&!(0,m.a)()},function(){return(0,s.sH)(r,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return(r=t.pop())?[4,(0,F.C)(r,e)]:[2];case 1:return i.sent()instanceof g.o||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}function Le(e,t,n,r){var i=this;e||setTimeout(function(){return(0,s.sH)(i,void 0,void 0,function(){var e,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:return e=!0,[4,Ne(n,t)];case 1:return i=o.sent(),e=!1,t.todo>0&&r(e,i,n,r),[2]}})})},500*Math.random()+100)}var De=a(7947),Me=function(e){return"Segment.io"===e.name};function Fe(e,t,n){var r,i,o,a;window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(c)),c.clear()});var l=null!==(r=null==t?void 0:t.apiKey)&&void 0!==r?r:"",u=e.options.disableClientPersistence?new D.M(e.queue.queue.maxAttempts,[]):new L.x(e.queue.queue.maxAttempts,"".concat(l,":dest-Segment.io")),c=new Set,d=new WeakMap,h=!1,f=null!==(i=null==t?void 0:t.apiHost)&&void 0!==i?i:De.a,p=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",v="".concat(p,"://").concat(f),y=null===(a=null==n?void 0:n["Segment.io"])||void 0===a?void 0:a.httpConfig,b=Ae(null==t?void 0:t.httpConfig,y);!1!==e.options.retryQueue&&(u.maxAttempts=b.backoffConfig.maxRetryCount);var _=null==t?void 0:t.deliveryStrategy,w=_&&"strategy"in _&&"batching"===_.strategy?function(e,t,n,r){var i,o;void 0===r&&(r="https");var a,l,u,c=[],d=!1,h=null!==(i=null==t?void 0:t.size)&&void 0!==i?i:10,f=null!==(o=null==t?void 0:t.timeout)&&void 0!==o?o:5e3,p=null!=n?n:Ae(),m=0,v=0,y=!1,b=!1,_=0,w=0,S=0;function x(n,i){var o;if(0!==n.length){var a=null===(o=n[0])||void 0===o?void 0:o.writeKey,l=n.map(function(e){var t=e;return t.sentAt,(0,s.Tt)(t,["sentAt"])}),u=Se(null==t?void 0:t.headers);if(i>0&&(u["X-Retry-Count"]=String(i)),a){var c=btoa(a+":");u.Authorization="Basic ".concat(c)}var h=e.startsWith("http://")||e.startsWith("https://")?"":"".concat(r,"://");return(0,_e.h)("".concat(h).concat(e,"/b"),{credentials:null==t?void 0:t.credentials,keepalive:(null==t?void 0:t.keepalive)||d,headers:u,method:"post",body:JSON.stringify({writeKey:a,batch:l,sentAt:(new Date).toISOString()}),priority:null==t?void 0:t.priority}).then(function(e){var t=e.status;if(!(t<400)){var n=ke(t,p.backoffConfig);if("drop"!==n){var r=Ce(e,p.rateLimitConfig);if(r)throw new we("Rate limit exceeded: ".concat(t),r.retryAfterMs,r.fromHeader)}if("retry"===n)throw new Error("Retryable error: ".concat(t))}})}}function E(){c.length>0&&k(1)}function C(e){var n;return void 0===e&&(e=1),(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a;return(0,s.YH)(this,function(l){return y||(v=0,_=0,w=0,S=0),y=!1,b=!0,c.length?(r=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=(0,s.fX)((0,s.fX)([],t,!0),[r],!1);if(t.length>0&&Te(i))return{batch:t,remaining:e.slice(n)};t.push(r)}return{batch:t,remaining:[]}}(c),i=r.batch,o=r.remaining,0===i.length?(b=!1,[2]):(c=o,a=v,v+=1,[2,null===(n=x(i,a))||void 0===n?void 0:n.then(function(e){return c.length>0&&k(1),e}).catch(function(n){var r;g.o.system().log("error","Error sending batch",n);var o,a=null!==(r=null==t?void 0:t.maxRetries)&&void 0!==r?r:p.backoffConfig.maxRetryCount,l="RateLimitError"===n.name,u=l&&n.isRetryableWithoutCount;if(!(u||e<=a))return E();if(u){if(++_>p.rateLimitConfig.maxRetryCount)return E();var d=n.retryTimeout;S+=d;var h=1e3*p.rateLimitConfig.maxRateLimitDuration;if(S>h)return E();m=d}if(!l){o=function(e,t){var n=1e3*t.baseBackoffInterval,r=1e3*t.maxBackoffInterval,i=n*Math.pow(2,e-1),o=Math.min(i,r),a=1+2*(Math.random()-.5)*(t.jitterPercent/100);return Math.max(0,o*a)}(e,p.backoffConfig),w+=o;var f=1e3*p.backoffConfig.maxTotalBackoffDuration;if(w>f)return E()}c=(0,s.fX)((0,s.fX)([],i,!0),c,!0),i.forEach(function(t){if("_metadata"in t){var n=t;n._metadata=(0,s.Cl)((0,s.Cl)({},n._metadata),{retryCount:e})}}),y=!0,k(u?e:e+1,o)}).finally(function(){b=!1})])):(b=!1,[2])})})}function k(e,t){void 0===e&&(e=1),a||(a=setTimeout(function(){a=void 0,C(e).catch(console.error)},m||t||f),m=0)}return l=function(e){if((d=e)&&c.length){var t=function(e){var t=[],n=0;return e.forEach(function(e){Re(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t}(c).map(function(e){return x(e,0)});Promise.all(t).catch(console.error)}},u=!1,window.addEventListener("pagehide",function(){u||l(u=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(u)return;u=!0}else u=!1;l(u)}),{dispatch:function(e,n,r){return(0,s.sH)(this,void 0,void 0,function(){var e;return(0,s.YH)(this,function(r){return c.push(n),y?[2]:(e=c.length>=h||Te(c)||(null==t?void 0:t.keepalive)&&function(e){return Re(e)>=54}(c),e||d?[2,b?k():C()]:[2,k()])})})}}}(f,_.config,b,p):Pe(null==_?void 0:_.config,b);function S(r){return(0,s.sH)(this,void 0,void 0,function(){var i,o,a,l;return(0,s.YH)(this,function(s){return(0,m.a)()?(u.push(r),Le(h,u,x,Le),[2,r]):(c.add(r),i=r.event.type.charAt(0),o=(0,be.W)(r.event).json(),"track"===r.event.type&&delete o.traits,"alias"===r.event.type&&(o=function(e,t){var n,r,i,o,a=e.user();return t.previousId=null!==(i=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==i?i:a.anonymousId(),t.userId=null!==(o=t.userId)&&void 0!==o?o:t.to,delete t.from,delete t.to,t}(e,o)),(a=u.getAttempts(r))>=u.maxAttempts?(c.delete(r),l=new Error("Retry attempts exhausted (".concat(a,"/").concat(u.maxAttempts,")")),r.setFailedDelivery({reason:l}),e.emit("error",{code:"delivery_failure",reason:l,ctx:r}),[2,r]):[2,w.dispatch("".concat(v,"/").concat(i),Oe(e,o,t,n,r),a).then(function(){return r}).catch(function(t){var n;if(r.log("error","Error sending event",t),"RateLimitError"===t.name){var i=(null!==(n=d.get(r))&&void 0!==n?n:0)+1;if(d.set(r,i),i>b.rateLimitConfig.maxRetryCount)r.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:r});else{var o=t.retryTimeout;u.pushWithDelay(r,o)}}else"NonRetryableError"===t.name?(r.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:r})):u.pushWithBackoff(r);return Le(h,u,x,Le),r}).finally(function(){c.delete(r)})])})})}var x={metadata:{writeKey:l,apiHost:f,protocol:p},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:S,identify:S,page:S,alias:S,group:S,screen:S};return u.todo&&Le(h,u,x,Le),x}var Ve="This is being deprecated and will be not be available in future releases of Analytics JS",ze=(0,oe.m)(),je=null==ze?void 0:ze.analytics,Be=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null===(e=t.plugins.find(Me))||void 0===e?void 0:e.metadata},this.writeKey=e.writeKey,this.cdnSettings=null!==(n=e.cdnSettings)&&void 0!==n?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null===(t=null===(e=this._getSegmentPluginMetadata)||void 0===e?void 0:e.call(this))||void 0===t?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function He(){console.warn(Ve)}var $e,We=function(e){function t(t,n,r,i,o){var a,l,u=this;(u=e.call(this)||this)._debug=!1,u.initialized=!1,u.user=function(){return u._user},u.init=u.initialize.bind(u),u.log=He,u.addIntegrationMiddleware=He,u.listeners=He,u.addEventListener=He,u.removeAllListeners=He,u.removeListener=He,u.removeEventListener=He,u.hasListeners=He,u.add=He,u.addIntegration=He;var c=null==n?void 0:n.cookie,d=null!==(a=null==n?void 0:n.disableClientPersistence)&&void 0!==a&&a;u.queue=null!=r?r:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?10:1,i=n?new D.M(r,[]):new L.x(r,e);return new z(i)}("".concat(t.writeKey,":event-queue"),null==n?void 0:n.retryQueue,d),u.settings=new Be(t,u.queue);var h=null==n?void 0:n.storage;return u._universalStorage=u.createStore(d,h,c),u._user=null!=i?i:new te((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.user),c).load(),u._group=null!=o?o:new re((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.group),c).load(),u.eventFactory=new I(u._user),u.integrations=null!==(l=null==n?void 0:n.integrations)&&void 0!==l?l:{},u.options=null!=n?n:{},j(u),u}return(0,s.C6)(t,e),t.prototype.createStore=function(e,t,n){return e?new $([new W]):t&&U(t)?new $(Q(Z(t.stores,n))):new $(Q([B.LocalStorage,{name:B.Cookie,settings:n},B.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=d.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.track(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("track",r,e.event.properties,e.event.options),e})]})})},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=fe(e),n=h.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.page(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("page",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=f(this._user).apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],this._user.identify(r,i),l=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("identify",e.event.userId,e.event.traits,e.event.options),e})]})})},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=fe(t);if(0===t.length)return this._group;var i=f(this._group).apply(void 0,t),o=i[0],a=i[1],s=i[2],l=i[3];this._group.identify(o,a);var u=this._group.id(),c=this._group.traits(),d=this.eventFactory.group(u,c,s,this.integrations,r);return this._dispatch(d,l).then(function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t})},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=p.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.alias(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("alias",r,i,e.event.options),e})]})})},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=fe(e),n=h.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.screen(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("screen",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=g.o.system(),n=e.map(function(e){return r.queue.register(t,e,r)}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=g.o.system(),n=e.map(function(e){var n=r.queue.plugins.find(function(t){return t.name===e});if(n)return r.queue.deregister(t,n,r);t.log("warn","plugin ".concat(e," not found"))}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n;return(0,s.YH)(this,function(r){return(n=new g.o(e)).stats.increment("analytics_js.invoke",1,[e.type]),(0,m.a)()&&!this.options.retryQueue?[2,n]:[2,y(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,s.sH)(t,void 0,void 0,function(){var t,n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(a.bind(a,5939))];case 1:return t=i.sent().sourceMiddlewarePlugin,n={},this.queue.plugins.forEach(function(e){if("destination"===e.type)return n[e.name]=!0}),r=t(e,n),[4,this.register(r)];case 2:return i.sent(),[2]}})})})];case 1:return n.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter(N).forEach(function(n){"*"!==e&&n.name.toLowerCase()!==e.toLowerCase()||n.addMiddleware.apply(n,t)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,a.e(538).then(a.bind(a,2552))];case 1:return[2,(0,t.sent().queryString)(this,e)]}})})},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(e){return e.ready?e.ready():Promise.resolve()})).then(function(t){return e(t),t})]})})},t.prototype.noConflict=function(){return console.warn(Ve),(0,ae.Ud)(null!=je?je:this),this},t.prototype.normalize=function(e){return console.warn(Ve),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(Ve),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return ie.r},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){return console.warn(Ve),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return console.warn(Ve),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(Ve),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(Ve),this.queue.plugins.filter(function(e){return"destination"===e.type}).reduce(function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?(e[t.name]=i,e):(e[t.name]=r,e)},{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}(b.v),Ue=function(e){function t(){var t=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return(0,s.C6)(t,e),t}(We),Ke=a(1094),qe=a(6251),Ye=a(5770);function Ge(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}function Xe(){if($e)return $e;var e=G(window.location.href);return $e={expires:31536e6,secure:!1,path:"/"},e&&($e.domain=e),$e}var Je,Qe,Ze=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return(0,s.sH)(e,void 0,void 0,function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:this.instance=n,t.label=1;case 1:return t.trys.push([1,3,,4]),e=this,[4,Ge(this.instance.options.highEntropyValuesClientHints)];case 2:return e.userAgentData=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(t){var n,r,i=t.event.context,o=i.page.search||"",a="object"==typeof o?function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];Array.isArray(r)?r.forEach(function(e){return t.append(n,e)}):t.append(n,r)}),t.toString()}catch(e){return""}}(o):o;i.userAgent=navigator.userAgent,i.userAgentData=e.userAgentData;var l=navigator.userLanguage||navigator.language;void 0===i.locale&&void 0!==l&&(i.locale=l),null!==(n=i.library)&&void 0!==n||(i.library={name:"analytics.js",version:"".concat("web"===(0,se.X)()?"next":"npm:next","-").concat(ie.r)}),a&&!i.campaign&&(i.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1],o=void 0===i?"":i;if(r.includes("utm_")&&r.length>4){var a=r.slice(4);"campaign"===a&&(a="name"),e[a]=(0,Ye.p)(o)}return e},{})}(a));var u=function(){var e=Y.get("_ga");if(e&&e.startsWith("amp"))return e}();u&&(i.amp={id:u}),function(e,t,n){var r,i=new $(n?[]:[new X(Xe())]),o=i.get("s:context.referrer"),a=null!==(r=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var i=r[n].split("="),o=i[0],a=i[1];if(t[o])return{id:a,type:t[o]}}}(e))&&void 0!==r?r:o;a&&(t&&(t.referrer=(0,s.Cl)((0,s.Cl)({},t.referrer),a)),i.set("s:context.referrer",a))}(a,i,null!==(r=e.instance.options.disableClientPersistence)&&void 0!==r&&r);try{i.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},et=a(3357),tt=a(5939),nt=a(4757),rt=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,qe.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,(0,tt.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new M.d({retry:!1,reason:"dropped by destination middleware"})),[2,new g.o(t)]}})})},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,s.sH)(t,void 0,void 0,function(){var t,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw new Error("Something prevented the destination from getting ready");return(0,nt.y)(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](t)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,nt.y)(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];a.label=1;case 1:return a.trys.push([1,3,,4]),(0,nt.y)(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,t),i=(r=this.loadPromise).resolve,[4,n];case 2:return i.apply(r,[a.sent()]),[2,n];case 3:throw o=a.sent(),(0,nt.y)(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(o),o;case 4:return[2]}})})},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function it(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a,l;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,9,,10]),n=new RegExp("https://cdn.segment.(com|build)"),r=(0,u.I2)(),!t)return[3,6];i=e.url.split("/"),o=i[i.length-2],a=e.url.replace(o,btoa(o).replace(/=/g,"")),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,(0,et.k)(a.replace(n,r))];case 2:return s.sent(),[3,5];case 3:return s.sent(),[4,(0,et.k)(e.url.replace(n,r))];case 4:return s.sent(),[3,5];case 5:return[3,8];case 6:return[4,(0,et.k)(e.url.replace(n,r))];case 7:s.sent(),s.label=8;case 8:return"function"==typeof window[e.libraryName]?[2,window[e.libraryName]]:[3,10];case 9:throw l=s.sent(),console.error("Failed to create PluginFactory",e),l;case 10:return[2]}})})}function ot(e,t,n,r,i,o){var a,l,u;return(0,s.sH)(this,void 0,void 0,function(){var c,d,h,f=this;return(0,s.YH)(this,function(p){switch(p.label){case 0:return c=[],d=null!==(l=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==l?l:[],h=(null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map(function(e){return(0,s.sH)(f,void 0,void 0,function(){var a,l,u,h,f,p,m;return(0,s.YH)(this,function(v){switch(v.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];v.label=1;case 1:return v.trys.push([1,6,,7]),(l=null==o?void 0:o.find(function(t){return t.pluginName===e.name}))?[3,3]:[4,it(e,null==r?void 0:r.obfuscate)];case 2:l=v.sent(),v.label=3;case 3:return(a=l)?(u=n[e.name],[4,a((0,s.Cl)((0,s.Cl)({},e.settings),u))]):[3,5];case 4:h=v.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})}(f=Array.isArray(h)?h:[h]),p=d.filter(function(t){return t.destinationName===e.creationName}),f.forEach(function(t){var n=new rt(e.creationName,t);p.length&&i&&n.addMiddleware(i),c.push(n)}),v.label=5;case 5:return[3,7];case 6:return m=v.sent(),console.warn("Failed to load Remote Plugin",m),(0,nt.y)(g.o.system(),{integrationName:e.name,methodName:"load",type:"action",didError:!0}),[3,7];case 7:return[2]}})})}),[4,Promise.all(h)];case 1:return p.sent(),[2,c.filter(Boolean)]}})})}var at=null!==(Je=(Qe=(0,oe.m)()).__SEGMENT_INSPECTOR__)&&void 0!==Je?Je:Qe.__SEGMENT_INSPECTOR__={},st=a(4568);function lt(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,ut(e,t)];case 1:return r.sent(),function(e,t){Object.keys(t.calls).forEach(function(n){t.getAndRemove(n).forEach(function(t){setTimeout(function(){ve(e,t).catch(console.error)},0)})})}(e,n),[2]}})})}var ut=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){return(0,s.YH)(this,function(n){switch(n.label){case 0:return t.includes("ajs_")?[4,e.queryString(t).catch(console.error)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})};function ct(e,t,n,r,i,o,u){var c,d,h;return void 0===i&&(i=[]),(0,s.sH)(this,void 0,void 0,function(){var f,p,m,g,v,y,b,_,w,S,x,E,C,k,A=this;return(0,s.YH)(this,function(R){switch(R.label){case 0:return function(e,t){he(e,t),de(e,t)}(n,u),f=null==i?void 0:i.filter(function(e){return"object"==typeof e}),p=null==i?void 0:i.filter(function(e){return"function"==typeof e&&"string"==typeof e.pluginName}),function(e){var t,n,r;return"test"!==l().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,a.e(10).then(a.bind(a,6834)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return g=R.sent(),[3,3];case 2:g=void 0,R.label=3;case 3:return m=g,T=t,"test"!==l().NODE_ENV&&Object.keys(T.integrations).length>1||o.length>0?[4,a.e(50).then(a.bind(a,365)).then(function(i){return i.ajsDestinations(e,t,n.integrations,r,m,o)})]:[3,5];case 4:return y=R.sent(),[3,6];case 5:y=[],R.label=6;case 6:return v=y,t.legacyVideoPluginsEnabled?[4,a.e(694).then(a.bind(a,4503)).then(function(e){return e.loadLegacyVideoPlugins(n)})]:[3,8];case 7:R.sent(),R.label=8;case 8:return(null===(c=r.plan)||void 0===c?void 0:c.track)?[4,a.e(104).then(a.bind(a,681)).then(function(e){var n;return e.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,t)})]:[3,10];case 9:return _=R.sent(),[3,11];case 10:_=void 0,R.label=11;case 11:return b=_,w=(0,Ke.J)(t,r),[4,ot(t,n.integrations,w,r,m,p).catch(function(e){return console.error("Failed to load remote plugins",e),[]})];case 12:return S=R.sent(),x=(0,s.fX)((0,s.fX)([Ze],v,!0),S,!0),b&&x.push(b),!1===(null===(d=r.integrations)||void 0===d?void 0:d.All)&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]?[3,14]:(C=(E=x).push,[4,Fe(n,w["Segment.io"],t.integrations)]);case 13:C.apply(E,[R.sent()]),R.label=14;case 14:return[4,n.register.apply(n,(0,s.fX)((0,s.fX)([],x,!1),f,!1))];case 15:return k=R.sent(),[4,ce(n,u)];case 16:return R.sent(),Object.entries(null!==(h=t.enabledMiddleware)&&void 0!==h?h:{}).some(function(e){return e[1]})?[4,a.e(521).then(a.bind(a,6904)).then(function(e){var i=e.remoteMiddlewares;return(0,s.sH)(A,void 0,void 0,function(){var e,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return[4,i(k,t,r.obfuscate)];case 1:return e=a.sent(),o=e.map(function(e){return n.addSourceMiddleware(e)}),[2,Promise.all(o)]}})})})]:[3,18];case 17:R.sent(),R.label=18;case 18:return[4,ue(n,u)];case 19:return R.sent(),[2,k]}var T})})}var dt=function(e){function t(){var t=this,n=(0,qe.u)(),r=n.promise,i=n.resolve;return t=e.call(this,function(e){return r.then(function(t){return function(e,t,n){var r,i,o,a,l,c,d,h,f;return void 0===t&&(t={}),(0,s.sH)(this,void 0,void 0,function(){var p,m,v,y,b,_,w,S,x,E;return(0,s.YH)(this,function(C){switch(C.label){case 0:return!0===t.disable?[2,[new Ue,g.o.system()]]:(t.globalAnalyticsKey&&(0,ae.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,u.qQ)(e.cdnURL),t.initialPageview&&n.add(new me("page",[])),p=function(){var e,t,n=null!==(e=window.location.hash)&&void 0!==e?e:"",r=null!==(t=window.location.search)&&void 0!==t?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")}(),m=null!==(r=e.cdnURL)&&void 0!==r?r:(0,u.I2)(),null===(i=e.cdnSettings)||void 0===i?[3,1]:(y=i,[3,3]));case 1:return[4,(k=e.writeKey,A=m,(0,_e.h)("".concat(A,"/v1/projects/").concat(k,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw new Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:y=C.sent(),C.label=3;case 3:return v=y,t.updateCDNSettings&&(v=t.updateCDNSettings(v)),"function"!=typeof t.disable?[3,5]:[4,t.disable(v)];case 4:if(C.sent())return[2,[new Ue,g.o.system()]];C.label=5;case 5:return b=null===(a=null===(o=v.integrations["Segment.io"])||void 0===o?void 0:o.retryQueue)||void 0===a||a,t=(0,s.Cl)({retryQueue:b},t),function(e){var t;null===(t=at.attach)||void 0===t||t.call(at,e)}(_=new We((0,s.Cl)((0,s.Cl)({},e),{cdnSettings:v,cdnURL:m}),t)),w=null!==(l=e.plugins)&&void 0!==l?l:[],S=null!==(c=e.classicIntegrations)&&void 0!==c?c:[],x=null===(d=t.integrations)||void 0===d?void 0:d["Segment.io"],st.U.initRemoteMetrics((0,s.Cl)((0,s.Cl)({},v.metrics),{host:null!==(h=null==x?void 0:x.apiHost)&&void 0!==h?h:null===(f=v.metrics)||void 0===f?void 0:f.host,protocol:null==x?void 0:x.protocol})),[4,ct(e.writeKey,v,_,t,w,S,n)];case 6:return E=C.sent(),_.initialized=!0,_.emit("initialize",e,t),[4,lt(_,p,n)];case 7:return C.sent(),[2,[_,E]]}var k,A})})}(t[0],t[1],e)})})||this,t._resolveLoadStart=function(e,t){return i([e,t])},t}return(0,s.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(ye);const ht=(0,t.createContext)(void 0),ft=e=>{let{client:n,children:r}=e;return t.createElement(ht.Provider,{value:n},r)};var pt=a(7068),mt=a(5470),gt=a(4951),vt=a(2869),yt=a(728),bt=a(7608);const _t=Object.freeze([]),wt=Object.freeze({});function St(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const xt=new WeakSet,Et={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ct(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Et||e.startsWith("--")?String(t).trim():t+"px"}function kt(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}function At(e){return"function"==typeof e}const Rt=Symbol.for("sc-keyframes");function Tt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Pt(e){return"object"==typeof e&&"styledComponentId"in e}const Ot=e=>null==e||!1===e||""===e,It=Symbol.for("react.client.reference");function Nt(e){return e.$$typeof===It}function Lt(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!Ot(r)&&(Array.isArray(r)&&xt.has(r)||At(r)?t.push(kt(n)+":",r,";"):Tt(r)?(t.push(n+" {"),Lt(r,t),t.push("}")):t.push(kt(n)+": "+Ct(n,r)+";"))}}function Dt(e,t,n,r,i=[]){if(Ot(e))return i;const o=typeof e;if("string"===o)return i.push(e),i;if("function"===o)return Nt(e)?i:!At(a=e)||a.prototype&&a.prototype.isReactComponent||!t?(i.push(e),i):Dt(e(t),t,n,r,i);var a;if(Array.isArray(e)){for(let o=0;o<e.length;o++)Dt(e[o],t,n,r,i);return i}return Pt(e)?(i.push(`.${e.styledComponentId}`),i):function(e){return"object"==typeof e&&null!==e&&Rt in e}(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):Nt(e)?i:Tt(e)?(Lt(e,i),i):(i.push(e.toString()),i)}function Mt(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const Ft=e=>(xt.add(e),e);function Vt(e,...t){if(At(e)||Tt(e))return Ft(Dt(Mt(_t,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Dt(n):Ft(Dt(Mt(n,t)))}function zt(e,t,n=wt){if(!t)throw St(1,t);const r=(r,...i)=>e(t,n,Vt(r,...i));return r.attrs=r=>zt(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>zt(e,t,Object.assign(Object.assign({},n),r)),r}var jt,Bt;function Ht(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}"undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process),Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(Bt=null!==(jt=Ht("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==jt?jt:Ht("SC_DISABLE_SPEEDY"))&&void 0!==Bt?Bt:"undefined"==typeof process||void 0===process.env||!1);const $t=t.createContext(void 0);function Wt(){const e=t.useContext($t);if(!e)throw St(18);return e}function Ut(e){const n=t.useContext($t),r=t.useMemo(()=>function(e,t){if(!e)throw St(14);if(At(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw St(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,n),[e.theme,n]);return e.children?t.createElement($t.Provider,{value:r},e.children):null}$t.Consumer;const Kt=Symbol.for("react.memo"),qt=Symbol.for("react.forward_ref"),Yt={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Gt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jt={[qt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Kt]:Xt};function Qt(e){return("type"in(t=e)&&t.type.$$typeof)===Kt?Xt:"$$typeof"in e?Jt[e.$$typeof]:Yt;var t}const Zt=Object.defineProperty,en=Object.getOwnPropertyNames,tn=Object.getOwnPropertySymbols,nn=Object.getOwnPropertyDescriptor,rn=Object.getPrototypeOf,on=Object.prototype;function an(e,t,n){if("string"!=typeof t){const r=rn(t);r&&r!==on&&an(e,r,n);const i=en(t).concat(tn(t)),o=Qt(e),a=Qt(t);for(let r=0;r<i.length;++r){const s=i[r];if(!(s in Gt||n&&n[s]||a&&s in a||o&&s in o)){const n=nn(t,s);try{Zt(e,s,n)}catch(e){}}}}return e}const sn=/(a)(d)/gi,ln=e=>String.fromCharCode(e+(e>25?39:97));const un=["fit-content","min-content","max-content"];let cn={};function dn(e){return function(e){return"string"==typeof e&&!0}(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}function hn(e,t,n=!1){if(!n&&!Tt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=hn(e[n],t[n]);else if(Tt(t))for(const n in t)e[n]=hn(e[n],t[n]);return e}const fn=Object.prototype.hasOwnProperty,pn=a(6864);var mn;const gn=(mn=pn.StyleSheet,yn=class{constructor(e){this.rules=e}generateStyleObject(e){return function(e,t){const n=function(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ln(t%52)+n;return(ln(t%52)+n).replace(sn,"$1-$2")}(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,e)>>>0);if(!cn[n]){const r=[];for(const[t,n]of function(e){const t=function(e){if(-1===e.indexOf("/*"))return e;let t="",n=0,r=0;const i=e.length;for(;n<i;){const i=e.charCodeAt(n);if(r){if(92===i){t+=e.substring(n,n+2),n+=2;continue}i===r&&(r=0),t+=e[n],n++}else if(34===i||39===i)r=i,t+=e[n],n++;else if(47===i&&42===e.charCodeAt(n+1)){const t=e.indexOf("*/",n+2);if(-1===t)break;n=t+2}else t+=e[n],n++}return t}(e),n=[],r=t.length;let i=0;for(;i<r;){for(;i<r;){const e=t[i];if(" "===e||"\n"===e||"\r"===e||"\t"===e||";"===e||"}"===e)i++;else{if("{"!==e)break;{let e=1;for(i++;i<r&&e>0;)"{"===t[i]?e++:"}"===t[i]&&e--,i++}}}if(i>=r)break;const e=t.indexOf(":",i);if(-1===e)break;const o=t.substring(i,e).trim();let a=0,s=0,l=e+1;for(;l<r;){const e=t.charCodeAt(l);if(s)92===e?l++:e===s&&(s=0);else if(34===e||39===e)s=e;else if(40===e)a++;else if(41===e)a>0&&a--;else if(59===e&&0===a)break;l++}if(l>=r&&(0!==s||a>0)){const n=t.indexOf(";",e+1);i=-1!==n?n+1:r;continue}const u=t.substring(e+1,l).trim();if(o&&u){if("@"===o[0]||-1!==o.indexOf("{")){let e=0,n=l;for(let n=i;n<l;n++)"{"===t[n]?e++:"}"===t[n]&&e--;for(;n<r&&e>0;)"{"===t[n]?e++:"}"===t[n]&&e--,n++;i=n;continue}n.push([o,u])}i=l+1}return n}(e))!un.includes(n)&&r.push([t,n]);const i=(0,bt.Ay)(r,["borderWidth","borderColor"]);cn[n]=t.create({generated:i}).generated}return cn[n]}(function(e,t){return e.join(t||"")}(Dt(this.rules,e)),mn)}},(e,n,r)=>{const i=Pt(e),o=e,{displayName:a=dn(e),attrs:s=_t}=n,l=i&&o.attrs?o.attrs.concat(s).filter(Boolean):s;let u=n.shouldForwardProp;if(i&&o.shouldForwardProp){const e=o.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;u=(n,r)=>e(n,r)&&t(n,r)}else u=e}const c=(e,n)=>function(e,n,r){const{attrs:i,inlineStyle:o,defaultProps:a,shouldForwardProp:s,target:l}=e,u=t.useContext?t.useContext($t):void 0,c=function(e,t,n=wt){return e.theme!==n.theme&&e.theme||t||n.theme}(n,u,a)||wt;let d,h;const f=t.useRef?t.useRef(null):{current:null},p=f.current;if(null!==p&&p[1]===c&&function(e,t,n){const r=e,i=t;let o=0;for(const e in i)if(fn.call(i,e)&&(o++,r[e]!==i[e]))return!1;return o===n}(p[0],n,p[2]))d=p[3],h=p[4];else{d=function(e=wt,t,n){const r=Object.assign(Object.assign({},t),{theme:e});for(let e=0;e<n.length;e++){const t=At(n[e])?n[e](Object.assign({},r)):n[e];for(const e in t)r[e]=t[e]}return r}(c,n,i),h=o.generateStyleObject(d);let e=0;for(const t in n)fn.call(n,t)&&e++;f.current=[n,c,e,d,h]}const m=d.as||n.as||l,g=function(e,t,n){const r={};for(const i in e)"$"!==i[0]&&"as"!==i&&"theme"!==i&&("forwardedAs"===i?r.as=e[i]:n&&!n(i,t)||(r[i]=e[i]));return r}(d,m,s);return g.style=t.useMemo?t.useMemo(()=>At(n.style)?e=>[h].concat(n.style(e)):n.style?[h].concat(n.style):h,[n.style,h]):At(n.style)?e=>[h].concat(n.style(e)):n.style?[h].concat(n.style):h,r&&(g.ref=r),(0,t.createElement)(m,g)}(d,e,n);c.displayName=a;let d=t.forwardRef(c);return d.attrs=l,d.inlineStyle=new yn(i?o.inlineStyle.rules.concat(r):r),d.displayName=a,d.shouldForwardProp=u,d.styledComponentId=!0,d.target=i?o.target:e,Object.defineProperty(d,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)hn(e,n,!0);return e}({},o.defaultProps,e):e}}),an(d,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),d}),vn=e=>zt(gn,e);var yn;["ActivityIndicator","Button","FlatList","Image","ImageBackground","InputAccessoryView","KeyboardAvoidingView","Modal","Pressable","RefreshControl","SafeAreaView","ScrollView","SectionList","StatusBar","Switch","Text","TextInput","TouchableHighlight","TouchableNativeFeedback","TouchableOpacity","TouchableWithoutFeedback","View","VirtualizedList"].forEach(e=>Object.defineProperty(vn,e,{enumerable:!0,configurable:!1,get(){if(e in pn&&pn[e])return vn(pn[e]);throw new Error(`${e} is not available in the currently-installed version of react-native`)}}));const bn=e=>"string"==typeof e,_n=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},wn=e=>null==e?"":""+e,Sn=/###/g,xn=e=>e&&e.indexOf("###")>-1?e.replace(Sn,"."):e,En=e=>!e||bn(e),Cn=(e,t,n)=>{const r=bn(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(En(e))return{};const t=xn(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return En(e)?{}:{obj:e,k:xn(r[i])}},kn=(e,t,n)=>{const{obj:r,k:i}=Cn(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=Cn(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Cn(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},An=(e,t)=>{const{obj:n,k:r}=Cn(e,t);if(n)return n[r]},Rn=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?bn(e[r])||e[r]instanceof String||bn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Rn(e[r],t[r],n):e[r]=t[r]);return e},Tn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Pn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const On=e=>bn(e)?e.replace(/[&<>"'\/]/g,e=>Pn[e]):e,In=[" ",",","?","!",";"],Nn=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Ln=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},Dn=e=>e&&e.replace("_","-"),Mn={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Fn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Mn,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(bn(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Fn(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Fn(this.logger,e)}}var Vn=new Fn;class zn{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])})}}class jn extends zn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):bn(n)&&i?a.push(...n.split(i)):a.push(n)));const s=An(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&bn(n)?Ln(this.data&&this.data[e]&&this.data[e][t],n,i):s}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),kn(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)(bn(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=An(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Rn(s,n,i):s={...s,...n},kn(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Bn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};const Hn={};class $n extends zn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Vn.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=In.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=Nn.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:bn(i)?[i]:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:bn(i)?[i]:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const c=this.resolve(e,t);let d=c&&c.res;const h=c&&c.usedKey||o,f=c&&c.exactUsedKey||o,p=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!bn(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(g&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0)||bn(m)&&Array.isArray(d))if(g&&bn(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const u=void 0!==t.count&&!bn(t.count),h=$n.hasDefaultValue(t),f=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&h&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=h&&g!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?g:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.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.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=h&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{r([e],o+n,t[`defaultValue${n}`]||g)})}):r(e,o,g))}d=this.extendTranslation(d,e,t,c,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?f:h;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=d[e])}d=n}}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=bn(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&!bn(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s=bn(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Bn.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bn(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==a.count&&!bn(a.count),d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==a.context&&(bn(a.context)||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(o=e,!Hn[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Hn[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" 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!!!")),f.forEach(n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),h){const n=`${l}${this.options.contextSeparator}${a.context}`;o.push(n),c&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!bn(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}const Wn=e=>e.charAt(0).toUpperCase()+e.slice(1);class Un{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vn.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Dn(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Dn(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(bn(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Wn(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Wn(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Wn(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),bn(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return bn(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):bn(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}let Kn=[{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}],qn={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const Yn=["v1","v2","v3"],Gn=["v4"],Xn={zero:0,one:1,two:2,few:3,many:4,other:5};class Jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Vn.create("pluralResolver"),this.options.compatibilityJSON&&!Gn.includes(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=(()=>{const e={};return Kn.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:qn[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=Dn("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Xn[e]-Xn[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Yn.includes(this.options.compatibilityJSON)}}const Qn=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=((e,t,n)=>{const r=An(e,n);return void 0!==r?r:An(t,n)})(e,t,n);return!o&&i&&bn(n)&&(o=Ln(e,n,r),void 0===o&&(o=Ln(t,n,r))),o},Zn=e=>e.replace(/\$/g,"$$$$");class er{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Vn.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:On,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Tn(i):o||"{{",this.suffix=a?Tn(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Tn(d):h||Tn("$t("),this.nestingSuffix=f?Tn(f):p||Tn(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=Qn(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(Qn(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,c=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Zn(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Zn(this.escape(e)):Zn(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof u){const t=u(e,i,r);o=bn(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(c){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else bn(o)||this.useRawValueToEscape||(o=wn(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),c?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&!bn(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&!bn(r))return r;bn(r)||(r=wn(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const tr=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(Dn(r),i),t[a]=s),s(n)}};class nr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Vn.create("formatter"),this.options=e,this.formats={number:tr((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:tr((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:tr((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:tr((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:tr((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=tr(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}const o=i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e);return o}}class rr extends zn{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Vn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:i}=Cn(e,t,Object);r[i]=r[i]||[],r[i].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();bn(e)&&(e=this.languageUtils.toResolveHierarchy(e)),bn(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const ir=()=>({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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),bn(e[1])&&(t.defaultValue=e[1]),bn(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),or=e=>(bn(e.ns)&&(e.ns=[e.ns]),bn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),bn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ar=()=>{};class sr extends zn{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=or(e),this.services={},this.logger=Vn,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(bn(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=ir();this.options={...r,...this.options,...or(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Vn.init(i(this.modules.logger),this.options):Vn.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=nr);const n=new Un(this.options);this.store=new jn(this.options.resources,this.options);const o=this.services;o.logger=Vn,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Jn(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new er(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new rr(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new $n(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ar),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[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(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const o=_n(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar;const n=bn(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=_n();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ar),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Bn.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=_n();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n=bn(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{o(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);const u=r.options.keySeparator||".";let c;return c=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${u}${e}`):o.keyPrefix?`${o.keyPrefix}${u}${e}`:e,r.t(c,o)};return bn(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=_n();return this.options.ns?(bn(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=_n();bn(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Un(ir());return["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(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new sr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new sr(r);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new jn(this.store.data,r),i.services.resourceStore=i.store),i.translator=new $n(i.services,r),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const lr=sr.createInstance();lr.createInstance=sr.createInstance,lr.createInstance,lr.dir,lr.init,lr.loadResources,lr.reloadResources,lr.use,lr.changeLanguage,lr.getFixedT,lr.t,lr.exists,lr.setDefaultNamespace,lr.hasLoadedNamespace,lr.loadNamespaces,lr.loadLanguages,a(4915),Object.create(null);const ur={},cr=(e,t,n,r)=>{pr(n)&&ur[n]||(pr(n)&&(ur[n]=new Date),((e,t,n,r)=>{const i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);pr(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,n,r))},dr=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},hr=(e,t,n)=>{e.loadNamespaces(t,dr(e,n))},fr=(e,t,n,r)=>{if(pr(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return hr(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,dr(e,r))},pr=e=>"string"==typeof e,mr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,gr={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},vr=e=>gr[e];let yr,br={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(mr,vr)};const _r={type:"3rdParty",init(e){((e={})=>{br={...br,...e}})(e.options.react),(e=>{yr=e})(e)}},wr=(0,t.createContext)();class Sr{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const xr=(e,t,n,r)=>e.getFixedT(t,n,r),Er=JSON.parse('{"chat.placeholder.text":"Describe the diamond you\'re looking for...","chat.send.text":"Send","chat.thinking.text":"Thinking","chat.error.text":"Sorry, something went wrong. Please try again.","chat.authError.text":"Chat is unavailable (missing user authentication).","chat.loadingOlder.text":"Loading older messages...","chat.chatStartedAt.text":"Chat Started at {{time}}","results.found.text":"Found","results.matchPreferences.text":"that match your preferences:","results.noResultsSuggestion.text":"Try modifying your search criteria to explore more options.","results.viewAll.text":"View All {{total}} diamonds","results.showMore.text":"Show more","results.showLess.text":"Show less","results.loading.text":"Loading...","product.labGrownDiamond.text":"Lab-Grown Diamond","product.naturalDiamond.text":"Natural Diamond","product.pair.text":"Pair","product.diamonds.text":"diamonds","product.pricePerCarat.text":"p/ct","product.total.text":"total","product.depth.text":"D","product.table.text":"T","product.pluralSuffix.text":"s","header.title.text":"AI Search","header.beta.text":"Beta","header.clearChat.text":"Clear Chat","header.minimize.text":"Minimize","beta.notice.text":"This beta feature uses AI-generated results that should be verified.","chat.welcome.message.text":"Describe the diamond you\'re looking for — for example, \\"2ct F VS2 under $10,000\\" or \\"1–2ct D–F VS pear\\" — and I\'ll take it from there.","time.am.text":"am","time.pm.text":"pm","search.fancyColor.text":"Fancy Color","search.fcOvertone.text":"FC Overtone","search.cut.text":"Cut","search.polish.text":"Pol","search.symmetry.text":"Sym","search.fluorescence.text":"Flour","search.lab.text":"Lab","search.depth.text":"Depth","search.tableLabel.text":"table","search.measLength.text":"Meas Length","search.measWidth.text":"Meas Width","search.measDepth.text":"Meas Depth","search.ratio.text":"Ratio","search.totalPrice.text":"Total","search.pricePerCarat.text":"PPC","search.itemLocation.text":"Item Loc","search.supplier.text":"Supplier","search.parcel.text":"Parcel","search.threeX.text":"3X","search.heartsAndArrows.text":"H&A","search.colorEnhanced.text":"Color Enhanced","search.noBgm.text":"No BGM","search.threeVgPlus.text":"3VG+","search.eightX.text":"8X","search.crown.text":"Crown","search.pavilion.text":"Pavilion","search.more.text":"+ {{count}} more","search.carat.text":"ct."}');function Cr(){try{if("undefined"!=typeof window&&window.localStorage)return window.localStorage}catch{}return null}const kr={getItem:async e=>{try{if("persist:searchFilters"===e){const t=function(){try{if("undefined"!=typeof window&&window.sessionStorage)return window.sessionStorage}catch{}return null}();return t?t.getItem(e):null}const t=Cr();return t?t.getItem(e):null}catch{return null}},setItem:async(e,t)=>{try{const n=Cr();n&&n.setItem(e,t)}catch{}},removeItem:async e=>{try{const t=Cr();t&&t.removeItem(e)}catch{}}};let Ar=!1;const Rr={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}};function Tr(){return"web"===r.A.OS?kr:(Ar||(console.warn("[vdb-ai-chat] AsyncStorage not initialized. Call initStorage(AsyncStorage) at app startup."),Ar=!0),Rr)}const Pr=async e=>Tr().getItem(e),Or=async(e,t)=>Tr().setItem(e,t),Ir=async e=>Tr().removeItem(e),Nr=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{const n=await Tr().getItem(e);return n?JSON.parse(n):t}catch{return t}},Lr=async(e,t)=>{try{await Tr().setItem(e,JSON.stringify(t))}catch{}},Dr=lr.createInstance(),Mr=(()=>{const e={};for(const[t,n]of Object.entries(Er)){const r=t.split(".");let i=e;for(let e=0;e<r.length-1;e++){const t=r[e];t in i||(i[t]={}),i=i[t]}i[r[r.length-1]]=n}return e})();Dr.use(_r).init({compatibilityJSON:"v3",lng:"en",fallbackLng:"en",resources:{en:{translation:Mr}},interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Fr=e=>{const t={};for(const[n,r]of Object.entries(e)){const e=n.split(".");let i=t;for(let t=0;t<e.length-1;t++){const n=e[t];n in i||(i[n]={}),i=i[n]}i[e[e.length-1]]=r}return t},Vr=async()=>{try{const e=await Pr("persist:root");if(!e)return null;const t=JSON.parse(e),n="string"==typeof t?.globalData?JSON.parse(t.globalData):t?.globalData,r=n?.ai_chat_bot;return r?.translations||null}catch{return null}},zr=(e,t)=>e&&Object.keys(e).length>0?e:t&&Object.keys(t).length>0?t:Er,jr=async e=>{const t=e?.locale||"en",n=await Vr(),r=e?.translations,i=zr(n,r),o=Fr(i);Dr.addResourceBundle(t,"translation",o,!0,!0),Dr.language!==t&&await Dr.changeLanguage(t)},Br=()=>((e,n={})=>{const{i18n:r}=n,{i18n:i,defaultNS:o}=(0,t.useContext)(wr)||{},a=r||i||yr;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Sr),!a){cr(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return pr(t)?t:"object"==typeof(n=t)&&null!==n&&pr(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&cr(a,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...br,...a.options.react,...n},{useSuspense:l,keyPrefix:u}=s;let c=e||o||a.options?.defaultNS;c=pr(c)?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces?.(c);const d=(a.isInitialized||a.initializedStoreOnce)&&c.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(cr(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,a,s)),h=((e,n,r,i)=>(0,t.useCallback)(xr(e,n,r,i),[e,n,r,i]))(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),f=()=>h,p=()=>xr(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),[m,g]=(0,t.useState)(f);let v=c.join();n.lng&&(v=`${n.lng}${v}`);const y=((e,n)=>{const r=(0,t.useRef)();return(0,t.useEffect)(()=>{r.current=e},[e,n]),r.current})(v),b=(0,t.useRef)(!0);(0,t.useEffect)(()=>{const{bindI18n:e,bindI18nStore:t}=s;b.current=!0,d||l||(n.lng?fr(a,n.lng,c,()=>{b.current&&g(p)}):hr(a,c,()=>{b.current&&g(p)})),d&&y&&y!==v&&b.current&&g(p);const r=()=>{b.current&&g(p)};return e&&a?.on(e,r),t&&a?.store.on(t,r),()=>{b.current=!1,a&&e&&e?.split(" ").forEach(e=>a.off(e,r)),t&&a&&t.split(" ").forEach(e=>a.store.off(e,r))}},[a,v]),(0,t.useEffect)(()=>{b.current&&d&&g(f)},[a,u,d]);const _=[m,a,d];if(_.t=m,_.i18n=a,_.ready=d,d)return _;if(!d&&!l)return _;throw new Promise(e=>{n.lng?fr(a,n.lng,c,()=>e()):hr(a,c,()=>e())})})("translation",{i18n:Dr});let Hr=yt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(Hr=e)}catch{Hr=yt.A}const $r=e=>{let{disabled:n,isEmpty:r}=e;const i=n||r,o=Wt();return t.createElement(Hr,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/send.svg"},resizeMode:"contain",style:{...Yr.buttonIcon,tintColor:i?o["core-04"]||"#ACACB3":o["core-05"]||"#020001",cursor:i?"auto":"pointer"}})},Wr=e=>{let{value:n,onChangeText:r,onSend:i,disabled:o,placeholder:a,inputRef:s}=e;const l=Wt(),{t:u}=Br();return t.createElement(Ur,{theme:l},t.createElement(Kr,{ref:s,id:"chat-input",style:[Yr.inputWeb],autoComplete:"off",placeholder:a||u("chat.placeholder.text","Describe the diamond you're looking for..."),placeholderTextColor:l["core-06"]||"#999",value:n,onChangeText:r,onSubmitEditing:i,editable:!o,autoFocus:!l.isTablet}),t.createElement(qr,{onPress:i,disabled:o},t.createElement($r,{disabled:o,isEmpty:""===n.trim()})))},Ur=vn.View`
3
3
  flex-direction: row;
4
4
  padding-horizontal: 12px;
5
5
  padding-vertical: 16px;
@@ -389,7 +389,7 @@
389
389
  font-weight: 500;
390
390
  font-family: "Roboto-Medium";
391
391
  color: ${e=>{let{theme:t}=e;return t["link-static"]||"#3378F6"}};
392
- `,wa=(0,t.memo)(Uo),Sa=e=>{let t="web";if(e)switch(e){case"Linux":t="android";break;case"iPhone":t="ios";break;default:t="web"}else t=String(r.A.OS);return(e=>{switch(e){case li.WEB:return 0;case li.IOS:return 1;case li.ANDROID:default:return 2}})(t).toString()},xa=async()=>{const e=await si(),t="web"===r.A.OS?{system_type_enum:Sa(null),platform_action_enum:"0"}:{};return{user_company_id:e?.company_id?.toString(),user_company_name:e?.company,user_email:e?.email,user_id:e?.id?.toString(),user_name:e?.first_name?`${e?.first_name} ${e?.last_name}`:void 0,user_price_mode:e?.price_mode?.toString(),price_mode:e?.price_mode?.toString(),has_plan_details:!!e?.plan_details,userAgent:"web"===r.A.OS?navigator.userAgent:"",...t}};var Ea=a(7918),Ca=a.n(Ea),ka=a(5685);var Aa=a(5556),Ra=a.n(Aa);const Ta=Ra().oneOfType([Ra().string,Ra().number]),Pa={all:Ra().bool,grid:Ra().bool,aural:Ra().bool,braille:Ra().bool,handheld:Ra().bool,print:Ra().bool,projection:Ra().bool,screen:Ra().bool,tty:Ra().bool,tv:Ra().bool,embossed:Ra().bool},Oa={orientation:Ra().oneOf(["portrait","landscape"]),scan:Ra().oneOf(["progressive","interlace"]),aspectRatio:Ra().string,deviceAspectRatio:Ra().string,height:Ta,deviceHeight:Ta,width:Ta,deviceWidth:Ta,color:Ra().bool,colorIndex:Ra().bool,monochrome:Ra().bool,resolution:Ta,type:Object.keys(Pa)},{type:Ia,...Na}=Oa,La={minAspectRatio:Ra().string,maxAspectRatio:Ra().string,minDeviceAspectRatio:Ra().string,maxDeviceAspectRatio:Ra().string,minHeight:Ta,maxHeight:Ta,minDeviceHeight:Ta,maxDeviceHeight:Ta,minWidth:Ta,maxWidth:Ta,minDeviceWidth:Ta,maxDeviceWidth:Ta,minColor:Ra().number,maxColor:Ra().number,minColorIndex:Ra().number,maxColorIndex:Ra().number,minMonochrome:Ra().number,maxMonochrome:Ra().number,minResolution:Ta,maxResolution:Ta,...Na};var Da={all:{...Pa,...La},types:Pa,matchers:Oa,features:La};const Ma=(0,t.createContext)(void 0),Fa=e=>{if(e)return Object.keys(e).reduce((t,n)=>(t[(0,ka.default)(n)]=e[n],t),{})},Va=()=>{const e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{e.current=!0},[]),e.current},za=e=>{const n=()=>(e=>e.query||(e=>{const t=[];return Object.keys(Da.all).forEach(n=>{const r=e[n];null!=r&&t.push(((e,t)=>{const n=(0,ka.default)(e);return"number"==typeof t&&(t=`${t}px`),!0===t?n:!1===t?`not ${n}`:`(${n}: ${t})`})(n,r))}),t.join(" and ")})(e))(e),[r,i]=(0,t.useState)(n);return(0,t.useEffect)(()=>{const e=n();r!==e&&i(e)},[e]),r},ja=(e,n,r)=>{const i=(e=>{const n=(0,t.useContext)(Ma),r=()=>Fa(e)||Fa(n),[i,o]=(0,t.useState)(r);return(0,t.useEffect)(()=>{const e=r();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let r=0;r<i;r++){const i=n[r];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0})(i,e)||o(e)},[e,n]),i})(n),o=za(e);if(!o)throw new Error("Invalid or missing MediaQuery!");const a=((e,n)=>{const r=()=>Ca()(e,n||{},!!n),[i,o]=(0,t.useState)(r),a=Va();return(0,t.useEffect)(()=>{if(a){const e=r();return o(e),()=>{e&&e.dispose()}}},[e,n]),i})(o,i),s=(e=>{const[n,r]=(0,t.useState)(e.matches);return(0,t.useEffect)(()=>{const t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),n})(a),l=Va();return(0,t.useEffect)(()=>{l&&r&&r(s)},[s]),(0,t.useEffect)(()=>()=>{a&&a.dispose()},[]),s},Ba={transparent:"transparent","main-01":"#292735","main-02":"#37363F","main-03":"#E3E3E9","main-04":"#3378F6","main-05":"#ffffff","main-06":"#292735","diam-01":"#804195","diam-02":"#713782","diam-03":"#EEE1F3","diam-04":"#9138AE","diam-05":"#ffffff","diam-06":"#9138AE","core-01":"#ffffff","core-02":"#EDEDF2","core-03":"#D5D5DC","core-04":"#ACACB3","core-05":"#020001","core-06":"#4F4E57","extra-01":"#A1A0AB","extra-02":"#292735","extra-03":"#E4E4EC","extra-04":"#DADAE0","extra-05":"#ffffff","extra-06":"#4F4E57","gem-01":"#3B72CC","gem-02":"#3C62A0","gem-03":"#DCE6F6","gem-04":"#3E76D2","gem-05":"#ffffff","gem-06":"#3E76D2","jewelry-01":"#58B8A5","jewelry-02":"#4CA191","jewelry-03":"#D6F1ED","jewelry-04":"#27AC92","jewelry-05":"#ffffff","jewelry-06":"#27AC92","lab-01":"#E97F5B","lab-02":"#DA704B","lab-03":"#F9E2D9","lab-04":"#E87B56","lab-05":"#ffffff","lab-06":"#E87B56","over-01":"#000000b3","over-02":"rgba(55,54,64,0.3)","over-03":"rgba(255,255,255,0.7)","over-04":"#ffffff","cont-00":"#ffffff","success-02":"#DBFFE4","success-01":"#00B140","error-02":"#FFE2E0","error-01":"#D0021B","warn-02":"#FFF8DB","warn-01":"#FFA500","primary-bg-static":"#292735","primary-bg-hover":"#37363F","primary-bg-disabled":"#D5D5DC","primary-cont":"#ffffff","primary-cont-disabled":"#ACACB3","secondary-bor-disabled":"#D5D5DC","secondary-cont-disabled":"#ACACB3","secondary-bg-hover":"#E3E3E9","secondary-bor-hover":"#37363F","secondary-bor-static":"#292735","secondary-cont":"#292735","tertiary-bg-static":"#E3E3E9","tertiary-bg-disabled":"#D5D5DC","tertiary-cont":"#292735","tertiary-cont-disabled":"#ACACB3","link-static":"#3378F6","link-hover":"#292735","option-bg-static":"#E4E4EC","option-bg-hover":"#DADAE0","option-bg-active":"#A1A0AB","option-cont":"#4F4E57","option-cont-active":"#ffffff","knob-bg-hover":"#E4E4EC","knob-bg-active":"#292735","knob-cont":"#ffffff","knob-bor":"#292735","toggle-bg-static":"#DADAE0","toggle-bg-on":"#292735","toggle-cont":"#ffffff","option-bg-disabled":"#D5D5DC","option-cont-disabled":"#ACACB3","knob-bg-disabled-off":"#EDEDF2","knob-bg-disabled-on":"#D5D5DC","knob-cont-disabled-on":"#ffffff","toggle-bg-disabled":"#D5D5DC","toggle-cont-disabled":"#EDEDF2","header-cont":"#ffffff","header-btn-cont":"#ffffff","header-bg-static":"#37363F","header-btn-bg-hover":"#37363F","header-btn-bg-active":"#E3E3E9","header-btn-bg-static":"#292735","header-btn-bor-hover":"#292735","header-btn-cont-active":"#292735","knob-bg-static":"#ffffff",Shadows:{Huge:{x:"2",y:"16",blur:"32",type:"dropShadow",color:"#37364066",spread:"-8"},Gentle:{x:"1",y:"2",blur:"4",type:"dropShadow",color:"#37364014",spread:"-2"},Normal:{x:"2",y:"8",blur:"24",type:"dropShadow",color:"#37364042",spread:"-6"},"Bottom-scroll":{x:"0",y:"-8",blur:"24",type:"dropShadow",color:"#37364029",spread:"-8"}}};let Ha=null;if("web"!==r.A.OS)try{Ha=a(Object(function(){var e=new Error("Cannot find module 'expo-device'");throw e.code="MODULE_NOT_FOUND",e}()))}catch{}const $a=e=>{let{children:n}=e;const[i,o]=(0,t.useState)(Ba);if((0,t.useEffect)(()=>{(async()=>{try{const e=JSON.parse(await Pr("persist:root")||"{}"),t=e.theme?JSON.parse(e.theme):null;t&&o(t)}catch{}})()},[]),"web"===r.A.OS&&window.matchMedia("print").matches)return null;const a=ja({maxWidth:767}),s=ja({minWidth:767,maxWidth:1279}),l=ja({minWidth:1279}),{width:u}=ei,c=a||u<=767,d=s||u>767&&u<=1279||"iPadOS"===Ha?.osName||hi(),h=(l||u>1279)&&!("iPadOS"===Ha?.osName||hi()),f=h&&!d&&!c,p={isMobile:c,isTablet:d,isDesktop:h,isLargeScreen:f},m=(0,t.useMemo)(()=>({...i,...p}),[i,c,d,h,f]);return t.createElement(Ut,{theme:m},n)},Wa=e=>{let{username:n,theme:r,productType:i}=e;return t.createElement(Ua,null,t.createElement(Ka,{isBold:!0},"Hi, ",n,"!"),t.createElement(qa,{isBold:!1},"Describe the diamond you're looking for — for example,"," ",t.createElement(Ya,{color:r[yi(i)]},"2ct F VS2 under $10,000")," ","or"," ",t.createElement(Ya,{color:r[yi(i)]},"1–2ct D–F VS pear")," ","— and I'll take it from there."))},Ua=vn.View`
392
+ `,wa=(0,t.memo)(Uo),Sa=e=>{let t="web";if(e)switch(e){case"Linux":t="android";break;case"iPhone":t="ios";break;default:t="web"}else t=String(r.A.OS);return(e=>{switch(e){case li.WEB:return 0;case li.IOS:return 1;case li.ANDROID:default:return 2}})(t).toString()},xa=async()=>{const e=await si(),t="web"===r.A.OS?{system_type_enum:Sa(null),platform_action_enum:"0"}:{};return{user_company_id:e?.company_id?.toString(),user_company_name:e?.company,user_email:e?.email,user_id:e?.id?.toString(),user_name:e?.first_name?`${e?.first_name} ${e?.last_name}`:void 0,user_price_mode:e?.price_mode?.toString(),price_mode:e?.price_mode?.toString(),has_plan_details:!!e?.plan_details,userAgent:"web"===r.A.OS?navigator.userAgent:"",...t}};var Ea=a(7918),Ca=a.n(Ea),ka=a(5685);var Aa=a(5556),Ra=a.n(Aa);const Ta=Ra().oneOfType([Ra().string,Ra().number]),Pa={all:Ra().bool,grid:Ra().bool,aural:Ra().bool,braille:Ra().bool,handheld:Ra().bool,print:Ra().bool,projection:Ra().bool,screen:Ra().bool,tty:Ra().bool,tv:Ra().bool,embossed:Ra().bool},Oa={orientation:Ra().oneOf(["portrait","landscape"]),scan:Ra().oneOf(["progressive","interlace"]),aspectRatio:Ra().string,deviceAspectRatio:Ra().string,height:Ta,deviceHeight:Ta,width:Ta,deviceWidth:Ta,color:Ra().bool,colorIndex:Ra().bool,monochrome:Ra().bool,resolution:Ta,type:Object.keys(Pa)},{type:Ia,...Na}=Oa,La={minAspectRatio:Ra().string,maxAspectRatio:Ra().string,minDeviceAspectRatio:Ra().string,maxDeviceAspectRatio:Ra().string,minHeight:Ta,maxHeight:Ta,minDeviceHeight:Ta,maxDeviceHeight:Ta,minWidth:Ta,maxWidth:Ta,minDeviceWidth:Ta,maxDeviceWidth:Ta,minColor:Ra().number,maxColor:Ra().number,minColorIndex:Ra().number,maxColorIndex:Ra().number,minMonochrome:Ra().number,maxMonochrome:Ra().number,minResolution:Ta,maxResolution:Ta,...Na};var Da={all:{...Pa,...La},types:Pa,matchers:Oa,features:La};const Ma=(0,t.createContext)(void 0),Fa=e=>{if(e)return Object.keys(e).reduce((t,n)=>(t[(0,ka.default)(n)]=e[n],t),{})},Va=()=>{const e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{e.current=!0},[]),e.current},za=e=>{const n=()=>(e=>e.query||(e=>{const t=[];return Object.keys(Da.all).forEach(n=>{const r=e[n];null!=r&&t.push(((e,t)=>{const n=(0,ka.default)(e);return"number"==typeof t&&(t=`${t}px`),!0===t?n:!1===t?`not ${n}`:`(${n}: ${t})`})(n,r))}),t.join(" and ")})(e))(e),[r,i]=(0,t.useState)(n);return(0,t.useEffect)(()=>{const e=n();r!==e&&i(e)},[e]),r},ja=(e,n,r)=>{const i=(e=>{const n=(0,t.useContext)(Ma),r=()=>Fa(e)||Fa(n),[i,o]=(0,t.useState)(r);return(0,t.useEffect)(()=>{const e=r();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let r=0;r<i;r++){const i=n[r];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0})(i,e)||o(e)},[e,n]),i})(n),o=za(e);if(!o)throw new Error("Invalid or missing MediaQuery!");const a=((e,n)=>{const r=()=>Ca()(e,n||{},!!n),[i,o]=(0,t.useState)(r),a=Va();return(0,t.useEffect)(()=>{if(a){const e=r();return o(e),()=>{e&&e.dispose()}}},[e,n]),i})(o,i),s=(e=>{const[n,r]=(0,t.useState)(e.matches);return(0,t.useEffect)(()=>{const t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),n})(a),l=Va();return(0,t.useEffect)(()=>{l&&r&&r(s)},[s]),(0,t.useEffect)(()=>()=>{a&&a.dispose()},[]),s},Ba={transparent:"transparent","main-01":"#292735","main-02":"#37363F","main-03":"#E3E3E9","main-04":"#3378F6","main-05":"#ffffff","main-06":"#292735","diam-01":"#804195","diam-02":"#713782","diam-03":"#EEE1F3","diam-04":"#9138AE","diam-05":"#ffffff","diam-06":"#9138AE","core-01":"#ffffff","core-02":"#EDEDF2","core-03":"#D5D5DC","core-04":"#ACACB3","core-05":"#020001","core-06":"#4F4E57","extra-01":"#A1A0AB","extra-02":"#292735","extra-03":"#E4E4EC","extra-04":"#DADAE0","extra-05":"#ffffff","extra-06":"#4F4E57","gem-01":"#3B72CC","gem-02":"#3C62A0","gem-03":"#DCE6F6","gem-04":"#3E76D2","gem-05":"#ffffff","gem-06":"#3E76D2","jewelry-01":"#58B8A5","jewelry-02":"#4CA191","jewelry-03":"#D6F1ED","jewelry-04":"#27AC92","jewelry-05":"#ffffff","jewelry-06":"#27AC92","lab-01":"#E97F5B","lab-02":"#DA704B","lab-03":"#F9E2D9","lab-04":"#E87B56","lab-05":"#ffffff","lab-06":"#E87B56","over-01":"#000000b3","over-02":"rgba(55,54,64,0.3)","over-03":"rgba(255,255,255,0.7)","over-04":"#ffffff","cont-00":"#ffffff","success-02":"#DBFFE4","success-01":"#00B140","error-02":"#FFE2E0","error-01":"#D0021B","warn-02":"#FFF8DB","warn-01":"#FFA500","primary-bg-static":"#292735","primary-bg-hover":"#37363F","primary-bg-disabled":"#D5D5DC","primary-cont":"#ffffff","primary-cont-disabled":"#ACACB3","secondary-bor-disabled":"#D5D5DC","secondary-cont-disabled":"#ACACB3","secondary-bg-hover":"#E3E3E9","secondary-bor-hover":"#37363F","secondary-bor-static":"#292735","secondary-cont":"#292735","tertiary-bg-static":"#E3E3E9","tertiary-bg-disabled":"#D5D5DC","tertiary-cont":"#292735","tertiary-cont-disabled":"#ACACB3","link-static":"#3378F6","link-hover":"#292735","option-bg-static":"#E4E4EC","option-bg-hover":"#DADAE0","option-bg-active":"#A1A0AB","option-cont":"#4F4E57","option-cont-active":"#ffffff","knob-bg-hover":"#E4E4EC","knob-bg-active":"#292735","knob-cont":"#ffffff","knob-bor":"#292735","toggle-bg-static":"#DADAE0","toggle-bg-on":"#292735","toggle-cont":"#ffffff","option-bg-disabled":"#D5D5DC","option-cont-disabled":"#ACACB3","knob-bg-disabled-off":"#EDEDF2","knob-bg-disabled-on":"#D5D5DC","knob-cont-disabled-on":"#ffffff","toggle-bg-disabled":"#D5D5DC","toggle-cont-disabled":"#EDEDF2","header-cont":"#ffffff","header-btn-cont":"#ffffff","header-bg-static":"#37363F","header-btn-bg-hover":"#37363F","header-btn-bg-active":"#E3E3E9","header-btn-bg-static":"#292735","header-btn-bor-hover":"#292735","header-btn-cont-active":"#292735","knob-bg-static":"#ffffff",Shadows:{Huge:{x:"2",y:"16",blur:"32",type:"dropShadow",color:"#37364066",spread:"-8"},Gentle:{x:"1",y:"2",blur:"4",type:"dropShadow",color:"#37364014",spread:"-2"},Normal:{x:"2",y:"8",blur:"24",type:"dropShadow",color:"#37364042",spread:"-6"},"Bottom-scroll":{x:"0",y:"-8",blur:"24",type:"dropShadow",color:"#37364029",spread:"-8"}}};let Ha=null;if("web"!==r.A.OS)try{Ha=a(Object(function(){var e=new Error("Cannot find module 'expo-device'");throw e.code="MODULE_NOT_FOUND",e}()))}catch{}const $a=e=>{let{children:n}=e;const[i,o]=(0,t.useState)(Ba),[a,s]=(0,t.useState)(!1),l=ja({maxWidth:767}),u=ja({minWidth:767,maxWidth:1279}),c=ja({minWidth:1279});(0,t.useEffect)(()=>{(async()=>{try{const e=JSON.parse(await Pr("persist:root")||"{}"),t=e.theme?JSON.parse(e.theme):null;t&&o(t)}catch{}})()},[]),(0,t.useEffect)(()=>{if("web"===r.A.OS&&"undefined"!=typeof window)try{const e=window.matchMedia("print");s(e.matches);const t=e=>s(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{}},[]);const{width:d}=ei,h=l||d<=767,f=u||d>767&&d<=1279||"iPadOS"===Ha?.osName||hi(),p=(c||d>1279)&&!("iPadOS"===Ha?.osName||hi()),m=p&&!f&&!h,g={isMobile:h,isTablet:f,isDesktop:p,isLargeScreen:m},v=(0,t.useMemo)(()=>({...i,...g}),[i,h,f,p,m]);return a?null:t.createElement(Ut,{theme:v},n)},Wa=e=>{let{username:n,theme:r,productType:i}=e;return t.createElement(Ua,null,t.createElement(Ka,{isBold:!0},"Hi, ",n,"!"),t.createElement(qa,{isBold:!1},"Describe the diamond you're looking for — for example,"," ",t.createElement(Ya,{color:r[yi(i)]},"2ct F VS2 under $10,000")," ","or"," ",t.createElement(Ya,{color:r[yi(i)]},"1–2ct D–F VS pear")," ","— and I'll take it from there."))},Ua=vn.View`
393
393
  padding-vertical: 32px;
394
394
  padding-horizontal: 16px;
395
395
  gap: 8px;
@@ -459,4 +459,4 @@
459
459
  font-size: 13px;
460
460
  font-weight: 500;
461
461
  line-height: 136%;
462
- `,is=vn.TouchableOpacity``,os=i.A.create({listContent:{paddingVertical:8,flexGrow:1,justifyContent:"flex-end"},loading:{paddingVertical:8,alignItems:"center"}}),as=i.A.create({root:{flex:1,height:"100%",width:"100%"}});window.createChatWidget=function(e){const{id:i="chat-widget",apiUrl:a,theme:s,height:l="500px",width:u="360px",button:c={label:"",icon:"",iconColor:"transparent",labelColor:"transparent",backgroundColor:"transparent",borderRadius:"9999px",padding:"0",buttonPosition:{bottom:"60px",right:"44px"}},segmentWriteKey:d,isBetaMode:h,locale:f,translations:p}=e;(f||p)&&jr({locale:f,translations:p});const m=`${i}-modal`,g=`${i}-launcher`;let v=document.getElementById(g);v||(v=document.createElement("button"),v.id=g,v.type="button",v.innerText=c.label||"",v.innerHTML=c.icon||"<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72' fill='none'> <g filter='url(#filter0_d_10_66)'> <g clip-path='url(#clip0_10_66)'> <foreignObject x='-33.12' y='-33.12' width='138.24' height='138.24'><div xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1px);clip-path:url(#bgblur_1_10_66_clip_path);height:100%;width:100%'></div></foreignObject><g filter='url(#filter1_g_10_66)' data-figma-bg-blur-radius='2'> <rect width='72' height='72' fill='white' fill-opacity='0.05'/> </g> <g filter='url(#filter2_iii_10_66)'> <rect width='72' height='72' rx='36' fill='url(#paint0_linear_10_66)' fill-opacity='0.7'/> <rect x='0.5' y='0.5' width='71' height='71' rx='35.5' stroke='white' stroke-opacity='0.2'/> </g> <path d='M36 20C36 20 36.8828 28.2399 40.3215 31.6785C43.7601 35.1172 52 36 52 36C52 36 43.7601 36.8828 40.3215 40.3215C36.8828 43.7601 36 52 36 52C36 52 35.1172 43.7601 31.6785 40.3215C28.2399 36.8828 20 36 20 36C20 36 28.2399 35.1172 31.6785 31.6785C35.1172 28.2399 36 20 36 20Z' fill='white'/> </g> </g> <defs> <filter id='filter0_d_10_66' x='0' y='0' width='112' height='112' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='20' dy='20'/> <feGaussianBlur stdDeviation='10'/> <feComposite in2='hardAlpha' operator='out'/> <feColorMatrix type='matrix' values='0 0 0 0 0.862354 0 0 0 0 0.862354 0 0 0 0 0.89855 0 0 0 0.2 0'/> <feBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_10_66'/> <feBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_10_66' result='shape'/> </filter> <filter id='filter1_g_10_66' x='-33.12' y='-33.12' width='138.24' height='138.24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feTurbulence type='fractalNoise' baseFrequency='0.012303149327635765 0.012303149327635765' numOctaves='3' seed='8425'/> <feDisplacementMap in='shape' scale='66.239997863769531' xChannelSelector='R' yChannelSelector='G' result='displacedImage' width='100%' height='100%'/> <feMerge result='effect1_texture_10_66'> <feMergeNode in='displacedImage'/> </feMerge> </filter> <clipPath id='bgblur_1_10_66_clip_path' transform='translate(33.12 33.12)'><rect width='72' height='72'/> </clipPath><filter id='filter2_iii_10_66' x='-1' y='-2' width='74' height='76' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset/> <feGaussianBlur stdDeviation='7'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='shape' result='effect1_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='-1' dy='-3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/> <feBlend mode='normal' in2='effect1_innerShadow_10_66' result='effect2_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='1' dy='3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='effect2_innerShadow_10_66' result='effect3_innerShadow_10_66'/> </filter> <linearGradient id='paint0_linear_10_66' x1='4.5' y1='16' x2='67.5' y2='52.5' gradientUnits='userSpaceOnUse'> <stop stop-color='#C000FF'/> <stop offset='1' stop-color='#2BFFCA'/> </linearGradient> <clipPath id='clip0_10_66'> <rect width='72' height='72' rx='36' fill='white'/> </clipPath> </defs> </svg>",v.style.color=c.iconColor||"#ffffff",v.style.position="fixed",v.style.zIndex="2147483000",v.style.borderRadius="100px",v.style.padding="0",v.style.width="56px",v.style.height="56px",v.style.backgroundColor=c.backgroundColor||"transparent",v.style.color=c.labelColor||"transparent",v.style.border="none",v.style.cursor="pointer",v.style.boxShadow="0 4px 12px rgba(0,0,0,0.2)",v.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, sans-serif",v.style.fontSize="14px",v.style.bottom=c.buttonPosition?.bottom||"24px",c.buttonPosition?.top&&(v.style.top=c.buttonPosition.top),v.style.right=c.buttonPosition?.right||"20px",c.buttonPosition?.left&&(v.style.left=c.buttonPosition.left),document.body.appendChild(v));let y=document.getElementById(m);y||(y=document.createElement("div"),y.id=m,y.style.position="fixed",y.style.zIndex="2147483000",y.style.bottom=c.modalPosition?.bottom||"30px",c.modalPosition?.top&&(y.style.top=c.modalPosition.top),y.style.right=c.modalPosition?.right||"30px",c.modalPosition?.left&&(y.style.left=c.modalPosition.left),y.style.width=u,y.style.height=l,y.style.maxWidth="30%",y.style.maxHeight="80%",y.style.backgroundColor="#ffffff",y.style.borderRadius="12px",y.style.overflow="hidden",y.style.boxShadow="0 16px 40px rgba(0,0,0,0.25)",y.style.display="none",y.style.opacity="0",y.style.transform="translateY(16px) scale(0.98)",y.style.transition="transform 220ms ease-out, opacity 220ms ease-out",document.body.appendChild(y)),function(e,i,a,s,l,u,c,d,h){const f=(0,o.H)(e),p=(e,t)=>{const n={source:"vdb-ai-chat",type:e,payload:t},r=JSON.stringify(n),i=window.ReactNativeWebView;if(i?.postMessage)i.postMessage(r);else{try{window.parent?.postMessage(n,"*")}catch{}try{window.dispatchEvent(new CustomEvent("vdb-ai-event",{detail:n}))}catch{}}},m=t.createElement(n.A,{style:as.root},t.createElement(Ga,{apiUrl:ji(i),theme:a,onClose:s,onClearChat:()=>{},onViewAllPress:(e,t)=>{p("ai_view_all",{url:e,payload:t}),s?.()},onItemPress:(e,t)=>{p("ai_item_click",{url:e,item:t}),s?.()},isBetaMode:h,classic_search_filters:void 0}));if(f.render(m),"web"===r.A.OS&&u)try{const e="undefined"!=typeof navigator&&(navigator.userAgent.includes("Edg")||navigator.userAgent.includes("Edge"));dt.load({writeKey:u,trackAppLifecycleEvents:!1,flushAt:e?1:10,flushInterval:1e4,maxBatchSize:e?1:10}).then(async e=>{let[n]=e;n?.debug?.(!0),window.analytics=n,n.page?.();try{const e=await si(),t=e?.id;t&&n.identify(t)}catch{}const r=t.createElement(ft,{client:n},m);f.render(r)}).catch(e=>{console.error("[Segment] init failed",e)})}catch(e){console.error("[Segment] init failed",e)}}(y,a,s,()=>_(!1),0,d,0,0,h);let b=!1;const _=e=>{b=e,e?(y.style.display="block",requestAnimationFrame(()=>{y.style.opacity="1",y.style.transform="translateY(0px) scale(1)";const e=document.getElementById("chat-input");e&&e.focus()})):(y.style.opacity="0",y.style.transform="translateY(16px) scale(0.98)",setTimeout(()=>{b||(y.style.display="none")},230))};v.onclick=()=>{try{const e=window.analytics;e&&(b?e.track(ui.WIDGET_CLOSED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.():e.track(ui.WIDGET_OPENED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.())}catch(e){}_(!b)}},window.clearChat=function(){e.A.emit("clearChat")},window.changePriceMode=function(t){e.A.emit("changePriceMode",{priceMode:t})},window.setTranslations=async e=>{try{const t=await Pr("persist:root"),n=t?JSON.parse(t):{};let r="string"==typeof n?.globalData?JSON.parse(n.globalData):n?.globalData||{};if(r.ai_chat_bot={...r.ai_chat_bot,translations:e},n.globalData=JSON.stringify(r),await Or("persist:root",JSON.stringify(n)),Dr.isInitialized){const t=Fr(e);Dr.addResourceBundle(Dr.language,"translation",t,!0,!0)}}catch{}},window.getTranslations=async()=>{const e=await Vr();return e&&Object.keys(e).length>0?e:Er},window.changeLanguage=async e=>{const t=await Vr(),n=zr(t,void 0),r=Fr(n);Dr.addResourceBundle(e,"translation",r,!0,!0),await Dr.changeLanguage(e)},window.initI18n=jr})()})();
462
+ `,is=vn.TouchableOpacity``,os=i.A.create({listContent:{paddingVertical:8,flexGrow:1,justifyContent:"flex-end"},loading:{paddingVertical:8,alignItems:"center"}}),as=i.A.create({root:{flex:1,height:"100%",width:"100%"}});window.createChatWidget=function(e){const{id:i="chat-widget",apiUrl:a,theme:s,height:l="500px",width:u="360px",button:c={label:"",icon:"",iconColor:"transparent",labelColor:"transparent",backgroundColor:"transparent",borderRadius:"9999px",padding:"0",buttonPosition:{bottom:"60px",right:"44px"}},segmentWriteKey:d,isBetaMode:h,locale:f,translations:p,userToken:m,priceMode:g,userName:v,activeProductType:y,trackAnalyticsEvent:b,modalHeight:_,onViewAllPress:w,onItemPress:S}=e;(f||p)&&jr({locale:f,translations:p});const x=`${i}-modal`,E=`${i}-launcher`;let C=document.getElementById(E);C||(C=document.createElement("button"),C.id=E,C.type="button",C.innerText=c.label||"",C.innerHTML=c.icon||"<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72' fill='none'> <g filter='url(#filter0_d_10_66)'> <g clip-path='url(#clip0_10_66)'> <foreignObject x='-33.12' y='-33.12' width='138.24' height='138.24'><div xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1px);clip-path:url(#bgblur_1_10_66_clip_path);height:100%;width:100%'></div></foreignObject><g filter='url(#filter1_g_10_66)' data-figma-bg-blur-radius='2'> <rect width='72' height='72' fill='white' fill-opacity='0.05'/> </g> <g filter='url(#filter2_iii_10_66)'> <rect width='72' height='72' rx='36' fill='url(#paint0_linear_10_66)' fill-opacity='0.7'/> <rect x='0.5' y='0.5' width='71' height='71' rx='35.5' stroke='white' stroke-opacity='0.2'/> </g> <path d='M36 20C36 20 36.8828 28.2399 40.3215 31.6785C43.7601 35.1172 52 36 52 36C52 36 43.7601 36.8828 40.3215 40.3215C36.8828 43.7601 36 52 36 52C36 52 35.1172 43.7601 31.6785 40.3215C28.2399 36.8828 20 36 20 36C20 36 28.2399 35.1172 31.6785 31.6785C35.1172 28.2399 36 20 36 20Z' fill='white'/> </g> </g> <defs> <filter id='filter0_d_10_66' x='0' y='0' width='112' height='112' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='20' dy='20'/> <feGaussianBlur stdDeviation='10'/> <feComposite in2='hardAlpha' operator='out'/> <feColorMatrix type='matrix' values='0 0 0 0 0.862354 0 0 0 0 0.862354 0 0 0 0 0.89855 0 0 0 0.2 0'/> <feBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_10_66'/> <feBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_10_66' result='shape'/> </filter> <filter id='filter1_g_10_66' x='-33.12' y='-33.12' width='138.24' height='138.24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feTurbulence type='fractalNoise' baseFrequency='0.012303149327635765 0.012303149327635765' numOctaves='3' seed='8425'/> <feDisplacementMap in='shape' scale='66.239997863769531' xChannelSelector='R' yChannelSelector='G' result='displacedImage' width='100%' height='100%'/> <feMerge result='effect1_texture_10_66'> <feMergeNode in='displacedImage'/> </feMerge> </filter> <clipPath id='bgblur_1_10_66_clip_path' transform='translate(33.12 33.12)'><rect width='72' height='72'/> </clipPath><filter id='filter2_iii_10_66' x='-1' y='-2' width='74' height='76' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset/> <feGaussianBlur stdDeviation='7'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='shape' result='effect1_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='-1' dy='-3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/> <feBlend mode='normal' in2='effect1_innerShadow_10_66' result='effect2_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='1' dy='3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='effect2_innerShadow_10_66' result='effect3_innerShadow_10_66'/> </filter> <linearGradient id='paint0_linear_10_66' x1='4.5' y1='16' x2='67.5' y2='52.5' gradientUnits='userSpaceOnUse'> <stop stop-color='#C000FF'/> <stop offset='1' stop-color='#2BFFCA'/> </linearGradient> <clipPath id='clip0_10_66'> <rect width='72' height='72' rx='36' fill='white'/> </clipPath> </defs> </svg>",C.style.color=c.iconColor||"#ffffff",C.style.position="fixed",C.style.zIndex="2147483000",C.style.borderRadius="100px",C.style.padding="0",C.style.width="56px",C.style.height="56px",C.style.backgroundColor=c.backgroundColor||"transparent",C.style.color=c.labelColor||"transparent",C.style.border="none",C.style.cursor="pointer",C.style.boxShadow="0 4px 12px rgba(0,0,0,0.2)",C.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, sans-serif",C.style.fontSize="14px",C.style.bottom=c.buttonPosition?.bottom||"24px",c.buttonPosition?.top&&(C.style.top=c.buttonPosition.top),C.style.right=c.buttonPosition?.right||"20px",c.buttonPosition?.left&&(C.style.left=c.buttonPosition.left),document.body.appendChild(C));let k=document.getElementById(x);k||(k=document.createElement("div"),k.id=x,k.style.position="fixed",k.style.zIndex="2147483000",k.style.bottom=c.modalPosition?.bottom||"30px",c.modalPosition?.top&&(k.style.top=c.modalPosition.top),k.style.right=c.modalPosition?.right||"30px",c.modalPosition?.left&&(k.style.left=c.modalPosition.left),k.style.width=u,k.style.height=l,k.style.maxWidth="30%",k.style.maxHeight="80%",k.style.backgroundColor="#ffffff",k.style.borderRadius="12px",k.style.overflow="hidden",k.style.boxShadow="0 16px 40px rgba(0,0,0,0.25)",k.style.display="none",k.style.opacity="0",k.style.transform="translateY(16px) scale(0.98)",k.style.transition="transform 220ms ease-out, opacity 220ms ease-out",document.body.appendChild(k)),function(e,i,a,s,l,u,c,d,h,f,p,m,g,v,y,b,_,w){const S=(0,o.H)(e),x=(e,t)=>{const n={source:"vdb-ai-chat",type:e,payload:t},r=JSON.stringify(n),i=window.ReactNativeWebView;if(i?.postMessage)i.postMessage(r);else{try{window.parent?.postMessage(n,"*")}catch{}try{window.dispatchEvent(new CustomEvent("vdb-ai-event",{detail:n}))}catch{}}},E=t.createElement($a,null,t.createElement(n.A,{style:as.root},t.createElement(Ga,{apiUrl:ji(i),theme:a,onClose:s,onClearChat:()=>{},onViewAllPress:(e,t)=>{c?.(e,t),x("ai_view_all",{url:e,payload:t}),s?.()},onItemPress:(e,t)=>{d?.(e,t),x("ai_item_click",{url:e,item:t}),s?.()},isBetaMode:h,classic_search_filters:void 0,userToken:p,priceMode:m,userName:g,activeProductType:v,trackAnalyticsEvent:y,modalHeight:b,locale:_,translations:w})));if(S.render(E),"web"===r.A.OS&&u)try{const e="undefined"!=typeof navigator&&(navigator.userAgent.includes("Edg")||navigator.userAgent.includes("Edge"));dt.load({writeKey:u,trackAppLifecycleEvents:!1,flushAt:e?1:10,flushInterval:1e4,maxBatchSize:e?1:10}).then(async e=>{let[n]=e;n?.debug?.(!0),window.analytics=n,n.page?.();try{const e=await si(),t=e?.id;t&&n.identify(t)}catch{}const r=t.createElement(ft,{client:n},E);S.render(r)}).catch(e=>{console.error("[Segment] init failed",e)})}catch(e){console.error("[Segment] init failed",e)}}(k,a,s,()=>R(!1),0,d,w||void 0,S||void 0,h,0,m,g,v,y,b||void 0,_,f,p);let A=!1;const R=e=>{A=e,e?(k.style.display="block",requestAnimationFrame(()=>{k.style.opacity="1",k.style.transform="translateY(0px) scale(1)";const e=document.getElementById("chat-input");e&&e.focus()})):(k.style.opacity="0",k.style.transform="translateY(16px) scale(0.98)",setTimeout(()=>{A||(k.style.display="none")},230))};C.onclick=()=>{try{const e=window.analytics;e&&(A?e.track(ui.WIDGET_CLOSED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.():e.track(ui.WIDGET_OPENED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.())}catch(e){}R(!A)}},window.clearChat=function(){e.A.emit("clearChat")},window.changePriceMode=function(t){e.A.emit("changePriceMode",{priceMode:t})},window.setTranslations=async e=>{try{const t=await Pr("persist:root"),n=t?JSON.parse(t):{};let r="string"==typeof n?.globalData?JSON.parse(n.globalData):n?.globalData||{};if(r.ai_chat_bot={...r.ai_chat_bot,translations:e},n.globalData=JSON.stringify(r),await Or("persist:root",JSON.stringify(n)),Dr.isInitialized){const t=Fr(e);Dr.addResourceBundle(Dr.language,"translation",t,!0,!0)}}catch{}},window.getTranslations=async()=>{const e=await Vr();return e&&Object.keys(e).length>0?e:Er},window.changeLanguage=async e=>{const t=await Vr(),n=zr(t,void 0),r=Fr(n);Dr.addResourceBundle(e,"translation",r,!0,!0),await Dr.changeLanguage(e)},window.initI18n=jr})()})();